regenerate code
This commit is contained in:
@@ -123,6 +123,42 @@ HBaseClient::ConvertInstanceOutcomeCallable HBaseClient::convertInstanceCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateBackupPlanOutcome HBaseClient::createBackupPlan(const CreateBackupPlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBackupPlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBackupPlanOutcome(CreateBackupPlanResult(outcome.result()));
|
||||
else
|
||||
return CreateBackupPlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::createBackupPlanAsync(const CreateBackupPlanRequest& request, const CreateBackupPlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBackupPlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::CreateBackupPlanOutcomeCallable HBaseClient::createBackupPlanCallable(const CreateBackupPlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBackupPlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBackupPlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateClusterOutcome HBaseClient::createCluster(const CreateClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +267,42 @@ HBaseClient::CreateInstanceOutcomeCallable HBaseClient::createInstanceCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::CreateRestorePlanOutcome HBaseClient::createRestorePlan(const CreateRestorePlanRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateRestorePlanOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateRestorePlanOutcome(CreateRestorePlanResult(outcome.result()));
|
||||
else
|
||||
return CreateRestorePlanOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::createRestorePlanAsync(const CreateRestorePlanRequest& request, const CreateRestorePlanAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createRestorePlan(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::CreateRestorePlanOutcomeCallable HBaseClient::createRestorePlanCallable(const CreateRestorePlanRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateRestorePlanOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createRestorePlan(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DeleteHbaseHaSlbOutcome HBaseClient::deleteHbaseHaSlb(const DeleteHbaseHaSlbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -339,6 +411,150 @@ HBaseClient::DeleteUserHdfsInfoOutcomeCallable HBaseClient::deleteUserHdfsInfoCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupPlanConfigOutcome HBaseClient::describeBackupPlanConfig(const DescribeBackupPlanConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupPlanConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupPlanConfigOutcome(DescribeBackupPlanConfigResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupPlanConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeBackupPlanConfigAsync(const DescribeBackupPlanConfigRequest& request, const DescribeBackupPlanConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupPlanConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupPlanConfigOutcomeCallable HBaseClient::describeBackupPlanConfigCallable(const DescribeBackupPlanConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupPlanConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupPlanConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupStatusOutcome HBaseClient::describeBackupStatus(const DescribeBackupStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupStatusOutcome(DescribeBackupStatusResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeBackupStatusAsync(const DescribeBackupStatusRequest& request, const DescribeBackupStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupStatusOutcomeCallable HBaseClient::describeBackupStatusCallable(const DescribeBackupStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupSummaryOutcome HBaseClient::describeBackupSummary(const DescribeBackupSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupSummaryOutcome(DescribeBackupSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeBackupSummaryAsync(const DescribeBackupSummaryRequest& request, const DescribeBackupSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupSummaryOutcomeCallable HBaseClient::describeBackupSummaryCallable(const DescribeBackupSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupTablesOutcome HBaseClient::describeBackupTables(const DescribeBackupTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeBackupTablesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeBackupTablesOutcome(DescribeBackupTablesResult(outcome.result()));
|
||||
else
|
||||
return DescribeBackupTablesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeBackupTablesAsync(const DescribeBackupTablesRequest& request, const DescribeBackupTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeBackupTables(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeBackupTablesOutcomeCallable HBaseClient::describeBackupTablesCallable(const DescribeBackupTablesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeBackupTablesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeBackupTables(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeDBInstanceUsageOutcome HBaseClient::describeDBInstanceUsage(const DescribeDBInstanceUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,6 +771,42 @@ HBaseClient::DescribeIpWhitelistOutcomeCallable HBaseClient::describeIpWhitelist
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRecoverableTimeRangeOutcome HBaseClient::describeRecoverableTimeRange(const DescribeRecoverableTimeRangeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRecoverableTimeRangeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRecoverableTimeRangeOutcome(DescribeRecoverableTimeRangeResult(outcome.result()));
|
||||
else
|
||||
return DescribeRecoverableTimeRangeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRecoverableTimeRangeAsync(const DescribeRecoverableTimeRangeRequest& request, const DescribeRecoverableTimeRangeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRecoverableTimeRange(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRecoverableTimeRangeOutcomeCallable HBaseClient::describeRecoverableTimeRangeCallable(const DescribeRecoverableTimeRangeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRecoverableTimeRangeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRecoverableTimeRange(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRegionsOutcome HBaseClient::describeRegions(const DescribeRegionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -591,6 +843,78 @@ HBaseClient::DescribeRegionsOutcomeCallable HBaseClient::describeRegionsCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSummaryOutcome HBaseClient::describeRestoreSummary(const DescribeRestoreSummaryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreSummaryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreSummaryOutcome(DescribeRestoreSummaryResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreSummaryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreSummaryAsync(const DescribeRestoreSummaryRequest& request, const DescribeRestoreSummaryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreSummary(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreSummaryOutcomeCallable HBaseClient::describeRestoreSummaryCallable(const DescribeRestoreSummaryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreSummaryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreSummary(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreTablesOutcome HBaseClient::describeRestoreTables(const DescribeRestoreTablesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeRestoreTablesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeRestoreTablesOutcome(DescribeRestoreTablesResult(outcome.result()));
|
||||
else
|
||||
return DescribeRestoreTablesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeRestoreTablesAsync(const DescribeRestoreTablesRequest& request, const DescribeRestoreTablesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeRestoreTables(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeRestoreTablesOutcomeCallable HBaseClient::describeRestoreTablesCallable(const DescribeRestoreTablesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeRestoreTablesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeRestoreTables(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeSecurityGroupsOutcome HBaseClient::describeSecurityGroups(const DescribeSecurityGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -627,6 +951,42 @@ HBaseClient::DescribeSecurityGroupsOutcomeCallable HBaseClient::describeSecurity
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::EnableHBaseueBackupOutcome HBaseClient::enableHBaseueBackup(const EnableHBaseueBackupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableHBaseueBackupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableHBaseueBackupOutcome(EnableHBaseueBackupResult(outcome.result()));
|
||||
else
|
||||
return EnableHBaseueBackupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::enableHBaseueBackupAsync(const EnableHBaseueBackupRequest& request, const EnableHBaseueBackupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableHBaseueBackup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::EnableHBaseueBackupOutcomeCallable HBaseClient::enableHBaseueBackupCallable(const EnableHBaseueBackupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableHBaseueBackupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableHBaseueBackup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ListTagResourcesOutcome HBaseClient::listTagResources(const ListTagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +1059,42 @@ HBaseClient::ListTagsOutcomeCallable HBaseClient::listTagsCallable(const ListTag
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ModifyBackupPlanConfigOutcome HBaseClient::modifyBackupPlanConfig(const ModifyBackupPlanConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyBackupPlanConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyBackupPlanConfigOutcome(ModifyBackupPlanConfigResult(outcome.result()));
|
||||
else
|
||||
return ModifyBackupPlanConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::modifyBackupPlanConfigAsync(const ModifyBackupPlanConfigRequest& request, const ModifyBackupPlanConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyBackupPlanConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::ModifyBackupPlanConfigOutcomeCallable HBaseClient::modifyBackupPlanConfigCallable(const ModifyBackupPlanConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyBackupPlanConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyBackupPlanConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ModifyClusterDeletionProtectionOutcome HBaseClient::modifyClusterDeletionProtection(const ModifyClusterDeletionProtectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
40
hbase/src/model/CreateBackupPlanRequest.cc
Normal file
40
hbase/src/model/CreateBackupPlanRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/CreateBackupPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::CreateBackupPlanRequest;
|
||||
|
||||
CreateBackupPlanRequest::CreateBackupPlanRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "CreateBackupPlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBackupPlanRequest::~CreateBackupPlanRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBackupPlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateBackupPlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
44
hbase/src/model/CreateBackupPlanResult.cc
Normal file
44
hbase/src/model/CreateBackupPlanResult.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/hbase/model/CreateBackupPlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBackupPlanResult::CreateBackupPlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBackupPlanResult::~CreateBackupPlanResult()
|
||||
{}
|
||||
|
||||
void CreateBackupPlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
95
hbase/src/model/CreateRestorePlanRequest.cc
Normal file
95
hbase/src/model/CreateRestorePlanRequest.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/hbase/model/CreateRestorePlanRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::CreateRestorePlanRequest;
|
||||
|
||||
CreateRestorePlanRequest::CreateRestorePlanRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "CreateRestorePlan")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRestorePlanRequest::~CreateRestorePlanRequest()
|
||||
{}
|
||||
|
||||
std::string CreateRestorePlanRequest::getRestoreToDate()const
|
||||
{
|
||||
return restoreToDate_;
|
||||
}
|
||||
|
||||
void CreateRestorePlanRequest::setRestoreToDate(const std::string& restoreToDate)
|
||||
{
|
||||
restoreToDate_ = restoreToDate;
|
||||
setParameter("RestoreToDate", restoreToDate);
|
||||
}
|
||||
|
||||
std::string CreateRestorePlanRequest::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
void CreateRestorePlanRequest::setTables(const std::string& tables)
|
||||
{
|
||||
tables_ = tables;
|
||||
setParameter("Tables", tables);
|
||||
}
|
||||
|
||||
bool CreateRestorePlanRequest::getRestoreByCopy()const
|
||||
{
|
||||
return restoreByCopy_;
|
||||
}
|
||||
|
||||
void CreateRestorePlanRequest::setRestoreByCopy(bool restoreByCopy)
|
||||
{
|
||||
restoreByCopy_ = restoreByCopy;
|
||||
setParameter("RestoreByCopy", restoreByCopy ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateRestorePlanRequest::getRestoreAllTable()const
|
||||
{
|
||||
return restoreAllTable_;
|
||||
}
|
||||
|
||||
void CreateRestorePlanRequest::setRestoreAllTable(bool restoreAllTable)
|
||||
{
|
||||
restoreAllTable_ = restoreAllTable;
|
||||
setParameter("RestoreAllTable", restoreAllTable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateRestorePlanRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateRestorePlanRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateRestorePlanRequest::getTargetClusterId()const
|
||||
{
|
||||
return targetClusterId_;
|
||||
}
|
||||
|
||||
void CreateRestorePlanRequest::setTargetClusterId(const std::string& targetClusterId)
|
||||
{
|
||||
targetClusterId_ = targetClusterId;
|
||||
setParameter("TargetClusterId", targetClusterId);
|
||||
}
|
||||
|
||||
44
hbase/src/model/CreateRestorePlanResult.cc
Normal file
44
hbase/src/model/CreateRestorePlanResult.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/hbase/model/CreateRestorePlanResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
CreateRestorePlanResult::CreateRestorePlanResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateRestorePlanResult::CreateRestorePlanResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateRestorePlanResult::~CreateRestorePlanResult()
|
||||
{}
|
||||
|
||||
void CreateRestorePlanResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
40
hbase/src/model/DescribeBackupPlanConfigRequest.cc
Normal file
40
hbase/src/model/DescribeBackupPlanConfigRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeBackupPlanConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeBackupPlanConfigRequest;
|
||||
|
||||
DescribeBackupPlanConfigRequest::DescribeBackupPlanConfigRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeBackupPlanConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupPlanConfigRequest::~DescribeBackupPlanConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupPlanConfigRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupPlanConfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
73
hbase/src/model/DescribeBackupPlanConfigResult.cc
Normal file
73
hbase/src/model/DescribeBackupPlanConfigResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeBackupPlanConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeBackupPlanConfigResult::DescribeBackupPlanConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupPlanConfigResult::DescribeBackupPlanConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupPlanConfigResult::~DescribeBackupPlanConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupPlanConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
if(!value["FullBackupCycle"].isNull())
|
||||
fullBackupCycle_ = std::stoi(value["FullBackupCycle"].asString());
|
||||
if(!value["MinHFileBackupCount"].isNull())
|
||||
minHFileBackupCount_ = std::stoi(value["MinHFileBackupCount"].asString());
|
||||
if(!value["NextFullBackupDate"].isNull())
|
||||
nextFullBackupDate_ = value["NextFullBackupDate"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeBackupPlanConfigResult::getFullBackupCycle()const
|
||||
{
|
||||
return fullBackupCycle_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupPlanConfigResult::getNextFullBackupDate()const
|
||||
{
|
||||
return nextFullBackupDate_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeBackupPlanConfigResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
int DescribeBackupPlanConfigResult::getMinHFileBackupCount()const
|
||||
{
|
||||
return minHFileBackupCount_;
|
||||
}
|
||||
|
||||
40
hbase/src/model/DescribeBackupStatusRequest.cc
Normal file
40
hbase/src/model/DescribeBackupStatusRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeBackupStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeBackupStatusRequest;
|
||||
|
||||
DescribeBackupStatusRequest::DescribeBackupStatusRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeBackupStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupStatusRequest::~DescribeBackupStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupStatusRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupStatusRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
65
hbase/src/model/DescribeBackupStatusResult.cc
Normal file
65
hbase/src/model/DescribeBackupStatusResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeBackupStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeBackupStatusResult::DescribeBackupStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupStatusResult::DescribeBackupStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupStatusResult::~DescribeBackupStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["BackupStatus"].isNull())
|
||||
backupStatus_ = value["BackupStatus"].asString();
|
||||
if(!value["BdsClusterId"].isNull())
|
||||
bdsClusterId_ = value["BdsClusterId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeBackupStatusResult::getBdsClusterId()const
|
||||
{
|
||||
return bdsClusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupStatusResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeBackupStatusResult::getBackupStatus()const
|
||||
{
|
||||
return backupStatus_;
|
||||
}
|
||||
|
||||
40
hbase/src/model/DescribeBackupSummaryRequest.cc
Normal file
40
hbase/src/model/DescribeBackupSummaryRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeBackupSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeBackupSummaryRequest;
|
||||
|
||||
DescribeBackupSummaryRequest::DescribeBackupSummaryRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeBackupSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupSummaryRequest::~DescribeBackupSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupSummaryRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupSummaryRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
94
hbase/src/model/DescribeBackupSummaryResult.cc
Normal file
94
hbase/src/model/DescribeBackupSummaryResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/hbase/model/DescribeBackupSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeBackupSummaryResult::DescribeBackupSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupSummaryResult::DescribeBackupSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupSummaryResult::~DescribeBackupSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto incrNode = value["Incr"];
|
||||
if(!incrNode["Pos"].isNull())
|
||||
incr_.pos = incrNode["Pos"].asString();
|
||||
if(!incrNode["QueueLogNum"].isNull())
|
||||
incr_.queueLogNum = incrNode["QueueLogNum"].asString();
|
||||
if(!incrNode["Speed"].isNull())
|
||||
incr_.speed = incrNode["Speed"].asString();
|
||||
if(!incrNode["Status"].isNull())
|
||||
incr_.status = incrNode["Status"].asString();
|
||||
if(!incrNode["RunningLogNum"].isNull())
|
||||
incr_.runningLogNum = incrNode["RunningLogNum"].asString();
|
||||
if(!incrNode["BackupLogSize"].isNull())
|
||||
incr_.backupLogSize = incrNode["BackupLogSize"].asString();
|
||||
auto fullNode = value["Full"];
|
||||
if(!fullNode["HasMore"].isNull())
|
||||
full_.hasMore = fullNode["HasMore"].asString();
|
||||
if(!fullNode["RecordSize"].isNull())
|
||||
full_.recordSize = fullNode["RecordSize"].asString();
|
||||
if(!fullNode["NextFullBackupDate"].isNull())
|
||||
full_.nextFullBackupDate = fullNode["NextFullBackupDate"].asString();
|
||||
auto allRecordsNode = fullNode["Records"]["Record"];
|
||||
for (auto fullNodeRecordsRecord : allRecordsNode)
|
||||
{
|
||||
Full::Record recordObject;
|
||||
if(!fullNodeRecordsRecord["RecordId"].isNull())
|
||||
recordObject.recordId = fullNodeRecordsRecord["RecordId"].asString();
|
||||
if(!fullNodeRecordsRecord["FinishTime"].isNull())
|
||||
recordObject.finishTime = fullNodeRecordsRecord["FinishTime"].asString();
|
||||
if(!fullNodeRecordsRecord["Process"].isNull())
|
||||
recordObject.process = fullNodeRecordsRecord["Process"].asString();
|
||||
if(!fullNodeRecordsRecord["CreateTime"].isNull())
|
||||
recordObject.createTime = fullNodeRecordsRecord["CreateTime"].asString();
|
||||
if(!fullNodeRecordsRecord["DataSize"].isNull())
|
||||
recordObject.dataSize = fullNodeRecordsRecord["DataSize"].asString();
|
||||
if(!fullNodeRecordsRecord["Speed"].isNull())
|
||||
recordObject.speed = fullNodeRecordsRecord["Speed"].asString();
|
||||
if(!fullNodeRecordsRecord["Status"].isNull())
|
||||
recordObject.status = fullNodeRecordsRecord["Status"].asString();
|
||||
full_.records.push_back(recordObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeBackupSummaryResult::Incr DescribeBackupSummaryResult::getIncr()const
|
||||
{
|
||||
return incr_;
|
||||
}
|
||||
|
||||
DescribeBackupSummaryResult::Full DescribeBackupSummaryResult::getFull()const
|
||||
{
|
||||
return full_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/DescribeBackupTablesRequest.cc
Normal file
51
hbase/src/model/DescribeBackupTablesRequest.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/hbase/model/DescribeBackupTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeBackupTablesRequest;
|
||||
|
||||
DescribeBackupTablesRequest::DescribeBackupTablesRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeBackupTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeBackupTablesRequest::~DescribeBackupTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeBackupTablesRequest::getBackupRecordId()const
|
||||
{
|
||||
return backupRecordId_;
|
||||
}
|
||||
|
||||
void DescribeBackupTablesRequest::setBackupRecordId(const std::string& backupRecordId)
|
||||
{
|
||||
backupRecordId_ = backupRecordId;
|
||||
setParameter("BackupRecordId", backupRecordId);
|
||||
}
|
||||
|
||||
52
hbase/src/model/DescribeBackupTablesResult.cc
Normal file
52
hbase/src/model/DescribeBackupTablesResult.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/hbase/model/DescribeBackupTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeBackupTablesResult::DescribeBackupTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeBackupTablesResult::DescribeBackupTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeBackupTablesResult::~DescribeBackupTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeBackupTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeBackupTablesResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
@@ -121,9 +121,20 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
clusterName_ = value["ClusterName"].asString();
|
||||
if(!value["IsDeletionProtection"].isNull())
|
||||
isDeletionProtection_ = value["IsDeletionProtection"].asString() == "true";
|
||||
if(!value["ParentId"].isNull())
|
||||
parentId_ = value["ParentId"].asString();
|
||||
if(!value["ModuleId"].isNull())
|
||||
moduleId_ = std::stoi(value["ModuleId"].asString());
|
||||
if(!value["ModuleStackVersion"].isNull())
|
||||
moduleStackVersion_ = value["ModuleStackVersion"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getModuleStackVersion()const
|
||||
{
|
||||
return moduleStackVersion_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceResult::getIsHa()const
|
||||
{
|
||||
return isHa_;
|
||||
@@ -149,6 +160,11 @@ bool DescribeInstanceResult::getIsLatestVersion()const
|
||||
return isLatestVersion_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getModuleId()const
|
||||
{
|
||||
return moduleId_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getMaintainEndTime()const
|
||||
{
|
||||
return maintainEndTime_;
|
||||
@@ -204,6 +220,11 @@ std::string DescribeInstanceResult::getCoreDiskCount()const
|
||||
return coreDiskCount_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getParentId()const
|
||||
{
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getMasterDiskSize()const
|
||||
{
|
||||
return masterDiskSize_;
|
||||
|
||||
@@ -103,6 +103,12 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.clusterName = valueInstancesInstance["ClusterName"].asString();
|
||||
if(!valueInstancesInstance["IsDeletionProtection"].isNull())
|
||||
instancesObject.isDeletionProtection = valueInstancesInstance["IsDeletionProtection"].asString() == "true";
|
||||
if(!valueInstancesInstance["ParentId"].isNull())
|
||||
instancesObject.parentId = valueInstancesInstance["ParentId"].asString();
|
||||
if(!valueInstancesInstance["ModuleId"].isNull())
|
||||
instancesObject.moduleId = std::stoi(valueInstancesInstance["ModuleId"].asString());
|
||||
if(!valueInstancesInstance["ModuleStackVersion"].isNull())
|
||||
instancesObject.moduleStackVersion = valueInstancesInstance["ModuleStackVersion"].asString();
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
{
|
||||
|
||||
40
hbase/src/model/DescribeRecoverableTimeRangeRequest.cc
Normal file
40
hbase/src/model/DescribeRecoverableTimeRangeRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRecoverableTimeRangeRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRecoverableTimeRangeRequest;
|
||||
|
||||
DescribeRecoverableTimeRangeRequest::DescribeRecoverableTimeRangeRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRecoverableTimeRange")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRecoverableTimeRangeRequest::~DescribeRecoverableTimeRangeRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRecoverableTimeRangeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRecoverableTimeRangeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
hbase/src/model/DescribeRecoverableTimeRangeResult.cc
Normal file
58
hbase/src/model/DescribeRecoverableTimeRangeResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRecoverableTimeRangeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRecoverableTimeRangeResult::DescribeRecoverableTimeRangeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRecoverableTimeRangeResult::DescribeRecoverableTimeRangeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRecoverableTimeRangeResult::~DescribeRecoverableTimeRangeResult()
|
||||
{}
|
||||
|
||||
void DescribeRecoverableTimeRangeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TimeBegin"].isNull())
|
||||
timeBegin_ = value["TimeBegin"].asString();
|
||||
if(!value["TimeEnd"].isNull())
|
||||
timeEnd_ = value["TimeEnd"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeRecoverableTimeRangeResult::getTimeEnd()const
|
||||
{
|
||||
return timeEnd_;
|
||||
}
|
||||
|
||||
std::string DescribeRecoverableTimeRangeResult::getTimeBegin()const
|
||||
{
|
||||
return timeBegin_;
|
||||
}
|
||||
|
||||
40
hbase/src/model/DescribeRestoreSummaryRequest.cc
Normal file
40
hbase/src/model/DescribeRestoreSummaryRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreSummaryRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreSummaryRequest;
|
||||
|
||||
DescribeRestoreSummaryRequest::DescribeRestoreSummaryRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreSummary")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreSummaryRequest::~DescribeRestoreSummaryRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRestoreSummaryRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreSummaryRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
85
hbase/src/model/DescribeRestoreSummaryResult.cc
Normal file
85
hbase/src/model/DescribeRestoreSummaryResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/DescribeRestoreSummaryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreSummaryResult::DescribeRestoreSummaryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreSummaryResult::DescribeRestoreSummaryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreSummaryResult::~DescribeRestoreSummaryResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreSummaryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRescordsNode = value["Rescords"]["Rescord"];
|
||||
for (auto valueRescordsRescord : allRescordsNode)
|
||||
{
|
||||
Rescord rescordsObject;
|
||||
if(!valueRescordsRescord["RecordId"].isNull())
|
||||
rescordsObject.recordId = valueRescordsRescord["RecordId"].asString();
|
||||
if(!valueRescordsRescord["FinishTime"].isNull())
|
||||
rescordsObject.finishTime = valueRescordsRescord["FinishTime"].asString();
|
||||
if(!valueRescordsRescord["SchemaProcess"].isNull())
|
||||
rescordsObject.schemaProcess = valueRescordsRescord["SchemaProcess"].asString();
|
||||
if(!valueRescordsRescord["HfileRestoreProcess"].isNull())
|
||||
rescordsObject.hfileRestoreProcess = valueRescordsRescord["HfileRestoreProcess"].asString();
|
||||
if(!valueRescordsRescord["CreateTime"].isNull())
|
||||
rescordsObject.createTime = valueRescordsRescord["CreateTime"].asString();
|
||||
if(!valueRescordsRescord["BulkLoadProcess"].isNull())
|
||||
rescordsObject.bulkLoadProcess = valueRescordsRescord["BulkLoadProcess"].asString();
|
||||
if(!valueRescordsRescord["Status"].isNull())
|
||||
rescordsObject.status = valueRescordsRescord["Status"].asString();
|
||||
if(!valueRescordsRescord["LogProcess"].isNull())
|
||||
rescordsObject.logProcess = valueRescordsRescord["LogProcess"].asString();
|
||||
rescords_.push_back(rescordsObject);
|
||||
}
|
||||
if(!value["RestoreRecordSize"].isNull())
|
||||
restoreRecordSize_ = std::stoi(value["RestoreRecordSize"].asString());
|
||||
if(!value["HasMoreRestoreRecord"].isNull())
|
||||
hasMoreRestoreRecord_ = std::stoi(value["HasMoreRestoreRecord"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getRestoreRecordSize()const
|
||||
{
|
||||
return restoreRecordSize_;
|
||||
}
|
||||
|
||||
int DescribeRestoreSummaryResult::getHasMoreRestoreRecord()const
|
||||
{
|
||||
return hasMoreRestoreRecord_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRestoreSummaryResult::Rescord> DescribeRestoreSummaryResult::getRescords()const
|
||||
{
|
||||
return rescords_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/DescribeRestoreTablesRequest.cc
Normal file
51
hbase/src/model/DescribeRestoreTablesRequest.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/hbase/model/DescribeRestoreTablesRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeRestoreTablesRequest;
|
||||
|
||||
DescribeRestoreTablesRequest::DescribeRestoreTablesRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeRestoreTables")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRestoreTablesRequest::~DescribeRestoreTablesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRestoreTablesRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreTablesRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeRestoreTablesRequest::getRestoreRecordId()const
|
||||
{
|
||||
return restoreRecordId_;
|
||||
}
|
||||
|
||||
void DescribeRestoreTablesRequest::setRestoreRecordId(const std::string& restoreRecordId)
|
||||
{
|
||||
restoreRecordId_ = restoreRecordId;
|
||||
setParameter("RestoreRecordId", restoreRecordId);
|
||||
}
|
||||
|
||||
52
hbase/src/model/DescribeRestoreTablesResult.cc
Normal file
52
hbase/src/model/DescribeRestoreTablesResult.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/hbase/model/DescribeRestoreTablesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeRestoreTablesResult::DescribeRestoreTablesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRestoreTablesResult::DescribeRestoreTablesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRestoreTablesResult::~DescribeRestoreTablesResult()
|
||||
{}
|
||||
|
||||
void DescribeRestoreTablesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTables = value["Tables"]["Table"];
|
||||
for (const auto &item : allTables)
|
||||
tables_.push_back(item.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeRestoreTablesResult::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
73
hbase/src/model/EnableHBaseueBackupRequest.cc
Normal file
73
hbase/src/model/EnableHBaseueBackupRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/EnableHBaseueBackupRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::EnableHBaseueBackupRequest;
|
||||
|
||||
EnableHBaseueBackupRequest::EnableHBaseueBackupRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "EnableHBaseueBackup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableHBaseueBackupRequest::~EnableHBaseueBackupRequest()
|
||||
{}
|
||||
|
||||
std::string EnableHBaseueBackupRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void EnableHBaseueBackupRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string EnableHBaseueBackupRequest::getHbaseueClusterId()const
|
||||
{
|
||||
return hbaseueClusterId_;
|
||||
}
|
||||
|
||||
void EnableHBaseueBackupRequest::setHbaseueClusterId(const std::string& hbaseueClusterId)
|
||||
{
|
||||
hbaseueClusterId_ = hbaseueClusterId;
|
||||
setParameter("HbaseueClusterId", hbaseueClusterId);
|
||||
}
|
||||
|
||||
int EnableHBaseueBackupRequest::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
void EnableHBaseueBackupRequest::setColdStorageSize(int coldStorageSize)
|
||||
{
|
||||
coldStorageSize_ = coldStorageSize;
|
||||
setParameter("ColdStorageSize", std::to_string(coldStorageSize));
|
||||
}
|
||||
|
||||
int EnableHBaseueBackupRequest::getNodeCount()const
|
||||
{
|
||||
return nodeCount_;
|
||||
}
|
||||
|
||||
void EnableHBaseueBackupRequest::setNodeCount(int nodeCount)
|
||||
{
|
||||
nodeCount_ = nodeCount;
|
||||
setParameter("NodeCount", std::to_string(nodeCount));
|
||||
}
|
||||
|
||||
58
hbase/src/model/EnableHBaseueBackupResult.cc
Normal file
58
hbase/src/model/EnableHBaseueBackupResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/EnableHBaseueBackupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
EnableHBaseueBackupResult::EnableHBaseueBackupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableHBaseueBackupResult::EnableHBaseueBackupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableHBaseueBackupResult::~EnableHBaseueBackupResult()
|
||||
{}
|
||||
|
||||
void EnableHBaseueBackupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EnableHBaseueBackupResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string EnableHBaseueBackupResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
84
hbase/src/model/ModifyBackupPlanConfigRequest.cc
Normal file
84
hbase/src/model/ModifyBackupPlanConfigRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/ModifyBackupPlanConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ModifyBackupPlanConfigRequest;
|
||||
|
||||
ModifyBackupPlanConfigRequest::ModifyBackupPlanConfigRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ModifyBackupPlanConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyBackupPlanConfigRequest::~ModifyBackupPlanConfigRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyBackupPlanConfigRequest::getFullBackupCycle()const
|
||||
{
|
||||
return fullBackupCycle_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanConfigRequest::setFullBackupCycle(const std::string& fullBackupCycle)
|
||||
{
|
||||
fullBackupCycle_ = fullBackupCycle;
|
||||
setParameter("FullBackupCycle", fullBackupCycle);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanConfigRequest::getTables()const
|
||||
{
|
||||
return tables_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanConfigRequest::setTables(const std::string& tables)
|
||||
{
|
||||
tables_ = tables;
|
||||
setParameter("Tables", tables);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanConfigRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanConfigRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanConfigRequest::getMinHFileBackupCount()const
|
||||
{
|
||||
return minHFileBackupCount_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanConfigRequest::setMinHFileBackupCount(const std::string& minHFileBackupCount)
|
||||
{
|
||||
minHFileBackupCount_ = minHFileBackupCount;
|
||||
setParameter("MinHFileBackupCount", minHFileBackupCount);
|
||||
}
|
||||
|
||||
std::string ModifyBackupPlanConfigRequest::getNextFullBackupDate()const
|
||||
{
|
||||
return nextFullBackupDate_;
|
||||
}
|
||||
|
||||
void ModifyBackupPlanConfigRequest::setNextFullBackupDate(const std::string& nextFullBackupDate)
|
||||
{
|
||||
nextFullBackupDate_ = nextFullBackupDate;
|
||||
setParameter("NextFullBackupDate", nextFullBackupDate);
|
||||
}
|
||||
|
||||
44
hbase/src/model/ModifyBackupPlanConfigResult.cc
Normal file
44
hbase/src/model/ModifyBackupPlanConfigResult.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/hbase/model/ModifyBackupPlanConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ModifyBackupPlanConfigResult::ModifyBackupPlanConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyBackupPlanConfigResult::ModifyBackupPlanConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyBackupPlanConfigResult::~ModifyBackupPlanConfigResult()
|
||||
{}
|
||||
|
||||
void ModifyBackupPlanConfigResult::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