DiskEncryption.
This commit is contained in:
@@ -1887,6 +1887,42 @@ HBaseClient::DescribeSubDomainOutcomeCallable HBaseClient::describeSubDomainCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::DescribeUserEncryptionKeyListOutcome HBaseClient::describeUserEncryptionKeyList(const DescribeUserEncryptionKeyListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeUserEncryptionKeyListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeUserEncryptionKeyListOutcome(DescribeUserEncryptionKeyListResult(outcome.result()));
|
||||
else
|
||||
return DescribeUserEncryptionKeyListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void HBaseClient::describeUserEncryptionKeyListAsync(const DescribeUserEncryptionKeyListRequest& request, const DescribeUserEncryptionKeyListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeUserEncryptionKeyList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
HBaseClient::DescribeUserEncryptionKeyListOutcomeCallable HBaseClient::describeUserEncryptionKeyListCallable(const DescribeUserEncryptionKeyListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeUserEncryptionKeyListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeUserEncryptionKeyList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
HBaseClient::EnableHBaseueBackupOutcome HBaseClient::enableHBaseueBackup(const EnableHBaseueBackupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -126,6 +126,17 @@ void CreateClusterRequest::setDiskSize(int diskSize)
|
||||
setParameter("DiskSize", std::to_string(diskSize));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getEncryptionKey()const
|
||||
{
|
||||
return encryptionKey_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setEncryptionKey(const std::string& encryptionKey)
|
||||
{
|
||||
encryptionKey_ = encryptionKey;
|
||||
setParameter("EncryptionKey", encryptionKey);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
|
||||
@@ -135,6 +135,10 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
coldStorageSize_ = std::stoi(value["ColdStorageSize"].asString());
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["EncryptionType"].isNull())
|
||||
encryptionType_ = value["EncryptionType"].asString() == "true";
|
||||
if(!value["EncryptionKey"].isNull())
|
||||
encryptionKey_ = value["EncryptionKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -158,6 +162,11 @@ std::string DescribeInstanceResult::getResourceGroupId()const
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getEncryptionKey()const
|
||||
{
|
||||
return encryptionKey_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
@@ -243,6 +252,11 @@ int DescribeInstanceResult::getColdStorageSize()const
|
||||
return coldStorageSize_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceResult::getEncryptionType()const
|
||||
{
|
||||
return encryptionType_;
|
||||
}
|
||||
|
||||
int DescribeInstanceResult::getMasterDiskSize()const
|
||||
{
|
||||
return masterDiskSize_;
|
||||
|
||||
@@ -155,6 +155,10 @@ void DescribeMultiZoneClusterResult::parse(const std::string &payload)
|
||||
vpcId_ = value["VpcId"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
resourceGroupId_ = value["ResourceGroupId"].asString();
|
||||
if(!value["EncryptionType"].isNull())
|
||||
encryptionType_ = value["EncryptionType"].asString() == "true";
|
||||
if(!value["EncryptionKey"].isNull())
|
||||
encryptionKey_ = value["EncryptionKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -178,71 +182,16 @@ std::string DescribeMultiZoneClusterResult::getResourceGroupId()const
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getPrimaryVSwitchIds()const
|
||||
{
|
||||
return primaryVSwitchIds_;
|
||||
}
|
||||
|
||||
bool DescribeMultiZoneClusterResult::getIsDeletionProtection()const
|
||||
{
|
||||
return isDeletionProtection_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getLogDiskCount()const
|
||||
{
|
||||
return logDiskCount_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getLogDiskSize()const
|
||||
{
|
||||
return logDiskSize_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getModuleId()const
|
||||
{
|
||||
return moduleId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getArbiterVSwitchIds()const
|
||||
{
|
||||
return arbiterVSwitchIds_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMaintainEndTime()const
|
||||
{
|
||||
return maintainEndTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getStandbyVSwitchIds()const
|
||||
{
|
||||
return standbyVSwitchIds_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMasterDiskType()const
|
||||
{
|
||||
return masterDiskType_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMultiZoneClusterResult::Tag> DescribeMultiZoneClusterResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
@@ -253,39 +202,14 @@ std::string DescribeMultiZoneClusterResult::getEngine()const
|
||||
return engine_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMaintainStartTime()const
|
||||
{
|
||||
return maintainStartTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getArbiterZoneId()const
|
||||
{
|
||||
return arbiterZoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMajorVersion()const
|
||||
{
|
||||
return majorVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getCoreDiskCount()const
|
||||
{
|
||||
return coreDiskCount_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getParentId()const
|
||||
{
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMultiZoneClusterResult::MultiZoneInstanceModel> DescribeMultiZoneClusterResult::getMultiZoneInstanceModels()const
|
||||
bool DescribeMultiZoneClusterResult::getEncryptionType()const
|
||||
{
|
||||
return multiZoneInstanceModels_;
|
||||
return encryptionType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getExpireTimeUTC()const
|
||||
@@ -298,46 +222,16 @@ int DescribeMultiZoneClusterResult::getMasterDiskSize()const
|
||||
return masterDiskSize_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getPrimaryZoneId()const
|
||||
{
|
||||
return primaryZoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMultiZoneCombination()const
|
||||
{
|
||||
return multiZoneCombination_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getCoreNodeCount()const
|
||||
{
|
||||
return coreNodeCount_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getCreatedTimeUTC()const
|
||||
{
|
||||
return createdTimeUTC_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getDuration()const
|
||||
{
|
||||
return duration_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getLogInstanceType()const
|
||||
{
|
||||
return logInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
@@ -368,6 +262,131 @@ std::string DescribeMultiZoneClusterResult::getCoreDiskType()const
|
||||
return coreDiskType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getEncryptionKey()const
|
||||
{
|
||||
return encryptionKey_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMasterInstanceType()const
|
||||
{
|
||||
return masterInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getPrimaryVSwitchIds()const
|
||||
{
|
||||
return primaryVSwitchIds_;
|
||||
}
|
||||
|
||||
bool DescribeMultiZoneClusterResult::getIsDeletionProtection()const
|
||||
{
|
||||
return isDeletionProtection_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getLogDiskCount()const
|
||||
{
|
||||
return logDiskCount_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getLogDiskSize()const
|
||||
{
|
||||
return logDiskSize_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getArbiterVSwitchIds()const
|
||||
{
|
||||
return arbiterVSwitchIds_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMaintainEndTime()const
|
||||
{
|
||||
return maintainEndTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getNetworkType()const
|
||||
{
|
||||
return networkType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getCoreInstanceType()const
|
||||
{
|
||||
return coreInstanceType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMasterDiskType()const
|
||||
{
|
||||
return masterDiskType_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMaintainStartTime()const
|
||||
{
|
||||
return maintainStartTime_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getArbiterZoneId()const
|
||||
{
|
||||
return arbiterZoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMajorVersion()const
|
||||
{
|
||||
return majorVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getCoreDiskCount()const
|
||||
{
|
||||
return coreDiskCount_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getParentId()const
|
||||
{
|
||||
return parentId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeMultiZoneClusterResult::MultiZoneInstanceModel> DescribeMultiZoneClusterResult::getMultiZoneInstanceModels()const
|
||||
{
|
||||
return multiZoneInstanceModels_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getPrimaryZoneId()const
|
||||
{
|
||||
return primaryZoneId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getMultiZoneCombination()const
|
||||
{
|
||||
return multiZoneCombination_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getCoreNodeCount()const
|
||||
{
|
||||
return coreNodeCount_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getCreatedTimeUTC()const
|
||||
{
|
||||
return createdTimeUTC_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getLogInstanceType()const
|
||||
{
|
||||
return logInstanceType_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getLogNodeCount()const
|
||||
{
|
||||
return logNodeCount_;
|
||||
@@ -383,11 +402,6 @@ std::string DescribeMultiZoneClusterResult::getRegionId()const
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string DescribeMultiZoneClusterResult::getExpireTime()const
|
||||
{
|
||||
return expireTime_;
|
||||
}
|
||||
|
||||
int DescribeMultiZoneClusterResult::getCoreDiskSize()const
|
||||
{
|
||||
return coreDiskSize_;
|
||||
|
||||
62
hbase/src/model/DescribeUserEncryptionKeyListRequest.cc
Normal file
62
hbase/src/model/DescribeUserEncryptionKeyListRequest.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/DescribeUserEncryptionKeyListRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::DescribeUserEncryptionKeyListRequest;
|
||||
|
||||
DescribeUserEncryptionKeyListRequest::DescribeUserEncryptionKeyListRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "DescribeUserEncryptionKeyList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeUserEncryptionKeyListRequest::~DescribeUserEncryptionKeyListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeUserEncryptionKeyListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeUserEncryptionKeyListRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeUserEncryptionKeyListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeUserEncryptionKeyListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeUserEncryptionKeyListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeUserEncryptionKeyListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
57
hbase/src/model/DescribeUserEncryptionKeyListResult.cc
Normal file
57
hbase/src/model/DescribeUserEncryptionKeyListResult.cc
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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/DescribeUserEncryptionKeyListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
DescribeUserEncryptionKeyListResult::DescribeUserEncryptionKeyListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeUserEncryptionKeyListResult::DescribeUserEncryptionKeyListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeUserEncryptionKeyListResult::~DescribeUserEncryptionKeyListResult()
|
||||
{}
|
||||
|
||||
void DescribeUserEncryptionKeyListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allKmsKeysNode = value["KmsKeys"]["KmsKeysItem"];
|
||||
for (auto valueKmsKeysKmsKeysItem : allKmsKeysNode)
|
||||
{
|
||||
KmsKeysItem kmsKeysObject;
|
||||
if(!valueKmsKeysKmsKeysItem["KeyId"].isNull())
|
||||
kmsKeysObject.keyId = valueKmsKeysKmsKeysItem["KeyId"].asString();
|
||||
kmsKeys_.push_back(kmsKeysObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeUserEncryptionKeyListResult::KmsKeysItem> DescribeUserEncryptionKeyListResult::getKmsKeys()const
|
||||
{
|
||||
return kmsKeys_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user