Support modifyInstnaceType.
This commit is contained in:
@@ -735,6 +735,42 @@ HBaseClient::DescribeBackupTablesOutcomeCallable HBaseClient::describeBackupTabl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeClusterConnectionOutcome HBaseClient::describeClusterConnection(const DescribeClusterConnectionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeClusterConnectionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeClusterConnectionOutcome(DescribeClusterConnectionResult(outcome.result()));
|
||||
else
|
||||
return DescribeClusterConnectionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeClusterConnectionAsync(const DescribeClusterConnectionRequest& request, const DescribeClusterConnectionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeClusterConnection(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeClusterConnectionOutcomeCallable HBaseClient::describeClusterConnectionCallable(const DescribeClusterConnectionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeClusterConnectionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeClusterConnection(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeDBInstanceUsageOutcome HBaseClient::describeDBInstanceUsage(const DescribeDBInstanceUsageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -807,6 +843,42 @@ HBaseClient::DescribeDeletedInstancesOutcomeCallable HBaseClient::describeDelete
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeDiskWarningLineOutcome HBaseClient::describeDiskWarningLine(const DescribeDiskWarningLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDiskWarningLineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDiskWarningLineOutcome(DescribeDiskWarningLineResult(outcome.result()));
|
||||
else
|
||||
return DescribeDiskWarningLineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeDiskWarningLineAsync(const DescribeDiskWarningLineRequest& request, const DescribeDiskWarningLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDiskWarningLine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeDiskWarningLineOutcomeCallable HBaseClient::describeDiskWarningLineCallable(const DescribeDiskWarningLineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDiskWarningLineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDiskWarningLine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeEndpointsOutcome HBaseClient::describeEndpoints(const DescribeEndpointsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1707,42 @@ HBaseClient::ModifyClusterDeletionProtectionOutcomeCallable HBaseClient::modifyC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ModifyDiskWarningLineOutcome HBaseClient::modifyDiskWarningLine(const ModifyDiskWarningLineRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDiskWarningLineOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDiskWarningLineOutcome(ModifyDiskWarningLineResult(outcome.result()));
|
||||
else
|
||||
return ModifyDiskWarningLineOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::modifyDiskWarningLineAsync(const ModifyDiskWarningLineRequest& request, const ModifyDiskWarningLineAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDiskWarningLine(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::ModifyDiskWarningLineOutcomeCallable HBaseClient::modifyDiskWarningLineCallable(const ModifyDiskWarningLineRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDiskWarningLineOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDiskWarningLine(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ModifyInstanceMaintainTimeOutcome HBaseClient::modifyInstanceMaintainTime(const ModifyInstanceMaintainTimeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1815,42 @@ HBaseClient::ModifyInstanceNameOutcomeCallable HBaseClient::modifyInstanceNameCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ModifyInstanceTypeOutcome HBaseClient::modifyInstanceType(const ModifyInstanceTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyInstanceTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyInstanceTypeOutcome(ModifyInstanceTypeResult(outcome.result()));
|
||||
else
|
||||
return ModifyInstanceTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::modifyInstanceTypeAsync(const ModifyInstanceTypeRequest& request, const ModifyInstanceTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyInstanceType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::ModifyInstanceTypeOutcomeCallable HBaseClient::modifyInstanceTypeCallable(const ModifyInstanceTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyInstanceTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyInstanceType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ModifyIpWhitelistOutcome HBaseClient::modifyIpWhitelist(const ModifyIpWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1995,6 +2139,42 @@ HBaseClient::RenewInstanceOutcomeCallable HBaseClient::renewInstanceCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ResizeColdStorageSizeOutcome HBaseClient::resizeColdStorageSize(const ResizeColdStorageSizeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ResizeColdStorageSizeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ResizeColdStorageSizeOutcome(ResizeColdStorageSizeResult(outcome.result()));
|
||||
else
|
||||
return ResizeColdStorageSizeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::resizeColdStorageSizeAsync(const ResizeColdStorageSizeRequest& request, const ResizeColdStorageSizeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, resizeColdStorageSize(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::ResizeColdStorageSizeOutcomeCallable HBaseClient::resizeColdStorageSizeCallable(const ResizeColdStorageSizeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ResizeColdStorageSizeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->resizeColdStorageSize(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::ResizeDiskSizeOutcome HBaseClient::resizeDiskSize(const ResizeDiskSizeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
51
hbase/src/model/DescribeClusterConnectionRequest.cc
Normal file
51
hbase/src/model/DescribeClusterConnectionRequest.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/DescribeClusterConnectionRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeClusterConnectionRequest;
|
||||
|
||||
DescribeClusterConnectionRequest::DescribeClusterConnectionRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeClusterConnection")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeClusterConnectionRequest::~DescribeClusterConnectionRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeClusterConnectionRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeClusterConnectionRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeClusterConnectionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
160
hbase/src/model/DescribeClusterConnectionResult.cc
Normal file
160
hbase/src/model/DescribeClusterConnectionResult.cc
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* 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/DescribeClusterConnectionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeClusterConnectionResult::DescribeClusterConnectionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeClusterConnectionResult::DescribeClusterConnectionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeClusterConnectionResult::~DescribeClusterConnectionResult()
|
||||
{}
|
||||
|
||||
void DescribeClusterConnectionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allZkConnAddrsNode = value["ZkConnAddrs"]["ZkConnAddr"];
|
||||
for (auto valueZkConnAddrsZkConnAddr : allZkConnAddrsNode)
|
||||
{
|
||||
ZkConnAddr zkConnAddrsObject;
|
||||
if(!valueZkConnAddrsZkConnAddr["ConnAddr"].isNull())
|
||||
zkConnAddrsObject.connAddr = valueZkConnAddrsZkConnAddr["ConnAddr"].asString();
|
||||
if(!valueZkConnAddrsZkConnAddr["ConnAddrPort"].isNull())
|
||||
zkConnAddrsObject.connAddrPort = valueZkConnAddrsZkConnAddr["ConnAddrPort"].asString();
|
||||
if(!valueZkConnAddrsZkConnAddr["NetType"].isNull())
|
||||
zkConnAddrsObject.netType = valueZkConnAddrsZkConnAddr["NetType"].asString();
|
||||
zkConnAddrs_.push_back(zkConnAddrsObject);
|
||||
}
|
||||
auto allSlbConnAddrsNode = value["SlbConnAddrs"]["SlbConnAddr"];
|
||||
for (auto valueSlbConnAddrsSlbConnAddr : allSlbConnAddrsNode)
|
||||
{
|
||||
SlbConnAddr slbConnAddrsObject;
|
||||
if(!valueSlbConnAddrsSlbConnAddr["SlbType"].isNull())
|
||||
slbConnAddrsObject.slbType = valueSlbConnAddrsSlbConnAddr["SlbType"].asString();
|
||||
auto connAddrInfoNode = value["ConnAddrInfo"];
|
||||
if(!connAddrInfoNode["ConnAddr"].isNull())
|
||||
slbConnAddrsObject.connAddrInfo.connAddr = connAddrInfoNode["ConnAddr"].asString();
|
||||
if(!connAddrInfoNode["ConnAddrPort"].isNull())
|
||||
slbConnAddrsObject.connAddrInfo.connAddrPort = connAddrInfoNode["ConnAddrPort"].asString();
|
||||
if(!connAddrInfoNode["NetType"].isNull())
|
||||
slbConnAddrsObject.connAddrInfo.netType = connAddrInfoNode["NetType"].asString();
|
||||
slbConnAddrs_.push_back(slbConnAddrsObject);
|
||||
}
|
||||
auto allServiceConnAddrsNode = value["ServiceConnAddrs"]["ServiceConnAddr"];
|
||||
for (auto valueServiceConnAddrsServiceConnAddr : allServiceConnAddrsNode)
|
||||
{
|
||||
ServiceConnAddr serviceConnAddrsObject;
|
||||
if(!valueServiceConnAddrsServiceConnAddr["ConnType"].isNull())
|
||||
serviceConnAddrsObject.connType = valueServiceConnAddrsServiceConnAddr["ConnType"].asString();
|
||||
auto connAddrInfo1Node = value["ConnAddrInfo"];
|
||||
if(!connAddrInfo1Node["ConnAddr"].isNull())
|
||||
serviceConnAddrsObject.connAddrInfo1.connAddr = connAddrInfo1Node["ConnAddr"].asString();
|
||||
if(!connAddrInfo1Node["ConnAddrPort"].isNull())
|
||||
serviceConnAddrsObject.connAddrInfo1.connAddrPort = connAddrInfo1Node["ConnAddrPort"].asString();
|
||||
if(!connAddrInfo1Node["NetType"].isNull())
|
||||
serviceConnAddrsObject.connAddrInfo1.netType = connAddrInfo1Node["NetType"].asString();
|
||||
serviceConnAddrs_.push_back(serviceConnAddrsObject);
|
||||
}
|
||||
auto uiProxyConnAddrInfoNode = value["UiProxyConnAddrInfo"];
|
||||
if(!uiProxyConnAddrInfoNode["ConnAddr"].isNull())
|
||||
uiProxyConnAddrInfo_.connAddr = uiProxyConnAddrInfoNode["ConnAddr"].asString();
|
||||
if(!uiProxyConnAddrInfoNode["ConnAddrPort"].isNull())
|
||||
uiProxyConnAddrInfo_.connAddrPort = uiProxyConnAddrInfoNode["ConnAddrPort"].asString();
|
||||
if(!uiProxyConnAddrInfoNode["NetType"].isNull())
|
||||
uiProxyConnAddrInfo_.netType = uiProxyConnAddrInfoNode["NetType"].asString();
|
||||
auto thriftConnNode = value["ThriftConn"];
|
||||
if(!thriftConnNode["ConnAddr"].isNull())
|
||||
thriftConn_.connAddr = thriftConnNode["ConnAddr"].asString();
|
||||
if(!thriftConnNode["ConnAddrPort"].isNull())
|
||||
thriftConn_.connAddrPort = thriftConnNode["ConnAddrPort"].asString();
|
||||
if(!thriftConnNode["NetType"].isNull())
|
||||
thriftConn_.netType = thriftConnNode["NetType"].asString();
|
||||
if(!value["NetType"].isNull())
|
||||
netType_ = value["NetType"].asString();
|
||||
if(!value["VpcId"].isNull())
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["VSwitchId"].isNull())
|
||||
vSwitchId_ = value["VSwitchId"].asString();
|
||||
if(!value["DbType"].isNull())
|
||||
dbType_ = value["DbType"].asString();
|
||||
if(!value["IsMultimod"].isNull())
|
||||
isMultimod_ = value["IsMultimod"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getIsMultimod()const
|
||||
{
|
||||
return isMultimod_;
|
||||
}
|
||||
|
||||
DescribeClusterConnectionResult::UiProxyConnAddrInfo DescribeClusterConnectionResult::getUiProxyConnAddrInfo()const
|
||||
{
|
||||
return uiProxyConnAddrInfo_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterConnectionResult::ServiceConnAddr> DescribeClusterConnectionResult::getServiceConnAddrs()const
|
||||
{
|
||||
return serviceConnAddrs_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getNetType()const
|
||||
{
|
||||
return netType_;
|
||||
}
|
||||
|
||||
DescribeClusterConnectionResult::ThriftConn DescribeClusterConnectionResult::getThriftConn()const
|
||||
{
|
||||
return thriftConn_;
|
||||
}
|
||||
|
||||
std::string DescribeClusterConnectionResult::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterConnectionResult::ZkConnAddr> DescribeClusterConnectionResult::getZkConnAddrs()const
|
||||
{
|
||||
return zkConnAddrs_;
|
||||
}
|
||||
|
||||
std::vector<DescribeClusterConnectionResult::SlbConnAddr> DescribeClusterConnectionResult::getSlbConnAddrs()const
|
||||
{
|
||||
return slbConnAddrs_;
|
||||
}
|
||||
|
||||
40
hbase/src/model/DescribeDiskWarningLineRequest.cc
Normal file
40
hbase/src/model/DescribeDiskWarningLineRequest.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/DescribeDiskWarningLineRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeDiskWarningLineRequest;
|
||||
|
||||
DescribeDiskWarningLineRequest::DescribeDiskWarningLineRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeDiskWarningLine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDiskWarningLineRequest::~DescribeDiskWarningLineRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDiskWarningLineRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeDiskWarningLineRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
51
hbase/src/model/DescribeDiskWarningLineResult.cc
Normal file
51
hbase/src/model/DescribeDiskWarningLineResult.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/DescribeDiskWarningLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeDiskWarningLineResult::DescribeDiskWarningLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDiskWarningLineResult::DescribeDiskWarningLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDiskWarningLineResult::~DescribeDiskWarningLineResult()
|
||||
{}
|
||||
|
||||
void DescribeDiskWarningLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["WarningLine"].isNull())
|
||||
warningLine_ = value["WarningLine"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDiskWarningLineResult::getWarningLine()const
|
||||
{
|
||||
return warningLine_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/ModifyDiskWarningLineRequest.cc
Normal file
51
hbase/src/model/ModifyDiskWarningLineRequest.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/ModifyDiskWarningLineRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ModifyDiskWarningLineRequest;
|
||||
|
||||
ModifyDiskWarningLineRequest::ModifyDiskWarningLineRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ModifyDiskWarningLine")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyDiskWarningLineRequest::~ModifyDiskWarningLineRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyDiskWarningLineRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyDiskWarningLineRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ModifyDiskWarningLineRequest::getWarningLine()const
|
||||
{
|
||||
return warningLine_;
|
||||
}
|
||||
|
||||
void ModifyDiskWarningLineRequest::setWarningLine(int warningLine)
|
||||
{
|
||||
warningLine_ = warningLine;
|
||||
setParameter("WarningLine", std::to_string(warningLine));
|
||||
}
|
||||
|
||||
44
hbase/src/model/ModifyDiskWarningLineResult.cc
Normal file
44
hbase/src/model/ModifyDiskWarningLineResult.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/ModifyDiskWarningLineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ModifyDiskWarningLineResult::ModifyDiskWarningLineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyDiskWarningLineResult::ModifyDiskWarningLineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyDiskWarningLineResult::~ModifyDiskWarningLineResult()
|
||||
{}
|
||||
|
||||
void ModifyDiskWarningLineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
hbase/src/model/ModifyInstanceTypeRequest.cc
Normal file
62
hbase/src/model/ModifyInstanceTypeRequest.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/ModifyInstanceTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ModifyInstanceTypeRequest;
|
||||
|
||||
ModifyInstanceTypeRequest::ModifyInstanceTypeRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ModifyInstanceType")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ModifyInstanceTypeRequest::~ModifyInstanceTypeRequest()
|
||||
{}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setMasterInstanceType(const std::string& masterInstanceType)
|
||||
{
|
||||
masterInstanceType_ = masterInstanceType;
|
||||
setParameter("MasterInstanceType", masterInstanceType);
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeRequest::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
void ModifyInstanceTypeRequest::setCoreInstanceType(const std::string& coreInstanceType)
|
||||
{
|
||||
coreInstanceType_ = coreInstanceType;
|
||||
setParameter("CoreInstanceType", coreInstanceType);
|
||||
}
|
||||
|
||||
51
hbase/src/model/ModifyInstanceTypeResult.cc
Normal file
51
hbase/src/model/ModifyInstanceTypeResult.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/ModifyInstanceTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ModifyInstanceTypeResult::ModifyInstanceTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyInstanceTypeResult::ModifyInstanceTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyInstanceTypeResult::~ModifyInstanceTypeResult()
|
||||
{}
|
||||
|
||||
void ModifyInstanceTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyInstanceTypeResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
51
hbase/src/model/ResizeColdStorageSizeRequest.cc
Normal file
51
hbase/src/model/ResizeColdStorageSizeRequest.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/ResizeColdStorageSizeRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ResizeColdStorageSizeRequest;
|
||||
|
||||
ResizeColdStorageSizeRequest::ResizeColdStorageSizeRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ResizeColdStorageSize")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ResizeColdStorageSizeRequest::~ResizeColdStorageSizeRequest()
|
||||
{}
|
||||
|
||||
std::string ResizeColdStorageSizeRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ResizeColdStorageSizeRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
int ResizeColdStorageSizeRequest::getColdStorageSize()const
|
||||
{
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
void ResizeColdStorageSizeRequest::setColdStorageSize(int coldStorageSize)
|
||||
{
|
||||
coldStorageSize_ = coldStorageSize;
|
||||
setParameter("ColdStorageSize", std::to_string(coldStorageSize));
|
||||
}
|
||||
|
||||
51
hbase/src/model/ResizeColdStorageSizeResult.cc
Normal file
51
hbase/src/model/ResizeColdStorageSizeResult.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/ResizeColdStorageSizeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ResizeColdStorageSizeResult::ResizeColdStorageSizeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ResizeColdStorageSizeResult::ResizeColdStorageSizeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ResizeColdStorageSizeResult::~ResizeColdStorageSizeResult()
|
||||
{}
|
||||
|
||||
void ResizeColdStorageSizeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ResizeColdStorageSizeResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user