Supported SQL SERVER support delete backup set according to time range.
This commit is contained in:
@@ -1203,6 +1203,42 @@ RdsClient::DeleteBackupOutcomeCallable RdsClient::deleteBackupCallable(const Del
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteBackupFileOutcome RdsClient::deleteBackupFile(const DeleteBackupFileRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteBackupFileOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteBackupFileOutcome(DeleteBackupFileResult(outcome.result()));
|
||||
else
|
||||
return DeleteBackupFileOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::deleteBackupFileAsync(const DeleteBackupFileRequest& request, const DeleteBackupFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteBackupFile(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DeleteBackupFileOutcomeCallable RdsClient::deleteBackupFileCallable(const DeleteBackupFileRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteBackupFileOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteBackupFile(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DeleteDBInstanceOutcome RdsClient::deleteDBInstance(const DeleteDBInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2571,6 +2607,114 @@ RdsClient::DescribeDBInstancesForCloneOutcomeCallable RdsClient::describeDBInsta
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyOutcome RdsClient::describeDBProxy(const DescribeDBProxyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBProxyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBProxyOutcome(DescribeDBProxyResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBProxyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBProxyAsync(const DescribeDBProxyRequest& request, const DescribeDBProxyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBProxy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyOutcomeCallable RdsClient::describeDBProxyCallable(const DescribeDBProxyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBProxyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBProxy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyEndpointOutcome RdsClient::describeDBProxyEndpoint(const DescribeDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBProxyEndpointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBProxyEndpointOutcome(DescribeDBProxyEndpointResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBProxyEndpointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBProxyEndpointAsync(const DescribeDBProxyEndpointRequest& request, const DescribeDBProxyEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBProxyEndpoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyEndpointOutcomeCallable RdsClient::describeDBProxyEndpointCallable(const DescribeDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBProxyEndpointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBProxyEndpoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyPerformanceOutcome RdsClient::describeDBProxyPerformance(const DescribeDBProxyPerformanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDBProxyPerformanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDBProxyPerformanceOutcome(DescribeDBProxyPerformanceResult(outcome.result()));
|
||||
else
|
||||
return DescribeDBProxyPerformanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeDBProxyPerformanceAsync(const DescribeDBProxyPerformanceRequest& request, const DescribeDBProxyPerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDBProxyPerformance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeDBProxyPerformanceOutcomeCallable RdsClient::describeDBProxyPerformanceCallable(const DescribeDBProxyPerformanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDBProxyPerformanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDBProxyPerformance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeDTCSecurityIpHostsForSQLServerOutcome RdsClient::describeDTCSecurityIpHostsForSQLServer(const DescribeDTCSecurityIpHostsForSQLServerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3039,6 +3183,42 @@ RdsClient::DescribeLogBackupFilesOutcomeCallable RdsClient::describeLogBackupFil
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeMigrateTaskByIdOutcome RdsClient::describeMigrateTaskById(const DescribeMigrateTaskByIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMigrateTaskByIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMigrateTaskByIdOutcome(DescribeMigrateTaskByIdResult(outcome.result()));
|
||||
else
|
||||
return DescribeMigrateTaskByIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::describeMigrateTaskByIdAsync(const DescribeMigrateTaskByIdRequest& request, const DescribeMigrateTaskByIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMigrateTaskById(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::DescribeMigrateTaskByIdOutcomeCallable RdsClient::describeMigrateTaskByIdCallable(const DescribeMigrateTaskByIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMigrateTaskByIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMigrateTaskById(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::DescribeMigrateTasksOutcome RdsClient::describeMigrateTasks(const DescribeMigrateTasksRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4947,6 +5127,114 @@ RdsClient::ModifyDBInstanceTDEOutcomeCallable RdsClient::modifyDBInstanceTDECall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyOutcome RdsClient::modifyDBProxy(const ModifyDBProxyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBProxyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBProxyOutcome(ModifyDBProxyResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBProxyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDBProxyAsync(const ModifyDBProxyRequest& request, const ModifyDBProxyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBProxy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyOutcomeCallable RdsClient::modifyDBProxyCallable(const ModifyDBProxyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBProxyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBProxy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyEndpointOutcome RdsClient::modifyDBProxyEndpoint(const ModifyDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBProxyEndpointOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBProxyEndpointOutcome(ModifyDBProxyEndpointResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBProxyEndpointOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDBProxyEndpointAsync(const ModifyDBProxyEndpointRequest& request, const ModifyDBProxyEndpointAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBProxyEndpoint(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyEndpointOutcomeCallable RdsClient::modifyDBProxyEndpointCallable(const ModifyDBProxyEndpointRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBProxyEndpointOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBProxyEndpoint(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyInstanceOutcome RdsClient::modifyDBProxyInstance(const ModifyDBProxyInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDBProxyInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDBProxyInstanceOutcome(ModifyDBProxyInstanceResult(outcome.result()));
|
||||
else
|
||||
return ModifyDBProxyInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void RdsClient::modifyDBProxyInstanceAsync(const ModifyDBProxyInstanceRequest& request, const ModifyDBProxyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDBProxyInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
RdsClient::ModifyDBProxyInstanceOutcomeCallable RdsClient::modifyDBProxyInstanceCallable(const ModifyDBProxyInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDBProxyInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDBProxyInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
RdsClient::ModifyDTCSecurityIpHostsForSQLServerOutcome RdsClient::modifyDTCSecurityIpHostsForSQLServer(const ModifyDTCSecurityIpHostsForSQLServerRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
128
rds/src/model/DeleteBackupFileRequest.cc
Normal file
128
rds/src/model/DeleteBackupFileRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteBackupFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DeleteBackupFileRequest;
|
||||
|
||||
DeleteBackupFileRequest::DeleteBackupFileRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DeleteBackupFile")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBackupFileRequest::~DeleteBackupFileRequest()
|
||||
{}
|
||||
|
||||
long DeleteBackupFileRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getBackupId()const
|
||||
{
|
||||
return backupId_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setBackupId(const std::string& backupId)
|
||||
{
|
||||
backupId_ = backupId;
|
||||
setCoreParameter("BackupId", backupId);
|
||||
}
|
||||
|
||||
long DeleteBackupFileRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getBackupTime()const
|
||||
{
|
||||
return backupTime_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setBackupTime(const std::string& backupTime)
|
||||
{
|
||||
backupTime_ = backupTime;
|
||||
setCoreParameter("BackupTime", backupTime);
|
||||
}
|
||||
|
||||
std::string DeleteBackupFileRequest::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
void DeleteBackupFileRequest::setDBName(const std::string& dBName)
|
||||
{
|
||||
dBName_ = dBName;
|
||||
setCoreParameter("DBName", dBName);
|
||||
}
|
||||
|
||||
52
rds/src/model/DeleteBackupFileResult.cc
Normal file
52
rds/src/model/DeleteBackupFileResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DeleteBackupFileResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DeleteBackupFileResult::DeleteBackupFileResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBackupFileResult::DeleteBackupFileResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBackupFileResult::~DeleteBackupFileResult()
|
||||
{}
|
||||
|
||||
void DeleteBackupFileResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDeletedBaksetIds = value["DeletedBaksetIds"]["DeletedBaksetIds"];
|
||||
for (const auto &item : allDeletedBaksetIds)
|
||||
deletedBaksetIds_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteBackupFileResult::getDeletedBaksetIds()const
|
||||
{
|
||||
return deletedBaksetIds_;
|
||||
}
|
||||
|
||||
@@ -69,11 +69,25 @@ void DescribeAccountsResult::parse(const std::string &payload)
|
||||
}
|
||||
accounts_.push_back(accountsObject);
|
||||
}
|
||||
if(!value["SystemAdminAccountStatus"].isNull())
|
||||
systemAdminAccountStatus_ = value["SystemAdminAccountStatus"].asString();
|
||||
if(!value["SystemAdminAccountFirstActivationTime"].isNull())
|
||||
systemAdminAccountFirstActivationTime_ = value["SystemAdminAccountFirstActivationTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeAccountsResult::getSystemAdminAccountStatus()const
|
||||
{
|
||||
return systemAdminAccountStatus_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAccountsResult::DBInstanceAccount> DescribeAccountsResult::getAccounts()const
|
||||
{
|
||||
return accounts_;
|
||||
}
|
||||
|
||||
std::string DescribeAccountsResult::getSystemAdminAccountFirstActivationTime()const
|
||||
{
|
||||
return systemAdminAccountFirstActivationTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ void DescribeBackupPolicyResult::parse(const std::string &payload)
|
||||
archiveBackupKeepCount_ = value["ArchiveBackupKeepCount"].asString();
|
||||
if(!value["ReleasedKeepPolicy"].isNull())
|
||||
releasedKeepPolicy_ = value["ReleasedKeepPolicy"].asString();
|
||||
if(!value["LogBackupLocalRetentionNumber"].isNull())
|
||||
logBackupLocalRetentionNumber_ = std::stoi(value["LogBackupLocalRetentionNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -156,6 +158,11 @@ int DescribeBackupPolicyResult::getLogBackupRetentionPeriod()const
|
||||
return logBackupRetentionPeriod_;
|
||||
}
|
||||
|
||||
int DescribeBackupPolicyResult::getLogBackupLocalRetentionNumber()const
|
||||
{
|
||||
return logBackupLocalRetentionNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPolicyResult::getBackupLog()const
|
||||
{
|
||||
return backupLog_;
|
||||
|
||||
@@ -187,6 +187,8 @@ void DescribeDBInstanceAttributeResult::parse(const std::string &payload)
|
||||
itemsObject.multipleTempUpgrade = valueItemsDBInstanceAttribute["MultipleTempUpgrade"].asString() == "true";
|
||||
if(!valueItemsDBInstanceAttribute["OriginConfiguration"].isNull())
|
||||
itemsObject.originConfiguration = valueItemsDBInstanceAttribute["OriginConfiguration"].asString();
|
||||
if(!valueItemsDBInstanceAttribute["DedicatedHostGroupId"].isNull())
|
||||
itemsObject.dedicatedHostGroupId = valueItemsDBInstanceAttribute["DedicatedHostGroupId"].asString();
|
||||
auto allSlaveZonesNode = allItemsNode["SlaveZones"]["SlaveZone"];
|
||||
for (auto allItemsNodeSlaveZonesSlaveZone : allSlaveZonesNode)
|
||||
{
|
||||
|
||||
117
rds/src/model/DescribeDBProxyEndpointRequest.cc
Normal file
117
rds/src/model/DescribeDBProxyEndpointRequest.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/rds/model/DescribeDBProxyEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBProxyEndpointRequest;
|
||||
|
||||
DescribeDBProxyEndpointRequest::DescribeDBProxyEndpointRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBProxyEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBProxyEndpointRequest::~DescribeDBProxyEndpointRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBProxyEndpointRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getDBProxyConnectString()const
|
||||
{
|
||||
return dBProxyConnectString_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setDBProxyConnectString(const std::string& dBProxyConnectString)
|
||||
{
|
||||
dBProxyConnectString_ = dBProxyConnectString;
|
||||
setCoreParameter("DBProxyConnectString", dBProxyConnectString);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBProxyEndpointRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointRequest::getDBProxyEndpointId()const
|
||||
{
|
||||
return dBProxyEndpointId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyEndpointRequest::setDBProxyEndpointId(const std::string& dBProxyEndpointId)
|
||||
{
|
||||
dBProxyEndpointId_ = dBProxyEndpointId;
|
||||
setCoreParameter("DBProxyEndpointId", dBProxyEndpointId);
|
||||
}
|
||||
|
||||
100
rds/src/model/DescribeDBProxyEndpointResult.cc
Normal file
100
rds/src/model/DescribeDBProxyEndpointResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBProxyEndpointResult::DescribeDBProxyEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBProxyEndpointResult::DescribeDBProxyEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBProxyEndpointResult::~DescribeDBProxyEndpointResult()
|
||||
{}
|
||||
|
||||
void DescribeDBProxyEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBProxyEndpointId"].isNull())
|
||||
dBProxyEndpointId_ = value["DBProxyEndpointId"].asString();
|
||||
if(!value["DBProxyConnectString"].isNull())
|
||||
dBProxyConnectString_ = value["DBProxyConnectString"].asString();
|
||||
if(!value["DBProxyConnectStringPort"].isNull())
|
||||
dBProxyConnectStringPort_ = value["DBProxyConnectStringPort"].asString();
|
||||
if(!value["DBProxyConnectStringNetType"].isNull())
|
||||
dBProxyConnectStringNetType_ = value["DBProxyConnectStringNetType"].asString();
|
||||
if(!value["DBProxyFeatures"].isNull())
|
||||
dBProxyFeatures_ = value["DBProxyFeatures"].asString();
|
||||
if(!value["ReadOnlyInstanceMaxDelayTime"].isNull())
|
||||
readOnlyInstanceMaxDelayTime_ = value["ReadOnlyInstanceMaxDelayTime"].asString();
|
||||
if(!value["ReadOnlyInstanceDistributionType"].isNull())
|
||||
readOnlyInstanceDistributionType_ = value["ReadOnlyInstanceDistributionType"].asString();
|
||||
if(!value["ReadOnlyInstanceWeight"].isNull())
|
||||
readOnlyInstanceWeight_ = value["ReadOnlyInstanceWeight"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getReadOnlyInstanceDistributionType()const
|
||||
{
|
||||
return readOnlyInstanceDistributionType_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyConnectString()const
|
||||
{
|
||||
return dBProxyConnectString_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyEndpointId()const
|
||||
{
|
||||
return dBProxyEndpointId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyFeatures()const
|
||||
{
|
||||
return dBProxyFeatures_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getReadOnlyInstanceWeight()const
|
||||
{
|
||||
return readOnlyInstanceWeight_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getReadOnlyInstanceMaxDelayTime()const
|
||||
{
|
||||
return readOnlyInstanceMaxDelayTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyConnectStringNetType()const
|
||||
{
|
||||
return dBProxyConnectStringNetType_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyEndpointResult::getDBProxyConnectStringPort()const
|
||||
{
|
||||
return dBProxyConnectStringPort_;
|
||||
}
|
||||
|
||||
139
rds/src/model/DescribeDBProxyPerformanceRequest.cc
Normal file
139
rds/src/model/DescribeDBProxyPerformanceRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyPerformanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBProxyPerformanceRequest;
|
||||
|
||||
DescribeDBProxyPerformanceRequest::DescribeDBProxyPerformanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBProxyPerformance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBProxyPerformanceRequest::~DescribeDBProxyPerformanceRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBProxyPerformanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getMetricsName()const
|
||||
{
|
||||
return metricsName_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setMetricsName(const std::string& metricsName)
|
||||
{
|
||||
metricsName_ = metricsName;
|
||||
setCoreParameter("MetricsName", metricsName);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeDBProxyPerformanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceRequest::getDBProxyInstanceType()const
|
||||
{
|
||||
return dBProxyInstanceType_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyPerformanceRequest::setDBProxyInstanceType(const std::string& dBProxyInstanceType)
|
||||
{
|
||||
dBProxyInstanceType_ = dBProxyInstanceType;
|
||||
setCoreParameter("DBProxyInstanceType", dBProxyInstanceType);
|
||||
}
|
||||
|
||||
90
rds/src/model/DescribeDBProxyPerformanceResult.cc
Normal file
90
rds/src/model/DescribeDBProxyPerformanceResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/DescribeDBProxyPerformanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBProxyPerformanceResult::DescribeDBProxyPerformanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBProxyPerformanceResult::DescribeDBProxyPerformanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBProxyPerformanceResult::~DescribeDBProxyPerformanceResult()
|
||||
{}
|
||||
|
||||
void DescribeDBProxyPerformanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPerformanceKeysNode = value["PerformanceKeys"]["PerformanceKey"];
|
||||
for (auto valuePerformanceKeysPerformanceKey : allPerformanceKeysNode)
|
||||
{
|
||||
PerformanceKey performanceKeysObject;
|
||||
if(!valuePerformanceKeysPerformanceKey["Key"].isNull())
|
||||
performanceKeysObject.key = valuePerformanceKeysPerformanceKey["Key"].asString();
|
||||
if(!valuePerformanceKeysPerformanceKey["ValueFormat"].isNull())
|
||||
performanceKeysObject.valueFormat = valuePerformanceKeysPerformanceKey["ValueFormat"].asString();
|
||||
auto allValuesNode = allPerformanceKeysNode["Values"]["PerformanceValue"];
|
||||
for (auto allPerformanceKeysNodeValuesPerformanceValue : allValuesNode)
|
||||
{
|
||||
PerformanceKey::PerformanceValue valuesObject;
|
||||
if(!allPerformanceKeysNodeValuesPerformanceValue["Value"].isNull())
|
||||
valuesObject.value = allPerformanceKeysNodeValuesPerformanceValue["Value"].asString();
|
||||
if(!allPerformanceKeysNodeValuesPerformanceValue["Date"].isNull())
|
||||
valuesObject.date = allPerformanceKeysNodeValuesPerformanceValue["Date"].asString();
|
||||
performanceKeysObject.values.push_back(valuesObject);
|
||||
}
|
||||
performanceKeys_.push_back(performanceKeysObject);
|
||||
}
|
||||
if(!value["DBInstanceId"].isNull())
|
||||
dBInstanceId_ = value["DBInstanceId"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDBProxyPerformanceResult::PerformanceKey> DescribeDBProxyPerformanceResult::getPerformanceKeys()const
|
||||
{
|
||||
return performanceKeys_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceResult::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyPerformanceResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
95
rds/src/model/DescribeDBProxyRequest.cc
Normal file
95
rds/src/model/DescribeDBProxyRequest.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/rds/model/DescribeDBProxyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeDBProxyRequest;
|
||||
|
||||
DescribeDBProxyRequest::DescribeDBProxyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeDBProxy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDBProxyRequest::~DescribeDBProxyRequest()
|
||||
{}
|
||||
|
||||
long DescribeDBProxyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeDBProxyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeDBProxyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
93
rds/src/model/DescribeDBProxyResult.cc
Normal file
93
rds/src/model/DescribeDBProxyResult.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/rds/model/DescribeDBProxyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeDBProxyResult::DescribeDBProxyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDBProxyResult::DescribeDBProxyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDBProxyResult::~DescribeDBProxyResult()
|
||||
{}
|
||||
|
||||
void DescribeDBProxyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDBProxyConnectStringItemsNode = value["DBProxyConnectStringItems"]["DBProxyConnectStringItemsItem"];
|
||||
for (auto valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem : allDBProxyConnectStringItemsNode)
|
||||
{
|
||||
DBProxyConnectStringItemsItem dBProxyConnectStringItemsObject;
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyEndpointId"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyEndpointId = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyEndpointId"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectString"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyConnectString = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectString"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringPort"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyConnectStringPort = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringPort"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringNetType"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyConnectStringNetType = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyConnectStringNetType"].asString();
|
||||
if(!valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyVpcInstanceId"].isNull())
|
||||
dBProxyConnectStringItemsObject.dBProxyVpcInstanceId = valueDBProxyConnectStringItemsDBProxyConnectStringItemsItem["DBProxyVpcInstanceId"].asString();
|
||||
dBProxyConnectStringItems_.push_back(dBProxyConnectStringItemsObject);
|
||||
}
|
||||
if(!value["DBProxyServiceStatus"].isNull())
|
||||
dBProxyServiceStatus_ = value["DBProxyServiceStatus"].asString();
|
||||
if(!value["DBProxyInstanceType"].isNull())
|
||||
dBProxyInstanceType_ = value["DBProxyInstanceType"].asString();
|
||||
if(!value["DBProxyInstanceNum"].isNull())
|
||||
dBProxyInstanceNum_ = std::stoi(value["DBProxyInstanceNum"].asString());
|
||||
if(!value["DBProxyInstanceStatus"].isNull())
|
||||
dBProxyInstanceStatus_ = value["DBProxyInstanceStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyResult::getDBProxyServiceStatus()const
|
||||
{
|
||||
return dBProxyServiceStatus_;
|
||||
}
|
||||
|
||||
int DescribeDBProxyResult::getDBProxyInstanceNum()const
|
||||
{
|
||||
return dBProxyInstanceNum_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDBProxyResult::DBProxyConnectStringItemsItem> DescribeDBProxyResult::getDBProxyConnectStringItems()const
|
||||
{
|
||||
return dBProxyConnectStringItems_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyResult::getDBProxyInstanceStatus()const
|
||||
{
|
||||
return dBProxyInstanceStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeDBProxyResult::getDBProxyInstanceType()const
|
||||
{
|
||||
return dBProxyInstanceType_;
|
||||
}
|
||||
|
||||
95
rds/src/model/DescribeMigrateTaskByIdRequest.cc
Normal file
95
rds/src/model/DescribeMigrateTaskByIdRequest.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/rds/model/DescribeMigrateTaskByIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::DescribeMigrateTaskByIdRequest;
|
||||
|
||||
DescribeMigrateTaskByIdRequest::DescribeMigrateTaskByIdRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "DescribeMigrateTaskById")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeMigrateTaskByIdRequest::~DescribeMigrateTaskByIdRequest()
|
||||
{}
|
||||
|
||||
long DescribeMigrateTaskByIdRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeMigrateTaskByIdRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdRequest::getMigrateTaskId()const
|
||||
{
|
||||
return migrateTaskId_;
|
||||
}
|
||||
|
||||
void DescribeMigrateTaskByIdRequest::setMigrateTaskId(const std::string& migrateTaskId)
|
||||
{
|
||||
migrateTaskId_ = migrateTaskId;
|
||||
setCoreParameter("MigrateTaskId", migrateTaskId);
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeMigrateTaskByIdRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long DescribeMigrateTaskByIdRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeMigrateTaskByIdRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeMigrateTaskByIdRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribeMigrateTaskByIdRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
107
rds/src/model/DescribeMigrateTaskByIdResult.cc
Normal file
107
rds/src/model/DescribeMigrateTaskByIdResult.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/rds/model/DescribeMigrateTaskByIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
DescribeMigrateTaskByIdResult::DescribeMigrateTaskByIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeMigrateTaskByIdResult::DescribeMigrateTaskByIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeMigrateTaskByIdResult::~DescribeMigrateTaskByIdResult()
|
||||
{}
|
||||
|
||||
void DescribeMigrateTaskByIdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DBInstanceName"].isNull())
|
||||
dBInstanceName_ = value["DBInstanceName"].asString();
|
||||
if(!value["DBName"].isNull())
|
||||
dBName_ = value["DBName"].asString();
|
||||
if(!value["MigrateTaskId"].isNull())
|
||||
migrateTaskId_ = value["MigrateTaskId"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
createTime_ = value["CreateTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["BackupMode"].isNull())
|
||||
backupMode_ = value["BackupMode"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
status_ = value["Status"].asString();
|
||||
if(!value["IsDBReplaced"].isNull())
|
||||
isDBReplaced_ = value["IsDBReplaced"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
description_ = value["Description"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getMigrateTaskId()const
|
||||
{
|
||||
return migrateTaskId_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getCreateTime()const
|
||||
{
|
||||
return createTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getBackupMode()const
|
||||
{
|
||||
return backupMode_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getIsDBReplaced()const
|
||||
{
|
||||
return isDBReplaced_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getDBName()const
|
||||
{
|
||||
return dBName_;
|
||||
}
|
||||
|
||||
std::string DescribeMigrateTaskByIdResult::getDBInstanceName()const
|
||||
{
|
||||
return dBInstanceName_;
|
||||
}
|
||||
|
||||
@@ -65,6 +65,8 @@ void DescribeParameterGroupsResult::parse(const std::string &payload)
|
||||
parameterGroupsObject.parameterGroupId = valueParameterGroupsParameterGroup["ParameterGroupId"].asString();
|
||||
parameterGroups_.push_back(parameterGroupsObject);
|
||||
}
|
||||
if(!value["SignalForOptimizeParams"].isNull())
|
||||
signalForOptimizeParams_ = value["SignalForOptimizeParams"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
@@ -73,3 +75,8 @@ std::vector<DescribeParameterGroupsResult::ParameterGroup> DescribeParameterGrou
|
||||
return parameterGroups_;
|
||||
}
|
||||
|
||||
bool DescribeParameterGroupsResult::getSignalForOptimizeParams()const
|
||||
{
|
||||
return signalForOptimizeParams_;
|
||||
}
|
||||
|
||||
|
||||
@@ -104,6 +104,28 @@ void DescribePriceRequest::setEngine(const std::string& engine)
|
||||
setCoreParameter("Engine", engine);
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void DescribePriceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string DescribePriceRequest::getDBInstanceStorageType()const
|
||||
{
|
||||
return dBInstanceStorageType_;
|
||||
}
|
||||
|
||||
void DescribePriceRequest::setDBInstanceStorageType(const std::string& dBInstanceStorageType)
|
||||
{
|
||||
dBInstanceStorageType_ = dBInstanceStorageType;
|
||||
setCoreParameter("DBInstanceStorageType", dBInstanceStorageType);
|
||||
}
|
||||
|
||||
int DescribePriceRequest::getQuantity()const
|
||||
{
|
||||
return quantity_;
|
||||
|
||||
@@ -115,6 +115,17 @@ void ModifyBackupPolicyRequest::setHighSpaceUsageProtection(const std::string& h
|
||||
setCoreParameter("HighSpaceUsageProtection", highSpaceUsageProtection);
|
||||
}
|
||||
|
||||
int ModifyBackupPolicyRequest::getLogBackupLocalRetentionNumber()const
|
||||
{
|
||||
return logBackupLocalRetentionNumber_;
|
||||
}
|
||||
|
||||
void ModifyBackupPolicyRequest::setLogBackupLocalRetentionNumber(int logBackupLocalRetentionNumber)
|
||||
{
|
||||
logBackupLocalRetentionNumber_ = logBackupLocalRetentionNumber;
|
||||
setCoreParameter("LogBackupLocalRetentionNumber", std::to_string(logBackupLocalRetentionNumber));
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
|
||||
@@ -51,9 +51,16 @@ void ModifyBackupPolicyResult::parse(const std::string &payload)
|
||||
highSpaceUsageProtection_ = value["HighSpaceUsageProtection"].asString();
|
||||
if(!value["CompressType"].isNull())
|
||||
compressType_ = value["CompressType"].asString();
|
||||
if(!value["LogBackupLocalRetentionNumber"].isNull())
|
||||
logBackupLocalRetentionNumber_ = std::stoi(value["LogBackupLocalRetentionNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
int ModifyBackupPolicyResult::getLogBackupLocalRetentionNumber()const
|
||||
{
|
||||
return logBackupLocalRetentionNumber_;
|
||||
}
|
||||
|
||||
std::string ModifyBackupPolicyResult::getDBInstanceID()const
|
||||
{
|
||||
return dBInstanceID_;
|
||||
|
||||
@@ -104,15 +104,15 @@ void ModifyDBInstancePayTypeRequest::setAgentId(const std::string& agentId)
|
||||
setCoreParameter("AgentId", agentId);
|
||||
}
|
||||
|
||||
std::string ModifyDBInstancePayTypeRequest::getAutoPay()const
|
||||
bool ModifyDBInstancePayTypeRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void ModifyDBInstancePayTypeRequest::setAutoPay(const std::string& autoPay)
|
||||
void ModifyDBInstancePayTypeRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setCoreParameter("AutoPay", autoPay);
|
||||
setCoreParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyDBInstancePayTypeRequest::getResourceOwnerAccount()const
|
||||
|
||||
150
rds/src/model/ModifyDBProxyEndpointRequest.cc
Normal file
150
rds/src/model/ModifyDBProxyEndpointRequest.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/rds/model/ModifyDBProxyEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDBProxyEndpointRequest;
|
||||
|
||||
ModifyDBProxyEndpointRequest::ModifyDBProxyEndpointRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDBProxyEndpoint")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBProxyEndpointRequest::~ModifyDBProxyEndpointRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBProxyEndpointRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getConfigDBProxyFeatures()const
|
||||
{
|
||||
return configDBProxyFeatures_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setConfigDBProxyFeatures(const std::string& configDBProxyFeatures)
|
||||
{
|
||||
configDBProxyFeatures_ = configDBProxyFeatures;
|
||||
setCoreParameter("ConfigDBProxyFeatures", configDBProxyFeatures);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getReadOnlyInstanceWeight()const
|
||||
{
|
||||
return readOnlyInstanceWeight_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setReadOnlyInstanceWeight(const std::string& readOnlyInstanceWeight)
|
||||
{
|
||||
readOnlyInstanceWeight_ = readOnlyInstanceWeight;
|
||||
setCoreParameter("ReadOnlyInstanceWeight", readOnlyInstanceWeight);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getReadOnlyInstanceMaxDelayTime()const
|
||||
{
|
||||
return readOnlyInstanceMaxDelayTime_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setReadOnlyInstanceMaxDelayTime(const std::string& readOnlyInstanceMaxDelayTime)
|
||||
{
|
||||
readOnlyInstanceMaxDelayTime_ = readOnlyInstanceMaxDelayTime;
|
||||
setCoreParameter("ReadOnlyInstanceMaxDelayTime", readOnlyInstanceMaxDelayTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBProxyEndpointRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getDBProxyEndpointId()const
|
||||
{
|
||||
return dBProxyEndpointId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setDBProxyEndpointId(const std::string& dBProxyEndpointId)
|
||||
{
|
||||
dBProxyEndpointId_ = dBProxyEndpointId;
|
||||
setCoreParameter("DBProxyEndpointId", dBProxyEndpointId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyEndpointRequest::getReadOnlyInstanceDistributionType()const
|
||||
{
|
||||
return readOnlyInstanceDistributionType_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyEndpointRequest::setReadOnlyInstanceDistributionType(const std::string& readOnlyInstanceDistributionType)
|
||||
{
|
||||
readOnlyInstanceDistributionType_ = readOnlyInstanceDistributionType;
|
||||
setCoreParameter("ReadOnlyInstanceDistributionType", readOnlyInstanceDistributionType);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDBProxyEndpointResult.cc
Normal file
44
rds/src/model/ModifyDBProxyEndpointResult.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/rds/model/ModifyDBProxyEndpointResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyDBProxyEndpointResult::ModifyDBProxyEndpointResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBProxyEndpointResult::ModifyDBProxyEndpointResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBProxyEndpointResult::~ModifyDBProxyEndpointResult()
|
||||
{}
|
||||
|
||||
void ModifyDBProxyEndpointResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
139
rds/src/model/ModifyDBProxyInstanceRequest.cc
Normal file
139
rds/src/model/ModifyDBProxyInstanceRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/rds/model/ModifyDBProxyInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDBProxyInstanceRequest;
|
||||
|
||||
ModifyDBProxyInstanceRequest::ModifyDBProxyInstanceRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDBProxyInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBProxyInstanceRequest::~ModifyDBProxyInstanceRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBProxyInstanceRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getEffectiveTime()const
|
||||
{
|
||||
return effectiveTime_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setEffectiveTime(const std::string& effectiveTime)
|
||||
{
|
||||
effectiveTime_ = effectiveTime;
|
||||
setCoreParameter("EffectiveTime", effectiveTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getEffectiveSpecificTime()const
|
||||
{
|
||||
return effectiveSpecificTime_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setEffectiveSpecificTime(const std::string& effectiveSpecificTime)
|
||||
{
|
||||
effectiveSpecificTime_ = effectiveSpecificTime;
|
||||
setCoreParameter("EffectiveSpecificTime", effectiveSpecificTime);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBProxyInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getDBProxyInstanceNum()const
|
||||
{
|
||||
return dBProxyInstanceNum_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setDBProxyInstanceNum(const std::string& dBProxyInstanceNum)
|
||||
{
|
||||
dBProxyInstanceNum_ = dBProxyInstanceNum;
|
||||
setCoreParameter("DBProxyInstanceNum", dBProxyInstanceNum);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyInstanceRequest::getDBProxyInstanceType()const
|
||||
{
|
||||
return dBProxyInstanceType_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyInstanceRequest::setDBProxyInstanceType(const std::string& dBProxyInstanceType)
|
||||
{
|
||||
dBProxyInstanceType_ = dBProxyInstanceType;
|
||||
setCoreParameter("DBProxyInstanceType", dBProxyInstanceType);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDBProxyInstanceResult.cc
Normal file
44
rds/src/model/ModifyDBProxyInstanceResult.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/rds/model/ModifyDBProxyInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyDBProxyInstanceResult::ModifyDBProxyInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBProxyInstanceResult::ModifyDBProxyInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBProxyInstanceResult::~ModifyDBProxyInstanceResult()
|
||||
{}
|
||||
|
||||
void ModifyDBProxyInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
150
rds/src/model/ModifyDBProxyRequest.cc
Normal file
150
rds/src/model/ModifyDBProxyRequest.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/rds/model/ModifyDBProxyRequest.h>
|
||||
|
||||
using AlibabaCloud::Rds::Model::ModifyDBProxyRequest;
|
||||
|
||||
ModifyDBProxyRequest::ModifyDBProxyRequest() :
|
||||
RpcServiceRequest("rds", "2014-08-15", "ModifyDBProxy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDBProxyRequest::~ModifyDBProxyRequest()
|
||||
{}
|
||||
|
||||
long ModifyDBProxyRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getDBInstanceId()const
|
||||
{
|
||||
return dBInstanceId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setDBInstanceId(const std::string& dBInstanceId)
|
||||
{
|
||||
dBInstanceId_ = dBInstanceId;
|
||||
setCoreParameter("DBInstanceId", dBInstanceId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
long ModifyDBProxyRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getDBProxyInstanceNum()const
|
||||
{
|
||||
return dBProxyInstanceNum_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setDBProxyInstanceNum(const std::string& dBProxyInstanceNum)
|
||||
{
|
||||
dBProxyInstanceNum_ = dBProxyInstanceNum;
|
||||
setCoreParameter("DBProxyInstanceNum", dBProxyInstanceNum);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getConfigDBProxyService()const
|
||||
{
|
||||
return configDBProxyService_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setConfigDBProxyService(const std::string& configDBProxyService)
|
||||
{
|
||||
configDBProxyService_ = configDBProxyService;
|
||||
setCoreParameter("ConfigDBProxyService", configDBProxyService);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setCoreParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getVPCId()const
|
||||
{
|
||||
return vPCId_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setVPCId(const std::string& vPCId)
|
||||
{
|
||||
vPCId_ = vPCId;
|
||||
setCoreParameter("VPCId", vPCId);
|
||||
}
|
||||
|
||||
std::string ModifyDBProxyRequest::getInstanceNetworkType()const
|
||||
{
|
||||
return instanceNetworkType_;
|
||||
}
|
||||
|
||||
void ModifyDBProxyRequest::setInstanceNetworkType(const std::string& instanceNetworkType)
|
||||
{
|
||||
instanceNetworkType_ = instanceNetworkType;
|
||||
setCoreParameter("InstanceNetworkType", instanceNetworkType);
|
||||
}
|
||||
|
||||
44
rds/src/model/ModifyDBProxyResult.cc
Normal file
44
rds/src/model/ModifyDBProxyResult.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/rds/model/ModifyDBProxyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Rds;
|
||||
using namespace AlibabaCloud::Rds::Model;
|
||||
|
||||
ModifyDBProxyResult::ModifyDBProxyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDBProxyResult::ModifyDBProxyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDBProxyResult::~ModifyDBProxyResult()
|
||||
{}
|
||||
|
||||
void ModifyDBProxyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user