Add MetaTag APIs.

This commit is contained in:
sdk-team
2021-12-07 07:25:44 +00:00
parent 288efa5b1f
commit fe60cca404
34 changed files with 1881 additions and 649 deletions

View File

@@ -51,6 +51,150 @@ TagClient::TagClient(const std::string & accessKeyId, const std::string & access
TagClient::~TagClient()
{}
TagClient::CreateTagsOutcome TagClient::createTags(const CreateTagsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateTagsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateTagsOutcome(CreateTagsResult(outcome.result()));
else
return CreateTagsOutcome(outcome.error());
}
void TagClient::createTagsAsync(const CreateTagsRequest& request, const CreateTagsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createTags(request), context);
};
asyncExecute(new Runnable(fn));
}
TagClient::CreateTagsOutcomeCallable TagClient::createTagsCallable(const CreateTagsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateTagsOutcome()>>(
[this, request]()
{
return this->createTags(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TagClient::DeleteTagOutcome TagClient::deleteTag(const DeleteTagRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteTagOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteTagOutcome(DeleteTagResult(outcome.result()));
else
return DeleteTagOutcome(outcome.error());
}
void TagClient::deleteTagAsync(const DeleteTagRequest& request, const DeleteTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteTag(request), context);
};
asyncExecute(new Runnable(fn));
}
TagClient::DeleteTagOutcomeCallable TagClient::deleteTagCallable(const DeleteTagRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteTagOutcome()>>(
[this, request]()
{
return this->deleteTag(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TagClient::DescribeRegionsOutcome TagClient::describeRegions(const DescribeRegionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRegionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
else
return DescribeRegionsOutcome(outcome.error());
}
void TagClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRegions(request), context);
};
asyncExecute(new Runnable(fn));
}
TagClient::DescribeRegionsOutcomeCallable TagClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
[this, request]()
{
return this->describeRegions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TagClient::ListResourcesByTagOutcome TagClient::listResourcesByTag(const ListResourcesByTagRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListResourcesByTagOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListResourcesByTagOutcome(ListResourcesByTagResult(outcome.result()));
else
return ListResourcesByTagOutcome(outcome.error());
}
void TagClient::listResourcesByTagAsync(const ListResourcesByTagRequest& request, const ListResourcesByTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listResourcesByTag(request), context);
};
asyncExecute(new Runnable(fn));
}
TagClient::ListResourcesByTagOutcomeCallable TagClient::listResourcesByTagCallable(const ListResourcesByTagRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListResourcesByTagOutcome()>>(
[this, request]()
{
return this->listResourcesByTag(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
TagClient::ListTagKeysOutcome TagClient::listTagKeys(const ListTagKeysRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -0,0 +1,83 @@
/*
* 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/tag/model/CreateTagsRequest.h>
using AlibabaCloud::Tag::Model::CreateTagsRequest;
CreateTagsRequest::CreateTagsRequest()
: RpcServiceRequest("tag", "2018-08-28", "CreateTags") {
setMethod(HttpRequest::Method::Post);
}
CreateTagsRequest::~CreateTagsRequest() {}
std::string CreateTagsRequest::getRegionId() const {
return regionId_;
}
void CreateTagsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string CreateTagsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string CreateTagsRequest::getOwnerAccount() const {
return ownerAccount_;
}
void CreateTagsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long CreateTagsRequest::getOwnerId() const {
return ownerId_;
}
void CreateTagsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::vector<CreateTagsRequest::TagKeyValueParamList> CreateTagsRequest::getTagKeyValueParamList() const {
return tagKeyValueParamList_;
}
void CreateTagsRequest::setTagKeyValueParamList(const std::vector<CreateTagsRequest::TagKeyValueParamList> &tagKeyValueParamList) {
tagKeyValueParamList_ = tagKeyValueParamList;
for(int dep1 = 0; dep1 != tagKeyValueParamList.size(); dep1++) {
auto tagKeyValueParamListObj = tagKeyValueParamList.at(dep1);
std::string tagKeyValueParamListObjStr = std::string("TagKeyValueParamList") + "." + std::to_string(dep1 + 1);
setParameter(tagKeyValueParamListObjStr + ".Key", tagKeyValueParamListObj.key);
for(int dep2 = 0; dep2 != tagKeyValueParamListObj.tagValueParamList.size(); dep2++) {
auto tagValueParamListObj = tagKeyValueParamListObj.tagValueParamList.at(dep2);
std::string tagValueParamListObjStr = tagKeyValueParamListObjStr + ".TagValueParamList" + "." + std::to_string(dep2 + 1);
setParameter(tagValueParamListObjStr + ".Value", tagValueParamListObj.value);
setParameter(tagValueParamListObjStr + ".Description", tagValueParamListObj.description);
}
setParameter(tagKeyValueParamListObjStr + ".Description", tagKeyValueParamListObj.description);
}
}

View 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/tag/model/CreateTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Tag;
using namespace AlibabaCloud::Tag::Model;
CreateTagsResult::CreateTagsResult() :
ServiceResult()
{}
CreateTagsResult::CreateTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateTagsResult::~CreateTagsResult()
{}
void CreateTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,81 @@
/*
* 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/tag/model/DeleteTagRequest.h>
using AlibabaCloud::Tag::Model::DeleteTagRequest;
DeleteTagRequest::DeleteTagRequest()
: RpcServiceRequest("tag", "2018-08-28", "DeleteTag") {
setMethod(HttpRequest::Method::Post);
}
DeleteTagRequest::~DeleteTagRequest() {}
std::string DeleteTagRequest::getRegionId() const {
return regionId_;
}
void DeleteTagRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DeleteTagRequest::getValue() const {
return value_;
}
void DeleteTagRequest::setValue(const std::string &value) {
value_ = value;
setParameter(std::string("Value"), value);
}
std::string DeleteTagRequest::getKey() const {
return key_;
}
void DeleteTagRequest::setKey(const std::string &key) {
key_ = key;
setParameter(std::string("Key"), key);
}
std::string DeleteTagRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DeleteTagRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DeleteTagRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DeleteTagRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DeleteTagRequest::getOwnerId() const {
return ownerId_;
}
void DeleteTagRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View 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/tag/model/DeleteTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Tag;
using namespace AlibabaCloud::Tag::Model;
DeleteTagResult::DeleteTagResult() :
ServiceResult()
{}
DeleteTagResult::DeleteTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTagResult::~DeleteTagResult()
{}
void DeleteTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,81 @@
/*
* 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/tag/model/DescribeRegionsRequest.h>
using AlibabaCloud::Tag::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest()
: RpcServiceRequest("tag", "2018-08-28", "DescribeRegions") {
setMethod(HttpRequest::Method::Post);
}
DescribeRegionsRequest::~DescribeRegionsRequest() {}
long DescribeRegionsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DescribeRegionsRequest::getRegionId() const {
return regionId_;
}
void DescribeRegionsRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string DescribeRegionsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DescribeRegionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DescribeRegionsRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DescribeRegionsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DescribeRegionsRequest::getOwnerId() const {
return ownerId_;
}
void DescribeRegionsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DescribeRegionsRequest::getAcceptLanguage() const {
return acceptLanguage_;
}
void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
acceptLanguage_ = acceptLanguage;
setParameter(std::string("AcceptLanguage"), acceptLanguage);
}

View File

@@ -0,0 +1,61 @@
/*
* 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/tag/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Tag;
using namespace AlibabaCloud::Tag::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRegionsNode = value["Regions"]["Region"];
for (auto valueRegionsRegion : allRegionsNode)
{
Region regionsObject;
if(!valueRegionsRegion["LocalName"].isNull())
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
if(!valueRegionsRegion["RegionEndpoint"].isNull())
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
if(!valueRegionsRegion["RegionId"].isNull())
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
regions_.push_back(regionsObject);
}
}
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
{
return regions_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/tag/model/ListResourcesByTagRequest.h>
using AlibabaCloud::Tag::Model::ListResourcesByTagRequest;
ListResourcesByTagRequest::ListResourcesByTagRequest()
: RpcServiceRequest("tag", "2018-08-28", "ListResourcesByTag") {
setMethod(HttpRequest::Method::Post);
}
ListResourcesByTagRequest::~ListResourcesByTagRequest() {}
std::string ListResourcesByTagRequest::getTagFilterKey() const {
return tagFilterKey_;
}
void ListResourcesByTagRequest::setTagFilterKey(const std::string &tagFilterKey) {
tagFilterKey_ = tagFilterKey;
setParameter(std::string("TagFilter.Key"), tagFilterKey);
}
std::string ListResourcesByTagRequest::getRegionId() const {
return regionId_;
}
void ListResourcesByTagRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
std::string ListResourcesByTagRequest::getNextToken() const {
return nextToken_;
}
void ListResourcesByTagRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
bool ListResourcesByTagRequest::getIncludeAllTags() const {
return includeAllTags_;
}
void ListResourcesByTagRequest::setIncludeAllTags(bool includeAllTags) {
includeAllTags_ = includeAllTags;
setParameter(std::string("IncludeAllTags"), includeAllTags ? "true" : "false");
}
std::string ListResourcesByTagRequest::getTagFilterValue() const {
return tagFilterValue_;
}
void ListResourcesByTagRequest::setTagFilterValue(const std::string &tagFilterValue) {
tagFilterValue_ = tagFilterValue;
setParameter(std::string("TagFilter.Value"), tagFilterValue);
}
std::string ListResourcesByTagRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ListResourcesByTagRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ListResourcesByTagRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ListResourcesByTagRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ListResourcesByTagRequest::getOwnerId() const {
return ownerId_;
}
void ListResourcesByTagRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ListResourcesByTagRequest::getResourceType() const {
return resourceType_;
}
void ListResourcesByTagRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
int ListResourcesByTagRequest::getMaxResult() const {
return maxResult_;
}
void ListResourcesByTagRequest::setMaxResult(int maxResult) {
maxResult_ = maxResult;
setParameter(std::string("MaxResult"), std::to_string(maxResult));
}
std::string ListResourcesByTagRequest::getFuzzyType() const {
return fuzzyType_;
}
void ListResourcesByTagRequest::setFuzzyType(const std::string &fuzzyType) {
fuzzyType_ = fuzzyType;
setParameter(std::string("FuzzyType"), fuzzyType);
}

View File

@@ -0,0 +1,76 @@
/*
* 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/tag/model/ListResourcesByTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Tag;
using namespace AlibabaCloud::Tag::Model;
ListResourcesByTagResult::ListResourcesByTagResult() :
ServiceResult()
{}
ListResourcesByTagResult::ListResourcesByTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListResourcesByTagResult::~ListResourcesByTagResult()
{}
void ListResourcesByTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResourcesNode = value["Resources"]["TagResource"];
for (auto valueResourcesTagResource : allResourcesNode)
{
TagResource resourcesObject;
if(!valueResourcesTagResource["ResourceId"].isNull())
resourcesObject.resourceId = valueResourcesTagResource["ResourceId"].asString();
auto allTagsNode = valueResourcesTagResource["Tags"]["Tag"];
for (auto valueResourcesTagResourceTagsTag : allTagsNode)
{
TagResource::Tag tagsObject;
if(!valueResourcesTagResourceTagsTag["Key"].isNull())
tagsObject.key = valueResourcesTagResourceTagsTag["Key"].asString();
if(!valueResourcesTagResourceTagsTag["Value"].isNull())
tagsObject.value = valueResourcesTagResourceTagsTag["Value"].asString();
if(!valueResourcesTagResourceTagsTag["Category"].isNull())
tagsObject.category = valueResourcesTagResourceTagsTag["Category"].asString();
resourcesObject.tags.push_back(tagsObject);
}
resources_.push_back(resourcesObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListResourcesByTagResult::getNextToken()const
{
return nextToken_;
}
std::vector<ListResourcesByTagResult::TagResource> ListResourcesByTagResult::getResources()const
{
return resources_;
}

View File

@@ -1,117 +1,135 @@
/*
* 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/tag/model/ListTagKeysRequest.h>
using AlibabaCloud::Tag::Model::ListTagKeysRequest;
ListTagKeysRequest::ListTagKeysRequest() :
RpcServiceRequest("tag", "2018-08-28", "ListTagKeys")
{
setMethod(HttpRequest::Method::Post);
}
ListTagKeysRequest::~ListTagKeysRequest()
{}
std::string ListTagKeysRequest::getRegionId()const
{
return regionId_;
*/
#include <alibabacloud/tag/model/ListTagKeysRequest.h>
using AlibabaCloud::Tag::Model::ListTagKeysRequest;
ListTagKeysRequest::ListTagKeysRequest()
: RpcServiceRequest("tag", "2018-08-28", "ListTagKeys") {
setMethod(HttpRequest::Method::Post);
}
void ListTagKeysRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
ListTagKeysRequest::~ListTagKeysRequest() {}
std::string ListTagKeysRequest::getTagProduct() const {
return tagProduct_;
}
std::string ListTagKeysRequest::getNextToken()const
{
return nextToken_;
void ListTagKeysRequest::setTagProduct(const std::string &tagProduct) {
tagProduct_ = tagProduct;
setParameter(std::string("TagProduct"), tagProduct);
}
void ListTagKeysRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string ListTagKeysRequest::getTagFilterKey() const {
return tagFilterKey_;
}
int ListTagKeysRequest::getPageSize()const
{
return pageSize_;
void ListTagKeysRequest::setTagFilterKey(const std::string &tagFilterKey) {
tagFilterKey_ = tagFilterKey;
setParameter(std::string("TagFilter.Key"), tagFilterKey);
}
void ListTagKeysRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
std::string ListTagKeysRequest::getRegionId() const {
return regionId_;
}
std::string ListTagKeysRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ListTagKeysRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void ListTagKeysRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ListTagKeysRequest::getNextToken() const {
return nextToken_;
}
std::string ListTagKeysRequest::getOwnerAccount()const
{
return ownerAccount_;
void ListTagKeysRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void ListTagKeysRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
int ListTagKeysRequest::getPageSize() const {
return pageSize_;
}
long ListTagKeysRequest::getOwnerId()const
{
return ownerId_;
void ListTagKeysRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void ListTagKeysRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
std::string ListTagKeysRequest::getQueryType() const {
return queryType_;
}
std::string ListTagKeysRequest::getResourceType()const
{
return resourceType_;
void ListTagKeysRequest::setQueryType(const std::string &queryType) {
queryType_ = queryType;
setParameter(std::string("QueryType"), queryType);
}
void ListTagKeysRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string ListTagKeysRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string ListTagKeysRequest::getCategory()const
{
return category_;
void ListTagKeysRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void ListTagKeysRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
std::string ListTagKeysRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ListTagKeysRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ListTagKeysRequest::getOwnerId() const {
return ownerId_;
}
void ListTagKeysRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ListTagKeysRequest::getResourceType() const {
return resourceType_;
}
void ListTagKeysRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string ListTagKeysRequest::getFuzzyType() const {
return fuzzyType_;
}
void ListTagKeysRequest::setFuzzyType(const std::string &fuzzyType) {
fuzzyType_ = fuzzyType;
setParameter(std::string("FuzzyType"), fuzzyType);
}
std::string ListTagKeysRequest::getCategory() const {
return category_;
}
void ListTagKeysRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}

View File

@@ -43,10 +43,12 @@ void ListTagKeysResult::parse(const std::string &payload)
for (auto valueKeysKey : allKeysNode)
{
Key keysObject;
if(!valueKeysKey["Category"].isNull())
keysObject.category = valueKeysKey["Category"].asString();
if(!valueKeysKey["Key"].isNull())
keysObject.key = valueKeysKey["Key"].asString();
if(!valueKeysKey["Category"].isNull())
keysObject.category = valueKeysKey["Category"].asString();
if(!valueKeysKey["Description"].isNull())
keysObject.description = valueKeysKey["Description"].asString();
keys_.push_back(keysObject);
}
if(!value["NextToken"].isNull())

View File

@@ -1,130 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/tag/model/ListTagResourcesRequest.h>
using AlibabaCloud::Tag::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest() :
RpcServiceRequest("tag", "2018-08-28", "ListTagResources")
{
setMethod(HttpRequest::Method::Post);
}
ListTagResourcesRequest::~ListTagResourcesRequest()
{}
std::string ListTagResourcesRequest::getRegionId()const
{
return regionId_;
*/
#include <alibabacloud/tag/model/ListTagResourcesRequest.h>
using AlibabaCloud::Tag::Model::ListTagResourcesRequest;
ListTagResourcesRequest::ListTagResourcesRequest()
: RpcServiceRequest("tag", "2018-08-28", "ListTagResources") {
setMethod(HttpRequest::Method::Post);
}
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
ListTagResourcesRequest::~ListTagResourcesRequest() {}
std::string ListTagResourcesRequest::getRegionId() const {
return regionId_;
}
std::string ListTagResourcesRequest::getNextToken()const
{
return nextToken_;
void ListTagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string ListTagResourcesRequest::getNextToken() const {
return nextToken_;
}
int ListTagResourcesRequest::getPageSize()const
{
return pageSize_;
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void ListTagResourcesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
int ListTagResourcesRequest::getPageSize() const {
return pageSize_;
}
std::vector<std::string> ListTagResourcesRequest::getResourceARN()const
{
return resourceARN_;
void ListTagResourcesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void ListTagResourcesRequest::setResourceARN(const std::vector<std::string>& resourceARN)
{
resourceARN_ = resourceARN;
for(int dep1 = 0; dep1!= resourceARN.size(); dep1++) {
setParameter("ResourceARN."+ std::to_string(dep1), resourceARN.at(dep1));
}
std::vector<std::string> ListTagResourcesRequest::getResourceARN() const {
return resourceARN_;
}
std::string ListTagResourcesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ListTagResourcesRequest::setResourceARN(const std::vector<std::string> &resourceARN) {
resourceARN_ = resourceARN;
}
void ListTagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ListTagResourcesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string ListTagResourcesRequest::getOwnerAccount()const
{
return ownerAccount_;
void ListTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void ListTagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string ListTagResourcesRequest::getOwnerAccount() const {
return ownerAccount_;
}
long ListTagResourcesRequest::getOwnerId()const
{
return ownerId_;
void ListTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void ListTagResourcesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long ListTagResourcesRequest::getOwnerId() const {
return ownerId_;
}
std::string ListTagResourcesRequest::getTags()const
{
return tags_;
void ListTagResourcesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void ListTagResourcesRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
std::string ListTagResourcesRequest::getTags() const {
return tags_;
}
std::string ListTagResourcesRequest::getCategory()const
{
return category_;
void ListTagResourcesRequest::setTags(const std::string &tags) {
tags_ = tags;
setParameter(std::string("Tags"), tags);
}
void ListTagResourcesRequest::setCategory(const std::string& category)
{
category_ = category;
setParameter("Category", category);
std::string ListTagResourcesRequest::getCategory() const {
return category_;
}
void ListTagResourcesRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("Category"), category);
}

View File

@@ -45,16 +45,16 @@ void ListTagResourcesResult::parse(const std::string &payload)
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["ResourceARN"].isNull())
tagResourcesObject.resourceARN = valueTagResourcesTagResource["ResourceARN"].asString();
auto allTagsNode = allTagResourcesNode["Tags"]["Tag"];
for (auto allTagResourcesNodeTagsTag : allTagsNode)
auto allTagsNode = valueTagResourcesTagResource["Tags"]["Tag"];
for (auto valueTagResourcesTagResourceTagsTag : allTagsNode)
{
TagResource::Tag tagsObject;
if(!allTagResourcesNodeTagsTag["Key"].isNull())
tagsObject.key = allTagResourcesNodeTagsTag["Key"].asString();
if(!allTagResourcesNodeTagsTag["Value"].isNull())
tagsObject.value = allTagResourcesNodeTagsTag["Value"].asString();
if(!allTagResourcesNodeTagsTag["Category"].isNull())
tagsObject.category = allTagResourcesNodeTagsTag["Category"].asString();
if(!valueTagResourcesTagResourceTagsTag["Key"].isNull())
tagsObject.key = valueTagResourcesTagResourceTagsTag["Key"].asString();
if(!valueTagResourcesTagResourceTagsTag["Value"].isNull())
tagsObject.value = valueTagResourcesTagResourceTagsTag["Value"].asString();
if(!valueTagResourcesTagResourceTagsTag["Category"].isNull())
tagsObject.category = valueTagResourcesTagResourceTagsTag["Category"].asString();
tagResourcesObject.tags.push_back(tagsObject);
}
tagResources_.push_back(tagResourcesObject);

View File

@@ -1,117 +1,135 @@
/*
* 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/tag/model/ListTagValuesRequest.h>
using AlibabaCloud::Tag::Model::ListTagValuesRequest;
ListTagValuesRequest::ListTagValuesRequest() :
RpcServiceRequest("tag", "2018-08-28", "ListTagValues")
{
setMethod(HttpRequest::Method::Post);
}
ListTagValuesRequest::~ListTagValuesRequest()
{}
std::string ListTagValuesRequest::getRegionId()const
{
return regionId_;
*/
#include <alibabacloud/tag/model/ListTagValuesRequest.h>
using AlibabaCloud::Tag::Model::ListTagValuesRequest;
ListTagValuesRequest::ListTagValuesRequest()
: RpcServiceRequest("tag", "2018-08-28", "ListTagValues") {
setMethod(HttpRequest::Method::Post);
}
void ListTagValuesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
ListTagValuesRequest::~ListTagValuesRequest() {}
std::string ListTagValuesRequest::getTagProduct() const {
return tagProduct_;
}
std::string ListTagValuesRequest::getNextToken()const
{
return nextToken_;
void ListTagValuesRequest::setTagProduct(const std::string &tagProduct) {
tagProduct_ = tagProduct;
setParameter(std::string("TagProduct"), tagProduct);
}
void ListTagValuesRequest::setNextToken(const std::string& nextToken)
{
nextToken_ = nextToken;
setParameter("NextToken", nextToken);
std::string ListTagValuesRequest::getRegionId() const {
return regionId_;
}
int ListTagValuesRequest::getPageSize()const
{
return pageSize_;
void ListTagValuesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void ListTagValuesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
std::string ListTagValuesRequest::getNextToken() const {
return nextToken_;
}
std::string ListTagValuesRequest::getKey()const
{
return key_;
void ListTagValuesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
void ListTagValuesRequest::setKey(const std::string& key)
{
key_ = key;
setParameter("Key", key);
int ListTagValuesRequest::getPageSize() const {
return pageSize_;
}
std::string ListTagValuesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void ListTagValuesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
void ListTagValuesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string ListTagValuesRequest::getTagFilterValue() const {
return tagFilterValue_;
}
std::string ListTagValuesRequest::getOwnerAccount()const
{
return ownerAccount_;
void ListTagValuesRequest::setTagFilterValue(const std::string &tagFilterValue) {
tagFilterValue_ = tagFilterValue;
setParameter(std::string("TagFilter.Value"), tagFilterValue);
}
void ListTagValuesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string ListTagValuesRequest::getKey() const {
return key_;
}
long ListTagValuesRequest::getOwnerId()const
{
return ownerId_;
void ListTagValuesRequest::setKey(const std::string &key) {
key_ = key;
setParameter(std::string("Key"), key);
}
void ListTagValuesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
std::string ListTagValuesRequest::getQueryType() const {
return queryType_;
}
std::string ListTagValuesRequest::getResourceType()const
{
return resourceType_;
void ListTagValuesRequest::setQueryType(const std::string &queryType) {
queryType_ = queryType;
setParameter(std::string("QueryType"), queryType);
}
void ListTagValuesRequest::setResourceType(const std::string& resourceType)
{
resourceType_ = resourceType;
setParameter("ResourceType", resourceType);
std::string ListTagValuesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ListTagValuesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ListTagValuesRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ListTagValuesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ListTagValuesRequest::getOwnerId() const {
return ownerId_;
}
void ListTagValuesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ListTagValuesRequest::getResourceType() const {
return resourceType_;
}
void ListTagValuesRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string ListTagValuesRequest::getFuzzyType() const {
return fuzzyType_;
}
void ListTagValuesRequest::setFuzzyType(const std::string &fuzzyType) {
fuzzyType_ = fuzzyType;
setParameter(std::string("FuzzyType"), fuzzyType);
}

View File

@@ -1,97 +1,80 @@
/*
* 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/tag/model/TagResourcesRequest.h>
using AlibabaCloud::Tag::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest() :
RpcServiceRequest("tag", "2018-08-28", "TagResources")
{
setMethod(HttpRequest::Method::Post);
}
TagResourcesRequest::~TagResourcesRequest()
{}
std::string TagResourcesRequest::getRegionId()const
{
return regionId_;
*/
#include <alibabacloud/tag/model/TagResourcesRequest.h>
using AlibabaCloud::Tag::Model::TagResourcesRequest;
TagResourcesRequest::TagResourcesRequest()
: RpcServiceRequest("tag", "2018-08-28", "TagResources") {
setMethod(HttpRequest::Method::Post);
}
void TagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
TagResourcesRequest::~TagResourcesRequest() {}
std::string TagResourcesRequest::getRegionId() const {
return regionId_;
}
std::vector<std::string> TagResourcesRequest::getResourceARN()const
{
return resourceARN_;
void TagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void TagResourcesRequest::setResourceARN(const std::vector<std::string>& resourceARN)
{
resourceARN_ = resourceARN;
for(int dep1 = 0; dep1!= resourceARN.size(); dep1++) {
setParameter("ResourceARN."+ std::to_string(dep1), resourceARN.at(dep1));
}
std::vector<std::string> TagResourcesRequest::getResourceARN() const {
return resourceARN_;
}
std::string TagResourcesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void TagResourcesRequest::setResourceARN(const std::vector<std::string> &resourceARN) {
resourceARN_ = resourceARN;
}
void TagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string TagResourcesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string TagResourcesRequest::getOwnerAccount()const
{
return ownerAccount_;
void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void TagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string TagResourcesRequest::getOwnerAccount() const {
return ownerAccount_;
}
long TagResourcesRequest::getOwnerId()const
{
return ownerId_;
void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void TagResourcesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long TagResourcesRequest::getOwnerId() const {
return ownerId_;
}
std::string TagResourcesRequest::getTags()const
{
return tags_;
void TagResourcesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void TagResourcesRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
std::string TagResourcesRequest::getTags() const {
return tags_;
}
void TagResourcesRequest::setTags(const std::string &tags) {
tags_ = tags;
setParameter(std::string("Tags"), tags);
}

View File

@@ -1,99 +1,79 @@
/*
* 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/tag/model/UntagResourcesRequest.h>
using AlibabaCloud::Tag::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest() :
RpcServiceRequest("tag", "2018-08-28", "UntagResources")
{
setMethod(HttpRequest::Method::Post);
}
UntagResourcesRequest::~UntagResourcesRequest()
{}
std::string UntagResourcesRequest::getRegionId()const
{
return regionId_;
*/
#include <alibabacloud/tag/model/UntagResourcesRequest.h>
using AlibabaCloud::Tag::Model::UntagResourcesRequest;
UntagResourcesRequest::UntagResourcesRequest()
: RpcServiceRequest("tag", "2018-08-28", "UntagResources") {
setMethod(HttpRequest::Method::Post);
}
void UntagResourcesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
UntagResourcesRequest::~UntagResourcesRequest() {}
std::string UntagResourcesRequest::getRegionId() const {
return regionId_;
}
std::vector<std::string> UntagResourcesRequest::getResourceARN()const
{
return resourceARN_;
void UntagResourcesRequest::setRegionId(const std::string &regionId) {
regionId_ = regionId;
setParameter(std::string("RegionId"), regionId);
}
void UntagResourcesRequest::setResourceARN(const std::vector<std::string>& resourceARN)
{
resourceARN_ = resourceARN;
for(int dep1 = 0; dep1!= resourceARN.size(); dep1++) {
setParameter("ResourceARN."+ std::to_string(dep1), resourceARN.at(dep1));
}
std::vector<std::string> UntagResourcesRequest::getResourceARN() const {
return resourceARN_;
}
std::string UntagResourcesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
void UntagResourcesRequest::setResourceARN(const std::vector<std::string> &resourceARN) {
resourceARN_ = resourceARN;
}
void UntagResourcesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
std::string UntagResourcesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
std::string UntagResourcesRequest::getOwnerAccount()const
{
return ownerAccount_;
void UntagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
void UntagResourcesRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
std::string UntagResourcesRequest::getOwnerAccount() const {
return ownerAccount_;
}
long UntagResourcesRequest::getOwnerId()const
{
return ownerId_;
void UntagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
void UntagResourcesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
long UntagResourcesRequest::getOwnerId() const {
return ownerId_;
}
std::vector<std::string> UntagResourcesRequest::getTagKey()const
{
return tagKey_;
void UntagResourcesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
{
tagKey_ = tagKey;
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
}
std::vector<std::string> UntagResourcesRequest::getTagKey() const {
return tagKey_;
}
void UntagResourcesRequest::setTagKey(const std::vector<std::string> &tagKey) {
tagKey_ = tagKey;
}