Generated 2022-12-01 for ResourceCenter.

This commit is contained in:
sdk-team
2024-10-08 07:58:51 +00:00
parent 429d57cff4
commit e676e2e38f
83 changed files with 4026 additions and 83 deletions

View File

@@ -51,6 +51,186 @@ ResourceCenterClient::ResourceCenterClient(const std::string & accessKeyId, cons
ResourceCenterClient::~ResourceCenterClient()
{}
ResourceCenterClient::AssociateDefaultFilterOutcome ResourceCenterClient::associateDefaultFilter(const AssociateDefaultFilterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return AssociateDefaultFilterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return AssociateDefaultFilterOutcome(AssociateDefaultFilterResult(outcome.result()));
else
return AssociateDefaultFilterOutcome(outcome.error());
}
void ResourceCenterClient::associateDefaultFilterAsync(const AssociateDefaultFilterRequest& request, const AssociateDefaultFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, associateDefaultFilter(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::AssociateDefaultFilterOutcomeCallable ResourceCenterClient::associateDefaultFilterCallable(const AssociateDefaultFilterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<AssociateDefaultFilterOutcome()>>(
[this, request]()
{
return this->associateDefaultFilter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::CreateFilterOutcome ResourceCenterClient::createFilter(const CreateFilterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateFilterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateFilterOutcome(CreateFilterResult(outcome.result()));
else
return CreateFilterOutcome(outcome.error());
}
void ResourceCenterClient::createFilterAsync(const CreateFilterRequest& request, const CreateFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createFilter(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::CreateFilterOutcomeCallable ResourceCenterClient::createFilterCallable(const CreateFilterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateFilterOutcome()>>(
[this, request]()
{
return this->createFilter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::CreateSavedQueryOutcome ResourceCenterClient::createSavedQuery(const CreateSavedQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateSavedQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateSavedQueryOutcome(CreateSavedQueryResult(outcome.result()));
else
return CreateSavedQueryOutcome(outcome.error());
}
void ResourceCenterClient::createSavedQueryAsync(const CreateSavedQueryRequest& request, const CreateSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createSavedQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::CreateSavedQueryOutcomeCallable ResourceCenterClient::createSavedQueryCallable(const CreateSavedQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateSavedQueryOutcome()>>(
[this, request]()
{
return this->createSavedQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::DeleteFilterOutcome ResourceCenterClient::deleteFilter(const DeleteFilterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteFilterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteFilterOutcome(DeleteFilterResult(outcome.result()));
else
return DeleteFilterOutcome(outcome.error());
}
void ResourceCenterClient::deleteFilterAsync(const DeleteFilterRequest& request, const DeleteFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteFilter(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::DeleteFilterOutcomeCallable ResourceCenterClient::deleteFilterCallable(const DeleteFilterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteFilterOutcome()>>(
[this, request]()
{
return this->deleteFilter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::DeleteSavedQueryOutcome ResourceCenterClient::deleteSavedQuery(const DeleteSavedQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteSavedQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteSavedQueryOutcome(DeleteSavedQueryResult(outcome.result()));
else
return DeleteSavedQueryOutcome(outcome.error());
}
void ResourceCenterClient::deleteSavedQueryAsync(const DeleteSavedQueryRequest& request, const DeleteSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteSavedQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::DeleteSavedQueryOutcomeCallable ResourceCenterClient::deleteSavedQueryCallable(const DeleteSavedQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteSavedQueryOutcome()>>(
[this, request]()
{
return this->deleteSavedQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::DisableMultiAccountResourceCenterOutcome ResourceCenterClient::disableMultiAccountResourceCenter(const DisableMultiAccountResourceCenterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -123,6 +303,42 @@ ResourceCenterClient::DisableResourceCenterOutcomeCallable ResourceCenterClient:
return task->get_future();
}
ResourceCenterClient::DisassociateDefaultFilterOutcome ResourceCenterClient::disassociateDefaultFilter(const DisassociateDefaultFilterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DisassociateDefaultFilterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DisassociateDefaultFilterOutcome(DisassociateDefaultFilterResult(outcome.result()));
else
return DisassociateDefaultFilterOutcome(outcome.error());
}
void ResourceCenterClient::disassociateDefaultFilterAsync(const DisassociateDefaultFilterRequest& request, const DisassociateDefaultFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, disassociateDefaultFilter(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::DisassociateDefaultFilterOutcomeCallable ResourceCenterClient::disassociateDefaultFilterCallable(const DisassociateDefaultFilterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DisassociateDefaultFilterOutcome()>>(
[this, request]()
{
return this->disassociateDefaultFilter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::EnableMultiAccountResourceCenterOutcome ResourceCenterClient::enableMultiAccountResourceCenter(const EnableMultiAccountResourceCenterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -195,6 +411,114 @@ ResourceCenterClient::EnableResourceCenterOutcomeCallable ResourceCenterClient::
return task->get_future();
}
ResourceCenterClient::ExecuteMultiAccountSQLQueryOutcome ResourceCenterClient::executeMultiAccountSQLQuery(const ExecuteMultiAccountSQLQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExecuteMultiAccountSQLQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExecuteMultiAccountSQLQueryOutcome(ExecuteMultiAccountSQLQueryResult(outcome.result()));
else
return ExecuteMultiAccountSQLQueryOutcome(outcome.error());
}
void ResourceCenterClient::executeMultiAccountSQLQueryAsync(const ExecuteMultiAccountSQLQueryRequest& request, const ExecuteMultiAccountSQLQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, executeMultiAccountSQLQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::ExecuteMultiAccountSQLQueryOutcomeCallable ResourceCenterClient::executeMultiAccountSQLQueryCallable(const ExecuteMultiAccountSQLQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExecuteMultiAccountSQLQueryOutcome()>>(
[this, request]()
{
return this->executeMultiAccountSQLQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::ExecuteSQLQueryOutcome ResourceCenterClient::executeSQLQuery(const ExecuteSQLQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExecuteSQLQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExecuteSQLQueryOutcome(ExecuteSQLQueryResult(outcome.result()));
else
return ExecuteSQLQueryOutcome(outcome.error());
}
void ResourceCenterClient::executeSQLQueryAsync(const ExecuteSQLQueryRequest& request, const ExecuteSQLQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, executeSQLQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::ExecuteSQLQueryOutcomeCallable ResourceCenterClient::executeSQLQueryCallable(const ExecuteSQLQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExecuteSQLQueryOutcome()>>(
[this, request]()
{
return this->executeSQLQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::GetExampleQueryOutcome ResourceCenterClient::getExampleQuery(const GetExampleQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetExampleQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetExampleQueryOutcome(GetExampleQueryResult(outcome.result()));
else
return GetExampleQueryOutcome(outcome.error());
}
void ResourceCenterClient::getExampleQueryAsync(const GetExampleQueryRequest& request, const GetExampleQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getExampleQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::GetExampleQueryOutcomeCallable ResourceCenterClient::getExampleQueryCallable(const GetExampleQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetExampleQueryOutcome()>>(
[this, request]()
{
return this->getExampleQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::GetMultiAccountResourceCenterServiceStatusOutcome ResourceCenterClient::getMultiAccountResourceCenterServiceStatus(const GetMultiAccountResourceCenterServiceStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -375,6 +699,114 @@ ResourceCenterClient::GetResourceCountsOutcomeCallable ResourceCenterClient::get
return task->get_future();
}
ResourceCenterClient::GetSavedQueryOutcome ResourceCenterClient::getSavedQuery(const GetSavedQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetSavedQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetSavedQueryOutcome(GetSavedQueryResult(outcome.result()));
else
return GetSavedQueryOutcome(outcome.error());
}
void ResourceCenterClient::getSavedQueryAsync(const GetSavedQueryRequest& request, const GetSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getSavedQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::GetSavedQueryOutcomeCallable ResourceCenterClient::getSavedQueryCallable(const GetSavedQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetSavedQueryOutcome()>>(
[this, request]()
{
return this->getSavedQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::ListExampleQueriesOutcome ResourceCenterClient::listExampleQueries(const ListExampleQueriesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListExampleQueriesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListExampleQueriesOutcome(ListExampleQueriesResult(outcome.result()));
else
return ListExampleQueriesOutcome(outcome.error());
}
void ResourceCenterClient::listExampleQueriesAsync(const ListExampleQueriesRequest& request, const ListExampleQueriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listExampleQueries(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::ListExampleQueriesOutcomeCallable ResourceCenterClient::listExampleQueriesCallable(const ListExampleQueriesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListExampleQueriesOutcome()>>(
[this, request]()
{
return this->listExampleQueries(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::ListFiltersOutcome ResourceCenterClient::listFilters(const ListFiltersRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListFiltersOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListFiltersOutcome(ListFiltersResult(outcome.result()));
else
return ListFiltersOutcome(outcome.error());
}
void ResourceCenterClient::listFiltersAsync(const ListFiltersRequest& request, const ListFiltersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listFilters(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::ListFiltersOutcomeCallable ResourceCenterClient::listFiltersCallable(const ListFiltersRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListFiltersOutcome()>>(
[this, request]()
{
return this->listFilters(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::ListMultiAccountResourceGroupsOutcome ResourceCenterClient::listMultiAccountResourceGroups(const ListMultiAccountResourceGroupsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -519,6 +951,42 @@ ResourceCenterClient::ListResourceTypesOutcomeCallable ResourceCenterClient::lis
return task->get_future();
}
ResourceCenterClient::ListSavedQueriesOutcome ResourceCenterClient::listSavedQueries(const ListSavedQueriesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListSavedQueriesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListSavedQueriesOutcome(ListSavedQueriesResult(outcome.result()));
else
return ListSavedQueriesOutcome(outcome.error());
}
void ResourceCenterClient::listSavedQueriesAsync(const ListSavedQueriesRequest& request, const ListSavedQueriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listSavedQueries(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::ListSavedQueriesOutcomeCallable ResourceCenterClient::listSavedQueriesCallable(const ListSavedQueriesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListSavedQueriesOutcome()>>(
[this, request]()
{
return this->listSavedQueries(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::ListTagKeysOutcome ResourceCenterClient::listTagKeys(const ListTagKeysRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -663,3 +1131,75 @@ ResourceCenterClient::SearchResourcesOutcomeCallable ResourceCenterClient::searc
return task->get_future();
}
ResourceCenterClient::UpdateFilterOutcome ResourceCenterClient::updateFilter(const UpdateFilterRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateFilterOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateFilterOutcome(UpdateFilterResult(outcome.result()));
else
return UpdateFilterOutcome(outcome.error());
}
void ResourceCenterClient::updateFilterAsync(const UpdateFilterRequest& request, const UpdateFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateFilter(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::UpdateFilterOutcomeCallable ResourceCenterClient::updateFilterCallable(const UpdateFilterRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateFilterOutcome()>>(
[this, request]()
{
return this->updateFilter(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
ResourceCenterClient::UpdateSavedQueryOutcome ResourceCenterClient::updateSavedQuery(const UpdateSavedQueryRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateSavedQueryOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateSavedQueryOutcome(UpdateSavedQueryResult(outcome.result()));
else
return UpdateSavedQueryOutcome(outcome.error());
}
void ResourceCenterClient::updateSavedQueryAsync(const UpdateSavedQueryRequest& request, const UpdateSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateSavedQuery(request), context);
};
asyncExecute(new Runnable(fn));
}
ResourceCenterClient::UpdateSavedQueryOutcomeCallable ResourceCenterClient::updateSavedQueryCallable(const UpdateSavedQueryRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateSavedQueryOutcome()>>(
[this, request]()
{
return this->updateSavedQuery(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcecenter/model/AssociateDefaultFilterRequest.h>
using AlibabaCloud::ResourceCenter::Model::AssociateDefaultFilterRequest;
AssociateDefaultFilterRequest::AssociateDefaultFilterRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "AssociateDefaultFilter") {
setMethod(HttpRequest::Method::Post);
}
AssociateDefaultFilterRequest::~AssociateDefaultFilterRequest() {}
std::string AssociateDefaultFilterRequest::getFilterName() const {
return filterName_;
}
void AssociateDefaultFilterRequest::setFilterName(const std::string &filterName) {
filterName_ = filterName;
setParameter(std::string("FilterName"), filterName);
}

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

View File

@@ -0,0 +1,45 @@
/*
* 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/resourcecenter/model/CreateFilterRequest.h>
using AlibabaCloud::ResourceCenter::Model::CreateFilterRequest;
CreateFilterRequest::CreateFilterRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "CreateFilter") {
setMethod(HttpRequest::Method::Post);
}
CreateFilterRequest::~CreateFilterRequest() {}
std::string CreateFilterRequest::getFilterName() const {
return filterName_;
}
void CreateFilterRequest::setFilterName(const std::string &filterName) {
filterName_ = filterName;
setParameter(std::string("FilterName"), filterName);
}
std::string CreateFilterRequest::getFilterConfiguration() const {
return filterConfiguration_;
}
void CreateFilterRequest::setFilterConfiguration(const std::string &filterConfiguration) {
filterConfiguration_ = filterConfiguration;
setParameter(std::string("FilterConfiguration"), filterConfiguration);
}

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

View File

@@ -0,0 +1,54 @@
/*
* 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/resourcecenter/model/CreateSavedQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::CreateSavedQueryRequest;
CreateSavedQueryRequest::CreateSavedQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "CreateSavedQuery") {
setMethod(HttpRequest::Method::Post);
}
CreateSavedQueryRequest::~CreateSavedQueryRequest() {}
std::string CreateSavedQueryRequest::getExpression() const {
return expression_;
}
void CreateSavedQueryRequest::setExpression(const std::string &expression) {
expression_ = expression;
setParameter(std::string("Expression"), expression);
}
std::string CreateSavedQueryRequest::getDescription() const {
return description_;
}
void CreateSavedQueryRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string CreateSavedQueryRequest::getName() const {
return name_;
}
void CreateSavedQueryRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

View 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/resourcecenter/model/CreateSavedQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
CreateSavedQueryResult::CreateSavedQueryResult() :
ServiceResult()
{}
CreateSavedQueryResult::CreateSavedQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSavedQueryResult::~CreateSavedQueryResult()
{}
void CreateSavedQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["QueryId"].isNull())
queryId_ = value["QueryId"].asString();
}
std::string CreateSavedQueryResult::getQueryId()const
{
return queryId_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcecenter/model/DeleteFilterRequest.h>
using AlibabaCloud::ResourceCenter::Model::DeleteFilterRequest;
DeleteFilterRequest::DeleteFilterRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "DeleteFilter") {
setMethod(HttpRequest::Method::Post);
}
DeleteFilterRequest::~DeleteFilterRequest() {}
std::string DeleteFilterRequest::getFilterName() const {
return filterName_;
}
void DeleteFilterRequest::setFilterName(const std::string &filterName) {
filterName_ = filterName;
setParameter(std::string("FilterName"), filterName);
}

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

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcecenter/model/DeleteSavedQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::DeleteSavedQueryRequest;
DeleteSavedQueryRequest::DeleteSavedQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "DeleteSavedQuery") {
setMethod(HttpRequest::Method::Post);
}
DeleteSavedQueryRequest::~DeleteSavedQueryRequest() {}
std::string DeleteSavedQueryRequest::getQueryId() const {
return queryId_;
}
void DeleteSavedQueryRequest::setQueryId(const std::string &queryId) {
queryId_ = queryId;
setParameter(std::string("QueryId"), queryId);
}

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

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcecenter/model/DisassociateDefaultFilterRequest.h>
using AlibabaCloud::ResourceCenter::Model::DisassociateDefaultFilterRequest;
DisassociateDefaultFilterRequest::DisassociateDefaultFilterRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "DisassociateDefaultFilter") {
setMethod(HttpRequest::Method::Post);
}
DisassociateDefaultFilterRequest::~DisassociateDefaultFilterRequest() {}

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

View File

@@ -0,0 +1,63 @@
/*
* 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/resourcecenter/model/ExecuteMultiAccountSQLQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::ExecuteMultiAccountSQLQueryRequest;
ExecuteMultiAccountSQLQueryRequest::ExecuteMultiAccountSQLQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "ExecuteMultiAccountSQLQuery") {
setMethod(HttpRequest::Method::Post);
}
ExecuteMultiAccountSQLQueryRequest::~ExecuteMultiAccountSQLQueryRequest() {}
std::string ExecuteMultiAccountSQLQueryRequest::getExpression() const {
return expression_;
}
void ExecuteMultiAccountSQLQueryRequest::setExpression(const std::string &expression) {
expression_ = expression;
setParameter(std::string("Expression"), expression);
}
std::string ExecuteMultiAccountSQLQueryRequest::getNextToken() const {
return nextToken_;
}
void ExecuteMultiAccountSQLQueryRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ExecuteMultiAccountSQLQueryRequest::getScope() const {
return scope_;
}
void ExecuteMultiAccountSQLQueryRequest::setScope(const std::string &scope) {
scope_ = scope;
setParameter(std::string("Scope"), scope);
}
int ExecuteMultiAccountSQLQueryRequest::getMaxResults() const {
return maxResults_;
}
void ExecuteMultiAccountSQLQueryRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

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/resourcecenter/model/ExecuteMultiAccountSQLQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
ExecuteMultiAccountSQLQueryResult::ExecuteMultiAccountSQLQueryResult() :
ServiceResult()
{}
ExecuteMultiAccountSQLQueryResult::ExecuteMultiAccountSQLQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecuteMultiAccountSQLQueryResult::~ExecuteMultiAccountSQLQueryResult()
{}
void ExecuteMultiAccountSQLQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allColumnsNode = value["Columns"]["Column"];
for (auto valueColumnsColumn : allColumnsNode)
{
Column columnsObject;
if(!valueColumnsColumn["Name"].isNull())
columnsObject.name = valueColumnsColumn["Name"].asString();
if(!valueColumnsColumn["Type"].isNull())
columnsObject.type = valueColumnsColumn["Type"].asString();
columns_.push_back(columnsObject);
}
auto allRows = value["Rows"]["Row"];
for (const auto &item : allRows)
rows_.push_back(item.asString());
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ExecuteMultiAccountSQLQueryResult::getNextToken()const
{
return nextToken_;
}
int ExecuteMultiAccountSQLQueryResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ExecuteMultiAccountSQLQueryResult::Column> ExecuteMultiAccountSQLQueryResult::getColumns()const
{
return columns_;
}
std::vector<std::string> ExecuteMultiAccountSQLQueryResult::getRows()const
{
return rows_;
}

View File

@@ -0,0 +1,63 @@
/*
* 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/resourcecenter/model/ExecuteSQLQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::ExecuteSQLQueryRequest;
ExecuteSQLQueryRequest::ExecuteSQLQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "ExecuteSQLQuery") {
setMethod(HttpRequest::Method::Post);
}
ExecuteSQLQueryRequest::~ExecuteSQLQueryRequest() {}
std::string ExecuteSQLQueryRequest::getExpression() const {
return expression_;
}
void ExecuteSQLQueryRequest::setExpression(const std::string &expression) {
expression_ = expression;
setParameter(std::string("Expression"), expression);
}
std::string ExecuteSQLQueryRequest::getNextToken() const {
return nextToken_;
}
void ExecuteSQLQueryRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ExecuteSQLQueryRequest::getScope() const {
return scope_;
}
void ExecuteSQLQueryRequest::setScope(const std::string &scope) {
scope_ = scope;
setParameter(std::string("Scope"), scope);
}
int ExecuteSQLQueryRequest::getMaxResults() const {
return maxResults_;
}
void ExecuteSQLQueryRequest::setMaxResults(int maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), std::to_string(maxResults));
}

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/resourcecenter/model/ExecuteSQLQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
ExecuteSQLQueryResult::ExecuteSQLQueryResult() :
ServiceResult()
{}
ExecuteSQLQueryResult::ExecuteSQLQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecuteSQLQueryResult::~ExecuteSQLQueryResult()
{}
void ExecuteSQLQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allColumnsNode = value["Columns"]["Column"];
for (auto valueColumnsColumn : allColumnsNode)
{
Column columnsObject;
if(!valueColumnsColumn["Name"].isNull())
columnsObject.name = valueColumnsColumn["Name"].asString();
if(!valueColumnsColumn["Type"].isNull())
columnsObject.type = valueColumnsColumn["Type"].asString();
columns_.push_back(columnsObject);
}
auto allRows = value["Rows"]["Row"];
for (const auto &item : allRows)
rows_.push_back(item.asString());
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ExecuteSQLQueryResult::getNextToken()const
{
return nextToken_;
}
int ExecuteSQLQueryResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ExecuteSQLQueryResult::Column> ExecuteSQLQueryResult::getColumns()const
{
return columns_;
}
std::vector<std::string> ExecuteSQLQueryResult::getRows()const
{
return rows_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcecenter/model/GetExampleQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::GetExampleQueryRequest;
GetExampleQueryRequest::GetExampleQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "GetExampleQuery") {
setMethod(HttpRequest::Method::Post);
}
GetExampleQueryRequest::~GetExampleQueryRequest() {}
std::string GetExampleQueryRequest::getQueryId() const {
return queryId_;
}
void GetExampleQueryRequest::setQueryId(const std::string &queryId) {
queryId_ = queryId;
setParameter(std::string("QueryId"), queryId);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/resourcecenter/model/GetExampleQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
GetExampleQueryResult::GetExampleQueryResult() :
ServiceResult()
{}
GetExampleQueryResult::GetExampleQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetExampleQueryResult::~GetExampleQueryResult()
{}
void GetExampleQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto exampleQueryNode = value["ExampleQuery"];
if(!exampleQueryNode["QueryId"].isNull())
exampleQuery_.queryId = exampleQueryNode["QueryId"].asString();
if(!exampleQueryNode["Expression"].isNull())
exampleQuery_.expression = exampleQueryNode["Expression"].asString();
if(!exampleQueryNode["Name"].isNull())
exampleQuery_.name = exampleQueryNode["Name"].asString();
if(!exampleQueryNode["Description"].isNull())
exampleQuery_.description = exampleQueryNode["Description"].asString();
}
GetExampleQueryResult::ExampleQuery GetExampleQueryResult::getExampleQuery()const
{
return exampleQuery_;
}

View File

@@ -25,24 +25,6 @@ GetMultiAccountResourceConfigurationRequest::GetMultiAccountResourceConfiguratio
GetMultiAccountResourceConfigurationRequest::~GetMultiAccountResourceConfigurationRequest() {}
std::string GetMultiAccountResourceConfigurationRequest::getResourceId() const {
return resourceId_;
}
void GetMultiAccountResourceConfigurationRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
std::string GetMultiAccountResourceConfigurationRequest::getResourceType() const {
return resourceType_;
}
void GetMultiAccountResourceConfigurationRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}
std::string GetMultiAccountResourceConfigurationRequest::getAccountId() const {
return accountId_;
}
@@ -61,3 +43,21 @@ void GetMultiAccountResourceConfigurationRequest::setResourceRegionId(const std:
setParameter(std::string("ResourceRegionId"), resourceRegionId);
}
std::string GetMultiAccountResourceConfigurationRequest::getResourceId() const {
return resourceId_;
}
void GetMultiAccountResourceConfigurationRequest::setResourceId(const std::string &resourceId) {
resourceId_ = resourceId;
setParameter(std::string("ResourceId"), resourceId);
}
std::string GetMultiAccountResourceConfigurationRequest::getResourceType() const {
return resourceType_;
}
void GetMultiAccountResourceConfigurationRequest::setResourceType(const std::string &resourceType) {
resourceType_ = resourceType;
setParameter(std::string("ResourceType"), resourceType);
}

View File

@@ -39,6 +39,116 @@ void GetMultiAccountResourceConfigurationResult::parse(const std::string &payloa
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allIpAddressAttributesNode = value["IpAddressAttributes"]["IpAddressAttribute"];
for (auto valueIpAddressAttributesIpAddressAttribute : allIpAddressAttributesNode)
{
IpAddressAttribute ipAddressAttributesObject;
if(!valueIpAddressAttributesIpAddressAttribute["IpAddress"].isNull())
ipAddressAttributesObject.ipAddress = valueIpAddressAttributesIpAddressAttribute["IpAddress"].asString();
if(!valueIpAddressAttributesIpAddressAttribute["NetworkType"].isNull())
ipAddressAttributesObject.networkType = valueIpAddressAttributesIpAddressAttribute["NetworkType"].asString();
if(!valueIpAddressAttributesIpAddressAttribute["Version"].isNull())
ipAddressAttributesObject.version = valueIpAddressAttributesIpAddressAttribute["Version"].asString();
ipAddressAttributes_.push_back(ipAddressAttributesObject);
}
auto allTagsNode = value["Tags"]["Tag"];
for (auto valueTagsTag : allTagsNode)
{
Tag tagsObject;
if(!valueTagsTag["Key"].isNull())
tagsObject.key = valueTagsTag["Key"].asString();
if(!valueTagsTag["Value"].isNull())
tagsObject.value = valueTagsTag["Value"].asString();
tags_.push_back(tagsObject);
}
auto allIpAddresses = value["IpAddresses"]["IpAddress"];
for (const auto &item : allIpAddresses)
ipAddresses_.push_back(item.asString());
if(!value["AccountId"].isNull())
accountId_ = value["AccountId"].asString();
if(!value["Configuration"].isNull())
configuration_ = value["Configuration"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["ExpireTime"].isNull())
expireTime_ = value["ExpireTime"].asString();
if(!value["RegionId"].isNull())
regionId_ = value["RegionId"].asString();
if(!value["ResourceGroupId"].isNull())
resourceGroupId_ = value["ResourceGroupId"].asString();
if(!value["ResourceId"].isNull())
resourceId_ = value["ResourceId"].asString();
if(!value["ResourceName"].isNull())
resourceName_ = value["ResourceName"].asString();
if(!value["ResourceType"].isNull())
resourceType_ = value["ResourceType"].asString();
if(!value["ZoneId"].isNull())
zoneId_ = value["ZoneId"].asString();
}
std::string GetMultiAccountResourceConfigurationResult::getAccountId()const
{
return accountId_;
}
std::string GetMultiAccountResourceConfigurationResult::getConfiguration()const
{
return configuration_;
}
std::string GetMultiAccountResourceConfigurationResult::getResourceGroupId()const
{
return resourceGroupId_;
}
std::string GetMultiAccountResourceConfigurationResult::getZoneId()const
{
return zoneId_;
}
std::string GetMultiAccountResourceConfigurationResult::getResourceName()const
{
return resourceName_;
}
std::string GetMultiAccountResourceConfigurationResult::getCreateTime()const
{
return createTime_;
}
std::string GetMultiAccountResourceConfigurationResult::getResourceType()const
{
return resourceType_;
}
std::vector<std::string> GetMultiAccountResourceConfigurationResult::getIpAddresses()const
{
return ipAddresses_;
}
std::string GetMultiAccountResourceConfigurationResult::getResourceId()const
{
return resourceId_;
}
std::string GetMultiAccountResourceConfigurationResult::getRegionId()const
{
return regionId_;
}
std::vector<GetMultiAccountResourceConfigurationResult::IpAddressAttribute> GetMultiAccountResourceConfigurationResult::getIpAddressAttributes()const
{
return ipAddressAttributes_;
}
std::string GetMultiAccountResourceConfigurationResult::getExpireTime()const
{
return expireTime_;
}
std::vector<GetMultiAccountResourceConfigurationResult::Tag> GetMultiAccountResourceConfigurationResult::getTags()const
{
return tags_;
}

View File

@@ -39,6 +39,15 @@ void GetResourceCountsRequest::setFilter(const std::vector<GetResourceCountsRequ
}
}
std::string GetResourceCountsRequest::getView() const {
return view_;
}
void GetResourceCountsRequest::setView(const std::string &view) {
view_ = view;
setParameter(std::string("View"), view);
}
std::string GetResourceCountsRequest::getGroupByKey() const {
return groupByKey_;
}

View File

@@ -0,0 +1,36 @@
/*
* 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/resourcecenter/model/GetSavedQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::GetSavedQueryRequest;
GetSavedQueryRequest::GetSavedQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "GetSavedQuery") {
setMethod(HttpRequest::Method::Post);
}
GetSavedQueryRequest::~GetSavedQueryRequest() {}
std::string GetSavedQueryRequest::getQueryId() const {
return queryId_;
}
void GetSavedQueryRequest::setQueryId(const std::string &queryId) {
queryId_ = queryId;
setParameter(std::string("QueryId"), queryId);
}

View 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/resourcecenter/model/GetSavedQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
GetSavedQueryResult::GetSavedQueryResult() :
ServiceResult()
{}
GetSavedQueryResult::GetSavedQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSavedQueryResult::~GetSavedQueryResult()
{}
void GetSavedQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto savedQueryNode = value["SavedQuery"];
if(!savedQueryNode["QueryId"].isNull())
savedQuery_.queryId = savedQueryNode["QueryId"].asString();
if(!savedQueryNode["Expression"].isNull())
savedQuery_.expression = savedQueryNode["Expression"].asString();
if(!savedQueryNode["Name"].isNull())
savedQuery_.name = savedQueryNode["Name"].asString();
if(!savedQueryNode["Description"].isNull())
savedQuery_.description = savedQueryNode["Description"].asString();
if(!savedQueryNode["CreateTime"].isNull())
savedQuery_.createTime = savedQueryNode["CreateTime"].asString();
if(!savedQueryNode["UpdateTime"].isNull())
savedQuery_.updateTime = savedQueryNode["UpdateTime"].asString();
}
GetSavedQueryResult::SavedQuery GetSavedQueryResult::getSavedQuery()const
{
return savedQuery_;
}

View File

@@ -0,0 +1,45 @@
/*
* 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/resourcecenter/model/ListExampleQueriesRequest.h>
using AlibabaCloud::ResourceCenter::Model::ListExampleQueriesRequest;
ListExampleQueriesRequest::ListExampleQueriesRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "ListExampleQueries") {
setMethod(HttpRequest::Method::Post);
}
ListExampleQueriesRequest::~ListExampleQueriesRequest() {}
std::string ListExampleQueriesRequest::getNextToken() const {
return nextToken_;
}
void ListExampleQueriesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListExampleQueriesRequest::getMaxResults() const {
return maxResults_;
}
void ListExampleQueriesRequest::setMaxResults(const std::string &maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), maxResults);
}

View File

@@ -0,0 +1,75 @@
/*
* 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/resourcecenter/model/ListExampleQueriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
ListExampleQueriesResult::ListExampleQueriesResult() :
ServiceResult()
{}
ListExampleQueriesResult::ListExampleQueriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListExampleQueriesResult::~ListExampleQueriesResult()
{}
void ListExampleQueriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExampleQueriesNode = value["ExampleQueries"]["ExampleQuery"];
for (auto valueExampleQueriesExampleQuery : allExampleQueriesNode)
{
ExampleQuery exampleQueriesObject;
if(!valueExampleQueriesExampleQuery["QueryId"].isNull())
exampleQueriesObject.queryId = valueExampleQueriesExampleQuery["QueryId"].asString();
if(!valueExampleQueriesExampleQuery["Name"].isNull())
exampleQueriesObject.name = valueExampleQueriesExampleQuery["Name"].asString();
if(!valueExampleQueriesExampleQuery["Description"].isNull())
exampleQueriesObject.description = valueExampleQueriesExampleQuery["Description"].asString();
exampleQueries_.push_back(exampleQueriesObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = value["MaxResults"].asString();
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::vector<ListExampleQueriesResult::ExampleQuery> ListExampleQueriesResult::getExampleQueries()const
{
return exampleQueries_;
}
std::string ListExampleQueriesResult::getNextToken()const
{
return nextToken_;
}
std::string ListExampleQueriesResult::getMaxResults()const
{
return maxResults_;
}

View File

@@ -0,0 +1,27 @@
/*
* 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/resourcecenter/model/ListFiltersRequest.h>
using AlibabaCloud::ResourceCenter::Model::ListFiltersRequest;
ListFiltersRequest::ListFiltersRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "ListFilters") {
setMethod(HttpRequest::Method::Post);
}
ListFiltersRequest::~ListFiltersRequest() {}

View File

@@ -0,0 +1,66 @@
/*
* 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/resourcecenter/model/ListFiltersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
ListFiltersResult::ListFiltersResult() :
ServiceResult()
{}
ListFiltersResult::ListFiltersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFiltersResult::~ListFiltersResult()
{}
void ListFiltersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFiltersNode = value["Filters"]["Filter"];
for (auto valueFiltersFilter : allFiltersNode)
{
Filter filtersObject;
if(!valueFiltersFilter["FilterName"].isNull())
filtersObject.filterName = valueFiltersFilter["FilterName"].asString();
if(!valueFiltersFilter["FilterConfiguration"].isNull())
filtersObject.filterConfiguration = valueFiltersFilter["FilterConfiguration"].asString();
filters_.push_back(filtersObject);
}
if(!value["DefaultFilterName"].isNull())
defaultFilterName_ = value["DefaultFilterName"].asString();
}
std::vector<ListFiltersResult::Filter> ListFiltersResult::getFilters()const
{
return filters_;
}
std::string ListFiltersResult::getDefaultFilterName()const
{
return defaultFilterName_;
}

View File

@@ -34,14 +34,6 @@ void ListMultiAccountResourceGroupsRequest::setAccountId(const std::string &acco
setParameter(std::string("AccountId"), accountId);
}
std::vector<std::string> ListMultiAccountResourceGroupsRequest::getResourceGroupIds() const {
return resourceGroupIds_;
}
void ListMultiAccountResourceGroupsRequest::setResourceGroupIds(const std::vector<std::string> &resourceGroupIds) {
resourceGroupIds_ = resourceGroupIds;
}
std::string ListMultiAccountResourceGroupsRequest::getNextToken() const {
return nextToken_;
}
@@ -51,6 +43,14 @@ void ListMultiAccountResourceGroupsRequest::setNextToken(const std::string &next
setParameter(std::string("NextToken"), nextToken);
}
std::vector<std::string> ListMultiAccountResourceGroupsRequest::getResourceGroupIds() const {
return resourceGroupIds_;
}
void ListMultiAccountResourceGroupsRequest::setResourceGroupIds(const std::vector<std::string> &resourceGroupIds) {
resourceGroupIds_ = resourceGroupIds;
}
int ListMultiAccountResourceGroupsRequest::getMaxResults() const {
return maxResults_;
}

View File

@@ -43,24 +43,20 @@ void ListMultiAccountResourceGroupsResult::parse(const std::string &payload)
for (auto valueResourceGroupsResourceGroup : allResourceGroupsNode)
{
ResourceGroup resourceGroupsObject;
if(!valueResourceGroupsResourceGroup["DisplayName"].isNull())
resourceGroupsObject.displayName = valueResourceGroupsResourceGroup["DisplayName"].asString();
if(!valueResourceGroupsResourceGroup["Status"].isNull())
resourceGroupsObject.status = valueResourceGroupsResourceGroup["Status"].asString();
if(!valueResourceGroupsResourceGroup["AccountId"].isNull())
resourceGroupsObject.accountId = valueResourceGroupsResourceGroup["AccountId"].asString();
if(!valueResourceGroupsResourceGroup["Name"].isNull())
resourceGroupsObject.name = valueResourceGroupsResourceGroup["Name"].asString();
if(!valueResourceGroupsResourceGroup["CreateDate"].isNull())
resourceGroupsObject.createDate = valueResourceGroupsResourceGroup["CreateDate"].asString();
if(!valueResourceGroupsResourceGroup["DisplayName"].isNull())
resourceGroupsObject.displayName = valueResourceGroupsResourceGroup["DisplayName"].asString();
if(!valueResourceGroupsResourceGroup["Id"].isNull())
resourceGroupsObject.id = valueResourceGroupsResourceGroup["Id"].asString();
if(!valueResourceGroupsResourceGroup["Name"].isNull())
resourceGroupsObject.name = valueResourceGroupsResourceGroup["Name"].asString();
if(!valueResourceGroupsResourceGroup["Status"].isNull())
resourceGroupsObject.status = valueResourceGroupsResourceGroup["Status"].asString();
resourceGroups_.push_back(resourceGroupsObject);
}
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
@@ -69,6 +65,10 @@ void ListMultiAccountResourceGroupsResult::parse(const std::string &payload)
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -42,10 +42,6 @@ void ListMultiAccountTagKeysResult::parse(const std::string &payload)
auto allTagKeys = value["TagKeys"]["TagKey"];
for (const auto &item : allTagKeys)
tagKeys_.push_back(item.asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
@@ -54,6 +50,10 @@ void ListMultiAccountTagKeysResult::parse(const std::string &payload)
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -42,10 +42,6 @@ void ListMultiAccountTagValuesResult::parse(const std::string &payload)
auto allTagValues = value["TagValues"]["TagValue"];
for (const auto &item : allTagValues)
tagValues_.push_back(item.asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
@@ -54,6 +50,10 @@ void ListMultiAccountTagValuesResult::parse(const std::string &payload)
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -43,10 +43,12 @@ void ListResourceTypesResult::parse(const std::string &payload)
for (auto valueResourceTypesResourceType : allResourceTypesNode)
{
ResourceType resourceTypesObject;
if(!valueResourceTypesResourceType["ResourceType"].isNull())
resourceTypesObject.resourceType = valueResourceTypesResourceType["ResourceType"].asString();
if(!valueResourceTypesResourceType["Authorized"].isNull())
resourceTypesObject.authorized = valueResourceTypesResourceType["Authorized"].asString() == "true";
if(!valueResourceTypesResourceType["ProductName"].isNull())
resourceTypesObject.productName = valueResourceTypesResourceType["ProductName"].asString();
if(!valueResourceTypesResourceType["ResourceType"].isNull())
resourceTypesObject.resourceType = valueResourceTypesResourceType["ResourceType"].asString();
if(!valueResourceTypesResourceType["ResourceTypeName"].isNull())
resourceTypesObject.resourceTypeName = valueResourceTypesResourceType["ResourceTypeName"].asString();
auto codeMappingNode = value["CodeMapping"];
@@ -64,16 +66,16 @@ void ListResourceTypesResult::parse(const std::string &payload)
resourceTypesObject.filterKeys.push_back(value.asString());
resourceTypes_.push_back(resourceTypesObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["DynamicCode"].isNull())
dynamicCode_ = value["DynamicCode"].asString();
if(!value["DynamicMessage"].isNull())
dynamicMessage_ = value["DynamicMessage"].asString();
if(!value["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
@@ -87,16 +89,16 @@ std::string ListResourceTypesResult::getDynamicCode()const
return dynamicCode_;
}
std::string ListResourceTypesResult::getErrorCode()const
{
return errorCode_;
}
std::string ListResourceTypesResult::getDynamicMessage()const
{
return dynamicMessage_;
}
std::string ListResourceTypesResult::getErrorCode()const
{
return errorCode_;
}
std::string ListResourceTypesResult::getErrorMessage()const
{
return errorMessage_;

View File

@@ -0,0 +1,45 @@
/*
* 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/resourcecenter/model/ListSavedQueriesRequest.h>
using AlibabaCloud::ResourceCenter::Model::ListSavedQueriesRequest;
ListSavedQueriesRequest::ListSavedQueriesRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "ListSavedQueries") {
setMethod(HttpRequest::Method::Post);
}
ListSavedQueriesRequest::~ListSavedQueriesRequest() {}
std::string ListSavedQueriesRequest::getNextToken() const {
return nextToken_;
}
void ListSavedQueriesRequest::setNextToken(const std::string &nextToken) {
nextToken_ = nextToken;
setParameter(std::string("NextToken"), nextToken);
}
std::string ListSavedQueriesRequest::getMaxResults() const {
return maxResults_;
}
void ListSavedQueriesRequest::setMaxResults(const std::string &maxResults) {
maxResults_ = maxResults;
setParameter(std::string("MaxResults"), maxResults);
}

View File

@@ -0,0 +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/resourcecenter/model/ListSavedQueriesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::ResourceCenter;
using namespace AlibabaCloud::ResourceCenter::Model;
ListSavedQueriesResult::ListSavedQueriesResult() :
ServiceResult()
{}
ListSavedQueriesResult::ListSavedQueriesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSavedQueriesResult::~ListSavedQueriesResult()
{}
void ListSavedQueriesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSavedQueriesNode = value["SavedQueries"]["SavedQuery"];
for (auto valueSavedQueriesSavedQuery : allSavedQueriesNode)
{
SavedQuery savedQueriesObject;
if(!valueSavedQueriesSavedQuery["QueryId"].isNull())
savedQueriesObject.queryId = valueSavedQueriesSavedQuery["QueryId"].asString();
if(!valueSavedQueriesSavedQuery["Name"].isNull())
savedQueriesObject.name = valueSavedQueriesSavedQuery["Name"].asString();
if(!valueSavedQueriesSavedQuery["Description"].isNull())
savedQueriesObject.description = valueSavedQueriesSavedQuery["Description"].asString();
if(!valueSavedQueriesSavedQuery["CreateTime"].isNull())
savedQueriesObject.createTime = valueSavedQueriesSavedQuery["CreateTime"].asString();
if(!valueSavedQueriesSavedQuery["UpdateTime"].isNull())
savedQueriesObject.updateTime = valueSavedQueriesSavedQuery["UpdateTime"].asString();
savedQueries_.push_back(savedQueriesObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = value["MaxResults"].asString();
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
}
std::string ListSavedQueriesResult::getNextToken()const
{
return nextToken_;
}
std::string ListSavedQueriesResult::getMaxResults()const
{
return maxResults_;
}
std::vector<ListSavedQueriesResult::SavedQuery> ListSavedQueriesResult::getSavedQueries()const
{
return savedQueries_;
}

View File

@@ -56,22 +56,36 @@ void SearchMultiAccountResourcesResult::parse(const std::string &payload)
for (auto valueResourcesResource : allResourcesNode)
{
Resource resourcesObject;
if(!valueResourcesResource["ResourceType"].isNull())
resourcesObject.resourceType = valueResourcesResource["ResourceType"].asString();
if(!valueResourcesResource["CreateTime"].isNull())
resourcesObject.createTime = valueResourcesResource["CreateTime"].asString();
if(!valueResourcesResource["ResourceGroupId"].isNull())
resourcesObject.resourceGroupId = valueResourcesResource["ResourceGroupId"].asString();
if(!valueResourcesResource["ZoneId"].isNull())
resourcesObject.zoneId = valueResourcesResource["ZoneId"].asString();
if(!valueResourcesResource["AccountId"].isNull())
resourcesObject.accountId = valueResourcesResource["AccountId"].asString();
if(!valueResourcesResource["CreateTime"].isNull())
resourcesObject.createTime = valueResourcesResource["CreateTime"].asString();
if(!valueResourcesResource["ExpireTime"].isNull())
resourcesObject.expireTime = valueResourcesResource["ExpireTime"].asString();
if(!valueResourcesResource["RegionId"].isNull())
resourcesObject.regionId = valueResourcesResource["RegionId"].asString();
if(!valueResourcesResource["ResourceGroupId"].isNull())
resourcesObject.resourceGroupId = valueResourcesResource["ResourceGroupId"].asString();
if(!valueResourcesResource["ResourceId"].isNull())
resourcesObject.resourceId = valueResourcesResource["ResourceId"].asString();
if(!valueResourcesResource["ResourceName"].isNull())
resourcesObject.resourceName = valueResourcesResource["ResourceName"].asString();
if(!valueResourcesResource["RegionId"].isNull())
resourcesObject.regionId = valueResourcesResource["RegionId"].asString();
if(!valueResourcesResource["ResourceType"].isNull())
resourcesObject.resourceType = valueResourcesResource["ResourceType"].asString();
if(!valueResourcesResource["ZoneId"].isNull())
resourcesObject.zoneId = valueResourcesResource["ZoneId"].asString();
auto allIpAddressAttributesNode = valueResourcesResource["IpAddressAttributes"]["IpAddressAttribute"];
for (auto valueResourcesResourceIpAddressAttributesIpAddressAttribute : allIpAddressAttributesNode)
{
Resource::IpAddressAttribute ipAddressAttributesObject;
if(!valueResourcesResourceIpAddressAttributesIpAddressAttribute["IpAddress"].isNull())
ipAddressAttributesObject.ipAddress = valueResourcesResourceIpAddressAttributesIpAddressAttribute["IpAddress"].asString();
if(!valueResourcesResourceIpAddressAttributesIpAddressAttribute["NetworkType"].isNull())
ipAddressAttributesObject.networkType = valueResourcesResourceIpAddressAttributesIpAddressAttribute["NetworkType"].asString();
if(!valueResourcesResourceIpAddressAttributesIpAddressAttribute["Version"].isNull())
ipAddressAttributesObject.version = valueResourcesResourceIpAddressAttributesIpAddressAttribute["Version"].asString();
resourcesObject.ipAddressAttributes.push_back(ipAddressAttributesObject);
}
auto allTagsNode = valueResourcesResource["Tags"]["Tag"];
for (auto valueResourcesResourceTagsTag : allTagsNode)
{
@@ -87,12 +101,12 @@ void SearchMultiAccountResourcesResult::parse(const std::string &payload)
resourcesObject.ipAddresses.push_back(value.asString());
resources_.push_back(resourcesObject);
}
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
if(!value["NextToken"].isNull())
nextToken_ = value["NextToken"].asString();
if(!value["Scope"].isNull())
scope_ = value["Scope"].asString();
if(!value["MaxResults"].isNull())
maxResults_ = std::stoi(value["MaxResults"].asString());
}

View File

@@ -34,6 +34,15 @@ void SearchResourcesRequest::setResourceGroupId(const std::string &resourceGroup
setParameter(std::string("ResourceGroupId"), resourceGroupId);
}
std::string SearchResourcesRequest::getView() const {
return view_;
}
void SearchResourcesRequest::setView(const std::string &view) {
view_ = view;
setParameter(std::string("View"), view);
}
std::string SearchResourcesRequest::getNextToken() const {
return nextToken_;
}

View File

@@ -72,6 +72,8 @@ void SearchResourcesResult::parse(const std::string &payload)
resourcesObject.resourceName = valueResourcesResource["ResourceName"].asString();
if(!valueResourcesResource["RegionId"].isNull())
resourcesObject.regionId = valueResourcesResource["RegionId"].asString();
if(!valueResourcesResource["ExpireTime"].isNull())
resourcesObject.expireTime = valueResourcesResource["ExpireTime"].asString();
auto allTagsNode = valueResourcesResource["Tags"]["Tag"];
for (auto valueResourcesResourceTagsTag : allTagsNode)
{
@@ -82,6 +84,18 @@ void SearchResourcesResult::parse(const std::string &payload)
tagsObject.value = valueResourcesResourceTagsTag["Value"].asString();
resourcesObject.tags.push_back(tagsObject);
}
auto allIpAddressAttributesNode = valueResourcesResource["IpAddressAttributes"]["IpAddressAttribute"];
for (auto valueResourcesResourceIpAddressAttributesIpAddressAttribute : allIpAddressAttributesNode)
{
Resource::IpAddressAttribute ipAddressAttributesObject;
if(!valueResourcesResourceIpAddressAttributesIpAddressAttribute["IpAddress"].isNull())
ipAddressAttributesObject.ipAddress = valueResourcesResourceIpAddressAttributesIpAddressAttribute["IpAddress"].asString();
if(!valueResourcesResourceIpAddressAttributesIpAddressAttribute["NetworkType"].isNull())
ipAddressAttributesObject.networkType = valueResourcesResourceIpAddressAttributesIpAddressAttribute["NetworkType"].asString();
if(!valueResourcesResourceIpAddressAttributesIpAddressAttribute["Version"].isNull())
ipAddressAttributesObject.version = valueResourcesResourceIpAddressAttributesIpAddressAttribute["Version"].asString();
resourcesObject.ipAddressAttributes.push_back(ipAddressAttributesObject);
}
auto allIpAddresses = value["IpAddresses"]["IpAddress"];
for (auto value : allIpAddresses)
resourcesObject.ipAddresses.push_back(value.asString());

View File

@@ -0,0 +1,45 @@
/*
* 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/resourcecenter/model/UpdateFilterRequest.h>
using AlibabaCloud::ResourceCenter::Model::UpdateFilterRequest;
UpdateFilterRequest::UpdateFilterRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "UpdateFilter") {
setMethod(HttpRequest::Method::Post);
}
UpdateFilterRequest::~UpdateFilterRequest() {}
std::string UpdateFilterRequest::getFilterName() const {
return filterName_;
}
void UpdateFilterRequest::setFilterName(const std::string &filterName) {
filterName_ = filterName;
setParameter(std::string("FilterName"), filterName);
}
std::string UpdateFilterRequest::getFilterConfiguration() const {
return filterConfiguration_;
}
void UpdateFilterRequest::setFilterConfiguration(const std::string &filterConfiguration) {
filterConfiguration_ = filterConfiguration;
setParameter(std::string("FilterConfiguration"), filterConfiguration);
}

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

View File

@@ -0,0 +1,63 @@
/*
* 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/resourcecenter/model/UpdateSavedQueryRequest.h>
using AlibabaCloud::ResourceCenter::Model::UpdateSavedQueryRequest;
UpdateSavedQueryRequest::UpdateSavedQueryRequest()
: RpcServiceRequest("resourcecenter", "2022-12-01", "UpdateSavedQuery") {
setMethod(HttpRequest::Method::Post);
}
UpdateSavedQueryRequest::~UpdateSavedQueryRequest() {}
std::string UpdateSavedQueryRequest::getExpression() const {
return expression_;
}
void UpdateSavedQueryRequest::setExpression(const std::string &expression) {
expression_ = expression;
setParameter(std::string("Expression"), expression);
}
std::string UpdateSavedQueryRequest::getDescription() const {
return description_;
}
void UpdateSavedQueryRequest::setDescription(const std::string &description) {
description_ = description;
setParameter(std::string("Description"), description);
}
std::string UpdateSavedQueryRequest::getQueryId() const {
return queryId_;
}
void UpdateSavedQueryRequest::setQueryId(const std::string &queryId) {
queryId_ = queryId;
setParameter(std::string("QueryId"), queryId);
}
std::string UpdateSavedQueryRequest::getName() const {
return name_;
}
void UpdateSavedQueryRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}

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