Supported golang sdk.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
73
drds/src/model/AlterTableRequest.cc
Normal file
73
drds/src/model/AlterTableRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/AlterTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::AlterTableRequest;
|
||||
|
||||
AlterTableRequest::AlterTableRequest() :
|
||||
RpcServiceRequest("drds", "2015-04-13", "AlterTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AlterTableRequest::~AlterTableRequest()
|
||||
{}
|
||||
|
||||
std::string AlterTableRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string AlterTableRequest::getDdlSql()const
|
||||
{
|
||||
return ddlSql_;
|
||||
}
|
||||
|
||||
void AlterTableRequest::setDdlSql(const std::string& ddlSql)
|
||||
{
|
||||
ddlSql_ = ddlSql;
|
||||
setParameter("DdlSql", ddlSql);
|
||||
}
|
||||
|
||||
51
drds/src/model/AlterTableResult.cc
Normal file
51
drds/src/model/AlterTableResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/AlterTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
AlterTableResult::AlterTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AlterTableResult::AlterTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AlterTableResult::~AlterTableResult()
|
||||
{}
|
||||
|
||||
void AlterTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AlterTableResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
62
drds/src/model/AsyncTaskCancelRequest.cc
Normal file
62
drds/src/model/AsyncTaskCancelRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/AsyncTaskCancelRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::AsyncTaskCancelRequest;
|
||||
|
||||
AsyncTaskCancelRequest::AsyncTaskCancelRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "AsyncTaskCancel")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AsyncTaskCancelRequest::~AsyncTaskCancelRequest()
|
||||
{}
|
||||
|
||||
std::string AsyncTaskCancelRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void AsyncTaskCancelRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string AsyncTaskCancelRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AsyncTaskCancelRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long AsyncTaskCancelRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void AsyncTaskCancelRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
58
drds/src/model/AsyncTaskCancelResult.cc
Normal file
58
drds/src/model/AsyncTaskCancelResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/AsyncTaskCancelResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
AsyncTaskCancelResult::AsyncTaskCancelResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AsyncTaskCancelResult::AsyncTaskCancelResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AsyncTaskCancelResult::~AsyncTaskCancelResult()
|
||||
{}
|
||||
|
||||
void AsyncTaskCancelResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool AsyncTaskCancelResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool AsyncTaskCancelResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/CancelDDLTaskRequest.cc
Normal file
73
drds/src/model/CancelDDLTaskRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CancelDDLTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CancelDDLTaskRequest;
|
||||
|
||||
CancelDDLTaskRequest::CancelDDLTaskRequest() :
|
||||
RpcServiceRequest("drds", "2015-04-13", "CancelDDLTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelDDLTaskRequest::~CancelDDLTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CancelDDLTaskRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CancelDDLTaskRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CancelDDLTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelDDLTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelDDLTaskRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CancelDDLTaskRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CancelDDLTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelDDLTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
44
drds/src/model/CancelDDLTaskResult.cc
Normal file
44
drds/src/model/CancelDDLTaskResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/drds/model/CancelDDLTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CancelDDLTaskResult::CancelDDLTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelDDLTaskResult::CancelDDLTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelDDLTaskResult::~CancelDDLTaskResult()
|
||||
{}
|
||||
|
||||
void CancelDDLTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
drds/src/model/CancleDDLTaskRequest.cc
Normal file
73
drds/src/model/CancleDDLTaskRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CancleDDLTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CancleDDLTaskRequest;
|
||||
|
||||
CancleDDLTaskRequest::CancleDDLTaskRequest() :
|
||||
RpcServiceRequest("drds", "2015-04-13", "CancleDDLTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancleDDLTaskRequest::~CancleDDLTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CancleDDLTaskRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CancleDDLTaskRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CancleDDLTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancleDDLTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancleDDLTaskRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CancleDDLTaskRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CancleDDLTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancleDDLTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
44
drds/src/model/CancleDDLTaskResult.cc
Normal file
44
drds/src/model/CancleDDLTaskResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* 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/drds/model/CancleDDLTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CancleDDLTaskResult::CancleDDLTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancleDDLTaskResult::CancleDDLTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancleDDLTaskResult::~CancleDDLTaskResult()
|
||||
{}
|
||||
|
||||
void CancleDDLTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
drds/src/model/ChangeAccountPasswordRequest.cc
Normal file
73
drds/src/model/ChangeAccountPasswordRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/ChangeAccountPasswordRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::ChangeAccountPasswordRequest;
|
||||
|
||||
ChangeAccountPasswordRequest::ChangeAccountPasswordRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "ChangeAccountPassword")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeAccountPasswordRequest::~ChangeAccountPasswordRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeAccountPasswordRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void ChangeAccountPasswordRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string ChangeAccountPasswordRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ChangeAccountPasswordRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ChangeAccountPasswordRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void ChangeAccountPasswordRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string ChangeAccountPasswordRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void ChangeAccountPasswordRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
51
drds/src/model/ChangeAccountPasswordResult.cc
Normal file
51
drds/src/model/ChangeAccountPasswordResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/ChangeAccountPasswordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
ChangeAccountPasswordResult::ChangeAccountPasswordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeAccountPasswordResult::ChangeAccountPasswordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeAccountPasswordResult::~ChangeAccountPasswordResult()
|
||||
{}
|
||||
|
||||
void ChangeAccountPasswordResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool ChangeAccountPasswordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/CheckConnectivityRequest.cc
Normal file
62
drds/src/model/CheckConnectivityRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CheckConnectivityRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CheckConnectivityRequest;
|
||||
|
||||
CheckConnectivityRequest::CheckConnectivityRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CheckConnectivity")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckConnectivityRequest::~CheckConnectivityRequest()
|
||||
{}
|
||||
|
||||
std::string CheckConnectivityRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckConnectivityRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckConnectivityRequest::getDbInfo()const
|
||||
{
|
||||
return dbInfo_;
|
||||
}
|
||||
|
||||
void CheckConnectivityRequest::setDbInfo(const std::string& dbInfo)
|
||||
{
|
||||
dbInfo_ = dbInfo;
|
||||
setParameter("DbInfo", dbInfo);
|
||||
}
|
||||
|
||||
int CheckConnectivityRequest::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void CheckConnectivityRequest::setDbType(int dbType)
|
||||
{
|
||||
dbType_ = dbType;
|
||||
setParameter("DbType", std::to_string(dbType));
|
||||
}
|
||||
|
||||
61
drds/src/model/CheckConnectivityResult.cc
Normal file
61
drds/src/model/CheckConnectivityResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/drds/model/CheckConnectivityResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CheckConnectivityResult::CheckConnectivityResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckConnectivityResult::CheckConnectivityResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckConnectivityResult::~CheckConnectivityResult()
|
||||
{}
|
||||
|
||||
void CheckConnectivityResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto checkConnectivityResultNode = value["CheckConnectivityResult"];
|
||||
if(!checkConnectivityResultNode["Success"].isNull())
|
||||
result_.success = checkConnectivityResultNode["Success"].asString() == "true";
|
||||
if(!checkConnectivityResultNode["Message"].isNull())
|
||||
result_.message = checkConnectivityResultNode["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
CheckConnectivityResult::Result CheckConnectivityResult::getCheckConnectivityResult()const
|
||||
{
|
||||
return checkConnectivityResult_;
|
||||
}
|
||||
|
||||
bool CheckConnectivityResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/CheckDrdsDbNameRequest.cc
Normal file
62
drds/src/model/CheckDrdsDbNameRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CheckDrdsDbNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CheckDrdsDbNameRequest;
|
||||
|
||||
CheckDrdsDbNameRequest::CheckDrdsDbNameRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CheckDrdsDbName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckDrdsDbNameRequest::~CheckDrdsDbNameRequest()
|
||||
{}
|
||||
|
||||
std::string CheckDrdsDbNameRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CheckDrdsDbNameRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CheckDrdsDbNameRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckDrdsDbNameRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckDrdsDbNameRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CheckDrdsDbNameRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
58
drds/src/model/CheckDrdsDbNameResult.cc
Normal file
58
drds/src/model/CheckDrdsDbNameResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CheckDrdsDbNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CheckDrdsDbNameResult::CheckDrdsDbNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDrdsDbNameResult::CheckDrdsDbNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDrdsDbNameResult::~CheckDrdsDbNameResult()
|
||||
{}
|
||||
|
||||
void CheckDrdsDbNameResult::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["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckDrdsDbNameResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
bool CheckDrdsDbNameResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
62
drds/src/model/CheckExpandStatusRequest.cc
Normal file
62
drds/src/model/CheckExpandStatusRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CheckExpandStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CheckExpandStatusRequest;
|
||||
|
||||
CheckExpandStatusRequest::CheckExpandStatusRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CheckExpandStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckExpandStatusRequest::~CheckExpandStatusRequest()
|
||||
{}
|
||||
|
||||
std::string CheckExpandStatusRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CheckExpandStatusRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CheckExpandStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckExpandStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckExpandStatusRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CheckExpandStatusRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
61
drds/src/model/CheckExpandStatusResult.cc
Normal file
61
drds/src/model/CheckExpandStatusResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/drds/model/CheckExpandStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CheckExpandStatusResult::CheckExpandStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckExpandStatusResult::CheckExpandStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckExpandStatusResult::~CheckExpandStatusResult()
|
||||
{}
|
||||
|
||||
void CheckExpandStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["IsActive"].isNull())
|
||||
data_.isActive = dataNode["IsActive"].asString() == "true";
|
||||
if(!dataNode["Msg"].isNull())
|
||||
data_.msg = dataNode["Msg"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
CheckExpandStatusResult::Data CheckExpandStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CheckExpandStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/CheckNewTableNameValidRequest.cc
Normal file
73
drds/src/model/CheckNewTableNameValidRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CheckNewTableNameValidRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CheckNewTableNameValidRequest;
|
||||
|
||||
CheckNewTableNameValidRequest::CheckNewTableNameValidRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CheckNewTableNameValid")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckNewTableNameValidRequest::~CheckNewTableNameValidRequest()
|
||||
{}
|
||||
|
||||
std::string CheckNewTableNameValidRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CheckNewTableNameValidRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CheckNewTableNameValidRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CheckNewTableNameValidRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CheckNewTableNameValidRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckNewTableNameValidRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckNewTableNameValidRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void CheckNewTableNameValidRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
}
|
||||
|
||||
58
drds/src/model/CheckNewTableNameValidResult.cc
Normal file
58
drds/src/model/CheckNewTableNameValidResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CheckNewTableNameValidResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CheckNewTableNameValidResult::CheckNewTableNameValidResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckNewTableNameValidResult::CheckNewTableNameValidResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckNewTableNameValidResult::~CheckNewTableNameValidResult()
|
||||
{}
|
||||
|
||||
void CheckNewTableNameValidResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CheckNewTableNameValidResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CheckNewTableNameValidResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/CheckSqlAuditEnableStatusRequest.cc
Normal file
62
drds/src/model/CheckSqlAuditEnableStatusRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CheckSqlAuditEnableStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CheckSqlAuditEnableStatusRequest;
|
||||
|
||||
CheckSqlAuditEnableStatusRequest::CheckSqlAuditEnableStatusRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CheckSqlAuditEnableStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckSqlAuditEnableStatusRequest::~CheckSqlAuditEnableStatusRequest()
|
||||
{}
|
||||
|
||||
std::string CheckSqlAuditEnableStatusRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CheckSqlAuditEnableStatusRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CheckSqlAuditEnableStatusRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckSqlAuditEnableStatusRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckSqlAuditEnableStatusRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CheckSqlAuditEnableStatusRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
58
drds/src/model/CheckSqlAuditEnableStatusResult.cc
Normal file
58
drds/src/model/CheckSqlAuditEnableStatusResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CheckSqlAuditEnableStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CheckSqlAuditEnableStatusResult::CheckSqlAuditEnableStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckSqlAuditEnableStatusResult::CheckSqlAuditEnableStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckSqlAuditEnableStatusResult::~CheckSqlAuditEnableStatusResult()
|
||||
{}
|
||||
|
||||
void CheckSqlAuditEnableStatusResult::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["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckSqlAuditEnableStatusResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
bool CheckSqlAuditEnableStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateCustomDataExportPreCheckTaskRequest.cc
Normal file
51
drds/src/model/CreateCustomDataExportPreCheckTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateCustomDataExportPreCheckTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateCustomDataExportPreCheckTaskRequest;
|
||||
|
||||
CreateCustomDataExportPreCheckTaskRequest::CreateCustomDataExportPreCheckTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateCustomDataExportPreCheckTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCustomDataExportPreCheckTaskRequest::~CreateCustomDataExportPreCheckTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCustomDataExportPreCheckTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateCustomDataExportPreCheckTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateCustomDataExportPreCheckTaskRequest::getExportParam()const
|
||||
{
|
||||
return exportParam_;
|
||||
}
|
||||
|
||||
void CreateCustomDataExportPreCheckTaskRequest::setExportParam(const std::string& exportParam)
|
||||
{
|
||||
exportParam_ = exportParam;
|
||||
setParameter("ExportParam", exportParam);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateCustomDataExportPreCheckTaskResult.cc
Normal file
58
drds/src/model/CreateCustomDataExportPreCheckTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateCustomDataExportPreCheckTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateCustomDataExportPreCheckTaskResult::CreateCustomDataExportPreCheckTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCustomDataExportPreCheckTaskResult::CreateCustomDataExportPreCheckTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCustomDataExportPreCheckTaskResult::~CreateCustomDataExportPreCheckTaskResult()
|
||||
{}
|
||||
|
||||
void CreateCustomDataExportPreCheckTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateCustomDataExportPreCheckTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateCustomDataExportPreCheckTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateCustomDataExportTaskRequest.cc
Normal file
51
drds/src/model/CreateCustomDataExportTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateCustomDataExportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateCustomDataExportTaskRequest;
|
||||
|
||||
CreateCustomDataExportTaskRequest::CreateCustomDataExportTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateCustomDataExportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCustomDataExportTaskRequest::~CreateCustomDataExportTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCustomDataExportTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateCustomDataExportTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateCustomDataExportTaskRequest::getExportParam()const
|
||||
{
|
||||
return exportParam_;
|
||||
}
|
||||
|
||||
void CreateCustomDataExportTaskRequest::setExportParam(const std::string& exportParam)
|
||||
{
|
||||
exportParam_ = exportParam;
|
||||
setParameter("ExportParam", exportParam);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateCustomDataExportTaskResult.cc
Normal file
58
drds/src/model/CreateCustomDataExportTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateCustomDataExportTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateCustomDataExportTaskResult::CreateCustomDataExportTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCustomDataExportTaskResult::CreateCustomDataExportTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCustomDataExportTaskResult::~CreateCustomDataExportTaskResult()
|
||||
{}
|
||||
|
||||
void CreateCustomDataExportTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateCustomDataExportTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateCustomDataExportTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateCustomDataImportPreCheckTaskRequest.cc
Normal file
51
drds/src/model/CreateCustomDataImportPreCheckTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateCustomDataImportPreCheckTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateCustomDataImportPreCheckTaskRequest;
|
||||
|
||||
CreateCustomDataImportPreCheckTaskRequest::CreateCustomDataImportPreCheckTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateCustomDataImportPreCheckTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCustomDataImportPreCheckTaskRequest::~CreateCustomDataImportPreCheckTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCustomDataImportPreCheckTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateCustomDataImportPreCheckTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateCustomDataImportPreCheckTaskRequest::getImportParam()const
|
||||
{
|
||||
return importParam_;
|
||||
}
|
||||
|
||||
void CreateCustomDataImportPreCheckTaskRequest::setImportParam(const std::string& importParam)
|
||||
{
|
||||
importParam_ = importParam;
|
||||
setParameter("ImportParam", importParam);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateCustomDataImportPreCheckTaskResult.cc
Normal file
58
drds/src/model/CreateCustomDataImportPreCheckTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateCustomDataImportPreCheckTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateCustomDataImportPreCheckTaskResult::CreateCustomDataImportPreCheckTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCustomDataImportPreCheckTaskResult::CreateCustomDataImportPreCheckTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCustomDataImportPreCheckTaskResult::~CreateCustomDataImportPreCheckTaskResult()
|
||||
{}
|
||||
|
||||
void CreateCustomDataImportPreCheckTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateCustomDataImportPreCheckTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateCustomDataImportPreCheckTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateCustomDataImportTaskRequest.cc
Normal file
51
drds/src/model/CreateCustomDataImportTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateCustomDataImportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateCustomDataImportTaskRequest;
|
||||
|
||||
CreateCustomDataImportTaskRequest::CreateCustomDataImportTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateCustomDataImportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCustomDataImportTaskRequest::~CreateCustomDataImportTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCustomDataImportTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateCustomDataImportTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateCustomDataImportTaskRequest::getImportParam()const
|
||||
{
|
||||
return importParam_;
|
||||
}
|
||||
|
||||
void CreateCustomDataImportTaskRequest::setImportParam(const std::string& importParam)
|
||||
{
|
||||
importParam_ = importParam;
|
||||
setParameter("ImportParam", importParam);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateCustomDataImportTaskResult.cc
Normal file
58
drds/src/model/CreateCustomDataImportTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateCustomDataImportTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateCustomDataImportTaskResult::CreateCustomDataImportTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCustomDataImportTaskResult::CreateCustomDataImportTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCustomDataImportTaskResult::~CreateCustomDataImportTaskResult()
|
||||
{}
|
||||
|
||||
void CreateCustomDataImportTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateCustomDataImportTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateCustomDataImportTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateEvaluateDataImportPreCheckTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateEvaluateDataImportPreCheckTaskRequest;
|
||||
|
||||
CreateEvaluateDataImportPreCheckTaskRequest::CreateEvaluateDataImportPreCheckTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateEvaluateDataImportPreCheckTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEvaluateDataImportPreCheckTaskRequest::~CreateEvaluateDataImportPreCheckTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEvaluateDataImportPreCheckTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateEvaluateDataImportPreCheckTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEvaluateDataImportPreCheckTaskRequest::getImportParam()const
|
||||
{
|
||||
return importParam_;
|
||||
}
|
||||
|
||||
void CreateEvaluateDataImportPreCheckTaskRequest::setImportParam(const std::string& importParam)
|
||||
{
|
||||
importParam_ = importParam;
|
||||
setParameter("ImportParam", importParam);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateEvaluateDataImportPreCheckTaskResult.cc
Normal file
58
drds/src/model/CreateEvaluateDataImportPreCheckTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateEvaluateDataImportPreCheckTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateEvaluateDataImportPreCheckTaskResult::CreateEvaluateDataImportPreCheckTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEvaluateDataImportPreCheckTaskResult::CreateEvaluateDataImportPreCheckTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEvaluateDataImportPreCheckTaskResult::~CreateEvaluateDataImportPreCheckTaskResult()
|
||||
{}
|
||||
|
||||
void CreateEvaluateDataImportPreCheckTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateEvaluateDataImportPreCheckTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateEvaluateDataImportPreCheckTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateEvaluateDataImportTaskRequest.cc
Normal file
51
drds/src/model/CreateEvaluateDataImportTaskRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateEvaluateDataImportTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateEvaluateDataImportTaskRequest;
|
||||
|
||||
CreateEvaluateDataImportTaskRequest::CreateEvaluateDataImportTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateEvaluateDataImportTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEvaluateDataImportTaskRequest::~CreateEvaluateDataImportTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEvaluateDataImportTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateEvaluateDataImportTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateEvaluateDataImportTaskRequest::getImportParam()const
|
||||
{
|
||||
return importParam_;
|
||||
}
|
||||
|
||||
void CreateEvaluateDataImportTaskRequest::setImportParam(const std::string& importParam)
|
||||
{
|
||||
importParam_ = importParam;
|
||||
setParameter("ImportParam", importParam);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateEvaluateDataImportTaskResult.cc
Normal file
58
drds/src/model/CreateEvaluateDataImportTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateEvaluateDataImportTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateEvaluateDataImportTaskResult::CreateEvaluateDataImportTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEvaluateDataImportTaskResult::CreateEvaluateDataImportTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEvaluateDataImportTaskResult::~CreateEvaluateDataImportTaskResult()
|
||||
{}
|
||||
|
||||
void CreateEvaluateDataImportTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateEvaluateDataImportTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateEvaluateDataImportTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
103
drds/src/model/CreateEvaluatePreCheckTaskRequest.cc
Normal file
103
drds/src/model/CreateEvaluatePreCheckTaskRequest.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/drds/model/CreateEvaluatePreCheckTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateEvaluatePreCheckTaskRequest;
|
||||
|
||||
CreateEvaluatePreCheckTaskRequest::CreateEvaluatePreCheckTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateEvaluatePreCheckTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEvaluatePreCheckTaskRequest::~CreateEvaluatePreCheckTaskRequest()
|
||||
{}
|
||||
|
||||
int CreateEvaluatePreCheckTaskRequest::getAvgQpsGrowthScale()const
|
||||
{
|
||||
return avgQpsGrowthScale_;
|
||||
}
|
||||
|
||||
void CreateEvaluatePreCheckTaskRequest::setAvgQpsGrowthScale(int avgQpsGrowthScale)
|
||||
{
|
||||
avgQpsGrowthScale_ = avgQpsGrowthScale;
|
||||
setParameter("AvgQpsGrowthScale", std::to_string(avgQpsGrowthScale));
|
||||
}
|
||||
|
||||
std::string CreateEvaluatePreCheckTaskRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateEvaluatePreCheckTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateEvaluatePreCheckTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateEvaluatePreCheckTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int CreateEvaluatePreCheckTaskRequest::getDataGrowthScale()const
|
||||
{
|
||||
return dataGrowthScale_;
|
||||
}
|
||||
|
||||
void CreateEvaluatePreCheckTaskRequest::setDataGrowthScale(int dataGrowthScale)
|
||||
{
|
||||
dataGrowthScale_ = dataGrowthScale;
|
||||
setParameter("DataGrowthScale", std::to_string(dataGrowthScale));
|
||||
}
|
||||
|
||||
std::vector<CreateEvaluatePreCheckTaskRequest::DbInfo> CreateEvaluatePreCheckTaskRequest::getDbInfo()const
|
||||
{
|
||||
return dbInfo_;
|
||||
}
|
||||
|
||||
void CreateEvaluatePreCheckTaskRequest::setDbInfo(const std::vector<DbInfo>& dbInfo)
|
||||
{
|
||||
dbInfo_ = dbInfo;
|
||||
for(int dep1 = 0; dep1!= dbInfo.size(); dep1++) {
|
||||
auto dbInfoObj = dbInfo.at(dep1);
|
||||
std::string dbInfoObjStr = "DbInfo." + std::to_string(dep1 + 1);
|
||||
setParameter(dbInfoObjStr + ".InstId", dbInfoObj.instId);
|
||||
setParameter(dbInfoObjStr + ".DbPort", dbInfoObj.dbPort);
|
||||
setParameter(dbInfoObjStr + ".DbName", dbInfoObj.dbName);
|
||||
setParameter(dbInfoObjStr + ".DbPassword", dbInfoObj.dbPassword);
|
||||
setParameter(dbInfoObjStr + ".DbUser", dbInfoObj.dbUser);
|
||||
}
|
||||
}
|
||||
|
||||
int CreateEvaluatePreCheckTaskRequest::getEvaluateHours()const
|
||||
{
|
||||
return evaluateHours_;
|
||||
}
|
||||
|
||||
void CreateEvaluatePreCheckTaskRequest::setEvaluateHours(int evaluateHours)
|
||||
{
|
||||
evaluateHours_ = evaluateHours;
|
||||
setParameter("EvaluateHours", std::to_string(evaluateHours));
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateEvaluatePreCheckTaskResult.cc
Normal file
58
drds/src/model/CreateEvaluatePreCheckTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateEvaluatePreCheckTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateEvaluatePreCheckTaskResult::CreateEvaluatePreCheckTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEvaluatePreCheckTaskResult::CreateEvaluatePreCheckTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEvaluatePreCheckTaskResult::~CreateEvaluatePreCheckTaskResult()
|
||||
{}
|
||||
|
||||
void CreateEvaluatePreCheckTaskResult::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["TaskId"].isNull())
|
||||
taskId_ = std::stol(value["TaskId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateEvaluatePreCheckTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
bool CreateEvaluatePreCheckTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
103
drds/src/model/CreateEvaluateTaskRequest.cc
Normal file
103
drds/src/model/CreateEvaluateTaskRequest.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* 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/drds/model/CreateEvaluateTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateEvaluateTaskRequest;
|
||||
|
||||
CreateEvaluateTaskRequest::CreateEvaluateTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateEvaluateTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEvaluateTaskRequest::~CreateEvaluateTaskRequest()
|
||||
{}
|
||||
|
||||
int CreateEvaluateTaskRequest::getAvgQpsGrowthScale()const
|
||||
{
|
||||
return avgQpsGrowthScale_;
|
||||
}
|
||||
|
||||
void CreateEvaluateTaskRequest::setAvgQpsGrowthScale(int avgQpsGrowthScale)
|
||||
{
|
||||
avgQpsGrowthScale_ = avgQpsGrowthScale;
|
||||
setParameter("AvgQpsGrowthScale", std::to_string(avgQpsGrowthScale));
|
||||
}
|
||||
|
||||
std::string CreateEvaluateTaskRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateEvaluateTaskRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateEvaluateTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateEvaluateTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int CreateEvaluateTaskRequest::getDataGrowthScale()const
|
||||
{
|
||||
return dataGrowthScale_;
|
||||
}
|
||||
|
||||
void CreateEvaluateTaskRequest::setDataGrowthScale(int dataGrowthScale)
|
||||
{
|
||||
dataGrowthScale_ = dataGrowthScale;
|
||||
setParameter("DataGrowthScale", std::to_string(dataGrowthScale));
|
||||
}
|
||||
|
||||
std::vector<CreateEvaluateTaskRequest::DbInfo> CreateEvaluateTaskRequest::getDbInfo()const
|
||||
{
|
||||
return dbInfo_;
|
||||
}
|
||||
|
||||
void CreateEvaluateTaskRequest::setDbInfo(const std::vector<DbInfo>& dbInfo)
|
||||
{
|
||||
dbInfo_ = dbInfo;
|
||||
for(int dep1 = 0; dep1!= dbInfo.size(); dep1++) {
|
||||
auto dbInfoObj = dbInfo.at(dep1);
|
||||
std::string dbInfoObjStr = "DbInfo." + std::to_string(dep1 + 1);
|
||||
setParameter(dbInfoObjStr + ".InstId", dbInfoObj.instId);
|
||||
setParameter(dbInfoObjStr + ".DbPort", dbInfoObj.dbPort);
|
||||
setParameter(dbInfoObjStr + ".DbName", dbInfoObj.dbName);
|
||||
setParameter(dbInfoObjStr + ".DbPassword", dbInfoObj.dbPassword);
|
||||
setParameter(dbInfoObjStr + ".DbUser", dbInfoObj.dbUser);
|
||||
}
|
||||
}
|
||||
|
||||
int CreateEvaluateTaskRequest::getEvaluateHours()const
|
||||
{
|
||||
return evaluateHours_;
|
||||
}
|
||||
|
||||
void CreateEvaluateTaskRequest::setEvaluateHours(int evaluateHours)
|
||||
{
|
||||
evaluateHours_ = evaluateHours;
|
||||
setParameter("EvaluateHours", std::to_string(evaluateHours));
|
||||
}
|
||||
|
||||
59
drds/src/model/CreateEvaluateTaskResult.cc
Normal file
59
drds/src/model/CreateEvaluateTaskResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/drds/model/CreateEvaluateTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateEvaluateTaskResult::CreateEvaluateTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEvaluateTaskResult::CreateEvaluateTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEvaluateTaskResult::~CreateEvaluateTaskResult()
|
||||
{}
|
||||
|
||||
void CreateEvaluateTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["TaskIds"];
|
||||
for (const auto &item : allData)
|
||||
data_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateEvaluateTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateEvaluateTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/CreateIndexRequest.cc
Normal file
73
drds/src/model/CreateIndexRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateIndexRequest;
|
||||
|
||||
CreateIndexRequest::CreateIndexRequest() :
|
||||
RpcServiceRequest("drds", "2015-04-13", "CreateIndex")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIndexRequest::~CreateIndexRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIndexRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateIndexRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateIndexRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateIndexRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateIndexRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateIndexRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateIndexRequest::getDdlSql()const
|
||||
{
|
||||
return ddlSql_;
|
||||
}
|
||||
|
||||
void CreateIndexRequest::setDdlSql(const std::string& ddlSql)
|
||||
{
|
||||
ddlSql_ = ddlSql;
|
||||
setParameter("DdlSql", ddlSql);
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateIndexResult.cc
Normal file
51
drds/src/model/CreateIndexResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateIndexResult::CreateIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIndexResult::CreateIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIndexResult::~CreateIndexResult()
|
||||
{}
|
||||
|
||||
void CreateIndexResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIndexResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
89
drds/src/model/CreateInstanceAccountRequest.cc
Normal file
89
drds/src/model/CreateInstanceAccountRequest.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateInstanceAccountRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateInstanceAccountRequest;
|
||||
|
||||
CreateInstanceAccountRequest::CreateInstanceAccountRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateInstanceAccount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceAccountRequest::~CreateInstanceAccountRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceAccountRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateInstanceAccountRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceAccountRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateInstanceAccountRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceAccountRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void CreateInstanceAccountRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string CreateInstanceAccountRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CreateInstanceAccountRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::vector<CreateInstanceAccountRequest::DbPrivilege> CreateInstanceAccountRequest::getDbPrivilege()const
|
||||
{
|
||||
return dbPrivilege_;
|
||||
}
|
||||
|
||||
void CreateInstanceAccountRequest::setDbPrivilege(const std::vector<DbPrivilege>& dbPrivilege)
|
||||
{
|
||||
dbPrivilege_ = dbPrivilege;
|
||||
for(int dep1 = 0; dep1!= dbPrivilege.size(); dep1++) {
|
||||
auto dbPrivilegeObj = dbPrivilege.at(dep1);
|
||||
std::string dbPrivilegeObjStr = "DbPrivilege." + std::to_string(dep1 + 1);
|
||||
setParameter(dbPrivilegeObjStr + ".DbName", dbPrivilegeObj.dbName);
|
||||
setParameter(dbPrivilegeObjStr + ".Privilege", dbPrivilegeObj.privilege);
|
||||
}
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateInstanceAccountResult.cc
Normal file
51
drds/src/model/CreateInstanceAccountResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateInstanceAccountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateInstanceAccountResult::CreateInstanceAccountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceAccountResult::CreateInstanceAccountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceAccountResult::~CreateInstanceAccountResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceAccountResult::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";
|
||||
|
||||
}
|
||||
|
||||
bool CreateInstanceAccountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/CreateInstanceInternetAddressRequest.cc
Normal file
62
drds/src/model/CreateInstanceInternetAddressRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateInstanceInternetAddressRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateInstanceInternetAddressRequest;
|
||||
|
||||
CreateInstanceInternetAddressRequest::CreateInstanceInternetAddressRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateInstanceInternetAddress")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceInternetAddressRequest::~CreateInstanceInternetAddressRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceInternetAddressRequest::getDrdsPassword()const
|
||||
{
|
||||
return drdsPassword_;
|
||||
}
|
||||
|
||||
void CreateInstanceInternetAddressRequest::setDrdsPassword(const std::string& drdsPassword)
|
||||
{
|
||||
drdsPassword_ = drdsPassword;
|
||||
setParameter("DrdsPassword", drdsPassword);
|
||||
}
|
||||
|
||||
std::string CreateInstanceInternetAddressRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateInstanceInternetAddressRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateInstanceInternetAddressRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateInstanceInternetAddressRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
65
drds/src/model/CreateInstanceInternetAddressResult.cc
Normal file
65
drds/src/model/CreateInstanceInternetAddressResult.cc
Normal 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/drds/model/CreateInstanceInternetAddressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateInstanceInternetAddressResult::CreateInstanceInternetAddressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateInstanceInternetAddressResult::CreateInstanceInternetAddressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateInstanceInternetAddressResult::~CreateInstanceInternetAddressResult()
|
||||
{}
|
||||
|
||||
void CreateInstanceInternetAddressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
bool CreateInstanceInternetAddressResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateInstanceInternetAddressResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateInstanceInternetAddressResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
150
drds/src/model/CreateMyCatCustomImportRequest.cc
Normal file
150
drds/src/model/CreateMyCatCustomImportRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/drds/model/CreateMyCatCustomImportRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateMyCatCustomImportRequest;
|
||||
|
||||
CreateMyCatCustomImportRequest::CreateMyCatCustomImportRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateMyCatCustomImport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMyCatCustomImportRequest::~CreateMyCatCustomImportRequest()
|
||||
{}
|
||||
|
||||
int CreateMyCatCustomImportRequest::getDstPort()const
|
||||
{
|
||||
return dstPort_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setDstPort(int dstPort)
|
||||
{
|
||||
dstPort_ = dstPort;
|
||||
setParameter("DstPort", std::to_string(dstPort));
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getSchemaUrl()const
|
||||
{
|
||||
return schemaUrl_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setSchemaUrl(const std::string& schemaUrl)
|
||||
{
|
||||
schemaUrl_ = schemaUrl;
|
||||
setParameter("SchemaUrl", schemaUrl);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getDstUser()const
|
||||
{
|
||||
return dstUser_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setDstUser(const std::string& dstUser)
|
||||
{
|
||||
dstUser_ = dstUser;
|
||||
setParameter("DstUser", dstUser);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getDstDbNme()const
|
||||
{
|
||||
return dstDbNme_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setDstDbNme(const std::string& dstDbNme)
|
||||
{
|
||||
dstDbNme_ = dstDbNme;
|
||||
setParameter("DstDbNme", dstDbNme);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getTableMap()const
|
||||
{
|
||||
return tableMap_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setTableMap(const std::string& tableMap)
|
||||
{
|
||||
tableMap_ = tableMap;
|
||||
setParameter("TableMap", tableMap);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getImportDb()const
|
||||
{
|
||||
return importDb_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setImportDb(const std::string& importDb)
|
||||
{
|
||||
importDb_ = importDb;
|
||||
setParameter("ImportDb", importDb);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getDstPwd()const
|
||||
{
|
||||
return dstPwd_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setDstPwd(const std::string& dstPwd)
|
||||
{
|
||||
dstPwd_ = dstPwd;
|
||||
setParameter("DstPwd", dstPwd);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getRuleUrl()const
|
||||
{
|
||||
return ruleUrl_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setRuleUrl(const std::string& ruleUrl)
|
||||
{
|
||||
ruleUrl_ = ruleUrl;
|
||||
setParameter("RuleUrl", ruleUrl);
|
||||
}
|
||||
|
||||
std::string CreateMyCatCustomImportRequest::getDstDrdsInstanceId()const
|
||||
{
|
||||
return dstDrdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateMyCatCustomImportRequest::setDstDrdsInstanceId(const std::string& dstDrdsInstanceId)
|
||||
{
|
||||
dstDrdsInstanceId_ = dstDrdsInstanceId;
|
||||
setParameter("DstDrdsInstanceId", dstDrdsInstanceId);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateMyCatCustomImportResult.cc
Normal file
58
drds/src/model/CreateMyCatCustomImportResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateMyCatCustomImportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateMyCatCustomImportResult::CreateMyCatCustomImportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMyCatCustomImportResult::CreateMyCatCustomImportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMyCatCustomImportResult::~CreateMyCatCustomImportResult()
|
||||
{}
|
||||
|
||||
void CreateMyCatCustomImportResult::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["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
long CreateMyCatCustomImportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateMyCatCustomImportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
141
drds/src/model/CreateMyCatEvaluateRequest.cc
Normal file
141
drds/src/model/CreateMyCatEvaluateRequest.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/drds/model/CreateMyCatEvaluateRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateMyCatEvaluateRequest;
|
||||
|
||||
CreateMyCatEvaluateRequest::CreateMyCatEvaluateRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateMyCatEvaluate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMyCatEvaluateRequest::~CreateMyCatEvaluateRequest()
|
||||
{}
|
||||
|
||||
int CreateMyCatEvaluateRequest::getSequenceType()const
|
||||
{
|
||||
return sequenceType_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setSequenceType(int sequenceType)
|
||||
{
|
||||
sequenceType_ = sequenceType;
|
||||
setParameter("SequenceType", std::to_string(sequenceType));
|
||||
}
|
||||
|
||||
std::string CreateMyCatEvaluateRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateMyCatEvaluateRequest::getSchemaUrl()const
|
||||
{
|
||||
return schemaUrl_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setSchemaUrl(const std::string& schemaUrl)
|
||||
{
|
||||
schemaUrl_ = schemaUrl;
|
||||
setParameter("SchemaUrl", schemaUrl);
|
||||
}
|
||||
|
||||
long CreateMyCatEvaluateRequest::getBusPeakQps()const
|
||||
{
|
||||
return busPeakQps_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setBusPeakQps(long busPeakQps)
|
||||
{
|
||||
busPeakQps_ = busPeakQps;
|
||||
setParameter("BusPeakQps", std::to_string(busPeakQps));
|
||||
}
|
||||
|
||||
std::string CreateMyCatEvaluateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int CreateMyCatEvaluateRequest::getQpsIncPercent()const
|
||||
{
|
||||
return qpsIncPercent_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setQpsIncPercent(int qpsIncPercent)
|
||||
{
|
||||
qpsIncPercent_ = qpsIncPercent;
|
||||
setParameter("QpsIncPercent", std::to_string(qpsIncPercent));
|
||||
}
|
||||
|
||||
std::string CreateMyCatEvaluateRequest::getServerUrl()const
|
||||
{
|
||||
return serverUrl_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setServerUrl(const std::string& serverUrl)
|
||||
{
|
||||
serverUrl_ = serverUrl;
|
||||
setParameter("ServerUrl", serverUrl);
|
||||
}
|
||||
|
||||
int CreateMyCatEvaluateRequest::getCapacityIncPercent()const
|
||||
{
|
||||
return capacityIncPercent_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setCapacityIncPercent(int capacityIncPercent)
|
||||
{
|
||||
capacityIncPercent_ = capacityIncPercent;
|
||||
setParameter("CapacityIncPercent", std::to_string(capacityIncPercent));
|
||||
}
|
||||
|
||||
std::string CreateMyCatEvaluateRequest::getRuleUrl()const
|
||||
{
|
||||
return ruleUrl_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setRuleUrl(const std::string& ruleUrl)
|
||||
{
|
||||
ruleUrl_ = ruleUrl;
|
||||
setParameter("RuleUrl", ruleUrl);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateMyCatEvaluateRequest::getImportDbList()const
|
||||
{
|
||||
return importDbList_;
|
||||
}
|
||||
|
||||
void CreateMyCatEvaluateRequest::setImportDbList(const std::vector<std::string>& importDbList)
|
||||
{
|
||||
importDbList_ = importDbList;
|
||||
for(int dep1 = 0; dep1!= importDbList.size(); dep1++) {
|
||||
setParameter("ImportDbList."+ std::to_string(dep1), importDbList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
59
drds/src/model/CreateMyCatEvaluateResult.cc
Normal file
59
drds/src/model/CreateMyCatEvaluateResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/drds/model/CreateMyCatEvaluateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateMyCatEvaluateResult::CreateMyCatEvaluateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMyCatEvaluateResult::CreateMyCatEvaluateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMyCatEvaluateResult::~CreateMyCatEvaluateResult()
|
||||
{}
|
||||
|
||||
void CreateMyCatEvaluateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTaskIdList = value["TaskIdList"]["TaskId"];
|
||||
for (const auto &item : allTaskIdList)
|
||||
taskIdList_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateMyCatEvaluateResult::getTaskIdList()const
|
||||
{
|
||||
return taskIdList_;
|
||||
}
|
||||
|
||||
bool CreateMyCatEvaluateResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/CreateOrderForRdsRequest.cc
Normal file
62
drds/src/model/CreateOrderForRdsRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateOrderForRdsRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateOrderForRdsRequest;
|
||||
|
||||
CreateOrderForRdsRequest::CreateOrderForRdsRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateOrderForRds")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrderForRdsRequest::~CreateOrderForRdsRequest()
|
||||
{}
|
||||
|
||||
std::string CreateOrderForRdsRequest::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
void CreateOrderForRdsRequest::setParams(const std::string& params)
|
||||
{
|
||||
params_ = params;
|
||||
setParameter("Params", params);
|
||||
}
|
||||
|
||||
std::string CreateOrderForRdsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateOrderForRdsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateOrderForRdsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOrderForRdsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateOrderForRdsResult.cc
Normal file
58
drds/src/model/CreateOrderForRdsResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateOrderForRdsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateOrderForRdsResult::CreateOrderForRdsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrderForRdsResult::CreateOrderForRdsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrderForRdsResult::~CreateOrderForRdsResult()
|
||||
{}
|
||||
|
||||
void CreateOrderForRdsResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateOrderForRdsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateOrderForRdsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
drds/src/model/CreateShardTaskRequest.cc
Normal file
95
drds/src/model/CreateShardTaskRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/drds/model/CreateShardTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateShardTaskRequest;
|
||||
|
||||
CreateShardTaskRequest::CreateShardTaskRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "CreateShardTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateShardTaskRequest::~CreateShardTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateShardTaskRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
void CreateShardTaskRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string CreateShardTaskRequest::getTargetTableName()const
|
||||
{
|
||||
return targetTableName_;
|
||||
}
|
||||
|
||||
void CreateShardTaskRequest::setTargetTableName(const std::string& targetTableName)
|
||||
{
|
||||
targetTableName_ = targetTableName;
|
||||
setParameter("TargetTableName", targetTableName);
|
||||
}
|
||||
|
||||
std::string CreateShardTaskRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateShardTaskRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateShardTaskRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateShardTaskRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateShardTaskRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateShardTaskRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateShardTaskRequest::getSourceTableName()const
|
||||
{
|
||||
return sourceTableName_;
|
||||
}
|
||||
|
||||
void CreateShardTaskRequest::setSourceTableName(const std::string& sourceTableName)
|
||||
{
|
||||
sourceTableName_ = sourceTableName;
|
||||
setParameter("SourceTableName", sourceTableName);
|
||||
}
|
||||
|
||||
58
drds/src/model/CreateShardTaskResult.cc
Normal file
58
drds/src/model/CreateShardTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/CreateShardTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateShardTaskResult::CreateShardTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateShardTaskResult::CreateShardTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateShardTaskResult::~CreateShardTaskResult()
|
||||
{}
|
||||
|
||||
void CreateShardTaskResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool CreateShardTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool CreateShardTaskResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
drds/src/model/CreateTableRequest.cc
Normal file
106
drds/src/model/CreateTableRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* 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/drds/model/CreateTableRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::CreateTableRequest;
|
||||
|
||||
CreateTableRequest::CreateTableRequest() :
|
||||
RpcServiceRequest("drds", "2015-04-13", "CreateTable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTableRequest::~CreateTableRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTableRequest::getAllowFullTableScan()const
|
||||
{
|
||||
return allowFullTableScan_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setAllowFullTableScan(const std::string& allowFullTableScan)
|
||||
{
|
||||
allowFullTableScan_ = allowFullTableScan;
|
||||
setParameter("AllowFullTableScan", allowFullTableScan);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getShardKey()const
|
||||
{
|
||||
return shardKey_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setShardKey(const std::string& shardKey)
|
||||
{
|
||||
shardKey_ = shardKey;
|
||||
setParameter("ShardKey", shardKey);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getShardType()const
|
||||
{
|
||||
return shardType_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setShardType(const std::string& shardType)
|
||||
{
|
||||
shardType_ = shardType;
|
||||
setParameter("ShardType", shardType);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string CreateTableRequest::getDdlSql()const
|
||||
{
|
||||
return ddlSql_;
|
||||
}
|
||||
|
||||
void CreateTableRequest::setDdlSql(const std::string& ddlSql)
|
||||
{
|
||||
ddlSql_ = ddlSql;
|
||||
setParameter("DdlSql", ddlSql);
|
||||
}
|
||||
|
||||
51
drds/src/model/CreateTableResult.cc
Normal file
51
drds/src/model/CreateTableResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/CreateTableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
CreateTableResult::CreateTableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTableResult::CreateTableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTableResult::~CreateTableResult()
|
||||
{}
|
||||
|
||||
void CreateTableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateTableResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
84
drds/src/model/DatalinkReplicationPrecheckRequest.cc
Normal file
84
drds/src/model/DatalinkReplicationPrecheckRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DatalinkReplicationPrecheckRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DatalinkReplicationPrecheckRequest;
|
||||
|
||||
DatalinkReplicationPrecheckRequest::DatalinkReplicationPrecheckRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DatalinkReplicationPrecheck")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DatalinkReplicationPrecheckRequest::~DatalinkReplicationPrecheckRequest()
|
||||
{}
|
||||
|
||||
std::string DatalinkReplicationPrecheckRequest::getSrcTableName()const
|
||||
{
|
||||
return srcTableName_;
|
||||
}
|
||||
|
||||
void DatalinkReplicationPrecheckRequest::setSrcTableName(const std::string& srcTableName)
|
||||
{
|
||||
srcTableName_ = srcTableName;
|
||||
setParameter("SrcTableName", srcTableName);
|
||||
}
|
||||
|
||||
std::string DatalinkReplicationPrecheckRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DatalinkReplicationPrecheckRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DatalinkReplicationPrecheckRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DatalinkReplicationPrecheckRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DatalinkReplicationPrecheckRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DatalinkReplicationPrecheckRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DatalinkReplicationPrecheckRequest::getDstTableName()const
|
||||
{
|
||||
return dstTableName_;
|
||||
}
|
||||
|
||||
void DatalinkReplicationPrecheckRequest::setDstTableName(const std::string& dstTableName)
|
||||
{
|
||||
dstTableName_ = dstTableName;
|
||||
setParameter("DstTableName", dstTableName);
|
||||
}
|
||||
|
||||
58
drds/src/model/DatalinkReplicationPrecheckResult.cc
Normal file
58
drds/src/model/DatalinkReplicationPrecheckResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/DatalinkReplicationPrecheckResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DatalinkReplicationPrecheckResult::DatalinkReplicationPrecheckResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DatalinkReplicationPrecheckResult::DatalinkReplicationPrecheckResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DatalinkReplicationPrecheckResult::~DatalinkReplicationPrecheckResult()
|
||||
{}
|
||||
|
||||
void DatalinkReplicationPrecheckResult::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["Data"].isNull())
|
||||
data_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DatalinkReplicationPrecheckResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DatalinkReplicationPrecheckResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
78
drds/src/model/DeleteShardTasksRequest.cc
Normal file
78
drds/src/model/DeleteShardTasksRequest.cc
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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/drds/model/DeleteShardTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DeleteShardTasksRequest;
|
||||
|
||||
DeleteShardTasksRequest::DeleteShardTasksRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DeleteShardTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteShardTasksRequest::~DeleteShardTasksRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteShardTasksRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteShardTasksRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteShardTasksRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DeleteShardTasksRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DeleteShardTasksRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteShardTasksRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<DeleteShardTasksRequest::TableName> DeleteShardTasksRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void DeleteShardTasksRequest::setTableName(const std::vector<TableName>& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
for(int dep1 = 0; dep1!= tableName.size(); dep1++) {
|
||||
auto tableNameObj = tableName.at(dep1);
|
||||
std::string tableNameObjStr = "TableName." + std::to_string(dep1 + 1);
|
||||
setParameter(tableNameObjStr + ".SourceTableName", tableNameObj.sourceTableName);
|
||||
setParameter(tableNameObjStr + ".TargetTableName", tableNameObj.targetTableName);
|
||||
}
|
||||
}
|
||||
|
||||
58
drds/src/model/DeleteShardTasksResult.cc
Normal file
58
drds/src/model/DeleteShardTasksResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/DeleteShardTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DeleteShardTasksResult::DeleteShardTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteShardTasksResult::DeleteShardTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteShardTasksResult::~DeleteShardTasksResult()
|
||||
{}
|
||||
|
||||
void DeleteShardTasksResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteShardTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DeleteShardTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeBackMenuRequest.cc
Normal file
51
drds/src/model/DescribeBackMenuRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackMenuRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBackMenuRequest;
|
||||
|
||||
DescribeBackMenuRequest::DescribeBackMenuRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBackMenu")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackMenuRequest::~DescribeBackMenuRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackMenuRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackMenuRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackMenuRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackMenuRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
66
drds/src/model/DescribeBackMenuResult.cc
Normal file
66
drds/src/model/DescribeBackMenuResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeBackMenuResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBackMenuResult::DescribeBackMenuResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackMenuResult::DescribeBackMenuResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackMenuResult::~DescribeBackMenuResult()
|
||||
{}
|
||||
|
||||
void DescribeBackMenuResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allListNode = value["List"]["listItem"];
|
||||
for (auto valueListlistItem : allListNode)
|
||||
{
|
||||
ListItem listObject;
|
||||
if(!valueListlistItem["MenuName"].isNull())
|
||||
listObject.menuName = valueListlistItem["MenuName"].asString();
|
||||
if(!valueListlistItem["Support"].isNull())
|
||||
listObject.support = valueListlistItem["Support"].asString() == "true";
|
||||
list_.push_back(listObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackMenuResult::ListItem> DescribeBackMenuResult::getList()const
|
||||
{
|
||||
return list_;
|
||||
}
|
||||
|
||||
bool DescribeBackMenuResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/DescribeBackupDbsRequest.cc
Normal file
73
drds/src/model/DescribeBackupDbsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupDbsRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBackupDbsRequest;
|
||||
|
||||
DescribeBackupDbsRequest::DescribeBackupDbsRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBackupDbs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupDbsRequest::~DescribeBackupDbsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupDbsRequest::getPreferredRestoreTime()const
|
||||
{
|
||||
return preferredRestoreTime_;
|
||||
}
|
||||
|
||||
void DescribeBackupDbsRequest::setPreferredRestoreTime(const std::string& preferredRestoreTime)
|
||||
{
|
||||
preferredRestoreTime_ = preferredRestoreTime;
|
||||
setParameter("PreferredRestoreTime", preferredRestoreTime);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDbsRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDbsRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDbsRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDbsRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupDbsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupDbsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
59
drds/src/model/DescribeBackupDbsResult.cc
Normal file
59
drds/src/model/DescribeBackupDbsResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeBackupDbsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBackupDbsResult::DescribeBackupDbsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupDbsResult::DescribeBackupDbsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupDbsResult::~DescribeBackupDbsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupDbsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDbNames = value["DbNames"]["dbName"];
|
||||
for (const auto &item : allDbNames)
|
||||
dbNames_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeBackupDbsResult::getDbNames()const
|
||||
{
|
||||
return dbNames_;
|
||||
}
|
||||
|
||||
bool DescribeBackupDbsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeBackupLocalRequest.cc
Normal file
51
drds/src/model/DescribeBackupLocalRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupLocalRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBackupLocalRequest;
|
||||
|
||||
DescribeBackupLocalRequest::DescribeBackupLocalRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBackupLocal")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupLocalRequest::~DescribeBackupLocalRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupLocalRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupLocalRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupLocalRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupLocalRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
drds/src/model/DescribeBackupLocalResult.cc
Normal file
93
drds/src/model/DescribeBackupLocalResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupLocalResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBackupLocalResult::DescribeBackupLocalResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupLocalResult::DescribeBackupLocalResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupLocalResult::~DescribeBackupLocalResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupLocalResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto backupPolicyDONode = value["BackupPolicyDO"];
|
||||
if(!backupPolicyDONode["GmtCreate"].isNull())
|
||||
backupPolicyDO_.gmtCreate = std::stol(backupPolicyDONode["GmtCreate"].asString());
|
||||
if(!backupPolicyDONode["GmtModified"].isNull())
|
||||
backupPolicyDO_.gmtModified = std::stol(backupPolicyDONode["GmtModified"].asString());
|
||||
if(!backupPolicyDONode["BackupPolicyMode"].isNull())
|
||||
backupPolicyDO_.backupPolicyMode = backupPolicyDONode["BackupPolicyMode"].asString();
|
||||
if(!backupPolicyDONode["BackupType"].isNull())
|
||||
backupPolicyDO_.backupType = backupPolicyDONode["BackupType"].asString();
|
||||
if(!backupPolicyDONode["BackupLevel"].isNull())
|
||||
backupPolicyDO_.backupLevel = backupPolicyDONode["BackupLevel"].asString();
|
||||
if(!backupPolicyDONode["BackupDbName"].isNull())
|
||||
backupPolicyDO_.backupDbName = backupPolicyDONode["BackupDbName"].asString();
|
||||
if(!backupPolicyDONode["PreferredBackupTime"].isNull())
|
||||
backupPolicyDO_.preferredBackupTime = backupPolicyDONode["PreferredBackupTime"].asString();
|
||||
if(!backupPolicyDONode["PreferredBackupPeriod"].isNull())
|
||||
backupPolicyDO_.preferredBackupPeriod = backupPolicyDONode["PreferredBackupPeriod"].asString();
|
||||
if(!backupPolicyDONode["DataBackupRetentionPeriod"].isNull())
|
||||
backupPolicyDO_.dataBackupRetentionPeriod = std::stol(backupPolicyDONode["DataBackupRetentionPeriod"].asString());
|
||||
if(!backupPolicyDONode["LogBackupRetentionPeriod"].isNull())
|
||||
backupPolicyDO_.logBackupRetentionPeriod = std::stol(backupPolicyDONode["LogBackupRetentionPeriod"].asString());
|
||||
if(!backupPolicyDONode["BackupRetentionPeriod"].isNull())
|
||||
backupPolicyDO_.backupRetentionPeriod = std::stol(backupPolicyDONode["BackupRetentionPeriod"].asString());
|
||||
if(!backupPolicyDONode["BackupLog"].isNull())
|
||||
backupPolicyDO_.backupLog = backupPolicyDONode["BackupLog"].asString();
|
||||
if(!backupPolicyDONode["LocalLogRetentionHours"].isNull())
|
||||
backupPolicyDO_.localLogRetentionHours = std::stol(backupPolicyDONode["LocalLogRetentionHours"].asString());
|
||||
if(!backupPolicyDONode["LocalLogRetentionSpace"].isNull())
|
||||
backupPolicyDO_.localLogRetentionSpace = std::stol(backupPolicyDONode["LocalLogRetentionSpace"].asString());
|
||||
if(!backupPolicyDONode["HighSpaceUsageProtection"].isNull())
|
||||
backupPolicyDO_.highSpaceUsageProtection = std::stol(backupPolicyDONode["HighSpaceUsageProtection"].asString());
|
||||
if(!backupPolicyDONode["BackupAppName"].isNull())
|
||||
backupPolicyDO_.backupAppName = backupPolicyDONode["BackupAppName"].asString();
|
||||
if(!backupPolicyDONode["BackupMode"].isNull())
|
||||
backupPolicyDO_.backupMode = backupPolicyDONode["BackupMode"].asString();
|
||||
if(!backupPolicyDONode["NextBackupActuallyTime"].isNull())
|
||||
backupPolicyDO_.nextBackupActuallyTime = backupPolicyDONode["NextBackupActuallyTime"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeBackupLocalResult::BackupPolicyDO DescribeBackupLocalResult::getBackupPolicyDO()const
|
||||
{
|
||||
return backupPolicyDO_;
|
||||
}
|
||||
|
||||
bool DescribeBackupLocalResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeBackupPolicyRequest.cc
Normal file
51
drds/src/model/DescribeBackupPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBackupPolicyRequest;
|
||||
|
||||
DescribeBackupPolicyRequest::DescribeBackupPolicyRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBackupPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupPolicyRequest::~DescribeBackupPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
93
drds/src/model/DescribeBackupPolicyResult.cc
Normal file
93
drds/src/model/DescribeBackupPolicyResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPolicyResult::DescribeBackupPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPolicyResult::~DescribeBackupPolicyResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto backupPolicyDONode = value["BackupPolicyDO"];
|
||||
if(!backupPolicyDONode["GmtCreate"].isNull())
|
||||
backupPolicyDO_.gmtCreate = std::stol(backupPolicyDONode["GmtCreate"].asString());
|
||||
if(!backupPolicyDONode["GmtModified"].isNull())
|
||||
backupPolicyDO_.gmtModified = std::stol(backupPolicyDONode["GmtModified"].asString());
|
||||
if(!backupPolicyDONode["BackupPolicyMode"].isNull())
|
||||
backupPolicyDO_.backupPolicyMode = backupPolicyDONode["BackupPolicyMode"].asString();
|
||||
if(!backupPolicyDONode["BackupType"].isNull())
|
||||
backupPolicyDO_.backupType = backupPolicyDONode["BackupType"].asString();
|
||||
if(!backupPolicyDONode["BackupLevel"].isNull())
|
||||
backupPolicyDO_.backupLevel = backupPolicyDONode["BackupLevel"].asString();
|
||||
if(!backupPolicyDONode["BackupDbName"].isNull())
|
||||
backupPolicyDO_.backupDbName = backupPolicyDONode["BackupDbName"].asString();
|
||||
if(!backupPolicyDONode["PreferredBackupTime"].isNull())
|
||||
backupPolicyDO_.preferredBackupTime = backupPolicyDONode["PreferredBackupTime"].asString();
|
||||
if(!backupPolicyDONode["PreferredBackupPeriod"].isNull())
|
||||
backupPolicyDO_.preferredBackupPeriod = backupPolicyDONode["PreferredBackupPeriod"].asString();
|
||||
if(!backupPolicyDONode["DataBackupRetentionPeriod"].isNull())
|
||||
backupPolicyDO_.dataBackupRetentionPeriod = std::stol(backupPolicyDONode["DataBackupRetentionPeriod"].asString());
|
||||
if(!backupPolicyDONode["LogBackupRetentionPeriod"].isNull())
|
||||
backupPolicyDO_.logBackupRetentionPeriod = std::stol(backupPolicyDONode["LogBackupRetentionPeriod"].asString());
|
||||
if(!backupPolicyDONode["BackupRetentionPeriod"].isNull())
|
||||
backupPolicyDO_.backupRetentionPeriod = std::stol(backupPolicyDONode["BackupRetentionPeriod"].asString());
|
||||
if(!backupPolicyDONode["BackupLog"].isNull())
|
||||
backupPolicyDO_.backupLog = backupPolicyDONode["BackupLog"].asString();
|
||||
if(!backupPolicyDONode["LocalLogRetentionHours"].isNull())
|
||||
backupPolicyDO_.localLogRetentionHours = std::stol(backupPolicyDONode["LocalLogRetentionHours"].asString());
|
||||
if(!backupPolicyDONode["LocalLogRetentionSpace"].isNull())
|
||||
backupPolicyDO_.localLogRetentionSpace = std::stol(backupPolicyDONode["LocalLogRetentionSpace"].asString());
|
||||
if(!backupPolicyDONode["HighSpaceUsageProtection"].isNull())
|
||||
backupPolicyDO_.highSpaceUsageProtection = std::stol(backupPolicyDONode["HighSpaceUsageProtection"].asString());
|
||||
if(!backupPolicyDONode["BackupAppName"].isNull())
|
||||
backupPolicyDO_.backupAppName = backupPolicyDONode["BackupAppName"].asString();
|
||||
if(!backupPolicyDONode["BackupMode"].isNull())
|
||||
backupPolicyDO_.backupMode = backupPolicyDONode["BackupMode"].asString();
|
||||
if(!backupPolicyDONode["NextBackupActuallyTime"].isNull())
|
||||
backupPolicyDO_.nextBackupActuallyTime = backupPolicyDONode["NextBackupActuallyTime"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeBackupPolicyResult::BackupPolicyDO DescribeBackupPolicyResult::getBackupPolicyDO()const
|
||||
{
|
||||
return backupPolicyDO_;
|
||||
}
|
||||
|
||||
bool DescribeBackupPolicyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/DescribeBackupSetsRequest.cc
Normal file
73
drds/src/model/DescribeBackupSetsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupSetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBackupSetsRequest;
|
||||
|
||||
DescribeBackupSetsRequest::DescribeBackupSetsRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBackupSets")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupSetsRequest::~DescribeBackupSetsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupSetsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetsRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetsRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetsRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetsRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupSetsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSetsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
85
drds/src/model/DescribeBackupSetsResult.cc
Normal file
85
drds/src/model/DescribeBackupSetsResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupSetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBackupSetsResult::DescribeBackupSetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupSetsResult::DescribeBackupSetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupSetsResult::~DescribeBackupSetsResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupSetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBackupSetsNode = value["BackupSets"]["backupSet"];
|
||||
for (auto valueBackupSetsbackupSet : allBackupSetsNode)
|
||||
{
|
||||
BackupSet backupSetsObject;
|
||||
if(!valueBackupSetsbackupSet["Id"].isNull())
|
||||
backupSetsObject.id = valueBackupSetsbackupSet["Id"].asString();
|
||||
if(!valueBackupSetsbackupSet["BackupStartTime"].isNull())
|
||||
backupSetsObject.backupStartTime = std::stol(valueBackupSetsbackupSet["BackupStartTime"].asString());
|
||||
if(!valueBackupSetsbackupSet["BackupEndTime"].isNull())
|
||||
backupSetsObject.backupEndTime = std::stol(valueBackupSetsbackupSet["BackupEndTime"].asString());
|
||||
if(!valueBackupSetsbackupSet["BackupMode"].isNull())
|
||||
backupSetsObject.backupMode = valueBackupSetsbackupSet["BackupMode"].asString();
|
||||
if(!valueBackupSetsbackupSet["BackupLevel"].isNull())
|
||||
backupSetsObject.backupLevel = valueBackupSetsbackupSet["BackupLevel"].asString();
|
||||
if(!valueBackupSetsbackupSet["BackupType"].isNull())
|
||||
backupSetsObject.backupType = valueBackupSetsbackupSet["BackupType"].asString();
|
||||
if(!valueBackupSetsbackupSet["Status"].isNull())
|
||||
backupSetsObject.status = std::stol(valueBackupSetsbackupSet["Status"].asString());
|
||||
if(!valueBackupSetsbackupSet["EnableRecovery"].isNull())
|
||||
backupSetsObject.enableRecovery = valueBackupSetsbackupSet["EnableRecovery"].asString() == "true";
|
||||
if(!valueBackupSetsbackupSet["BackupTotalSize"].isNull())
|
||||
backupSetsObject.backupTotalSize = valueBackupSetsbackupSet["BackupTotalSize"].asString();
|
||||
if(!valueBackupSetsbackupSet["BackupConsitentTime"].isNull())
|
||||
backupSetsObject.backupConsitentTime = valueBackupSetsbackupSet["BackupConsitentTime"].asString();
|
||||
auto allBackupDbs = value["BackupDbs"]["backupDb"];
|
||||
for (auto value : allBackupDbs)
|
||||
backupSetsObject.backupDbs.push_back(value.asString());
|
||||
backupSets_.push_back(backupSetsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBackupSetsResult::BackupSet> DescribeBackupSetsResult::getBackupSets()const
|
||||
{
|
||||
return backupSets_;
|
||||
}
|
||||
|
||||
bool DescribeBackupSetsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeBackupTimesRequest.cc
Normal file
51
drds/src/model/DescribeBackupTimesRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBackupTimesRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBackupTimesRequest;
|
||||
|
||||
DescribeBackupTimesRequest::DescribeBackupTimesRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBackupTimes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupTimesRequest::~DescribeBackupTimesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupTimesRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBackupTimesRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupTimesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBackupTimesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
61
drds/src/model/DescribeBackupTimesResult.cc
Normal file
61
drds/src/model/DescribeBackupTimesResult.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeBackupTimesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBackupTimesResult::DescribeBackupTimesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupTimesResult::DescribeBackupTimesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupTimesResult::~DescribeBackupTimesResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupTimesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto restoreTimeNode = value["RestoreTime"];
|
||||
if(!restoreTimeNode["StartTime"].isNull())
|
||||
restoreTime_.startTime = restoreTimeNode["StartTime"].asString();
|
||||
if(!restoreTimeNode["EndTime"].isNull())
|
||||
restoreTime_.endTime = restoreTimeNode["EndTime"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DescribeBackupTimesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
DescribeBackupTimesResult::RestoreTime DescribeBackupTimesResult::getRestoreTime()const
|
||||
{
|
||||
return restoreTime_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeBatchEvaluateTaskReportRequest.cc
Normal file
51
drds/src/model/DescribeBatchEvaluateTaskReportRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeBatchEvaluateTaskReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBatchEvaluateTaskReportRequest;
|
||||
|
||||
DescribeBatchEvaluateTaskReportRequest::DescribeBatchEvaluateTaskReportRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBatchEvaluateTaskReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBatchEvaluateTaskReportRequest::~DescribeBatchEvaluateTaskReportRequest()
|
||||
{}
|
||||
|
||||
long DescribeBatchEvaluateTaskReportRequest::getBatchEvaluateTaskId()const
|
||||
{
|
||||
return batchEvaluateTaskId_;
|
||||
}
|
||||
|
||||
void DescribeBatchEvaluateTaskReportRequest::setBatchEvaluateTaskId(long batchEvaluateTaskId)
|
||||
{
|
||||
batchEvaluateTaskId_ = batchEvaluateTaskId;
|
||||
setParameter("BatchEvaluateTaskId", std::to_string(batchEvaluateTaskId));
|
||||
}
|
||||
|
||||
std::string DescribeBatchEvaluateTaskReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeBatchEvaluateTaskReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
144
drds/src/model/DescribeBatchEvaluateTaskReportResult.cc
Normal file
144
drds/src/model/DescribeBatchEvaluateTaskReportResult.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeBatchEvaluateTaskReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBatchEvaluateTaskReportResult::DescribeBatchEvaluateTaskReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBatchEvaluateTaskReportResult::DescribeBatchEvaluateTaskReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBatchEvaluateTaskReportResult::~DescribeBatchEvaluateTaskReportResult()
|
||||
{}
|
||||
|
||||
void DescribeBatchEvaluateTaskReportResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["EvaluateResults"];
|
||||
for (auto valueDataEvaluateResults : allDataNode)
|
||||
{
|
||||
EvaluateResults dataObject;
|
||||
if(!valueDataEvaluateResults["TaskId"].isNull())
|
||||
dataObject.taskId = std::stoi(valueDataEvaluateResults["TaskId"].asString());
|
||||
if(!valueDataEvaluateResults["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataEvaluateResults["TaskName"].asString();
|
||||
if(!valueDataEvaluateResults["InstId"].isNull())
|
||||
dataObject.instId = std::stoi(valueDataEvaluateResults["InstId"].asString());
|
||||
if(!valueDataEvaluateResults["DbName"].isNull())
|
||||
dataObject.dbName = valueDataEvaluateResults["DbName"].asString();
|
||||
if(!valueDataEvaluateResults["TaskStatus"].isNull())
|
||||
dataObject.taskStatus = valueDataEvaluateResults["TaskStatus"].asString();
|
||||
if(!valueDataEvaluateResults["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = valueDataEvaluateResults["GmtCreate"].asString();
|
||||
if(!valueDataEvaluateResults["GmtModified"].isNull())
|
||||
dataObject.gmtModified = valueDataEvaluateResults["GmtModified"].asString();
|
||||
if(!valueDataEvaluateResults["RdsType"].isNull())
|
||||
dataObject.rdsType = valueDataEvaluateResults["RdsType"].asString();
|
||||
if(!valueDataEvaluateResults["RdsCount"].isNull())
|
||||
dataObject.rdsCount = std::stoi(valueDataEvaluateResults["RdsCount"].asString());
|
||||
if(!valueDataEvaluateResults["RdsTotalSpace"].isNull())
|
||||
dataObject.rdsTotalSpace = valueDataEvaluateResults["RdsTotalSpace"].asString();
|
||||
if(!valueDataEvaluateResults["DrdsType"].isNull())
|
||||
dataObject.drdsType = valueDataEvaluateResults["DrdsType"].asString();
|
||||
if(!valueDataEvaluateResults["DrdsCount"].isNull())
|
||||
dataObject.drdsCount = std::stoi(valueDataEvaluateResults["DrdsCount"].asString());
|
||||
if(!valueDataEvaluateResults["AllSqlCount"].isNull())
|
||||
dataObject.allSqlCount = std::stoi(valueDataEvaluateResults["AllSqlCount"].asString());
|
||||
if(!valueDataEvaluateResults["SlowSqlCount"].isNull())
|
||||
dataObject.slowSqlCount = std::stoi(valueDataEvaluateResults["SlowSqlCount"].asString());
|
||||
auto allTableShardResultsNode = allDataNode["TableShardResults"]["TableShardResultsItem"];
|
||||
for (auto allDataNodeTableShardResultsTableShardResultsItem : allTableShardResultsNode)
|
||||
{
|
||||
EvaluateResults::TableShardResultsItem tableShardResultsObject;
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["Table"].isNull())
|
||||
tableShardResultsObject.table = allDataNodeTableShardResultsTableShardResultsItem["Table"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["ShardType"].isNull())
|
||||
tableShardResultsObject.shardType = allDataNodeTableShardResultsTableShardResultsItem["ShardType"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["DbShardKey"].isNull())
|
||||
tableShardResultsObject.dbShardKey = allDataNodeTableShardResultsTableShardResultsItem["DbShardKey"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["TbShardKey"].isNull())
|
||||
tableShardResultsObject.tbShardKey = allDataNodeTableShardResultsTableShardResultsItem["TbShardKey"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["Tbpartitions"].isNull())
|
||||
tableShardResultsObject.tbpartitions = std::stoi(allDataNodeTableShardResultsTableShardResultsItem["Tbpartitions"].asString());
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["Dbpartitions"].isNull())
|
||||
tableShardResultsObject.dbpartitions = std::stoi(allDataNodeTableShardResultsTableShardResultsItem["Dbpartitions"].asString());
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["CreateTableSql"].isNull())
|
||||
tableShardResultsObject.createTableSql = allDataNodeTableShardResultsTableShardResultsItem["CreateTableSql"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["RowCount"].isNull())
|
||||
tableShardResultsObject.rowCount = std::stoi(allDataNodeTableShardResultsTableShardResultsItem["RowCount"].asString());
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["SqlCount"].isNull())
|
||||
tableShardResultsObject.sqlCount = std::stoi(allDataNodeTableShardResultsTableShardResultsItem["SqlCount"].asString());
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["ShardKeyType"].isNull())
|
||||
tableShardResultsObject.shardKeyType = allDataNodeTableShardResultsTableShardResultsItem["ShardKeyType"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["DbShardMethod"].isNull())
|
||||
tableShardResultsObject.dbShardMethod = allDataNodeTableShardResultsTableShardResultsItem["DbShardMethod"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["TbShardMethod"].isNull())
|
||||
tableShardResultsObject.tbShardMethod = allDataNodeTableShardResultsTableShardResultsItem["TbShardMethod"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["OriginDbShardMethod"].isNull())
|
||||
tableShardResultsObject.originDbShardMethod = allDataNodeTableShardResultsTableShardResultsItem["OriginDbShardMethod"].asString();
|
||||
if(!allDataNodeTableShardResultsTableShardResultsItem["OriginTbShardMethod"].isNull())
|
||||
tableShardResultsObject.originTbShardMethod = allDataNodeTableShardResultsTableShardResultsItem["OriginTbShardMethod"].asString();
|
||||
dataObject.tableShardResults.push_back(tableShardResultsObject);
|
||||
}
|
||||
auto allRdsInstInfosNode = allDataNode["RdsInstInfos"]["RdsInstInfosItem"];
|
||||
for (auto allDataNodeRdsInstInfosRdsInstInfosItem : allRdsInstInfosNode)
|
||||
{
|
||||
EvaluateResults::RdsInstInfosItem rdsInstInfosObject;
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["InstId"].isNull())
|
||||
rdsInstInfosObject.instId = allDataNodeRdsInstInfosRdsInstInfosItem["InstId"].asString();
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["RdsUsedSpace"].isNull())
|
||||
rdsInstInfosObject.rdsUsedSpace = std::stoi(allDataNodeRdsInstInfosRdsInstInfosItem["RdsUsedSpace"].asString());
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["RdsPeakIopsWeekly"].isNull())
|
||||
rdsInstInfosObject.rdsPeakIopsWeekly = std::stoi(allDataNodeRdsInstInfosRdsInstInfosItem["RdsPeakIopsWeekly"].asString());
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["RdsPeakQpsWeekly"].isNull())
|
||||
rdsInstInfosObject.rdsPeakQpsWeekly = std::stoi(allDataNodeRdsInstInfosRdsInstInfosItem["RdsPeakQpsWeekly"].asString());
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["RdsPeakSessionsWeekly"].isNull())
|
||||
rdsInstInfosObject.rdsPeakSessionsWeekly = std::stoi(allDataNodeRdsInstInfosRdsInstInfosItem["RdsPeakSessionsWeekly"].asString());
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["DataGrowthScale"].isNull())
|
||||
rdsInstInfosObject.dataGrowthScale = std::stoi(allDataNodeRdsInstInfosRdsInstInfosItem["DataGrowthScale"].asString());
|
||||
if(!allDataNodeRdsInstInfosRdsInstInfosItem["AvgQpsGrowthScale"].isNull())
|
||||
rdsInstInfosObject.avgQpsGrowthScale = std::stoi(allDataNodeRdsInstInfosRdsInstInfosItem["AvgQpsGrowthScale"].asString());
|
||||
dataObject.rdsInstInfos.push_back(rdsInstInfosObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeBatchEvaluateTaskReportResult::EvaluateResults> DescribeBatchEvaluateTaskReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DescribeBatchEvaluateTaskReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
drds/src/model/DescribeBroadcastTablesRequest.cc
Normal file
95
drds/src/model/DescribeBroadcastTablesRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeBroadcastTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeBroadcastTablesRequest;
|
||||
|
||||
DescribeBroadcastTablesRequest::DescribeBroadcastTablesRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeBroadcastTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBroadcastTablesRequest::~DescribeBroadcastTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBroadcastTablesRequest::getQuery()const
|
||||
{
|
||||
return query_;
|
||||
}
|
||||
|
||||
void DescribeBroadcastTablesRequest::setQuery(const std::string& query)
|
||||
{
|
||||
query_ = query;
|
||||
setParameter("Query", query);
|
||||
}
|
||||
|
||||
int DescribeBroadcastTablesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeBroadcastTablesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeBroadcastTablesRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeBroadcastTablesRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeBroadcastTablesRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DescribeBroadcastTablesRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DescribeBroadcastTablesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeBroadcastTablesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeBroadcastTablesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeBroadcastTablesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
102
drds/src/model/DescribeBroadcastTablesResult.cc
Normal file
102
drds/src/model/DescribeBroadcastTablesResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeBroadcastTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeBroadcastTablesResult::DescribeBroadcastTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBroadcastTablesResult::DescribeBroadcastTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBroadcastTablesResult::~DescribeBroadcastTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeBroadcastTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allListNode = value["List"]["ListItem"];
|
||||
for (auto valueListListItem : allListNode)
|
||||
{
|
||||
ListItem listObject;
|
||||
if(!valueListListItem["Table"].isNull())
|
||||
listObject.table = valueListListItem["Table"].asString();
|
||||
if(!valueListListItem["BroadcastType"].isNull())
|
||||
listObject.broadcastType = valueListListItem["BroadcastType"].asString();
|
||||
if(!valueListListItem["IsShard"].isNull())
|
||||
listObject.isShard = valueListListItem["IsShard"].asString() == "true";
|
||||
if(!valueListListItem["DbInstType"].isNull())
|
||||
listObject.dbInstType = std::stoi(valueListListItem["DbInstType"].asString());
|
||||
if(!valueListListItem["Broadcast"].isNull())
|
||||
listObject.broadcast = valueListListItem["Broadcast"].asString() == "true";
|
||||
if(!valueListListItem["Status"].isNull())
|
||||
listObject.status = std::stoi(valueListListItem["Status"].asString());
|
||||
list_.push_back(listObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["IsShard"].isNull())
|
||||
isShard_ = value["IsShard"].asString() == "true";
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
bool DescribeBroadcastTablesResult::getIsShard()const
|
||||
{
|
||||
return isShard_;
|
||||
}
|
||||
|
||||
int DescribeBroadcastTablesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeBroadcastTablesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeBroadcastTablesResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeBroadcastTablesResult::ListItem> DescribeBroadcastTablesResult::getList()const
|
||||
{
|
||||
return list_;
|
||||
}
|
||||
|
||||
bool DescribeBroadcastTablesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeCustomDataExportSrcDstTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeCustomDataExportSrcDstTablesRequest;
|
||||
|
||||
DescribeCustomDataExportSrcDstTablesRequest::DescribeCustomDataExportSrcDstTablesRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeCustomDataExportSrcDstTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCustomDataExportSrcDstTablesRequest::~DescribeCustomDataExportSrcDstTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCustomDataExportSrcDstTablesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCustomDataExportSrcDstTablesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomDataExportSrcDstTablesRequest::getExportParam()const
|
||||
{
|
||||
return exportParam_;
|
||||
}
|
||||
|
||||
void DescribeCustomDataExportSrcDstTablesRequest::setExportParam(const std::string& exportParam)
|
||||
{
|
||||
exportParam_ = exportParam;
|
||||
setParameter("ExportParam", exportParam);
|
||||
}
|
||||
|
||||
63
drds/src/model/DescribeCustomDataExportSrcDstTablesResult.cc
Normal file
63
drds/src/model/DescribeCustomDataExportSrcDstTablesResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeCustomDataExportSrcDstTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeCustomDataExportSrcDstTablesResult::DescribeCustomDataExportSrcDstTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCustomDataExportSrcDstTablesResult::DescribeCustomDataExportSrcDstTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCustomDataExportSrcDstTablesResult::~DescribeCustomDataExportSrcDstTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeCustomDataExportSrcDstTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataExportSrcDstTablesNode = value["DataExportSrcDstTables"];
|
||||
auto allSrcTables = dataExportSrcDstTablesNode["SrcTables"]["SrcTables"];
|
||||
for (auto value : allSrcTables)
|
||||
dataExportSrcDstTables_.srcTables.push_back(value.asString());
|
||||
auto allDstTables = dataExportSrcDstTablesNode["DstTables"]["DstTables"];
|
||||
for (auto value : allDstTables)
|
||||
dataExportSrcDstTables_.dstTables.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeCustomDataExportSrcDstTablesResult::DataExportSrcDstTables DescribeCustomDataExportSrcDstTablesResult::getDataExportSrcDstTables()const
|
||||
{
|
||||
return dataExportSrcDstTables_;
|
||||
}
|
||||
|
||||
bool DescribeCustomDataExportSrcDstTablesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeCustomDataImportSrcDstTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeCustomDataImportSrcDstTablesRequest;
|
||||
|
||||
DescribeCustomDataImportSrcDstTablesRequest::DescribeCustomDataImportSrcDstTablesRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeCustomDataImportSrcDstTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCustomDataImportSrcDstTablesRequest::~DescribeCustomDataImportSrcDstTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCustomDataImportSrcDstTablesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCustomDataImportSrcDstTablesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomDataImportSrcDstTablesRequest::getImportParam()const
|
||||
{
|
||||
return importParam_;
|
||||
}
|
||||
|
||||
void DescribeCustomDataImportSrcDstTablesRequest::setImportParam(const std::string& importParam)
|
||||
{
|
||||
importParam_ = importParam;
|
||||
setParameter("ImportParam", importParam);
|
||||
}
|
||||
|
||||
63
drds/src/model/DescribeCustomDataImportSrcDstTablesResult.cc
Normal file
63
drds/src/model/DescribeCustomDataImportSrcDstTablesResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeCustomDataImportSrcDstTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeCustomDataImportSrcDstTablesResult::DescribeCustomDataImportSrcDstTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCustomDataImportSrcDstTablesResult::DescribeCustomDataImportSrcDstTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCustomDataImportSrcDstTablesResult::~DescribeCustomDataImportSrcDstTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeCustomDataImportSrcDstTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataImportSrcDstTablesNode = value["DataImportSrcDstTables"];
|
||||
auto allSrcTables = dataImportSrcDstTablesNode["SrcTables"]["SrcTables"];
|
||||
for (auto value : allSrcTables)
|
||||
dataImportSrcDstTables_.srcTables.push_back(value.asString());
|
||||
auto allDstTables = dataImportSrcDstTablesNode["DstTables"]["DstTables"];
|
||||
for (auto value : allDstTables)
|
||||
dataImportSrcDstTables_.dstTables.push_back(value.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeCustomDataImportSrcDstTablesResult::DataImportSrcDstTables DescribeCustomDataImportSrcDstTablesResult::getDataImportSrcDstTables()const
|
||||
{
|
||||
return dataImportSrcDstTables_;
|
||||
}
|
||||
|
||||
bool DescribeCustomDataImportSrcDstTablesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/DescribeDDLTaskRequest.cc
Normal file
73
drds/src/model/DescribeDDLTaskRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDDLTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDDLTaskRequest;
|
||||
|
||||
DescribeDDLTaskRequest::DescribeDDLTaskRequest() :
|
||||
RpcServiceRequest("drds", "2015-04-13", "DescribeDDLTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDDLTaskRequest::~DescribeDDLTaskRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDDLTaskRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDDLTaskRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDDLTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDDLTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDDLTaskRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DescribeDDLTaskRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DescribeDDLTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeDDLTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
70
drds/src/model/DescribeDDLTaskResult.cc
Normal file
70
drds/src/model/DescribeDDLTaskResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDDLTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDDLTaskResult::DescribeDDLTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDDLTaskResult::DescribeDDLTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDDLTaskResult::~DescribeDDLTaskResult()
|
||||
{}
|
||||
|
||||
void DescribeDDLTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["RequestId"].isNull())
|
||||
data_.requestId = dataNode["RequestId"].asString();
|
||||
if(!dataNode["TargetId"].isNull())
|
||||
data_.targetId = dataNode["TargetId"].asString();
|
||||
if(!dataNode["TaskDetail"].isNull())
|
||||
data_.taskDetail = dataNode["TaskDetail"].asString();
|
||||
if(!dataNode["TaskStatus"].isNull())
|
||||
data_.taskStatus = std::stoi(dataNode["TaskStatus"].asString());
|
||||
if(!dataNode["TaskPhase"].isNull())
|
||||
data_.taskPhase = dataNode["TaskPhase"].asString();
|
||||
if(!dataNode["TaskType"].isNull())
|
||||
data_.taskType = std::stoi(dataNode["TaskType"].asString());
|
||||
if(!dataNode["TaskName"].isNull())
|
||||
data_.taskName = dataNode["TaskName"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = std::stol(dataNode["GmtCreate"].asString());
|
||||
if(!dataNode["AllowCancel"].isNull())
|
||||
data_.allowCancel = dataNode["AllowCancel"].asString();
|
||||
if(!dataNode["ErrMsg"].isNull())
|
||||
data_.errMsg = dataNode["ErrMsg"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeDDLTaskResult::Data DescribeDDLTaskResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeDataExportPreCheckResultRequest.cc
Normal file
51
drds/src/model/DescribeDataExportPreCheckResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDataExportPreCheckResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDataExportPreCheckResultRequest;
|
||||
|
||||
DescribeDataExportPreCheckResultRequest::DescribeDataExportPreCheckResultRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDataExportPreCheckResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataExportPreCheckResultRequest::~DescribeDataExportPreCheckResultRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataExportPreCheckResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataExportPreCheckResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long DescribeDataExportPreCheckResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeDataExportPreCheckResultRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
76
drds/src/model/DescribeDataExportPreCheckResultResult.cc
Normal file
76
drds/src/model/DescribeDataExportPreCheckResultResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDataExportPreCheckResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDataExportPreCheckResultResult::DescribeDataExportPreCheckResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataExportPreCheckResultResult::DescribeDataExportPreCheckResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataExportPreCheckResultResult::~DescribeDataExportPreCheckResultResult()
|
||||
{}
|
||||
|
||||
void DescribeDataExportPreCheckResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto preCheckResultNode = value["PreCheckResult"];
|
||||
if(!preCheckResultNode["PreCheckName"].isNull())
|
||||
preCheckResult_.preCheckName = preCheckResultNode["PreCheckName"].asString();
|
||||
if(!preCheckResultNode["State"].isNull())
|
||||
preCheckResult_.state = preCheckResultNode["State"].asString();
|
||||
auto allSubCheckItemsNode = preCheckResultNode["SubCheckItems"]["SubCheckItemsItem"];
|
||||
for (auto preCheckResultNodeSubCheckItemsSubCheckItemsItem : allSubCheckItemsNode)
|
||||
{
|
||||
PreCheckResult::SubCheckItemsItem subCheckItemsItemObject;
|
||||
if(!preCheckResultNodeSubCheckItemsSubCheckItemsItem["PreCheckItemName"].isNull())
|
||||
subCheckItemsItemObject.preCheckItemName = preCheckResultNodeSubCheckItemsSubCheckItemsItem["PreCheckItemName"].asString();
|
||||
if(!preCheckResultNodeSubCheckItemsSubCheckItemsItem["State"].isNull())
|
||||
subCheckItemsItemObject.state = preCheckResultNodeSubCheckItemsSubCheckItemsItem["State"].asString();
|
||||
if(!preCheckResultNodeSubCheckItemsSubCheckItemsItem["ErrorMsgCode"].isNull())
|
||||
subCheckItemsItemObject.errorMsgCode = preCheckResultNodeSubCheckItemsSubCheckItemsItem["ErrorMsgCode"].asString();
|
||||
auto allErrorMsgParams = value["ErrorMsgParams"]["ErrorMsgParams"];
|
||||
for (auto value : allErrorMsgParams)
|
||||
subCheckItemsItemObject.errorMsgParams.push_back(value.asString());
|
||||
preCheckResult_.subCheckItems.push_back(subCheckItemsItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeDataExportPreCheckResultResult::PreCheckResult DescribeDataExportPreCheckResultResult::getPreCheckResult()const
|
||||
{
|
||||
return preCheckResult_;
|
||||
}
|
||||
|
||||
bool DescribeDataExportPreCheckResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeDataExportTaskReportRequest.cc
Normal file
51
drds/src/model/DescribeDataExportTaskReportRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDataExportTaskReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDataExportTaskReportRequest;
|
||||
|
||||
DescribeDataExportTaskReportRequest::DescribeDataExportTaskReportRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDataExportTaskReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataExportTaskReportRequest::~DescribeDataExportTaskReportRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataExportTaskReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataExportTaskReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long DescribeDataExportTaskReportRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeDataExportTaskReportRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
58
drds/src/model/DescribeDataExportTaskReportResult.cc
Normal file
58
drds/src/model/DescribeDataExportTaskReportResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDataExportTaskReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDataExportTaskReportResult::DescribeDataExportTaskReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataExportTaskReportResult::DescribeDataExportTaskReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataExportTaskReportResult::~DescribeDataExportTaskReportResult()
|
||||
{}
|
||||
|
||||
void DescribeDataExportTaskReportResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDataExportTaskReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DescribeDataExportTaskReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/DescribeDataExportTasksRequest.cc
Normal file
62
drds/src/model/DescribeDataExportTasksRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDataExportTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDataExportTasksRequest;
|
||||
|
||||
DescribeDataExportTasksRequest::DescribeDataExportTasksRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDataExportTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataExportTasksRequest::~DescribeDataExportTasksRequest()
|
||||
{}
|
||||
|
||||
int DescribeDataExportTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDataExportTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDataExportTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataExportTasksRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int DescribeDataExportTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDataExportTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
136
drds/src/model/DescribeDataExportTasksResult.cc
Normal file
136
drds/src/model/DescribeDataExportTasksResult.cc
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDataExportTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDataExportTasksResult::DescribeDataExportTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataExportTasksResult::DescribeDataExportTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataExportTasksResult::~DescribeDataExportTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeDataExportTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataExportTask"];
|
||||
for (auto valueDataDataExportTask : allDataNode)
|
||||
{
|
||||
DataExportTask dataObject;
|
||||
if(!valueDataDataExportTask["Id"].isNull())
|
||||
dataObject.id = std::stoi(valueDataDataExportTask["Id"].asString());
|
||||
if(!valueDataDataExportTask["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataDataExportTask["TaskName"].asString();
|
||||
if(!valueDataDataExportTask["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = valueDataDataExportTask["GmtCreate"].asString();
|
||||
if(!valueDataDataExportTask["GmtModified"].isNull())
|
||||
dataObject.gmtModified = valueDataDataExportTask["GmtModified"].asString();
|
||||
if(!valueDataDataExportTask["Type"].isNull())
|
||||
dataObject.type = std::stoi(valueDataDataExportTask["Type"].asString());
|
||||
if(!valueDataDataExportTask["Status"].isNull())
|
||||
dataObject.status = valueDataDataExportTask["Status"].asString();
|
||||
if(!valueDataDataExportTask["Stage"].isNull())
|
||||
dataObject.stage = valueDataDataExportTask["Stage"].asString();
|
||||
if(!valueDataDataExportTask["SrcInstId"].isNull())
|
||||
dataObject.srcInstId = valueDataDataExportTask["SrcInstId"].asString();
|
||||
if(!valueDataDataExportTask["SrcDbName"].isNull())
|
||||
dataObject.srcDbName = valueDataDataExportTask["SrcDbName"].asString();
|
||||
if(!valueDataDataExportTask["DstInstId"].isNull())
|
||||
dataObject.dstInstId = valueDataDataExportTask["DstInstId"].asString();
|
||||
if(!valueDataDataExportTask["DstDbName"].isNull())
|
||||
dataObject.dstDbName = valueDataDataExportTask["DstDbName"].asString();
|
||||
if(!valueDataDataExportTask["EvaluateTaskId"].isNull())
|
||||
dataObject.evaluateTaskId = std::stoi(valueDataDataExportTask["EvaluateTaskId"].asString());
|
||||
if(!valueDataDataExportTask["BatchEvaluateTaskId"].isNull())
|
||||
dataObject.batchEvaluateTaskId = std::stoi(valueDataDataExportTask["BatchEvaluateTaskId"].asString());
|
||||
if(!valueDataDataExportTask["CreateDbProgress"].isNull())
|
||||
dataObject.createDbProgress = std::stoi(valueDataDataExportTask["CreateDbProgress"].asString());
|
||||
if(!valueDataDataExportTask["CreateTablesProgress"].isNull())
|
||||
dataObject.createTablesProgress = std::stoi(valueDataDataExportTask["CreateTablesProgress"].asString());
|
||||
if(!valueDataDataExportTask["Progress"].isNull())
|
||||
dataObject.progress = std::stoi(valueDataDataExportTask["Progress"].asString());
|
||||
auto jingweiProgressNode = value["JingweiProgress"];
|
||||
if(!jingweiProgressNode["FullRunning"].isNull())
|
||||
dataObject.jingweiProgress.fullRunning = jingweiProgressNode["FullRunning"].asString() == "true";
|
||||
if(!jingweiProgressNode["IncrementRunning"].isNull())
|
||||
dataObject.jingweiProgress.incrementRunning = jingweiProgressNode["IncrementRunning"].asString() == "true";
|
||||
auto fullNode = jingweiProgressNode["Full"];
|
||||
if(!fullNode["Progress"].isNull())
|
||||
dataObject.jingweiProgress.full.progress = std::stoi(fullNode["Progress"].asString());
|
||||
if(!fullNode["Tps"].isNull())
|
||||
dataObject.jingweiProgress.full.tps = std::stoi(fullNode["Tps"].asString());
|
||||
if(!fullNode["NeedTime"].isNull())
|
||||
dataObject.jingweiProgress.full.needTime = std::stoi(fullNode["NeedTime"].asString());
|
||||
if(!fullNode["TransferCount"].isNull())
|
||||
dataObject.jingweiProgress.full.transferCount = std::stoi(fullNode["TransferCount"].asString());
|
||||
auto incrementNode = jingweiProgressNode["Increment"];
|
||||
if(!incrementNode["Delay"].isNull())
|
||||
dataObject.jingweiProgress.increment.delay = std::stoi(incrementNode["Delay"].asString());
|
||||
if(!incrementNode["Tps"].isNull())
|
||||
dataObject.jingweiProgress.increment.tps = std::stoi(incrementNode["Tps"].asString());
|
||||
if(!incrementNode["TransferCount"].isNull())
|
||||
dataObject.jingweiProgress.increment.transferCount = std::stoi(incrementNode["TransferCount"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataExportTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDataExportTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeDataExportTasksResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataExportTasksResult::DataExportTask> DescribeDataExportTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DescribeDataExportTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeDataImportPreCheckResultRequest.cc
Normal file
51
drds/src/model/DescribeDataImportPreCheckResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDataImportPreCheckResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDataImportPreCheckResultRequest;
|
||||
|
||||
DescribeDataImportPreCheckResultRequest::DescribeDataImportPreCheckResultRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDataImportPreCheckResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataImportPreCheckResultRequest::~DescribeDataImportPreCheckResultRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataImportPreCheckResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataImportPreCheckResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long DescribeDataImportPreCheckResultRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeDataImportPreCheckResultRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
76
drds/src/model/DescribeDataImportPreCheckResultResult.cc
Normal file
76
drds/src/model/DescribeDataImportPreCheckResultResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDataImportPreCheckResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDataImportPreCheckResultResult::DescribeDataImportPreCheckResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataImportPreCheckResultResult::DescribeDataImportPreCheckResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataImportPreCheckResultResult::~DescribeDataImportPreCheckResultResult()
|
||||
{}
|
||||
|
||||
void DescribeDataImportPreCheckResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto preCheckResultNode = value["PreCheckResult"];
|
||||
if(!preCheckResultNode["PreCheckName"].isNull())
|
||||
preCheckResult_.preCheckName = preCheckResultNode["PreCheckName"].asString();
|
||||
if(!preCheckResultNode["State"].isNull())
|
||||
preCheckResult_.state = preCheckResultNode["State"].asString();
|
||||
auto allSubCheckItemsNode = preCheckResultNode["SubCheckItems"]["SubCheckItemsItem"];
|
||||
for (auto preCheckResultNodeSubCheckItemsSubCheckItemsItem : allSubCheckItemsNode)
|
||||
{
|
||||
PreCheckResult::SubCheckItemsItem subCheckItemsItemObject;
|
||||
if(!preCheckResultNodeSubCheckItemsSubCheckItemsItem["PreCheckItemName"].isNull())
|
||||
subCheckItemsItemObject.preCheckItemName = preCheckResultNodeSubCheckItemsSubCheckItemsItem["PreCheckItemName"].asString();
|
||||
if(!preCheckResultNodeSubCheckItemsSubCheckItemsItem["State"].isNull())
|
||||
subCheckItemsItemObject.state = preCheckResultNodeSubCheckItemsSubCheckItemsItem["State"].asString();
|
||||
if(!preCheckResultNodeSubCheckItemsSubCheckItemsItem["ErrorMsgCode"].isNull())
|
||||
subCheckItemsItemObject.errorMsgCode = preCheckResultNodeSubCheckItemsSubCheckItemsItem["ErrorMsgCode"].asString();
|
||||
auto allErrorMsgParams = value["ErrorMsgParams"]["ErrorMsgParams"];
|
||||
for (auto value : allErrorMsgParams)
|
||||
subCheckItemsItemObject.errorMsgParams.push_back(value.asString());
|
||||
preCheckResult_.subCheckItems.push_back(subCheckItemsItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeDataImportPreCheckResultResult::PreCheckResult DescribeDataImportPreCheckResultResult::getPreCheckResult()const
|
||||
{
|
||||
return preCheckResult_;
|
||||
}
|
||||
|
||||
bool DescribeDataImportPreCheckResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
drds/src/model/DescribeDataImportTaskReportRequest.cc
Normal file
51
drds/src/model/DescribeDataImportTaskReportRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDataImportTaskReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDataImportTaskReportRequest;
|
||||
|
||||
DescribeDataImportTaskReportRequest::DescribeDataImportTaskReportRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDataImportTaskReport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataImportTaskReportRequest::~DescribeDataImportTaskReportRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDataImportTaskReportRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataImportTaskReportRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
long DescribeDataImportTaskReportRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DescribeDataImportTaskReportRequest::setTaskId(long taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", std::to_string(taskId));
|
||||
}
|
||||
|
||||
58
drds/src/model/DescribeDataImportTaskReportResult.cc
Normal file
58
drds/src/model/DescribeDataImportTaskReportResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDataImportTaskReportResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDataImportTaskReportResult::DescribeDataImportTaskReportResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataImportTaskReportResult::DescribeDataImportTaskReportResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataImportTaskReportResult::~DescribeDataImportTaskReportResult()
|
||||
{}
|
||||
|
||||
void DescribeDataImportTaskReportResult::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["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDataImportTaskReportResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DescribeDataImportTaskReportResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
62
drds/src/model/DescribeDataImportTasksRequest.cc
Normal file
62
drds/src/model/DescribeDataImportTasksRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDataImportTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDataImportTasksRequest;
|
||||
|
||||
DescribeDataImportTasksRequest::DescribeDataImportTasksRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDataImportTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDataImportTasksRequest::~DescribeDataImportTasksRequest()
|
||||
{}
|
||||
|
||||
int DescribeDataImportTasksRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDataImportTasksRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDataImportTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDataImportTasksRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
int DescribeDataImportTasksRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDataImportTasksRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
136
drds/src/model/DescribeDataImportTasksResult.cc
Normal file
136
drds/src/model/DescribeDataImportTasksResult.cc
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDataImportTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDataImportTasksResult::DescribeDataImportTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDataImportTasksResult::DescribeDataImportTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDataImportTasksResult::~DescribeDataImportTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeDataImportTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataImportTask"];
|
||||
for (auto valueDataDataImportTask : allDataNode)
|
||||
{
|
||||
DataImportTask dataObject;
|
||||
if(!valueDataDataImportTask["Id"].isNull())
|
||||
dataObject.id = std::stoi(valueDataDataImportTask["Id"].asString());
|
||||
if(!valueDataDataImportTask["TaskName"].isNull())
|
||||
dataObject.taskName = valueDataDataImportTask["TaskName"].asString();
|
||||
if(!valueDataDataImportTask["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = valueDataDataImportTask["GmtCreate"].asString();
|
||||
if(!valueDataDataImportTask["GmtModified"].isNull())
|
||||
dataObject.gmtModified = valueDataDataImportTask["GmtModified"].asString();
|
||||
if(!valueDataDataImportTask["Type"].isNull())
|
||||
dataObject.type = std::stoi(valueDataDataImportTask["Type"].asString());
|
||||
if(!valueDataDataImportTask["Status"].isNull())
|
||||
dataObject.status = valueDataDataImportTask["Status"].asString();
|
||||
if(!valueDataDataImportTask["Stage"].isNull())
|
||||
dataObject.stage = valueDataDataImportTask["Stage"].asString();
|
||||
if(!valueDataDataImportTask["SrcInstId"].isNull())
|
||||
dataObject.srcInstId = valueDataDataImportTask["SrcInstId"].asString();
|
||||
if(!valueDataDataImportTask["SrcDbName"].isNull())
|
||||
dataObject.srcDbName = valueDataDataImportTask["SrcDbName"].asString();
|
||||
if(!valueDataDataImportTask["DstInstId"].isNull())
|
||||
dataObject.dstInstId = valueDataDataImportTask["DstInstId"].asString();
|
||||
if(!valueDataDataImportTask["DstDbName"].isNull())
|
||||
dataObject.dstDbName = valueDataDataImportTask["DstDbName"].asString();
|
||||
if(!valueDataDataImportTask["EvaluateTaskId"].isNull())
|
||||
dataObject.evaluateTaskId = std::stoi(valueDataDataImportTask["EvaluateTaskId"].asString());
|
||||
if(!valueDataDataImportTask["BatchEvaluateTaskId"].isNull())
|
||||
dataObject.batchEvaluateTaskId = std::stoi(valueDataDataImportTask["BatchEvaluateTaskId"].asString());
|
||||
if(!valueDataDataImportTask["CreateDbProgress"].isNull())
|
||||
dataObject.createDbProgress = std::stoi(valueDataDataImportTask["CreateDbProgress"].asString());
|
||||
if(!valueDataDataImportTask["CreateTablesProgress"].isNull())
|
||||
dataObject.createTablesProgress = std::stoi(valueDataDataImportTask["CreateTablesProgress"].asString());
|
||||
if(!valueDataDataImportTask["Progress"].isNull())
|
||||
dataObject.progress = std::stoi(valueDataDataImportTask["Progress"].asString());
|
||||
auto jingweiProgressNode = value["JingweiProgress"];
|
||||
if(!jingweiProgressNode["FullRunning"].isNull())
|
||||
dataObject.jingweiProgress.fullRunning = jingweiProgressNode["FullRunning"].asString() == "true";
|
||||
if(!jingweiProgressNode["IncrementRunning"].isNull())
|
||||
dataObject.jingweiProgress.incrementRunning = jingweiProgressNode["IncrementRunning"].asString() == "true";
|
||||
auto fullNode = jingweiProgressNode["Full"];
|
||||
if(!fullNode["Progress"].isNull())
|
||||
dataObject.jingweiProgress.full.progress = std::stoi(fullNode["Progress"].asString());
|
||||
if(!fullNode["Tps"].isNull())
|
||||
dataObject.jingweiProgress.full.tps = std::stoi(fullNode["Tps"].asString());
|
||||
if(!fullNode["NeedTime"].isNull())
|
||||
dataObject.jingweiProgress.full.needTime = std::stoi(fullNode["NeedTime"].asString());
|
||||
if(!fullNode["TransferCount"].isNull())
|
||||
dataObject.jingweiProgress.full.transferCount = std::stoi(fullNode["TransferCount"].asString());
|
||||
auto incrementNode = jingweiProgressNode["Increment"];
|
||||
if(!incrementNode["Delay"].isNull())
|
||||
dataObject.jingweiProgress.increment.delay = std::stoi(incrementNode["Delay"].asString());
|
||||
if(!incrementNode["Tps"].isNull())
|
||||
dataObject.jingweiProgress.increment.tps = std::stoi(incrementNode["Tps"].asString());
|
||||
if(!incrementNode["TransferCount"].isNull())
|
||||
dataObject.jingweiProgress.increment.transferCount = std::stoi(incrementNode["TransferCount"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDataImportTasksResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDataImportTasksResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeDataImportTasksResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDataImportTasksResult::DataImportTask> DescribeDataImportTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
bool DescribeDataImportTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
drds/src/model/DescribeDbInstanceDbsRequest.cc
Normal file
95
drds/src/model/DescribeDbInstanceDbsRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDbInstanceDbsRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDbInstanceDbsRequest;
|
||||
|
||||
DescribeDbInstanceDbsRequest::DescribeDbInstanceDbsRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDbInstanceDbs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDbInstanceDbsRequest::~DescribeDbInstanceDbsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDbInstanceDbsRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDbInstanceDbsRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDbInstanceDbsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDbInstanceDbsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDbInstanceDbsRequest::getPassword()const
|
||||
{
|
||||
return password_;
|
||||
}
|
||||
|
||||
void DescribeDbInstanceDbsRequest::setPassword(const std::string& password)
|
||||
{
|
||||
password_ = password;
|
||||
setParameter("Password", password);
|
||||
}
|
||||
|
||||
std::string DescribeDbInstanceDbsRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void DescribeDbInstanceDbsRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string DescribeDbInstanceDbsRequest::getDbInstanceId()const
|
||||
{
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDbInstanceDbsRequest::setDbInstanceId(const std::string& dbInstanceId)
|
||||
{
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter("DbInstanceId", dbInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDbInstanceDbsRequest::getDbInstType()const
|
||||
{
|
||||
return dbInstType_;
|
||||
}
|
||||
|
||||
void DescribeDbInstanceDbsRequest::setDbInstType(const std::string& dbInstType)
|
||||
{
|
||||
dbInstType_ = dbInstType;
|
||||
setParameter("DbInstType", dbInstType);
|
||||
}
|
||||
|
||||
75
drds/src/model/DescribeDbInstanceDbsResult.cc
Normal file
75
drds/src/model/DescribeDbInstanceDbsResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDbInstanceDbsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDbInstanceDbsResult::DescribeDbInstanceDbsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDbInstanceDbsResult::DescribeDbInstanceDbsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDbInstanceDbsResult::~DescribeDbInstanceDbsResult()
|
||||
{}
|
||||
|
||||
void DescribeDbInstanceDbsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatabasesNode = value["Databases"]["Database"];
|
||||
for (auto valueDatabasesDatabase : allDatabasesNode)
|
||||
{
|
||||
Database databasesObject;
|
||||
if(!valueDatabasesDatabase["DbName"].isNull())
|
||||
databasesObject.dbName = valueDatabasesDatabase["DbName"].asString();
|
||||
if(!valueDatabasesDatabase["Status"].isNull())
|
||||
databasesObject.status = std::stoi(valueDatabasesDatabase["Status"].asString());
|
||||
if(!valueDatabasesDatabase["Description"].isNull())
|
||||
databasesObject.description = valueDatabasesDatabase["Description"].asString();
|
||||
databases_.push_back(databasesObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = value["Total"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDbInstanceDbsResult::Database> DescribeDbInstanceDbsResult::getDatabases()const
|
||||
{
|
||||
return databases_;
|
||||
}
|
||||
|
||||
std::string DescribeDbInstanceDbsResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
bool DescribeDbInstanceDbsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
95
drds/src/model/DescribeDbInstancesRequest.cc
Normal file
95
drds/src/model/DescribeDbInstancesRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDbInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDbInstancesRequest;
|
||||
|
||||
DescribeDbInstancesRequest::DescribeDbInstancesRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDbInstances")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDbInstancesRequest::~DescribeDbInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDbInstancesRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDbInstancesRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
int DescribeDbInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeDbInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeDbInstancesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDbInstancesRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDbInstancesRequest::getSearch()const
|
||||
{
|
||||
return search_;
|
||||
}
|
||||
|
||||
void DescribeDbInstancesRequest::setSearch(const std::string& search)
|
||||
{
|
||||
search_ = search;
|
||||
setParameter("Search", search);
|
||||
}
|
||||
|
||||
int DescribeDbInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeDbInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeDbInstancesRequest::getDbInstType()const
|
||||
{
|
||||
return dbInstType_;
|
||||
}
|
||||
|
||||
void DescribeDbInstancesRequest::setDbInstType(const std::string& dbInstType)
|
||||
{
|
||||
dbInstType_ = dbInstType;
|
||||
setParameter("DbInstType", dbInstType);
|
||||
}
|
||||
|
||||
76
drds/src/model/DescribeDbInstancesResult.cc
Normal file
76
drds/src/model/DescribeDbInstancesResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDbInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDbInstancesResult::DescribeDbInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDbInstancesResult::DescribeDbInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDbInstancesResult::~DescribeDbInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeDbInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["DBInstance"];
|
||||
for (auto valueItemsDBInstance : allItemsNode)
|
||||
{
|
||||
DBInstance itemsObject;
|
||||
if(!valueItemsDBInstance["DBInstanceId"].isNull())
|
||||
itemsObject.dBInstanceId = valueItemsDBInstance["DBInstanceId"].asString();
|
||||
if(!valueItemsDBInstance["DBInstanceStatus"].isNull())
|
||||
itemsObject.dBInstanceStatus = std::stoi(valueItemsDBInstance["DBInstanceStatus"].asString());
|
||||
if(!valueItemsDBInstance["DBInstanceType"].isNull())
|
||||
itemsObject.dBInstanceType = valueItemsDBInstance["DBInstanceType"].asString();
|
||||
if(!valueItemsDBInstance["Engine"].isNull())
|
||||
itemsObject.engine = valueItemsDBInstance["Engine"].asString();
|
||||
if(!valueItemsDBInstance["EngineVersion"].isNull())
|
||||
itemsObject.engineVersion = valueItemsDBInstance["EngineVersion"].asString();
|
||||
if(!valueItemsDBInstance["RegionId"].isNull())
|
||||
itemsObject.regionId = valueItemsDBInstance["RegionId"].asString();
|
||||
if(!valueItemsDBInstance["ZoneId"].isNull())
|
||||
itemsObject.zoneId = valueItemsDBInstance["ZoneId"].asString();
|
||||
if(!valueItemsDBInstance["DBInstanceDescription"].isNull())
|
||||
itemsObject.dBInstanceDescription = valueItemsDBInstance["DBInstanceDescription"].asString();
|
||||
if(!valueItemsDBInstance["InstanceNetworkType"].isNull())
|
||||
itemsObject.instanceNetworkType = valueItemsDBInstance["InstanceNetworkType"].asString();
|
||||
auto allReadOnlyDBInstanceId = value["ReadOnlyDBInstanceId"]["ReadOnlyDBInstanceId"];
|
||||
for (auto value : allReadOnlyDBInstanceId)
|
||||
itemsObject.readOnlyDBInstanceId.push_back(value.asString());
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDbInstancesResult::DBInstance> DescribeDbInstancesResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
40
drds/src/model/DescribeDrdsComponentsRequest.cc
Normal file
40
drds/src/model/DescribeDrdsComponentsRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/drds/model/DescribeDrdsComponentsRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDrdsComponentsRequest;
|
||||
|
||||
DescribeDrdsComponentsRequest::DescribeDrdsComponentsRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDrdsComponents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDrdsComponentsRequest::~DescribeDrdsComponentsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDrdsComponentsRequest::getCommodityCode()const
|
||||
{
|
||||
return commodityCode_;
|
||||
}
|
||||
|
||||
void DescribeDrdsComponentsRequest::setCommodityCode(const std::string& commodityCode)
|
||||
{
|
||||
commodityCode_ = commodityCode;
|
||||
setParameter("CommodityCode", commodityCode);
|
||||
}
|
||||
|
||||
96
drds/src/model/DescribeDrdsComponentsResult.cc
Normal file
96
drds/src/model/DescribeDrdsComponentsResult.cc
Normal 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/drds/model/DescribeDrdsComponentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDrdsComponentsResult::DescribeDrdsComponentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDrdsComponentsResult::DescribeDrdsComponentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDrdsComponentsResult::~DescribeDrdsComponentsResult()
|
||||
{}
|
||||
|
||||
void DescribeDrdsComponentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDrdsComponentsNode = value["DrdsComponents"]["DrdsComponent"];
|
||||
for (auto valueDrdsComponentsDrdsComponent : allDrdsComponentsNode)
|
||||
{
|
||||
DrdsComponent drdsComponentsObject;
|
||||
if(!valueDrdsComponentsDrdsComponent["RegionId"].isNull())
|
||||
drdsComponentsObject.regionId = valueDrdsComponentsDrdsComponent["RegionId"].asString();
|
||||
if(!valueDrdsComponentsDrdsComponent["RegionName"].isNull())
|
||||
drdsComponentsObject.regionName = valueDrdsComponentsDrdsComponent["RegionName"].asString();
|
||||
auto allDrdsAzoneInfosNode = allDrdsComponentsNode["DrdsAzoneInfos"]["DrdsAzoneInfo"];
|
||||
for (auto allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo : allDrdsAzoneInfosNode)
|
||||
{
|
||||
DrdsComponent::DrdsAzoneInfo drdsAzoneInfosObject;
|
||||
if(!allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["ZoneId"].isNull())
|
||||
drdsAzoneInfosObject.zoneId = allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["ZoneId"].asString();
|
||||
if(!allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["ZoneName"].isNull())
|
||||
drdsAzoneInfosObject.zoneName = allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["ZoneName"].asString();
|
||||
if(!allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["SupportVpc"].isNull())
|
||||
drdsAzoneInfosObject.supportVpc = allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["SupportVpc"].asString() == "true";
|
||||
if(!allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["SupportClassic"].isNull())
|
||||
drdsAzoneInfosObject.supportClassic = allDrdsComponentsNodeDrdsAzoneInfosDrdsAzoneInfo["SupportClassic"].asString() == "true";
|
||||
drdsComponentsObject.drdsAzoneInfos.push_back(drdsAzoneInfosObject);
|
||||
}
|
||||
auto allDrdsSeriesListNode = allDrdsComponentsNode["DrdsSeriesList"]["DrdsSeries"];
|
||||
for (auto allDrdsComponentsNodeDrdsSeriesListDrdsSeries : allDrdsSeriesListNode)
|
||||
{
|
||||
DrdsComponent::DrdsSeries drdsSeriesListObject;
|
||||
if(!allDrdsComponentsNodeDrdsSeriesListDrdsSeries["SeriesName"].isNull())
|
||||
drdsSeriesListObject.seriesName = allDrdsComponentsNodeDrdsSeriesListDrdsSeries["SeriesName"].asString();
|
||||
if(!allDrdsComponentsNodeDrdsSeriesListDrdsSeries["Series"].isNull())
|
||||
drdsSeriesListObject.series = allDrdsComponentsNodeDrdsSeriesListDrdsSeries["Series"].asString();
|
||||
auto allSpecs = value["Specs"]["Spec"];
|
||||
for (auto value : allSpecs)
|
||||
drdsSeriesListObject.specs.push_back(value.asString());
|
||||
drdsComponentsObject.drdsSeriesList.push_back(drdsSeriesListObject);
|
||||
}
|
||||
auto allMysqlVersions = value["MysqlVersions"]["MysqlVersion"];
|
||||
for (auto value : allMysqlVersions)
|
||||
drdsComponentsObject.mysqlVersions.push_back(value.asString());
|
||||
drdsComponents_.push_back(drdsComponentsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDrdsComponentsResult::DrdsComponent> DescribeDrdsComponentsResult::getDrdsComponents()const
|
||||
{
|
||||
return drdsComponents_;
|
||||
}
|
||||
|
||||
bool DescribeDrdsComponentsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/DescribeDrdsDBClusterRequest.cc
Normal file
73
drds/src/model/DescribeDrdsDBClusterRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDrdsDBClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDrdsDBClusterRequest;
|
||||
|
||||
DescribeDrdsDBClusterRequest::DescribeDrdsDBClusterRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDrdsDBCluster")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDrdsDBClusterRequest::~DescribeDrdsDBClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDrdsDBClusterRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBClusterRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDBClusterRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBClusterRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDBClusterRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBClusterRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDBClusterRequest::getDbInstanceId()const
|
||||
{
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDBClusterRequest::setDbInstanceId(const std::string& dbInstanceId)
|
||||
{
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter("DbInstanceId", dbInstanceId);
|
||||
}
|
||||
|
||||
107
drds/src/model/DescribeDrdsDBClusterResult.cc
Normal file
107
drds/src/model/DescribeDrdsDBClusterResult.cc
Normal 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/drds/model/DescribeDrdsDBClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Drds;
|
||||
using namespace AlibabaCloud::Drds::Model;
|
||||
|
||||
DescribeDrdsDBClusterResult::DescribeDrdsDBClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDrdsDBClusterResult::DescribeDrdsDBClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDrdsDBClusterResult::~DescribeDrdsDBClusterResult()
|
||||
{}
|
||||
|
||||
void DescribeDrdsDBClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dbInstanceNode = value["DbInstance"];
|
||||
if(!dbInstanceNode["DBInstanceId"].isNull())
|
||||
dbInstance_.dBInstanceId = dbInstanceNode["DBInstanceId"].asString();
|
||||
if(!dbInstanceNode["Port"].isNull())
|
||||
dbInstance_.port = std::stoi(dbInstanceNode["Port"].asString());
|
||||
if(!dbInstanceNode["DBInstanceStatus"].isNull())
|
||||
dbInstance_.dBInstanceStatus = dbInstanceNode["DBInstanceStatus"].asString();
|
||||
if(!dbInstanceNode["DbInstType"].isNull())
|
||||
dbInstance_.dbInstType = dbInstanceNode["DbInstType"].asString();
|
||||
if(!dbInstanceNode["Engine"].isNull())
|
||||
dbInstance_.engine = dbInstanceNode["Engine"].asString();
|
||||
if(!dbInstanceNode["EngineVersion"].isNull())
|
||||
dbInstance_.engineVersion = dbInstanceNode["EngineVersion"].asString();
|
||||
if(!dbInstanceNode["RdsInstType"].isNull())
|
||||
dbInstance_.rdsInstType = dbInstanceNode["RdsInstType"].asString();
|
||||
if(!dbInstanceNode["PayType"].isNull())
|
||||
dbInstance_.payType = dbInstanceNode["PayType"].asString();
|
||||
if(!dbInstanceNode["ExpireTime"].isNull())
|
||||
dbInstance_.expireTime = dbInstanceNode["ExpireTime"].asString();
|
||||
if(!dbInstanceNode["RemainDays"].isNull())
|
||||
dbInstance_.remainDays = dbInstanceNode["RemainDays"].asString();
|
||||
if(!dbInstanceNode["NetworkType"].isNull())
|
||||
dbInstance_.networkType = dbInstanceNode["NetworkType"].asString();
|
||||
if(!dbInstanceNode["ReadMode"].isNull())
|
||||
dbInstance_.readMode = dbInstanceNode["ReadMode"].asString();
|
||||
auto allEndpointsNode = dbInstanceNode["Endpoints"]["Endpoint"];
|
||||
for (auto dbInstanceNodeEndpointsEndpoint : allEndpointsNode)
|
||||
{
|
||||
DbInstance::Endpoint endpointObject;
|
||||
if(!dbInstanceNodeEndpointsEndpoint["NodeIds"].isNull())
|
||||
endpointObject.nodeIds = dbInstanceNodeEndpointsEndpoint["NodeIds"].asString();
|
||||
if(!dbInstanceNodeEndpointsEndpoint["EndpointId"].isNull())
|
||||
endpointObject.endpointId = dbInstanceNodeEndpointsEndpoint["EndpointId"].asString();
|
||||
if(!dbInstanceNodeEndpointsEndpoint["ReadWeight"].isNull())
|
||||
endpointObject.readWeight = std::stoi(dbInstanceNodeEndpointsEndpoint["ReadWeight"].asString());
|
||||
dbInstance_.endpoints.push_back(endpointObject);
|
||||
}
|
||||
auto allDBNodesNode = dbInstanceNode["DBNodes"]["DBNode"];
|
||||
for (auto dbInstanceNodeDBNodesDBNode : allDBNodesNode)
|
||||
{
|
||||
DbInstance::DBNode dBNodeObject;
|
||||
if(!dbInstanceNodeDBNodesDBNode["DBNodeId"].isNull())
|
||||
dBNodeObject.dBNodeId = dbInstanceNodeDBNodesDBNode["DBNodeId"].asString();
|
||||
if(!dbInstanceNodeDBNodesDBNode["ZoneId"].isNull())
|
||||
dBNodeObject.zoneId = dbInstanceNodeDBNodesDBNode["ZoneId"].asString();
|
||||
if(!dbInstanceNodeDBNodesDBNode["DBNodeStatus"].isNull())
|
||||
dBNodeObject.dBNodeStatus = dbInstanceNodeDBNodesDBNode["DBNodeStatus"].asString();
|
||||
if(!dbInstanceNodeDBNodesDBNode["DBNodeRole"].isNull())
|
||||
dBNodeObject.dBNodeRole = dbInstanceNodeDBNodesDBNode["DBNodeRole"].asString();
|
||||
dbInstance_.dBNodes.push_back(dBNodeObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
DescribeDrdsDBClusterResult::DbInstance DescribeDrdsDBClusterResult::getDbInstance()const
|
||||
{
|
||||
return dbInstance_;
|
||||
}
|
||||
|
||||
bool DescribeDrdsDBClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
73
drds/src/model/DescribeDrdsDbInstanceRequest.cc
Normal file
73
drds/src/model/DescribeDrdsDbInstanceRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/drds/model/DescribeDrdsDbInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Drds::Model::DescribeDrdsDbInstanceRequest;
|
||||
|
||||
DescribeDrdsDbInstanceRequest::DescribeDrdsDbInstanceRequest() :
|
||||
RpcServiceRequest("drds", "2019-01-23", "DescribeDrdsDbInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDrdsDbInstanceRequest::~DescribeDrdsDbInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDrdsDbInstanceRequest::getDrdsInstanceId()const
|
||||
{
|
||||
return drdsInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDbInstanceRequest::setDrdsInstanceId(const std::string& drdsInstanceId)
|
||||
{
|
||||
drdsInstanceId_ = drdsInstanceId;
|
||||
setParameter("DrdsInstanceId", drdsInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDbInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDbInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDbInstanceRequest::getDbName()const
|
||||
{
|
||||
return dbName_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDbInstanceRequest::setDbName(const std::string& dbName)
|
||||
{
|
||||
dbName_ = dbName;
|
||||
setParameter("DbName", dbName);
|
||||
}
|
||||
|
||||
std::string DescribeDrdsDbInstanceRequest::getDbInstanceId()const
|
||||
{
|
||||
return dbInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDrdsDbInstanceRequest::setDbInstanceId(const std::string& dbInstanceId)
|
||||
{
|
||||
dbInstanceId_ = dbInstanceId;
|
||||
setParameter("DbInstanceId", dbInstanceId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user