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

@@ -1 +1 @@
1.36.1994
1.36.1995

View File

@@ -21,14 +21,32 @@ set(resourcecenter_public_header
include/alibabacloud/resourcecenter/ResourceCenterExport.h )
set(resourcecenter_public_header_model
include/alibabacloud/resourcecenter/model/AssociateDefaultFilterRequest.h
include/alibabacloud/resourcecenter/model/AssociateDefaultFilterResult.h
include/alibabacloud/resourcecenter/model/CreateFilterRequest.h
include/alibabacloud/resourcecenter/model/CreateFilterResult.h
include/alibabacloud/resourcecenter/model/CreateSavedQueryRequest.h
include/alibabacloud/resourcecenter/model/CreateSavedQueryResult.h
include/alibabacloud/resourcecenter/model/DeleteFilterRequest.h
include/alibabacloud/resourcecenter/model/DeleteFilterResult.h
include/alibabacloud/resourcecenter/model/DeleteSavedQueryRequest.h
include/alibabacloud/resourcecenter/model/DeleteSavedQueryResult.h
include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterRequest.h
include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterResult.h
include/alibabacloud/resourcecenter/model/DisableResourceCenterRequest.h
include/alibabacloud/resourcecenter/model/DisableResourceCenterResult.h
include/alibabacloud/resourcecenter/model/DisassociateDefaultFilterRequest.h
include/alibabacloud/resourcecenter/model/DisassociateDefaultFilterResult.h
include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterRequest.h
include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterResult.h
include/alibabacloud/resourcecenter/model/EnableResourceCenterRequest.h
include/alibabacloud/resourcecenter/model/EnableResourceCenterResult.h
include/alibabacloud/resourcecenter/model/ExecuteMultiAccountSQLQueryRequest.h
include/alibabacloud/resourcecenter/model/ExecuteMultiAccountSQLQueryResult.h
include/alibabacloud/resourcecenter/model/ExecuteSQLQueryRequest.h
include/alibabacloud/resourcecenter/model/ExecuteSQLQueryResult.h
include/alibabacloud/resourcecenter/model/GetExampleQueryRequest.h
include/alibabacloud/resourcecenter/model/GetExampleQueryResult.h
include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusRequest.h
include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusResult.h
include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationRequest.h
@@ -39,6 +57,12 @@ set(resourcecenter_public_header_model
include/alibabacloud/resourcecenter/model/GetResourceConfigurationResult.h
include/alibabacloud/resourcecenter/model/GetResourceCountsRequest.h
include/alibabacloud/resourcecenter/model/GetResourceCountsResult.h
include/alibabacloud/resourcecenter/model/GetSavedQueryRequest.h
include/alibabacloud/resourcecenter/model/GetSavedQueryResult.h
include/alibabacloud/resourcecenter/model/ListExampleQueriesRequest.h
include/alibabacloud/resourcecenter/model/ListExampleQueriesResult.h
include/alibabacloud/resourcecenter/model/ListFiltersRequest.h
include/alibabacloud/resourcecenter/model/ListFiltersResult.h
include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsRequest.h
include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsResult.h
include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysRequest.h
@@ -47,6 +71,8 @@ set(resourcecenter_public_header_model
include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesResult.h
include/alibabacloud/resourcecenter/model/ListResourceTypesRequest.h
include/alibabacloud/resourcecenter/model/ListResourceTypesResult.h
include/alibabacloud/resourcecenter/model/ListSavedQueriesRequest.h
include/alibabacloud/resourcecenter/model/ListSavedQueriesResult.h
include/alibabacloud/resourcecenter/model/ListTagKeysRequest.h
include/alibabacloud/resourcecenter/model/ListTagKeysResult.h
include/alibabacloud/resourcecenter/model/ListTagValuesRequest.h
@@ -54,18 +80,40 @@ set(resourcecenter_public_header_model
include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesRequest.h
include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesResult.h
include/alibabacloud/resourcecenter/model/SearchResourcesRequest.h
include/alibabacloud/resourcecenter/model/SearchResourcesResult.h )
include/alibabacloud/resourcecenter/model/SearchResourcesResult.h
include/alibabacloud/resourcecenter/model/UpdateFilterRequest.h
include/alibabacloud/resourcecenter/model/UpdateFilterResult.h
include/alibabacloud/resourcecenter/model/UpdateSavedQueryRequest.h
include/alibabacloud/resourcecenter/model/UpdateSavedQueryResult.h )
set(resourcecenter_src
src/ResourceCenterClient.cc
src/model/AssociateDefaultFilterRequest.cc
src/model/AssociateDefaultFilterResult.cc
src/model/CreateFilterRequest.cc
src/model/CreateFilterResult.cc
src/model/CreateSavedQueryRequest.cc
src/model/CreateSavedQueryResult.cc
src/model/DeleteFilterRequest.cc
src/model/DeleteFilterResult.cc
src/model/DeleteSavedQueryRequest.cc
src/model/DeleteSavedQueryResult.cc
src/model/DisableMultiAccountResourceCenterRequest.cc
src/model/DisableMultiAccountResourceCenterResult.cc
src/model/DisableResourceCenterRequest.cc
src/model/DisableResourceCenterResult.cc
src/model/DisassociateDefaultFilterRequest.cc
src/model/DisassociateDefaultFilterResult.cc
src/model/EnableMultiAccountResourceCenterRequest.cc
src/model/EnableMultiAccountResourceCenterResult.cc
src/model/EnableResourceCenterRequest.cc
src/model/EnableResourceCenterResult.cc
src/model/ExecuteMultiAccountSQLQueryRequest.cc
src/model/ExecuteMultiAccountSQLQueryResult.cc
src/model/ExecuteSQLQueryRequest.cc
src/model/ExecuteSQLQueryResult.cc
src/model/GetExampleQueryRequest.cc
src/model/GetExampleQueryResult.cc
src/model/GetMultiAccountResourceCenterServiceStatusRequest.cc
src/model/GetMultiAccountResourceCenterServiceStatusResult.cc
src/model/GetMultiAccountResourceConfigurationRequest.cc
@@ -76,6 +124,12 @@ set(resourcecenter_src
src/model/GetResourceConfigurationResult.cc
src/model/GetResourceCountsRequest.cc
src/model/GetResourceCountsResult.cc
src/model/GetSavedQueryRequest.cc
src/model/GetSavedQueryResult.cc
src/model/ListExampleQueriesRequest.cc
src/model/ListExampleQueriesResult.cc
src/model/ListFiltersRequest.cc
src/model/ListFiltersResult.cc
src/model/ListMultiAccountResourceGroupsRequest.cc
src/model/ListMultiAccountResourceGroupsResult.cc
src/model/ListMultiAccountTagKeysRequest.cc
@@ -84,6 +138,8 @@ set(resourcecenter_src
src/model/ListMultiAccountTagValuesResult.cc
src/model/ListResourceTypesRequest.cc
src/model/ListResourceTypesResult.cc
src/model/ListSavedQueriesRequest.cc
src/model/ListSavedQueriesResult.cc
src/model/ListTagKeysRequest.cc
src/model/ListTagKeysResult.cc
src/model/ListTagValuesRequest.cc
@@ -91,7 +147,11 @@ set(resourcecenter_src
src/model/SearchMultiAccountResourcesRequest.cc
src/model/SearchMultiAccountResourcesResult.cc
src/model/SearchResourcesRequest.cc
src/model/SearchResourcesResult.cc )
src/model/SearchResourcesResult.cc
src/model/UpdateFilterRequest.cc
src/model/UpdateFilterResult.cc
src/model/UpdateSavedQueryRequest.cc
src/model/UpdateSavedQueryResult.cc )
add_library(resourcecenter ${LIB_TYPE}
${resourcecenter_public_header}

View File

@@ -22,14 +22,32 @@
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "ResourceCenterExport.h"
#include "model/AssociateDefaultFilterRequest.h"
#include "model/AssociateDefaultFilterResult.h"
#include "model/CreateFilterRequest.h"
#include "model/CreateFilterResult.h"
#include "model/CreateSavedQueryRequest.h"
#include "model/CreateSavedQueryResult.h"
#include "model/DeleteFilterRequest.h"
#include "model/DeleteFilterResult.h"
#include "model/DeleteSavedQueryRequest.h"
#include "model/DeleteSavedQueryResult.h"
#include "model/DisableMultiAccountResourceCenterRequest.h"
#include "model/DisableMultiAccountResourceCenterResult.h"
#include "model/DisableResourceCenterRequest.h"
#include "model/DisableResourceCenterResult.h"
#include "model/DisassociateDefaultFilterRequest.h"
#include "model/DisassociateDefaultFilterResult.h"
#include "model/EnableMultiAccountResourceCenterRequest.h"
#include "model/EnableMultiAccountResourceCenterResult.h"
#include "model/EnableResourceCenterRequest.h"
#include "model/EnableResourceCenterResult.h"
#include "model/ExecuteMultiAccountSQLQueryRequest.h"
#include "model/ExecuteMultiAccountSQLQueryResult.h"
#include "model/ExecuteSQLQueryRequest.h"
#include "model/ExecuteSQLQueryResult.h"
#include "model/GetExampleQueryRequest.h"
#include "model/GetExampleQueryResult.h"
#include "model/GetMultiAccountResourceCenterServiceStatusRequest.h"
#include "model/GetMultiAccountResourceCenterServiceStatusResult.h"
#include "model/GetMultiAccountResourceConfigurationRequest.h"
@@ -40,6 +58,12 @@
#include "model/GetResourceConfigurationResult.h"
#include "model/GetResourceCountsRequest.h"
#include "model/GetResourceCountsResult.h"
#include "model/GetSavedQueryRequest.h"
#include "model/GetSavedQueryResult.h"
#include "model/ListExampleQueriesRequest.h"
#include "model/ListExampleQueriesResult.h"
#include "model/ListFiltersRequest.h"
#include "model/ListFiltersResult.h"
#include "model/ListMultiAccountResourceGroupsRequest.h"
#include "model/ListMultiAccountResourceGroupsResult.h"
#include "model/ListMultiAccountTagKeysRequest.h"
@@ -48,6 +72,8 @@
#include "model/ListMultiAccountTagValuesResult.h"
#include "model/ListResourceTypesRequest.h"
#include "model/ListResourceTypesResult.h"
#include "model/ListSavedQueriesRequest.h"
#include "model/ListSavedQueriesResult.h"
#include "model/ListTagKeysRequest.h"
#include "model/ListTagKeysResult.h"
#include "model/ListTagValuesRequest.h"
@@ -56,6 +82,10 @@
#include "model/SearchMultiAccountResourcesResult.h"
#include "model/SearchResourcesRequest.h"
#include "model/SearchResourcesResult.h"
#include "model/UpdateFilterRequest.h"
#include "model/UpdateFilterResult.h"
#include "model/UpdateSavedQueryRequest.h"
#include "model/UpdateSavedQueryResult.h"
namespace AlibabaCloud
@@ -65,18 +95,45 @@ namespace AlibabaCloud
class ALIBABACLOUD_RESOURCECENTER_EXPORT ResourceCenterClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::AssociateDefaultFilterResult> AssociateDefaultFilterOutcome;
typedef std::future<AssociateDefaultFilterOutcome> AssociateDefaultFilterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::AssociateDefaultFilterRequest&, const AssociateDefaultFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AssociateDefaultFilterAsyncHandler;
typedef Outcome<Error, Model::CreateFilterResult> CreateFilterOutcome;
typedef std::future<CreateFilterOutcome> CreateFilterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::CreateFilterRequest&, const CreateFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFilterAsyncHandler;
typedef Outcome<Error, Model::CreateSavedQueryResult> CreateSavedQueryOutcome;
typedef std::future<CreateSavedQueryOutcome> CreateSavedQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::CreateSavedQueryRequest&, const CreateSavedQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateSavedQueryAsyncHandler;
typedef Outcome<Error, Model::DeleteFilterResult> DeleteFilterOutcome;
typedef std::future<DeleteFilterOutcome> DeleteFilterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::DeleteFilterRequest&, const DeleteFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFilterAsyncHandler;
typedef Outcome<Error, Model::DeleteSavedQueryResult> DeleteSavedQueryOutcome;
typedef std::future<DeleteSavedQueryOutcome> DeleteSavedQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::DeleteSavedQueryRequest&, const DeleteSavedQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteSavedQueryAsyncHandler;
typedef Outcome<Error, Model::DisableMultiAccountResourceCenterResult> DisableMultiAccountResourceCenterOutcome;
typedef std::future<DisableMultiAccountResourceCenterOutcome> DisableMultiAccountResourceCenterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::DisableMultiAccountResourceCenterRequest&, const DisableMultiAccountResourceCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableMultiAccountResourceCenterAsyncHandler;
typedef Outcome<Error, Model::DisableResourceCenterResult> DisableResourceCenterOutcome;
typedef std::future<DisableResourceCenterOutcome> DisableResourceCenterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::DisableResourceCenterRequest&, const DisableResourceCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableResourceCenterAsyncHandler;
typedef Outcome<Error, Model::DisassociateDefaultFilterResult> DisassociateDefaultFilterOutcome;
typedef std::future<DisassociateDefaultFilterOutcome> DisassociateDefaultFilterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::DisassociateDefaultFilterRequest&, const DisassociateDefaultFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisassociateDefaultFilterAsyncHandler;
typedef Outcome<Error, Model::EnableMultiAccountResourceCenterResult> EnableMultiAccountResourceCenterOutcome;
typedef std::future<EnableMultiAccountResourceCenterOutcome> EnableMultiAccountResourceCenterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::EnableMultiAccountResourceCenterRequest&, const EnableMultiAccountResourceCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableMultiAccountResourceCenterAsyncHandler;
typedef Outcome<Error, Model::EnableResourceCenterResult> EnableResourceCenterOutcome;
typedef std::future<EnableResourceCenterOutcome> EnableResourceCenterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::EnableResourceCenterRequest&, const EnableResourceCenterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableResourceCenterAsyncHandler;
typedef Outcome<Error, Model::ExecuteMultiAccountSQLQueryResult> ExecuteMultiAccountSQLQueryOutcome;
typedef std::future<ExecuteMultiAccountSQLQueryOutcome> ExecuteMultiAccountSQLQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ExecuteMultiAccountSQLQueryRequest&, const ExecuteMultiAccountSQLQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteMultiAccountSQLQueryAsyncHandler;
typedef Outcome<Error, Model::ExecuteSQLQueryResult> ExecuteSQLQueryOutcome;
typedef std::future<ExecuteSQLQueryOutcome> ExecuteSQLQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ExecuteSQLQueryRequest&, const ExecuteSQLQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteSQLQueryAsyncHandler;
typedef Outcome<Error, Model::GetExampleQueryResult> GetExampleQueryOutcome;
typedef std::future<GetExampleQueryOutcome> GetExampleQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::GetExampleQueryRequest&, const GetExampleQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetExampleQueryAsyncHandler;
typedef Outcome<Error, Model::GetMultiAccountResourceCenterServiceStatusResult> GetMultiAccountResourceCenterServiceStatusOutcome;
typedef std::future<GetMultiAccountResourceCenterServiceStatusOutcome> GetMultiAccountResourceCenterServiceStatusOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::GetMultiAccountResourceCenterServiceStatusRequest&, const GetMultiAccountResourceCenterServiceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMultiAccountResourceCenterServiceStatusAsyncHandler;
@@ -92,6 +149,15 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetResourceCountsResult> GetResourceCountsOutcome;
typedef std::future<GetResourceCountsOutcome> GetResourceCountsOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::GetResourceCountsRequest&, const GetResourceCountsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceCountsAsyncHandler;
typedef Outcome<Error, Model::GetSavedQueryResult> GetSavedQueryOutcome;
typedef std::future<GetSavedQueryOutcome> GetSavedQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::GetSavedQueryRequest&, const GetSavedQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSavedQueryAsyncHandler;
typedef Outcome<Error, Model::ListExampleQueriesResult> ListExampleQueriesOutcome;
typedef std::future<ListExampleQueriesOutcome> ListExampleQueriesOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ListExampleQueriesRequest&, const ListExampleQueriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListExampleQueriesAsyncHandler;
typedef Outcome<Error, Model::ListFiltersResult> ListFiltersOutcome;
typedef std::future<ListFiltersOutcome> ListFiltersOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ListFiltersRequest&, const ListFiltersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFiltersAsyncHandler;
typedef Outcome<Error, Model::ListMultiAccountResourceGroupsResult> ListMultiAccountResourceGroupsOutcome;
typedef std::future<ListMultiAccountResourceGroupsOutcome> ListMultiAccountResourceGroupsOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ListMultiAccountResourceGroupsRequest&, const ListMultiAccountResourceGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListMultiAccountResourceGroupsAsyncHandler;
@@ -104,6 +170,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ListResourceTypesResult> ListResourceTypesOutcome;
typedef std::future<ListResourceTypesOutcome> ListResourceTypesOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ListResourceTypesRequest&, const ListResourceTypesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListResourceTypesAsyncHandler;
typedef Outcome<Error, Model::ListSavedQueriesResult> ListSavedQueriesOutcome;
typedef std::future<ListSavedQueriesOutcome> ListSavedQueriesOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ListSavedQueriesRequest&, const ListSavedQueriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListSavedQueriesAsyncHandler;
typedef Outcome<Error, Model::ListTagKeysResult> ListTagKeysOutcome;
typedef std::future<ListTagKeysOutcome> ListTagKeysOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::ListTagKeysRequest&, const ListTagKeysOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListTagKeysAsyncHandler;
@@ -116,23 +185,56 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SearchResourcesResult> SearchResourcesOutcome;
typedef std::future<SearchResourcesOutcome> SearchResourcesOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::SearchResourcesRequest&, const SearchResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchResourcesAsyncHandler;
typedef Outcome<Error, Model::UpdateFilterResult> UpdateFilterOutcome;
typedef std::future<UpdateFilterOutcome> UpdateFilterOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::UpdateFilterRequest&, const UpdateFilterOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFilterAsyncHandler;
typedef Outcome<Error, Model::UpdateSavedQueryResult> UpdateSavedQueryOutcome;
typedef std::future<UpdateSavedQueryOutcome> UpdateSavedQueryOutcomeCallable;
typedef std::function<void(const ResourceCenterClient*, const Model::UpdateSavedQueryRequest&, const UpdateSavedQueryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateSavedQueryAsyncHandler;
ResourceCenterClient(const Credentials &credentials, const ClientConfiguration &configuration);
ResourceCenterClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
ResourceCenterClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~ResourceCenterClient();
AssociateDefaultFilterOutcome associateDefaultFilter(const Model::AssociateDefaultFilterRequest &request)const;
void associateDefaultFilterAsync(const Model::AssociateDefaultFilterRequest& request, const AssociateDefaultFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AssociateDefaultFilterOutcomeCallable associateDefaultFilterCallable(const Model::AssociateDefaultFilterRequest& request) const;
CreateFilterOutcome createFilter(const Model::CreateFilterRequest &request)const;
void createFilterAsync(const Model::CreateFilterRequest& request, const CreateFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFilterOutcomeCallable createFilterCallable(const Model::CreateFilterRequest& request) const;
CreateSavedQueryOutcome createSavedQuery(const Model::CreateSavedQueryRequest &request)const;
void createSavedQueryAsync(const Model::CreateSavedQueryRequest& request, const CreateSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateSavedQueryOutcomeCallable createSavedQueryCallable(const Model::CreateSavedQueryRequest& request) const;
DeleteFilterOutcome deleteFilter(const Model::DeleteFilterRequest &request)const;
void deleteFilterAsync(const Model::DeleteFilterRequest& request, const DeleteFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteFilterOutcomeCallable deleteFilterCallable(const Model::DeleteFilterRequest& request) const;
DeleteSavedQueryOutcome deleteSavedQuery(const Model::DeleteSavedQueryRequest &request)const;
void deleteSavedQueryAsync(const Model::DeleteSavedQueryRequest& request, const DeleteSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteSavedQueryOutcomeCallable deleteSavedQueryCallable(const Model::DeleteSavedQueryRequest& request) const;
DisableMultiAccountResourceCenterOutcome disableMultiAccountResourceCenter(const Model::DisableMultiAccountResourceCenterRequest &request)const;
void disableMultiAccountResourceCenterAsync(const Model::DisableMultiAccountResourceCenterRequest& request, const DisableMultiAccountResourceCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableMultiAccountResourceCenterOutcomeCallable disableMultiAccountResourceCenterCallable(const Model::DisableMultiAccountResourceCenterRequest& request) const;
DisableResourceCenterOutcome disableResourceCenter(const Model::DisableResourceCenterRequest &request)const;
void disableResourceCenterAsync(const Model::DisableResourceCenterRequest& request, const DisableResourceCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisableResourceCenterOutcomeCallable disableResourceCenterCallable(const Model::DisableResourceCenterRequest& request) const;
DisassociateDefaultFilterOutcome disassociateDefaultFilter(const Model::DisassociateDefaultFilterRequest &request)const;
void disassociateDefaultFilterAsync(const Model::DisassociateDefaultFilterRequest& request, const DisassociateDefaultFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DisassociateDefaultFilterOutcomeCallable disassociateDefaultFilterCallable(const Model::DisassociateDefaultFilterRequest& request) const;
EnableMultiAccountResourceCenterOutcome enableMultiAccountResourceCenter(const Model::EnableMultiAccountResourceCenterRequest &request)const;
void enableMultiAccountResourceCenterAsync(const Model::EnableMultiAccountResourceCenterRequest& request, const EnableMultiAccountResourceCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableMultiAccountResourceCenterOutcomeCallable enableMultiAccountResourceCenterCallable(const Model::EnableMultiAccountResourceCenterRequest& request) const;
EnableResourceCenterOutcome enableResourceCenter(const Model::EnableResourceCenterRequest &request)const;
void enableResourceCenterAsync(const Model::EnableResourceCenterRequest& request, const EnableResourceCenterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableResourceCenterOutcomeCallable enableResourceCenterCallable(const Model::EnableResourceCenterRequest& request) const;
ExecuteMultiAccountSQLQueryOutcome executeMultiAccountSQLQuery(const Model::ExecuteMultiAccountSQLQueryRequest &request)const;
void executeMultiAccountSQLQueryAsync(const Model::ExecuteMultiAccountSQLQueryRequest& request, const ExecuteMultiAccountSQLQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteMultiAccountSQLQueryOutcomeCallable executeMultiAccountSQLQueryCallable(const Model::ExecuteMultiAccountSQLQueryRequest& request) const;
ExecuteSQLQueryOutcome executeSQLQuery(const Model::ExecuteSQLQueryRequest &request)const;
void executeSQLQueryAsync(const Model::ExecuteSQLQueryRequest& request, const ExecuteSQLQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteSQLQueryOutcomeCallable executeSQLQueryCallable(const Model::ExecuteSQLQueryRequest& request) const;
GetExampleQueryOutcome getExampleQuery(const Model::GetExampleQueryRequest &request)const;
void getExampleQueryAsync(const Model::GetExampleQueryRequest& request, const GetExampleQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetExampleQueryOutcomeCallable getExampleQueryCallable(const Model::GetExampleQueryRequest& request) const;
GetMultiAccountResourceCenterServiceStatusOutcome getMultiAccountResourceCenterServiceStatus(const Model::GetMultiAccountResourceCenterServiceStatusRequest &request)const;
void getMultiAccountResourceCenterServiceStatusAsync(const Model::GetMultiAccountResourceCenterServiceStatusRequest& request, const GetMultiAccountResourceCenterServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetMultiAccountResourceCenterServiceStatusOutcomeCallable getMultiAccountResourceCenterServiceStatusCallable(const Model::GetMultiAccountResourceCenterServiceStatusRequest& request) const;
@@ -148,6 +250,15 @@ namespace AlibabaCloud
GetResourceCountsOutcome getResourceCounts(const Model::GetResourceCountsRequest &request)const;
void getResourceCountsAsync(const Model::GetResourceCountsRequest& request, const GetResourceCountsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetResourceCountsOutcomeCallable getResourceCountsCallable(const Model::GetResourceCountsRequest& request) const;
GetSavedQueryOutcome getSavedQuery(const Model::GetSavedQueryRequest &request)const;
void getSavedQueryAsync(const Model::GetSavedQueryRequest& request, const GetSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetSavedQueryOutcomeCallable getSavedQueryCallable(const Model::GetSavedQueryRequest& request) const;
ListExampleQueriesOutcome listExampleQueries(const Model::ListExampleQueriesRequest &request)const;
void listExampleQueriesAsync(const Model::ListExampleQueriesRequest& request, const ListExampleQueriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListExampleQueriesOutcomeCallable listExampleQueriesCallable(const Model::ListExampleQueriesRequest& request) const;
ListFiltersOutcome listFilters(const Model::ListFiltersRequest &request)const;
void listFiltersAsync(const Model::ListFiltersRequest& request, const ListFiltersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListFiltersOutcomeCallable listFiltersCallable(const Model::ListFiltersRequest& request) const;
ListMultiAccountResourceGroupsOutcome listMultiAccountResourceGroups(const Model::ListMultiAccountResourceGroupsRequest &request)const;
void listMultiAccountResourceGroupsAsync(const Model::ListMultiAccountResourceGroupsRequest& request, const ListMultiAccountResourceGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListMultiAccountResourceGroupsOutcomeCallable listMultiAccountResourceGroupsCallable(const Model::ListMultiAccountResourceGroupsRequest& request) const;
@@ -160,6 +271,9 @@ namespace AlibabaCloud
ListResourceTypesOutcome listResourceTypes(const Model::ListResourceTypesRequest &request)const;
void listResourceTypesAsync(const Model::ListResourceTypesRequest& request, const ListResourceTypesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListResourceTypesOutcomeCallable listResourceTypesCallable(const Model::ListResourceTypesRequest& request) const;
ListSavedQueriesOutcome listSavedQueries(const Model::ListSavedQueriesRequest &request)const;
void listSavedQueriesAsync(const Model::ListSavedQueriesRequest& request, const ListSavedQueriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListSavedQueriesOutcomeCallable listSavedQueriesCallable(const Model::ListSavedQueriesRequest& request) const;
ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const;
void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const;
@@ -172,6 +286,12 @@ namespace AlibabaCloud
SearchResourcesOutcome searchResources(const Model::SearchResourcesRequest &request)const;
void searchResourcesAsync(const Model::SearchResourcesRequest& request, const SearchResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchResourcesOutcomeCallable searchResourcesCallable(const Model::SearchResourcesRequest& request) const;
UpdateFilterOutcome updateFilter(const Model::UpdateFilterRequest &request)const;
void updateFilterAsync(const Model::UpdateFilterRequest& request, const UpdateFilterAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateFilterOutcomeCallable updateFilterCallable(const Model::UpdateFilterRequest& request) const;
UpdateSavedQueryOutcome updateSavedQuery(const Model::UpdateSavedQueryRequest &request)const;
void updateSavedQueryAsync(const Model::UpdateSavedQueryRequest& request, const UpdateSavedQueryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateSavedQueryOutcomeCallable updateSavedQueryCallable(const Model::UpdateSavedQueryRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_ASSOCIATEDEFAULTFILTERREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_ASSOCIATEDEFAULTFILTERREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT AssociateDefaultFilterRequest : public RpcServiceRequest {
public:
AssociateDefaultFilterRequest();
~AssociateDefaultFilterRequest();
std::string getFilterName() const;
void setFilterName(const std::string &filterName);
private:
std::string filterName_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_ASSOCIATEDEFAULTFILTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_ASSOCIATEDEFAULTFILTERRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_ASSOCIATEDEFAULTFILTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT AssociateDefaultFilterResult : public ServiceResult
{
public:
AssociateDefaultFilterResult();
explicit AssociateDefaultFilterResult(const std::string &payload);
~AssociateDefaultFilterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_ASSOCIATEDEFAULTFILTERRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_CREATEFILTERREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_CREATEFILTERREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT CreateFilterRequest : public RpcServiceRequest {
public:
CreateFilterRequest();
~CreateFilterRequest();
std::string getFilterName() const;
void setFilterName(const std::string &filterName);
std::string getFilterConfiguration() const;
void setFilterConfiguration(const std::string &filterConfiguration);
private:
std::string filterName_;
std::string filterConfiguration_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_CREATEFILTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_CREATEFILTERRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_CREATEFILTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT CreateFilterResult : public ServiceResult
{
public:
CreateFilterResult();
explicit CreateFilterResult(const std::string &payload);
~CreateFilterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_CREATEFILTERRESULT_H_

View File

@@ -0,0 +1,48 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_CREATESAVEDQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_CREATESAVEDQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT CreateSavedQueryRequest : public RpcServiceRequest {
public:
CreateSavedQueryRequest();
~CreateSavedQueryRequest();
std::string getExpression() const;
void setExpression(const std::string &expression);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getName() const;
void setName(const std::string &name);
private:
std::string expression_;
std::string description_;
std::string name_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_CREATESAVEDQUERYREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_CREATESAVEDQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_CREATESAVEDQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT CreateSavedQueryResult : public ServiceResult
{
public:
CreateSavedQueryResult();
explicit CreateSavedQueryResult(const std::string &payload);
~CreateSavedQueryResult();
std::string getQueryId()const;
protected:
void parse(const std::string &payload);
private:
std::string queryId_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_CREATESAVEDQUERYRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_DELETEFILTERREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_DELETEFILTERREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT DeleteFilterRequest : public RpcServiceRequest {
public:
DeleteFilterRequest();
~DeleteFilterRequest();
std::string getFilterName() const;
void setFilterName(const std::string &filterName);
private:
std::string filterName_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DELETEFILTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_DELETEFILTERRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_DELETEFILTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT DeleteFilterResult : public ServiceResult
{
public:
DeleteFilterResult();
explicit DeleteFilterResult(const std::string &payload);
~DeleteFilterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DELETEFILTERRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_DELETESAVEDQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_DELETESAVEDQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT DeleteSavedQueryRequest : public RpcServiceRequest {
public:
DeleteSavedQueryRequest();
~DeleteSavedQueryRequest();
std::string getQueryId() const;
void setQueryId(const std::string &queryId);
private:
std::string queryId_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DELETESAVEDQUERYREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_DELETESAVEDQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_DELETESAVEDQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT DeleteSavedQueryResult : public ServiceResult
{
public:
DeleteSavedQueryResult();
explicit DeleteSavedQueryResult(const std::string &payload);
~DeleteSavedQueryResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DELETESAVEDQUERYRESULT_H_

View File

@@ -0,0 +1,39 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_DISASSOCIATEDEFAULTFILTERREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_DISASSOCIATEDEFAULTFILTERREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT DisassociateDefaultFilterRequest : public RpcServiceRequest {
public:
DisassociateDefaultFilterRequest();
~DisassociateDefaultFilterRequest();
private:
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DISASSOCIATEDEFAULTFILTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_DISASSOCIATEDEFAULTFILTERRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_DISASSOCIATEDEFAULTFILTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT DisassociateDefaultFilterResult : public ServiceResult
{
public:
DisassociateDefaultFilterResult();
explicit DisassociateDefaultFilterResult(const std::string &payload);
~DisassociateDefaultFilterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DISASSOCIATEDEFAULTFILTERRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTEMULTIACCOUNTSQLQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTEMULTIACCOUNTSQLQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT ExecuteMultiAccountSQLQueryRequest : public RpcServiceRequest {
public:
ExecuteMultiAccountSQLQueryRequest();
~ExecuteMultiAccountSQLQueryRequest();
std::string getExpression() const;
void setExpression(const std::string &expression);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getScope() const;
void setScope(const std::string &scope);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::string expression_;
std::string nextToken_;
std::string scope_;
int maxResults_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTEMULTIACCOUNTSQLQUERYREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTEMULTIACCOUNTSQLQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTEMULTIACCOUNTSQLQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT ExecuteMultiAccountSQLQueryResult : public ServiceResult
{
public:
struct Column
{
std::string type;
std::string name;
};
ExecuteMultiAccountSQLQueryResult();
explicit ExecuteMultiAccountSQLQueryResult(const std::string &payload);
~ExecuteMultiAccountSQLQueryResult();
std::string getNextToken()const;
int getMaxResults()const;
std::vector<Column> getColumns()const;
std::vector<std::string> getRows()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
int maxResults_;
std::vector<Column> columns_;
std::vector<std::string> rows_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTEMULTIACCOUNTSQLQUERYRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTESQLQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTESQLQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT ExecuteSQLQueryRequest : public RpcServiceRequest {
public:
ExecuteSQLQueryRequest();
~ExecuteSQLQueryRequest();
std::string getExpression() const;
void setExpression(const std::string &expression);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getScope() const;
void setScope(const std::string &scope);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::string expression_;
std::string nextToken_;
std::string scope_;
int maxResults_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTESQLQUERYREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTESQLQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTESQLQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT ExecuteSQLQueryResult : public ServiceResult
{
public:
struct Column
{
std::string type;
std::string name;
};
ExecuteSQLQueryResult();
explicit ExecuteSQLQueryResult(const std::string &payload);
~ExecuteSQLQueryResult();
std::string getNextToken()const;
int getMaxResults()const;
std::vector<Column> getColumns()const;
std::vector<std::string> getRows()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
int maxResults_;
std::vector<Column> columns_;
std::vector<std::string> rows_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_EXECUTESQLQUERYRESULT_H_

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_GETEXAMPLEQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETEXAMPLEQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT GetExampleQueryRequest : public RpcServiceRequest {
public:
GetExampleQueryRequest();
~GetExampleQueryRequest();
std::string getQueryId() const;
void setQueryId(const std::string &queryId);
private:
std::string queryId_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETEXAMPLEQUERYREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_GETEXAMPLEQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETEXAMPLEQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT GetExampleQueryResult : public ServiceResult
{
public:
struct ExampleQuery
{
std::string description;
std::string expression;
std::string queryId;
std::string name;
};
GetExampleQueryResult();
explicit GetExampleQueryResult(const std::string &payload);
~GetExampleQueryResult();
ExampleQuery getExampleQuery()const;
protected:
void parse(const std::string &payload);
private:
ExampleQuery exampleQuery_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETEXAMPLEQUERYRESULT_H_

View File

@@ -30,20 +30,20 @@ class ALIBABACLOUD_RESOURCECENTER_EXPORT GetMultiAccountResourceConfigurationReq
public:
GetMultiAccountResourceConfigurationRequest();
~GetMultiAccountResourceConfigurationRequest();
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
std::string getAccountId() const;
void setAccountId(const std::string &accountId);
std::string getResourceRegionId() const;
void setResourceRegionId(const std::string &resourceRegionId);
std::string getResourceId() const;
void setResourceId(const std::string &resourceId);
std::string getResourceType() const;
void setResourceType(const std::string &resourceType);
private:
std::string resourceId_;
std::string resourceType_;
std::string accountId_;
std::string resourceRegionId_;
std::string resourceId_;
std::string resourceType_;
};
} // namespace Model
} // namespace ResourceCenter

View File

@@ -32,15 +32,52 @@ namespace AlibabaCloud
class ALIBABACLOUD_RESOURCECENTER_EXPORT GetMultiAccountResourceConfigurationResult : public ServiceResult
{
public:
struct IpAddressAttribute
{
std::string version;
std::string networkType;
std::string ipAddress;
};
struct Tag
{
std::string value;
std::string key;
};
GetMultiAccountResourceConfigurationResult();
explicit GetMultiAccountResourceConfigurationResult(const std::string &payload);
~GetMultiAccountResourceConfigurationResult();
std::string getAccountId()const;
std::string getConfiguration()const;
std::string getResourceGroupId()const;
std::string getZoneId()const;
std::string getResourceName()const;
std::string getCreateTime()const;
std::string getResourceType()const;
std::vector<std::string> getIpAddresses()const;
std::string getResourceId()const;
std::string getRegionId()const;
std::vector<IpAddressAttribute> getIpAddressAttributes()const;
std::string getExpireTime()const;
std::vector<Tag> getTags()const;
protected:
void parse(const std::string &payload);
private:
std::string accountId_;
std::string configuration_;
std::string resourceGroupId_;
std::string zoneId_;
std::string resourceName_;
std::string createTime_;
std::string resourceType_;
std::vector<std::string> ipAddresses_;
std::string resourceId_;
std::string regionId_;
std::vector<IpAddressAttribute> ipAddressAttributes_;
std::string expireTime_;
std::vector<Tag> tags_;
};
}

View File

@@ -36,11 +36,14 @@ public:
~GetResourceCountsRequest();
std::vector<Filter> getFilter() const;
void setFilter(const std::vector<Filter> &filter);
std::string getView() const;
void setView(const std::string &view);
std::string getGroupByKey() const;
void setGroupByKey(const std::string &groupByKey);
private:
std::vector<Filter> filter_;
std::string view_;
std::string groupByKey_;
};
} // namespace Model

View File

@@ -0,0 +1,42 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_GETSAVEDQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETSAVEDQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT GetSavedQueryRequest : public RpcServiceRequest {
public:
GetSavedQueryRequest();
~GetSavedQueryRequest();
std::string getQueryId() const;
void setQueryId(const std::string &queryId);
private:
std::string queryId_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETSAVEDQUERYREQUEST_H_

View File

@@ -0,0 +1,60 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_GETSAVEDQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETSAVEDQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT GetSavedQueryResult : public ServiceResult
{
public:
struct SavedQuery
{
std::string description;
std::string expression;
std::string queryId;
std::string createTime;
std::string updateTime;
std::string name;
};
GetSavedQueryResult();
explicit GetSavedQueryResult(const std::string &payload);
~GetSavedQueryResult();
SavedQuery getSavedQuery()const;
protected:
void parse(const std::string &payload);
private:
SavedQuery savedQuery_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETSAVEDQUERYRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTEXAMPLEQUERIESREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTEXAMPLEQUERIESREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT ListExampleQueriesRequest : public RpcServiceRequest {
public:
ListExampleQueriesRequest();
~ListExampleQueriesRequest();
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getMaxResults() const;
void setMaxResults(const std::string &maxResults);
private:
std::string nextToken_;
std::string maxResults_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTEXAMPLEQUERIESREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTEXAMPLEQUERIESRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTEXAMPLEQUERIESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT ListExampleQueriesResult : public ServiceResult
{
public:
struct ExampleQuery
{
std::string description;
std::string queryId;
std::string name;
};
ListExampleQueriesResult();
explicit ListExampleQueriesResult(const std::string &payload);
~ListExampleQueriesResult();
std::vector<ExampleQuery> getExampleQueries()const;
std::string getNextToken()const;
std::string getMaxResults()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ExampleQuery> exampleQueries_;
std::string nextToken_;
std::string maxResults_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTEXAMPLEQUERIESRESULT_H_

View File

@@ -0,0 +1,39 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTFILTERSREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTFILTERSREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT ListFiltersRequest : public RpcServiceRequest {
public:
ListFiltersRequest();
~ListFiltersRequest();
private:
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTFILTERSREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTFILTERSRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTFILTERSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT ListFiltersResult : public ServiceResult
{
public:
struct Filter
{
std::string filterConfiguration;
std::string filterName;
};
ListFiltersResult();
explicit ListFiltersResult(const std::string &payload);
~ListFiltersResult();
std::vector<Filter> getFilters()const;
std::string getDefaultFilterName()const;
protected:
void parse(const std::string &payload);
private:
std::vector<Filter> filters_;
std::string defaultFilterName_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTFILTERSRESULT_H_

View File

@@ -32,17 +32,17 @@ public:
~ListMultiAccountResourceGroupsRequest();
std::string getAccountId() const;
void setAccountId(const std::string &accountId);
std::vector<std::string> getResourceGroupIds() const;
void setResourceGroupIds(const std::vector<std::string> &resourceGroupIds);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::vector<std::string> getResourceGroupIds() const;
void setResourceGroupIds(const std::vector<std::string> &resourceGroupIds);
int getMaxResults() const;
void setMaxResults(int maxResults);
private:
std::string accountId_;
std::vector<std::string> resourceGroupIds_;
std::string nextToken_;
std::vector<std::string> resourceGroupIds_;
int maxResults_;
};
} // namespace Model

View File

@@ -46,6 +46,7 @@ namespace AlibabaCloud
};
std::string resourceTypeName;
std::string productName;
bool authorized;
std::vector<std::string> filterKeys;
CodeMapping codeMapping;
std::string resourceType;
@@ -58,8 +59,8 @@ namespace AlibabaCloud
~ListResourceTypesResult();
std::vector<ResourceType> getResourceTypes()const;
std::string getDynamicCode()const;
std::string getErrorCode()const;
std::string getDynamicMessage()const;
std::string getErrorCode()const;
std::string getErrorMessage()const;
bool getSuccess()const;
@@ -68,8 +69,8 @@ namespace AlibabaCloud
private:
std::vector<ResourceType> resourceTypes_;
std::string dynamicCode_;
std::string errorCode_;
std::string dynamicMessage_;
std::string errorCode_;
std::string errorMessage_;
bool success_;

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTSAVEDQUERIESREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTSAVEDQUERIESREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT ListSavedQueriesRequest : public RpcServiceRequest {
public:
ListSavedQueriesRequest();
~ListSavedQueriesRequest();
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
std::string getMaxResults() const;
void setMaxResults(const std::string &maxResults);
private:
std::string nextToken_;
std::string maxResults_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTSAVEDQUERIESREQUEST_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTSAVEDQUERIESRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTSAVEDQUERIESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT ListSavedQueriesResult : public ServiceResult
{
public:
struct SavedQuery
{
std::string description;
std::string queryId;
std::string createTime;
std::string updateTime;
std::string name;
};
ListSavedQueriesResult();
explicit ListSavedQueriesResult(const std::string &payload);
~ListSavedQueriesResult();
std::string getNextToken()const;
std::string getMaxResults()const;
std::vector<SavedQuery> getSavedQueries()const;
protected:
void parse(const std::string &payload);
private:
std::string nextToken_;
std::string maxResults_;
std::vector<SavedQuery> savedQueries_;
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTSAVEDQUERIESRESULT_H_

View File

@@ -40,6 +40,12 @@ namespace AlibabaCloud
};
struct Resource
{
struct IpAddressAttribute
{
std::string version;
std::string networkType;
std::string ipAddress;
};
struct Tag
{
std::string value;
@@ -54,6 +60,8 @@ namespace AlibabaCloud
std::string createTime;
std::string resourceType;
std::string regionId;
std::vector<Resource::IpAddressAttribute> ipAddressAttributes;
std::string expireTime;
std::vector<Resource::Tag> tags;
};

View File

@@ -40,6 +40,8 @@ public:
~SearchResourcesRequest();
std::string getResourceGroupId() const;
void setResourceGroupId(const std::string &resourceGroupId);
std::string getView() const;
void setView(const std::string &view);
std::string getNextToken() const;
void setNextToken(const std::string &nextToken);
SortCriterion getSortCriterion() const;
@@ -51,6 +53,7 @@ public:
private:
std::string resourceGroupId_;
std::string view_;
std::string nextToken_;
SortCriterion sortCriterion_;
std::vector<Filter> filter_;

View File

@@ -45,6 +45,12 @@ namespace AlibabaCloud
std::string value;
std::string key;
};
struct IpAddressAttribute
{
std::string version;
std::string networkType;
std::string ipAddress;
};
std::vector<std::string> ipAddresses;
std::string accountId;
std::string resourceGroupId;
@@ -54,6 +60,8 @@ namespace AlibabaCloud
std::string createTime;
std::string resourceType;
std::string regionId;
std::vector<Resource::IpAddressAttribute> ipAddressAttributes;
std::string expireTime;
std::vector<Resource::Tag> tags;
};

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATEFILTERREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATEFILTERREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT UpdateFilterRequest : public RpcServiceRequest {
public:
UpdateFilterRequest();
~UpdateFilterRequest();
std::string getFilterName() const;
void setFilterName(const std::string &filterName);
std::string getFilterConfiguration() const;
void setFilterConfiguration(const std::string &filterConfiguration);
private:
std::string filterName_;
std::string filterConfiguration_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATEFILTERREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATEFILTERRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATEFILTERRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT UpdateFilterResult : public ServiceResult
{
public:
UpdateFilterResult();
explicit UpdateFilterResult(const std::string &payload);
~UpdateFilterResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATEFILTERRESULT_H_

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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATESAVEDQUERYREQUEST_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATESAVEDQUERYREQUEST_H_
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <string>
#include <vector>
#include <map>
namespace AlibabaCloud {
namespace ResourceCenter {
namespace Model {
class ALIBABACLOUD_RESOURCECENTER_EXPORT UpdateSavedQueryRequest : public RpcServiceRequest {
public:
UpdateSavedQueryRequest();
~UpdateSavedQueryRequest();
std::string getExpression() const;
void setExpression(const std::string &expression);
std::string getDescription() const;
void setDescription(const std::string &description);
std::string getQueryId() const;
void setQueryId(const std::string &queryId);
std::string getName() const;
void setName(const std::string &name);
private:
std::string expression_;
std::string description_;
std::string queryId_;
std::string name_;
};
} // namespace Model
} // namespace ResourceCenter
} // namespace AlibabaCloud
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATESAVEDQUERYREQUEST_H_

View File

@@ -0,0 +1,49 @@
/*
* 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.
*/
#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATESAVEDQUERYRESULT_H_
#define ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATESAVEDQUERYRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/resourcecenter/ResourceCenterExport.h>
namespace AlibabaCloud
{
namespace ResourceCenter
{
namespace Model
{
class ALIBABACLOUD_RESOURCECENTER_EXPORT UpdateSavedQueryResult : public ServiceResult
{
public:
UpdateSavedQueryResult();
explicit UpdateSavedQueryResult(const std::string &payload);
~UpdateSavedQueryResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_UPDATESAVEDQUERYRESULT_H_

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());
}