ImmediateDelete.
This commit is contained in:
@@ -27,6 +27,17 @@ DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
bool DeleteInstanceRequest::getImmediateDeleteFlag()const
|
||||
{
|
||||
return immediateDeleteFlag_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setImmediateDeleteFlag(bool immediateDeleteFlag)
|
||||
{
|
||||
immediateDeleteFlag_ = immediateDeleteFlag;
|
||||
setCoreParameter("ImmediateDeleteFlag", immediateDeleteFlag ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
|
||||
@@ -105,6 +105,10 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
maintainStartTime_ = value["MaintainStartTime"].asString();
|
||||
if(!value["MaintainEndTime"].isNull())
|
||||
maintainEndTime_ = value["MaintainEndTime"].asString();
|
||||
if(!value["CreatedTimeUTC"].isNull())
|
||||
createdTimeUTC_ = value["CreatedTimeUTC"].asString();
|
||||
if(!value["ExpireTimeUTC"].isNull())
|
||||
expireTimeUTC_ = value["ExpireTimeUTC"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -178,6 +182,11 @@ int DescribeInstanceResult::getMasterDiskSize()const
|
||||
return masterDiskSize_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getExpireTimeUTC()const
|
||||
{
|
||||
return expireTimeUTC_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
@@ -203,6 +212,11 @@ std::string DescribeInstanceResult::getMinorVersion()const
|
||||
return minorVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getCreatedTimeUTC()const
|
||||
{
|
||||
return createdTimeUTC_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceResult::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeInstancesRequest::DescribeInstancesRequest() :
|
||||
DescribeInstancesRequest::~DescribeInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstancesRequest::getClusterName()const
|
||||
{
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setClusterName(const std::string& clusterName)
|
||||
{
|
||||
clusterName_ = clusterName;
|
||||
setCoreParameter("ClusterName", clusterName);
|
||||
}
|
||||
|
||||
int DescribeInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,3 +71,30 @@ void DescribeInstancesRequest::setPageSize(int pageSize)
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::vector<DescribeInstancesRequest::Tag> DescribeInstancesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1);
|
||||
setCoreParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setCoreParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeInstancesRequest::getDbType()const
|
||||
{
|
||||
return dbType_;
|
||||
}
|
||||
|
||||
void DescribeInstancesRequest::setDbType(const std::string& dbType)
|
||||
{
|
||||
dbType_ = dbType;
|
||||
setCoreParameter("DbType", dbType);
|
||||
}
|
||||
|
||||
|
||||
@@ -91,6 +91,22 @@ void DescribeInstancesResult::parse(const std::string &payload)
|
||||
instancesObject.coldStorageStatus = valueInstancesInstance["ColdStorageStatus"].asString();
|
||||
if(!valueInstancesInstance["BackupStatus"].isNull())
|
||||
instancesObject.backupStatus = valueInstancesInstance["BackupStatus"].asString();
|
||||
if(!valueInstancesInstance["ClusterType"].isNull())
|
||||
instancesObject.clusterType = valueInstancesInstance["ClusterType"].asString();
|
||||
if(!valueInstancesInstance["CreatedTimeUTC"].isNull())
|
||||
instancesObject.createdTimeUTC = valueInstancesInstance["CreatedTimeUTC"].asString();
|
||||
if(!valueInstancesInstance["ExpireTimeUTC"].isNull())
|
||||
instancesObject.expireTimeUTC = valueInstancesInstance["ExpireTimeUTC"].asString();
|
||||
auto allTagsNode = allInstancesNode["Tags"]["Tag"];
|
||||
for (auto allInstancesNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Instance::Tag tagsObject;
|
||||
if(!allInstancesNodeTagsTag["Key"].isNull())
|
||||
tagsObject.key = allInstancesNodeTagsTag["Key"].asString();
|
||||
if(!allInstancesNodeTagsTag["Value"].isNull())
|
||||
tagsObject.value = allInstancesNodeTagsTag["Value"].asString();
|
||||
instancesObject.tags.push_back(tagsObject);
|
||||
}
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
@@ -39,14 +39,24 @@ void DescribeIpWhitelistResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIpList = value["IpList"]["IP"];
|
||||
for (const auto &item : allIpList)
|
||||
ipList_.push_back(item.asString());
|
||||
auto allGroupsNode = value["Groups"]["Group"];
|
||||
for (auto valueGroupsGroup : allGroupsNode)
|
||||
{
|
||||
Group groupsObject;
|
||||
if(!valueGroupsGroup["GroupName"].isNull())
|
||||
groupsObject.groupName = valueGroupsGroup["GroupName"].asString();
|
||||
if(!valueGroupsGroup["IpVersion"].isNull())
|
||||
groupsObject.ipVersion = std::stoi(valueGroupsGroup["IpVersion"].asString());
|
||||
auto allIpList = value["IpList"]["Ip"];
|
||||
for (auto value : allIpList)
|
||||
groupsObject.ipList.push_back(value.asString());
|
||||
groups_.push_back(groupsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeIpWhitelistResult::getIpList()const
|
||||
std::vector<DescribeIpWhitelistResult::Group> DescribeIpWhitelistResult::getGroups()const
|
||||
{
|
||||
return ipList_;
|
||||
return groups_;
|
||||
}
|
||||
|
||||
|
||||
40
hbase/src/model/ListTagsRequest.cc
Normal file
40
hbase/src/model/ListTagsRequest.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/ListTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::HBase::Model::ListTagsRequest;
|
||||
|
||||
ListTagsRequest::ListTagsRequest() :
|
||||
RpcServiceRequest("hbase", "2019-01-01", "ListTags")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagsRequest::~ListTagsRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
hbase/src/model/ListTagsResult.cc
Normal file
59
hbase/src/model/ListTagsResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/hbase/model/ListTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::HBase;
|
||||
using namespace AlibabaCloud::HBase::Model;
|
||||
|
||||
ListTagsResult::ListTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagsResult::ListTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagsResult::~ListTagsResult()
|
||||
{}
|
||||
|
||||
void ListTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagsNode = value["Tags"]["Tag"];
|
||||
for (auto valueTagsTag : allTagsNode)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!valueTagsTag["TagKey"].isNull())
|
||||
tagsObject.tagKey = valueTagsTag["TagKey"].asString();
|
||||
if(!valueTagsTag["TagValue"].isNull())
|
||||
tagsObject.tagValue = valueTagsTag["TagValue"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListTagsResult::Tag> ListTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user