Support DescribeScheduleTasks.
This commit is contained in:
@@ -51,6 +51,114 @@ PolardbClient::PolardbClient(const std::string & accessKeyId, const std::string
|
||||
PolardbClient::~PolardbClient()
|
||||
{}
|
||||
|
||||
PolardbClient::CancelScheduleTasksOutcome PolardbClient::cancelScheduleTasks(const CancelScheduleTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelScheduleTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelScheduleTasksOutcome(CancelScheduleTasksResult(outcome.result()));
|
||||
else
|
||||
return CancelScheduleTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::cancelScheduleTasksAsync(const CancelScheduleTasksRequest& request, const CancelScheduleTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelScheduleTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::CancelScheduleTasksOutcomeCallable PolardbClient::cancelScheduleTasksCallable(const CancelScheduleTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelScheduleTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelScheduleTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::CheckAccountNameOutcome PolardbClient::checkAccountName(const CheckAccountNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckAccountNameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckAccountNameOutcome(CheckAccountNameResult(outcome.result()));
|
||||
else
|
||||
return CheckAccountNameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::checkAccountNameAsync(const CheckAccountNameRequest& request, const CheckAccountNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkAccountName(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::CheckAccountNameOutcomeCallable PolardbClient::checkAccountNameCallable(const CheckAccountNameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckAccountNameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkAccountName(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::CheckDBNameOutcome PolardbClient::checkDBName(const CheckDBNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CheckDBNameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CheckDBNameOutcome(CheckDBNameResult(outcome.result()));
|
||||
else
|
||||
return CheckDBNameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::checkDBNameAsync(const CheckDBNameRequest& request, const CheckDBNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, checkDBName(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::CheckDBNameOutcomeCallable PolardbClient::checkDBNameCallable(const CheckDBNameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CheckDBNameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->checkDBName(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::CloseDBClusterMigrationOutcome PolardbClient::closeDBClusterMigration(const CloseDBClusterMigrationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -879,6 +987,42 @@ PolardbClient::DescribeBackupsOutcomeCallable PolardbClient::describeBackupsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeCharacterSetNameOutcome PolardbClient::describeCharacterSetName(const DescribeCharacterSetNameRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeCharacterSetNameOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeCharacterSetNameOutcome(DescribeCharacterSetNameResult(outcome.result()));
|
||||
else
|
||||
return DescribeCharacterSetNameOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeCharacterSetNameAsync(const DescribeCharacterSetNameRequest& request, const DescribeCharacterSetNameAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeCharacterSetName(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeCharacterSetNameOutcomeCallable PolardbClient::describeCharacterSetNameCallable(const DescribeCharacterSetNameRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeCharacterSetNameOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeCharacterSetName(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBClusterAccessWhitelistOutcome PolardbClient::describeDBClusterAccessWhitelist(const DescribeDBClusterAccessWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1527,42 @@ PolardbClient::DescribeDBClustersWithBackupsOutcomeCallable PolardbClient::descr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBInitializeVariableOutcome PolardbClient::describeDBInitializeVariable(const DescribeDBInitializeVariableRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBInitializeVariableOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBInitializeVariableOutcome(DescribeDBInitializeVariableResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBInitializeVariableOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeDBInitializeVariableAsync(const DescribeDBInitializeVariableRequest& request, const DescribeDBInitializeVariableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBInitializeVariable(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBInitializeVariableOutcomeCallable PolardbClient::describeDBInitializeVariableCallable(const DescribeDBInitializeVariableRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBInitializeVariableOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBInitializeVariable(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeDBLinksOutcome PolardbClient::describeDBLinks(const DescribeDBLinksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1743,6 +1923,42 @@ PolardbClient::DescribeRegionsOutcomeCallable PolardbClient::describeRegionsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeScheduleTasksOutcome PolardbClient::describeScheduleTasks(const DescribeScheduleTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeScheduleTasksOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeScheduleTasksOutcome(DescribeScheduleTasksResult(outcome.result()));
|
||||
else
|
||||
return DescribeScheduleTasksOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void PolardbClient::describeScheduleTasksAsync(const DescribeScheduleTasksRequest& request, const DescribeScheduleTasksAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeScheduleTasks(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
PolardbClient::DescribeScheduleTasksOutcomeCallable PolardbClient::describeScheduleTasksCallable(const DescribeScheduleTasksRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeScheduleTasksOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeScheduleTasks(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
PolardbClient::DescribeSlowLogRecordsOutcome PolardbClient::describeSlowLogRecords(const DescribeSlowLogRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
106
polardb/src/model/CancelScheduleTasksRequest.cc
Normal file
106
polardb/src/model/CancelScheduleTasksRequest.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/polardb/model/CancelScheduleTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::CancelScheduleTasksRequest;
|
||||
|
||||
CancelScheduleTasksRequest::CancelScheduleTasksRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "CancelScheduleTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelScheduleTasksRequest::~CancelScheduleTasksRequest()
|
||||
{}
|
||||
|
||||
long CancelScheduleTasksRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CancelScheduleTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CancelScheduleTasksRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
}
|
||||
|
||||
std::string CancelScheduleTasksRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CancelScheduleTasksRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string CancelScheduleTasksRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CancelScheduleTasksRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CancelScheduleTasksRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
51
polardb/src/model/CancelScheduleTasksResult.cc
Normal file
51
polardb/src/model/CancelScheduleTasksResult.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/polardb/model/CancelScheduleTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
CancelScheduleTasksResult::CancelScheduleTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelScheduleTasksResult::CancelScheduleTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelScheduleTasksResult::~CancelScheduleTasksResult()
|
||||
{}
|
||||
|
||||
void CancelScheduleTasksResult::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 CancelScheduleTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
106
polardb/src/model/CheckAccountNameRequest.cc
Normal file
106
polardb/src/model/CheckAccountNameRequest.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/polardb/model/CheckAccountNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::CheckAccountNameRequest;
|
||||
|
||||
CheckAccountNameRequest::CheckAccountNameRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "CheckAccountName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckAccountNameRequest::~CheckAccountNameRequest()
|
||||
{}
|
||||
|
||||
long CheckAccountNameRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckAccountNameRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckAccountNameRequest::getAccountName()const
|
||||
{
|
||||
return accountName_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setAccountName(const std::string& accountName)
|
||||
{
|
||||
accountName_ = accountName;
|
||||
setParameter("AccountName", accountName);
|
||||
}
|
||||
|
||||
std::string CheckAccountNameRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckAccountNameRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string CheckAccountNameRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CheckAccountNameRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckAccountNameRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
44
polardb/src/model/CheckAccountNameResult.cc
Normal file
44
polardb/src/model/CheckAccountNameResult.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/polardb/model/CheckAccountNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
CheckAccountNameResult::CheckAccountNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckAccountNameResult::CheckAccountNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckAccountNameResult::~CheckAccountNameResult()
|
||||
{}
|
||||
|
||||
void CheckAccountNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
106
polardb/src/model/CheckDBNameRequest.cc
Normal file
106
polardb/src/model/CheckDBNameRequest.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/polardb/model/CheckDBNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::CheckDBNameRequest;
|
||||
|
||||
CheckDBNameRequest::CheckDBNameRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "CheckDBName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CheckDBNameRequest::~CheckDBNameRequest()
|
||||
{}
|
||||
|
||||
long CheckDBNameRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CheckDBNameRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CheckDBNameRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CheckDBNameRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string CheckDBNameRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long CheckDBNameRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CheckDBNameRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void CheckDBNameRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
44
polardb/src/model/CheckDBNameResult.cc
Normal file
44
polardb/src/model/CheckDBNameResult.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/polardb/model/CheckDBNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
CheckDBNameResult::CheckDBNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckDBNameResult::CheckDBNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckDBNameResult::~CheckDBNameResult()
|
||||
{}
|
||||
|
||||
void CheckDBNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -38,6 +38,17 @@ void CreateAccountRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateAccountRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateAccountRequest::getAccountType()const
|
||||
{
|
||||
return accountType_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void CreateBackupRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateBackupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateBackupRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
|
||||
@@ -49,6 +49,17 @@ void CreateDBLinkRequest::setSourceDBName(const std::string& sourceDBName)
|
||||
setParameter("SourceDBName", sourceDBName);
|
||||
}
|
||||
|
||||
std::string CreateDBLinkRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDBLinkRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string CreateDBLinkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
|
||||
@@ -60,6 +60,17 @@ void CreateDBNodesRequest::setEndpointBindList(const std::string& endpointBindLi
|
||||
setParameter("EndpointBindList", endpointBindList);
|
||||
}
|
||||
|
||||
std::string CreateDBNodesRequest::getPlannedEndTime()const
|
||||
{
|
||||
return plannedEndTime_;
|
||||
}
|
||||
|
||||
void CreateDBNodesRequest::setPlannedEndTime(const std::string& plannedEndTime)
|
||||
{
|
||||
plannedEndTime_ = plannedEndTime;
|
||||
setParameter("PlannedEndTime", plannedEndTime);
|
||||
}
|
||||
|
||||
std::string CreateDBNodesRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -115,6 +126,17 @@ void CreateDBNodesRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateDBNodesRequest::getPlannedStartTime()const
|
||||
{
|
||||
return plannedStartTime_;
|
||||
}
|
||||
|
||||
void CreateDBNodesRequest::setPlannedStartTime(const std::string& plannedStartTime)
|
||||
{
|
||||
plannedStartTime_ = plannedStartTime;
|
||||
setParameter("PlannedStartTime", plannedStartTime);
|
||||
}
|
||||
|
||||
std::vector<CreateDBNodesRequest::DBNode> CreateDBNodesRequest::getDBNode()const
|
||||
{
|
||||
return dBNode_;
|
||||
|
||||
106
polardb/src/model/DescribeCharacterSetNameRequest.cc
Normal file
106
polardb/src/model/DescribeCharacterSetNameRequest.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/polardb/model/DescribeCharacterSetNameRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeCharacterSetNameRequest;
|
||||
|
||||
DescribeCharacterSetNameRequest::DescribeCharacterSetNameRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeCharacterSetName")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeCharacterSetNameRequest::~DescribeCharacterSetNameRequest()
|
||||
{}
|
||||
|
||||
long DescribeCharacterSetNameRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeCharacterSetNameRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeCharacterSetNameRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeCharacterSetNameRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeCharacterSetNameRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeCharacterSetNameRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeCharacterSetNameRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCharacterSetNameRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
59
polardb/src/model/DescribeCharacterSetNameResult.cc
Normal file
59
polardb/src/model/DescribeCharacterSetNameResult.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/polardb/model/DescribeCharacterSetNameResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeCharacterSetNameResult::DescribeCharacterSetNameResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCharacterSetNameResult::DescribeCharacterSetNameResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCharacterSetNameResult::~DescribeCharacterSetNameResult()
|
||||
{}
|
||||
|
||||
void DescribeCharacterSetNameResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCharacterSetNameItems = value["CharacterSetNameItems"]["CharacterSetName"];
|
||||
for (const auto &item : allCharacterSetNameItems)
|
||||
characterSetNameItems_.push_back(item.asString());
|
||||
if(!value["Engine"].isNull())
|
||||
engine_ = value["Engine"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeCharacterSetNameResult::getCharacterSetNameItems()const
|
||||
{
|
||||
return characterSetNameItems_;
|
||||
}
|
||||
|
||||
std::string DescribeCharacterSetNameResult::getEngine()const
|
||||
{
|
||||
return engine_;
|
||||
}
|
||||
|
||||
95
polardb/src/model/DescribeDBInitializeVariableRequest.cc
Normal file
95
polardb/src/model/DescribeDBInitializeVariableRequest.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/polardb/model/DescribeDBInitializeVariableRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeDBInitializeVariableRequest;
|
||||
|
||||
DescribeDBInitializeVariableRequest::DescribeDBInitializeVariableRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeDBInitializeVariable")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBInitializeVariableRequest::~DescribeDBInitializeVariableRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBInitializeVariableRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInitializeVariableRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBInitializeVariableRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBInitializeVariableRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInitializeVariableRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInitializeVariableRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBInitializeVariableRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeDBInitializeVariableRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeDBInitializeVariableRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBInitializeVariableRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBInitializeVariableRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBInitializeVariableRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
75
polardb/src/model/DescribeDBInitializeVariableResult.cc
Normal file
75
polardb/src/model/DescribeDBInitializeVariableResult.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/polardb/model/DescribeDBInitializeVariableResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeDBInitializeVariableResult::DescribeDBInitializeVariableResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBInitializeVariableResult::DescribeDBInitializeVariableResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBInitializeVariableResult::~DescribeDBInitializeVariableResult()
|
||||
{}
|
||||
|
||||
void DescribeDBInitializeVariableResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVariablesNode = value["Variables"]["Variable"];
|
||||
for (auto valueVariablesVariable : allVariablesNode)
|
||||
{
|
||||
Variable variablesObject;
|
||||
if(!valueVariablesVariable["Charset"].isNull())
|
||||
variablesObject.charset = valueVariablesVariable["Charset"].asString();
|
||||
if(!valueVariablesVariable["Collate"].isNull())
|
||||
variablesObject.collate = valueVariablesVariable["Collate"].asString();
|
||||
if(!valueVariablesVariable["Ctype"].isNull())
|
||||
variablesObject.ctype = valueVariablesVariable["Ctype"].asString();
|
||||
variables_.push_back(variablesObject);
|
||||
}
|
||||
if(!value["DBType"].isNull())
|
||||
dBType_ = value["DBType"].asString();
|
||||
if(!value["DBVersion"].isNull())
|
||||
dBVersion_ = value["DBVersion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBInitializeVariableResult::Variable> DescribeDBInitializeVariableResult::getVariables()const
|
||||
{
|
||||
return variables_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInitializeVariableResult::getDBVersion()const
|
||||
{
|
||||
return dBVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeDBInitializeVariableResult::getDBType()const
|
||||
{
|
||||
return dBType_;
|
||||
}
|
||||
|
||||
@@ -71,6 +71,17 @@ void DescribePendingMaintenanceActionsRequest::setSecurityToken(const std::strin
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribePendingMaintenanceActionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribePendingMaintenanceActionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribePendingMaintenanceActionsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
|
||||
117
polardb/src/model/DescribeScheduleTasksRequest.cc
Normal file
117
polardb/src/model/DescribeScheduleTasksRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeScheduleTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Polardb::Model::DescribeScheduleTasksRequest;
|
||||
|
||||
DescribeScheduleTasksRequest::DescribeScheduleTasksRequest() :
|
||||
RpcServiceRequest("polardb", "2017-08-01", "DescribeScheduleTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeScheduleTasksRequest::~DescribeScheduleTasksRequest()
|
||||
{}
|
||||
|
||||
long DescribeScheduleTasksRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getDBClusterId()const
|
||||
{
|
||||
return dBClusterId_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setDBClusterId(const std::string& dBClusterId)
|
||||
{
|
||||
dBClusterId_ = dBClusterId;
|
||||
setParameter("DBClusterId", dBClusterId);
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeScheduleTasksRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeScheduleTasksRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
119
polardb/src/model/DescribeScheduleTasksResult.cc
Normal file
119
polardb/src/model/DescribeScheduleTasksResult.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/polardb/model/DescribeScheduleTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Polardb;
|
||||
using namespace AlibabaCloud::Polardb::Model;
|
||||
|
||||
DescribeScheduleTasksResult::DescribeScheduleTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeScheduleTasksResult::DescribeScheduleTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeScheduleTasksResult::~DescribeScheduleTasksResult()
|
||||
{}
|
||||
|
||||
void DescribeScheduleTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["items"];
|
||||
for (auto valueDataitems : allDataNode)
|
||||
{
|
||||
Items dataObject;
|
||||
if(!valueDataitems["Action"].isNull())
|
||||
dataObject.action = valueDataitems["Action"].asString();
|
||||
if(!valueDataitems["Args"].isNull())
|
||||
dataObject.args = valueDataitems["Args"].asString();
|
||||
if(!valueDataitems["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = std::stol(valueDataitems["GmtCreate"].asString());
|
||||
if(!valueDataitems["GmtModified"].isNull())
|
||||
dataObject.gmtModified = std::stol(valueDataitems["GmtModified"].asString());
|
||||
if(!valueDataitems["DBClusterId"].isNull())
|
||||
dataObject.dBClusterId = valueDataitems["DBClusterId"].asString();
|
||||
if(!valueDataitems["MaxRetryTime"].isNull())
|
||||
dataObject.maxRetryTime = std::stoi(valueDataitems["MaxRetryTime"].asString());
|
||||
if(!valueDataitems["Mutex"].isNull())
|
||||
dataObject.mutex = valueDataitems["Mutex"].asString();
|
||||
if(!valueDataitems["OrderId"].isNull())
|
||||
dataObject.orderId = valueDataitems["OrderId"].asString();
|
||||
if(!valueDataitems["PlannedEndTime"].isNull())
|
||||
dataObject.plannedEndTime = std::stol(valueDataitems["PlannedEndTime"].asString());
|
||||
if(!valueDataitems["PlannedStartTime"].isNull())
|
||||
dataObject.plannedStartTime = std::stol(valueDataitems["PlannedStartTime"].asString());
|
||||
if(!valueDataitems["PlannedTime"].isNull())
|
||||
dataObject.plannedTime = std::stol(valueDataitems["PlannedTime"].asString());
|
||||
if(!valueDataitems["ProductCode"].isNull())
|
||||
dataObject.productCode = valueDataitems["ProductCode"].asString();
|
||||
if(!valueDataitems["Region"].isNull())
|
||||
dataObject.region = valueDataitems["Region"].asString();
|
||||
if(!valueDataitems["Response"].isNull())
|
||||
dataObject.response = valueDataitems["Response"].asString();
|
||||
if(!valueDataitems["RetryTime"].isNull())
|
||||
dataObject.retryTime = std::stoi(valueDataitems["RetryTime"].asString());
|
||||
if(!valueDataitems["Status"].isNull())
|
||||
dataObject.status = valueDataitems["Status"].asString();
|
||||
if(!valueDataitems["TaskId"].isNull())
|
||||
dataObject.taskId = valueDataitems["TaskId"].asString();
|
||||
if(!valueDataitems["Type"].isNull())
|
||||
dataObject.type = std::stoi(valueDataitems["Type"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeScheduleTasksResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<DescribeScheduleTasksResult::Items> DescribeScheduleTasksResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeScheduleTasksResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeScheduleTasksResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void ModifyDBNodeClassRequest::setClientToken(const std::string& clientToken)
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string ModifyDBNodeClassRequest::getPlannedEndTime()const
|
||||
{
|
||||
return plannedEndTime_;
|
||||
}
|
||||
|
||||
void ModifyDBNodeClassRequest::setPlannedEndTime(const std::string& plannedEndTime)
|
||||
{
|
||||
plannedEndTime_ = plannedEndTime;
|
||||
setParameter("PlannedEndTime", plannedEndTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBNodeClassRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -115,6 +126,17 @@ void ModifyDBNodeClassRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBNodeClassRequest::getPlannedStartTime()const
|
||||
{
|
||||
return plannedStartTime_;
|
||||
}
|
||||
|
||||
void ModifyDBNodeClassRequest::setPlannedStartTime(const std::string& plannedStartTime)
|
||||
{
|
||||
plannedStartTime_ = plannedStartTime;
|
||||
setParameter("PlannedStartTime", plannedStartTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBNodeClassRequest::getModifyType()const
|
||||
{
|
||||
return modifyType_;
|
||||
|
||||
@@ -60,6 +60,17 @@ void ModifyPendingMaintenanceActionRequest::setSecurityToken(const std::string&
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyPendingMaintenanceActionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyPendingMaintenanceActionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyPendingMaintenanceActionRequest::getSwitchTime()const
|
||||
{
|
||||
return switchTime_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void UpgradeDBClusterMinorVersionRequest::setResourceOwnerId(long resourceOwnerI
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterMinorVersionRequest::getPlannedEndTime()const
|
||||
{
|
||||
return plannedEndTime_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterMinorVersionRequest::setPlannedEndTime(const std::string& plannedEndTime)
|
||||
{
|
||||
plannedEndTime_ = plannedEndTime;
|
||||
setParameter("PlannedEndTime", plannedEndTime);
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterMinorVersionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
@@ -104,3 +115,25 @@ void UpgradeDBClusterMinorVersionRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string UpgradeDBClusterMinorVersionRequest::getPlannedStartTime()const
|
||||
{
|
||||
return plannedStartTime_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterMinorVersionRequest::setPlannedStartTime(const std::string& plannedStartTime)
|
||||
{
|
||||
plannedStartTime_ = plannedStartTime;
|
||||
setParameter("PlannedStartTime", plannedStartTime);
|
||||
}
|
||||
|
||||
bool UpgradeDBClusterMinorVersionRequest::getFromTimeService()const
|
||||
{
|
||||
return fromTimeService_;
|
||||
}
|
||||
|
||||
void UpgradeDBClusterMinorVersionRequest::setFromTimeService(bool fromTimeService)
|
||||
{
|
||||
fromTimeService_ = fromTimeService;
|
||||
setParameter("FromTimeService", fromTimeService ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user