diff --git a/VERSION b/VERSION index 399caa749..cacee1c62 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1489 \ No newline at end of file +1.36.1490 \ No newline at end of file diff --git a/resourcecenter/CMakeLists.txt b/resourcecenter/CMakeLists.txt new file mode 100644 index 000000000..8a3819852 --- /dev/null +++ b/resourcecenter/CMakeLists.txt @@ -0,0 +1,146 @@ +# +# 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. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(resourcecenter_public_header + include/alibabacloud/resourcecenter/ResourceCenterClient.h + include/alibabacloud/resourcecenter/ResourceCenterExport.h ) + +set(resourcecenter_public_header_model + 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/EnableMultiAccountResourceCenterRequest.h + include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterResult.h + include/alibabacloud/resourcecenter/model/EnableResourceCenterRequest.h + include/alibabacloud/resourcecenter/model/EnableResourceCenterResult.h + include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusRequest.h + include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusResult.h + include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationRequest.h + include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationResult.h + include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusRequest.h + include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusResult.h + include/alibabacloud/resourcecenter/model/GetResourceConfigurationRequest.h + include/alibabacloud/resourcecenter/model/GetResourceConfigurationResult.h + include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsRequest.h + include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsResult.h + include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysRequest.h + include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysResult.h + include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesRequest.h + include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesResult.h + include/alibabacloud/resourcecenter/model/ListResourceTypesRequest.h + include/alibabacloud/resourcecenter/model/ListResourceTypesResult.h + include/alibabacloud/resourcecenter/model/ListTagKeysRequest.h + include/alibabacloud/resourcecenter/model/ListTagKeysResult.h + include/alibabacloud/resourcecenter/model/ListTagValuesRequest.h + include/alibabacloud/resourcecenter/model/ListTagValuesResult.h + include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesRequest.h + include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesResult.h + include/alibabacloud/resourcecenter/model/SearchResourcesRequest.h + include/alibabacloud/resourcecenter/model/SearchResourcesResult.h ) + +set(resourcecenter_src + src/ResourceCenterClient.cc + src/model/DisableMultiAccountResourceCenterRequest.cc + src/model/DisableMultiAccountResourceCenterResult.cc + src/model/DisableResourceCenterRequest.cc + src/model/DisableResourceCenterResult.cc + src/model/EnableMultiAccountResourceCenterRequest.cc + src/model/EnableMultiAccountResourceCenterResult.cc + src/model/EnableResourceCenterRequest.cc + src/model/EnableResourceCenterResult.cc + src/model/GetMultiAccountResourceCenterServiceStatusRequest.cc + src/model/GetMultiAccountResourceCenterServiceStatusResult.cc + src/model/GetMultiAccountResourceConfigurationRequest.cc + src/model/GetMultiAccountResourceConfigurationResult.cc + src/model/GetResourceCenterServiceStatusRequest.cc + src/model/GetResourceCenterServiceStatusResult.cc + src/model/GetResourceConfigurationRequest.cc + src/model/GetResourceConfigurationResult.cc + src/model/ListMultiAccountResourceGroupsRequest.cc + src/model/ListMultiAccountResourceGroupsResult.cc + src/model/ListMultiAccountTagKeysRequest.cc + src/model/ListMultiAccountTagKeysResult.cc + src/model/ListMultiAccountTagValuesRequest.cc + src/model/ListMultiAccountTagValuesResult.cc + src/model/ListResourceTypesRequest.cc + src/model/ListResourceTypesResult.cc + src/model/ListTagKeysRequest.cc + src/model/ListTagKeysResult.cc + src/model/ListTagValuesRequest.cc + src/model/ListTagValuesResult.cc + src/model/SearchMultiAccountResourcesRequest.cc + src/model/SearchMultiAccountResourcesResult.cc + src/model/SearchResourcesRequest.cc + src/model/SearchResourcesResult.cc ) + +add_library(resourcecenter ${LIB_TYPE} + ${resourcecenter_public_header} + ${resourcecenter_public_header_model} + ${resourcecenter_src}) + +set_target_properties(resourcecenter + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}resourcecenter + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(resourcecenter + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_RESOURCECENTER_LIBRARY) +endif() + +target_include_directories(resourcecenter + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(resourcecenter + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(resourcecenter + jsoncpp) + target_include_directories(resourcecenter + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(resourcecenter + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(resourcecenter + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(resourcecenter + PRIVATE /usr/include/jsoncpp) + target_link_libraries(resourcecenter + jsoncpp) +endif() + +install(FILES ${resourcecenter_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/resourcecenter) +install(FILES ${resourcecenter_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/resourcecenter/model) +install(TARGETS resourcecenter + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/ResourceCenterClient.h b/resourcecenter/include/alibabacloud/resourcecenter/ResourceCenterClient.h new file mode 100644 index 000000000..32b7474a0 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/ResourceCenterClient.h @@ -0,0 +1,174 @@ +/* + * 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_RESOURCECENTERCLIENT_H_ +#define ALIBABACLOUD_RESOURCECENTER_RESOURCECENTERCLIENT_H_ + +#include +#include +#include +#include +#include "ResourceCenterExport.h" +#include "model/DisableMultiAccountResourceCenterRequest.h" +#include "model/DisableMultiAccountResourceCenterResult.h" +#include "model/DisableResourceCenterRequest.h" +#include "model/DisableResourceCenterResult.h" +#include "model/EnableMultiAccountResourceCenterRequest.h" +#include "model/EnableMultiAccountResourceCenterResult.h" +#include "model/EnableResourceCenterRequest.h" +#include "model/EnableResourceCenterResult.h" +#include "model/GetMultiAccountResourceCenterServiceStatusRequest.h" +#include "model/GetMultiAccountResourceCenterServiceStatusResult.h" +#include "model/GetMultiAccountResourceConfigurationRequest.h" +#include "model/GetMultiAccountResourceConfigurationResult.h" +#include "model/GetResourceCenterServiceStatusRequest.h" +#include "model/GetResourceCenterServiceStatusResult.h" +#include "model/GetResourceConfigurationRequest.h" +#include "model/GetResourceConfigurationResult.h" +#include "model/ListMultiAccountResourceGroupsRequest.h" +#include "model/ListMultiAccountResourceGroupsResult.h" +#include "model/ListMultiAccountTagKeysRequest.h" +#include "model/ListMultiAccountTagKeysResult.h" +#include "model/ListMultiAccountTagValuesRequest.h" +#include "model/ListMultiAccountTagValuesResult.h" +#include "model/ListResourceTypesRequest.h" +#include "model/ListResourceTypesResult.h" +#include "model/ListTagKeysRequest.h" +#include "model/ListTagKeysResult.h" +#include "model/ListTagValuesRequest.h" +#include "model/ListTagValuesResult.h" +#include "model/SearchMultiAccountResourcesRequest.h" +#include "model/SearchMultiAccountResourcesResult.h" +#include "model/SearchResourcesRequest.h" +#include "model/SearchResourcesResult.h" + + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ResourceCenterClient : public RpcServiceClient + { + public: + typedef Outcome DisableMultiAccountResourceCenterOutcome; + typedef std::future DisableMultiAccountResourceCenterOutcomeCallable; + typedef std::function&)> DisableMultiAccountResourceCenterAsyncHandler; + typedef Outcome DisableResourceCenterOutcome; + typedef std::future DisableResourceCenterOutcomeCallable; + typedef std::function&)> DisableResourceCenterAsyncHandler; + typedef Outcome EnableMultiAccountResourceCenterOutcome; + typedef std::future EnableMultiAccountResourceCenterOutcomeCallable; + typedef std::function&)> EnableMultiAccountResourceCenterAsyncHandler; + typedef Outcome EnableResourceCenterOutcome; + typedef std::future EnableResourceCenterOutcomeCallable; + typedef std::function&)> EnableResourceCenterAsyncHandler; + typedef Outcome GetMultiAccountResourceCenterServiceStatusOutcome; + typedef std::future GetMultiAccountResourceCenterServiceStatusOutcomeCallable; + typedef std::function&)> GetMultiAccountResourceCenterServiceStatusAsyncHandler; + typedef Outcome GetMultiAccountResourceConfigurationOutcome; + typedef std::future GetMultiAccountResourceConfigurationOutcomeCallable; + typedef std::function&)> GetMultiAccountResourceConfigurationAsyncHandler; + typedef Outcome GetResourceCenterServiceStatusOutcome; + typedef std::future GetResourceCenterServiceStatusOutcomeCallable; + typedef std::function&)> GetResourceCenterServiceStatusAsyncHandler; + typedef Outcome GetResourceConfigurationOutcome; + typedef std::future GetResourceConfigurationOutcomeCallable; + typedef std::function&)> GetResourceConfigurationAsyncHandler; + typedef Outcome ListMultiAccountResourceGroupsOutcome; + typedef std::future ListMultiAccountResourceGroupsOutcomeCallable; + typedef std::function&)> ListMultiAccountResourceGroupsAsyncHandler; + typedef Outcome ListMultiAccountTagKeysOutcome; + typedef std::future ListMultiAccountTagKeysOutcomeCallable; + typedef std::function&)> ListMultiAccountTagKeysAsyncHandler; + typedef Outcome ListMultiAccountTagValuesOutcome; + typedef std::future ListMultiAccountTagValuesOutcomeCallable; + typedef std::function&)> ListMultiAccountTagValuesAsyncHandler; + typedef Outcome ListResourceTypesOutcome; + typedef std::future ListResourceTypesOutcomeCallable; + typedef std::function&)> ListResourceTypesAsyncHandler; + typedef Outcome ListTagKeysOutcome; + typedef std::future ListTagKeysOutcomeCallable; + typedef std::function&)> ListTagKeysAsyncHandler; + typedef Outcome ListTagValuesOutcome; + typedef std::future ListTagValuesOutcomeCallable; + typedef std::function&)> ListTagValuesAsyncHandler; + typedef Outcome SearchMultiAccountResourcesOutcome; + typedef std::future SearchMultiAccountResourcesOutcomeCallable; + typedef std::function&)> SearchMultiAccountResourcesAsyncHandler; + typedef Outcome SearchResourcesOutcome; + typedef std::future SearchResourcesOutcomeCallable; + typedef std::function&)> SearchResourcesAsyncHandler; + + ResourceCenterClient(const Credentials &credentials, const ClientConfiguration &configuration); + ResourceCenterClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ResourceCenterClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ResourceCenterClient(); + DisableMultiAccountResourceCenterOutcome disableMultiAccountResourceCenter(const Model::DisableMultiAccountResourceCenterRequest &request)const; + void disableMultiAccountResourceCenterAsync(const Model::DisableMultiAccountResourceCenterRequest& request, const DisableMultiAccountResourceCenterAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + DisableResourceCenterOutcomeCallable disableResourceCenterCallable(const Model::DisableResourceCenterRequest& request) const; + EnableMultiAccountResourceCenterOutcome enableMultiAccountResourceCenter(const Model::EnableMultiAccountResourceCenterRequest &request)const; + void enableMultiAccountResourceCenterAsync(const Model::EnableMultiAccountResourceCenterRequest& request, const EnableMultiAccountResourceCenterAsyncHandler& handler, const std::shared_ptr& 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& context = nullptr) const; + EnableResourceCenterOutcomeCallable enableResourceCenterCallable(const Model::EnableResourceCenterRequest& request) const; + GetMultiAccountResourceCenterServiceStatusOutcome getMultiAccountResourceCenterServiceStatus(const Model::GetMultiAccountResourceCenterServiceStatusRequest &request)const; + void getMultiAccountResourceCenterServiceStatusAsync(const Model::GetMultiAccountResourceCenterServiceStatusRequest& request, const GetMultiAccountResourceCenterServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMultiAccountResourceCenterServiceStatusOutcomeCallable getMultiAccountResourceCenterServiceStatusCallable(const Model::GetMultiAccountResourceCenterServiceStatusRequest& request) const; + GetMultiAccountResourceConfigurationOutcome getMultiAccountResourceConfiguration(const Model::GetMultiAccountResourceConfigurationRequest &request)const; + void getMultiAccountResourceConfigurationAsync(const Model::GetMultiAccountResourceConfigurationRequest& request, const GetMultiAccountResourceConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMultiAccountResourceConfigurationOutcomeCallable getMultiAccountResourceConfigurationCallable(const Model::GetMultiAccountResourceConfigurationRequest& request) const; + GetResourceCenterServiceStatusOutcome getResourceCenterServiceStatus(const Model::GetResourceCenterServiceStatusRequest &request)const; + void getResourceCenterServiceStatusAsync(const Model::GetResourceCenterServiceStatusRequest& request, const GetResourceCenterServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceCenterServiceStatusOutcomeCallable getResourceCenterServiceStatusCallable(const Model::GetResourceCenterServiceStatusRequest& request) const; + GetResourceConfigurationOutcome getResourceConfiguration(const Model::GetResourceConfigurationRequest &request)const; + void getResourceConfigurationAsync(const Model::GetResourceConfigurationRequest& request, const GetResourceConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceConfigurationOutcomeCallable getResourceConfigurationCallable(const Model::GetResourceConfigurationRequest& request) const; + ListMultiAccountResourceGroupsOutcome listMultiAccountResourceGroups(const Model::ListMultiAccountResourceGroupsRequest &request)const; + void listMultiAccountResourceGroupsAsync(const Model::ListMultiAccountResourceGroupsRequest& request, const ListMultiAccountResourceGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMultiAccountResourceGroupsOutcomeCallable listMultiAccountResourceGroupsCallable(const Model::ListMultiAccountResourceGroupsRequest& request) const; + ListMultiAccountTagKeysOutcome listMultiAccountTagKeys(const Model::ListMultiAccountTagKeysRequest &request)const; + void listMultiAccountTagKeysAsync(const Model::ListMultiAccountTagKeysRequest& request, const ListMultiAccountTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMultiAccountTagKeysOutcomeCallable listMultiAccountTagKeysCallable(const Model::ListMultiAccountTagKeysRequest& request) const; + ListMultiAccountTagValuesOutcome listMultiAccountTagValues(const Model::ListMultiAccountTagValuesRequest &request)const; + void listMultiAccountTagValuesAsync(const Model::ListMultiAccountTagValuesRequest& request, const ListMultiAccountTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListMultiAccountTagValuesOutcomeCallable listMultiAccountTagValuesCallable(const Model::ListMultiAccountTagValuesRequest& request) const; + ListResourceTypesOutcome listResourceTypes(const Model::ListResourceTypesRequest &request)const; + void listResourceTypesAsync(const Model::ListResourceTypesRequest& request, const ListResourceTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourceTypesOutcomeCallable listResourceTypesCallable(const Model::ListResourceTypesRequest& request) const; + ListTagKeysOutcome listTagKeys(const Model::ListTagKeysRequest &request)const; + void listTagKeysAsync(const Model::ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagKeysOutcomeCallable listTagKeysCallable(const Model::ListTagKeysRequest& request) const; + ListTagValuesOutcome listTagValues(const Model::ListTagValuesRequest &request)const; + void listTagValuesAsync(const Model::ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagValuesOutcomeCallable listTagValuesCallable(const Model::ListTagValuesRequest& request) const; + SearchMultiAccountResourcesOutcome searchMultiAccountResources(const Model::SearchMultiAccountResourcesRequest &request)const; + void searchMultiAccountResourcesAsync(const Model::SearchMultiAccountResourcesRequest& request, const SearchMultiAccountResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchMultiAccountResourcesOutcomeCallable searchMultiAccountResourcesCallable(const Model::SearchMultiAccountResourcesRequest& request) const; + SearchResourcesOutcome searchResources(const Model::SearchResourcesRequest &request)const; + void searchResourcesAsync(const Model::SearchResourcesRequest& request, const SearchResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchResourcesOutcomeCallable searchResourcesCallable(const Model::SearchResourcesRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_RESOURCECENTER_RESOURCECENTERCLIENT_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/ResourceCenterExport.h b/resourcecenter/include/alibabacloud/resourcecenter/ResourceCenterExport.h new file mode 100644 index 000000000..07fd53de7 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/ResourceCenterExport.h @@ -0,0 +1,32 @@ +/* + * 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_RESOURCECENTEREXPORT_H_ +#define ALIBABACLOUD_RESOURCECENTER_RESOURCECENTEREXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_RESOURCECENTER_LIBRARY) +# define ALIBABACLOUD_RESOURCECENTER_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_RESOURCECENTER_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_RESOURCECENTER_EXPORT +#endif + +#endif // !ALIBABACLOUD_RESOURCECENTER_RESOURCECENTEREXPORT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterRequest.h new file mode 100644 index 000000000..63930e7bf --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterRequest.h @@ -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_DISABLEMULTIACCOUNTRESOURCECENTERREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLEMULTIACCOUNTRESOURCECENTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT DisableMultiAccountResourceCenterRequest : public RpcServiceRequest { +public: + DisableMultiAccountResourceCenterRequest(); + ~DisableMultiAccountResourceCenterRequest(); + +private: +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLEMULTIACCOUNTRESOURCECENTERREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterResult.h new file mode 100644 index 000000000..1220b34a4 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableMultiAccountResourceCenterResult.h @@ -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_DISABLEMULTIACCOUNTRESOURCECENTERRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLEMULTIACCOUNTRESOURCECENTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT DisableMultiAccountResourceCenterResult : public ServiceResult + { + public: + + + DisableMultiAccountResourceCenterResult(); + explicit DisableMultiAccountResourceCenterResult(const std::string &payload); + ~DisableMultiAccountResourceCenterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLEMULTIACCOUNTRESOURCECENTERRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/DisableResourceCenterRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableResourceCenterRequest.h new file mode 100644 index 000000000..b7be44766 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableResourceCenterRequest.h @@ -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_DISABLERESOURCECENTERREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLERESOURCECENTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT DisableResourceCenterRequest : public RpcServiceRequest { +public: + DisableResourceCenterRequest(); + ~DisableResourceCenterRequest(); + +private: +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLERESOURCECENTERREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/DisableResourceCenterResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableResourceCenterResult.h new file mode 100644 index 000000000..0992a04ed --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/DisableResourceCenterResult.h @@ -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_DISABLERESOURCECENTERRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLERESOURCECENTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT DisableResourceCenterResult : public ServiceResult + { + public: + + + DisableResourceCenterResult(); + explicit DisableResourceCenterResult(const std::string &payload); + ~DisableResourceCenterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_DISABLERESOURCECENTERRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterRequest.h new file mode 100644 index 000000000..1f825ab23 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterRequest.h @@ -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_ENABLEMULTIACCOUNTRESOURCECENTERREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLEMULTIACCOUNTRESOURCECENTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT EnableMultiAccountResourceCenterRequest : public RpcServiceRequest { +public: + EnableMultiAccountResourceCenterRequest(); + ~EnableMultiAccountResourceCenterRequest(); + std::string getChannel() const; + void setChannel(const std::string &channel); + +private: + std::string channel_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLEMULTIACCOUNTRESOURCECENTERREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterResult.h new file mode 100644 index 000000000..833a7dbec --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableMultiAccountResourceCenterResult.h @@ -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_ENABLEMULTIACCOUNTRESOURCECENTERRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLEMULTIACCOUNTRESOURCECENTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT EnableMultiAccountResourceCenterResult : public ServiceResult + { + public: + + + EnableMultiAccountResourceCenterResult(); + explicit EnableMultiAccountResourceCenterResult(const std::string &payload); + ~EnableMultiAccountResourceCenterResult(); + std::string getStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLEMULTIACCOUNTRESOURCECENTERRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/EnableResourceCenterRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableResourceCenterRequest.h new file mode 100644 index 000000000..fa8097229 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableResourceCenterRequest.h @@ -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_ENABLERESOURCECENTERREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLERESOURCECENTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT EnableResourceCenterRequest : public RpcServiceRequest { +public: + EnableResourceCenterRequest(); + ~EnableResourceCenterRequest(); + std::string getChannel() const; + void setChannel(const std::string &channel); + +private: + std::string channel_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLERESOURCECENTERREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/EnableResourceCenterResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableResourceCenterResult.h new file mode 100644 index 000000000..b251aa46d --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/EnableResourceCenterResult.h @@ -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_ENABLERESOURCECENTERRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLERESOURCECENTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT EnableResourceCenterResult : public ServiceResult + { + public: + + + EnableResourceCenterResult(); + explicit EnableResourceCenterResult(const std::string &payload); + ~EnableResourceCenterResult(); + std::string getStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_ENABLERESOURCECENTERRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusRequest.h new file mode 100644 index 000000000..c42aa0528 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusRequest.h @@ -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_GETMULTIACCOUNTRESOURCECENTERSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECENTERSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT GetMultiAccountResourceCenterServiceStatusRequest : public RpcServiceRequest { +public: + GetMultiAccountResourceCenterServiceStatusRequest(); + ~GetMultiAccountResourceCenterServiceStatusRequest(); + +private: +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECENTERSERVICESTATUSREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusResult.h new file mode 100644 index 000000000..1f0673615 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceCenterServiceStatusResult.h @@ -0,0 +1,53 @@ +/* + * 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_GETMULTIACCOUNTRESOURCECENTERSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECENTERSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT GetMultiAccountResourceCenterServiceStatusResult : public ServiceResult + { + public: + + + GetMultiAccountResourceCenterServiceStatusResult(); + explicit GetMultiAccountResourceCenterServiceStatusResult(const std::string &payload); + ~GetMultiAccountResourceCenterServiceStatusResult(); + std::string getServiceStatus()const; + std::string getInitialStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string serviceStatus_; + std::string initialStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECENTERSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationRequest.h new file mode 100644 index 000000000..d18f1f2ad --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationRequest.h @@ -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_GETMULTIACCOUNTRESOURCECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT GetMultiAccountResourceConfigurationRequest : public RpcServiceRequest { +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); + +private: + std::string resourceId_; + std::string resourceType_; + std::string accountId_; + std::string resourceRegionId_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECONFIGURATIONREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationResult.h new file mode 100644 index 000000000..8d04dadde --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetMultiAccountResourceConfigurationResult.h @@ -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_GETMULTIACCOUNTRESOURCECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT GetMultiAccountResourceConfigurationResult : public ServiceResult + { + public: + + + GetMultiAccountResourceConfigurationResult(); + explicit GetMultiAccountResourceConfigurationResult(const std::string &payload); + ~GetMultiAccountResourceConfigurationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETMULTIACCOUNTRESOURCECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusRequest.h new file mode 100644 index 000000000..2d854ef79 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusRequest.h @@ -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_GETRESOURCECENTERSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECENTERSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT GetResourceCenterServiceStatusRequest : public RpcServiceRequest { +public: + GetResourceCenterServiceStatusRequest(); + ~GetResourceCenterServiceStatusRequest(); + +private: +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECENTERSERVICESTATUSREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusResult.h new file mode 100644 index 000000000..1ac8d59aa --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceCenterServiceStatusResult.h @@ -0,0 +1,53 @@ +/* + * 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_GETRESOURCECENTERSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECENTERSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT GetResourceCenterServiceStatusResult : public ServiceResult + { + public: + + + GetResourceCenterServiceStatusResult(); + explicit GetResourceCenterServiceStatusResult(const std::string &payload); + ~GetResourceCenterServiceStatusResult(); + std::string getServiceStatus()const; + std::string getInitialStatus()const; + + protected: + void parse(const std::string &payload); + private: + std::string serviceStatus_; + std::string initialStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECENTERSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceConfigurationRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceConfigurationRequest.h new file mode 100644 index 000000000..52e86dbad --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceConfigurationRequest.h @@ -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_GETRESOURCECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT GetResourceConfigurationRequest : public RpcServiceRequest { +public: + GetResourceConfigurationRequest(); + ~GetResourceConfigurationRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getResourceRegionId() const; + void setResourceRegionId(const std::string &resourceRegionId); + +private: + std::string resourceId_; + std::string resourceType_; + std::string resourceRegionId_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECONFIGURATIONREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceConfigurationResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceConfigurationResult.h new file mode 100644 index 000000000..b0a92ed29 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/GetResourceConfigurationResult.h @@ -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_GETRESOURCECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT GetResourceConfigurationResult : public ServiceResult + { + public: + + + GetResourceConfigurationResult(); + explicit GetResourceConfigurationResult(const std::string &payload); + ~GetResourceConfigurationResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_GETRESOURCECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsRequest.h new file mode 100644 index 000000000..79fc7c7c9 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsRequest.h @@ -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_LISTMULTIACCOUNTRESOURCEGROUPSREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTRESOURCEGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT ListMultiAccountResourceGroupsRequest : public RpcServiceRequest { +public: + ListMultiAccountResourceGroupsRequest(); + ~ListMultiAccountResourceGroupsRequest(); + std::string getAccountId() const; + void setAccountId(const std::string &accountId); + std::vector getResourceGroupIds() const; + void setResourceGroupIds(const std::vector &resourceGroupIds); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string accountId_; + std::vector resourceGroupIds_; + std::string nextToken_; + int maxResults_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTRESOURCEGROUPSREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsResult.h new file mode 100644 index 000000000..303cea0e5 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountResourceGroupsResult.h @@ -0,0 +1,72 @@ +/* + * 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_LISTMULTIACCOUNTRESOURCEGROUPSRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTRESOURCEGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ListMultiAccountResourceGroupsResult : public ServiceResult + { + public: + struct ResourceGroup + { + std::string status; + std::string accountId; + std::string displayName; + std::string id; + std::string createDate; + std::string name; + }; + + + ListMultiAccountResourceGroupsResult(); + explicit ListMultiAccountResourceGroupsResult(const std::string &payload); + ~ListMultiAccountResourceGroupsResult(); + std::string getNextToken()const; + std::string getDynamicCode()const; + std::vector getResourceGroups()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::string dynamicCode_; + std::vector resourceGroups_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTRESOURCEGROUPSRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysRequest.h new file mode 100644 index 000000000..64294e2d5 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGKEYSREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT ListMultiAccountTagKeysRequest : public RpcServiceRequest { +public: + ListMultiAccountTagKeysRequest(); + ~ListMultiAccountTagKeysRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getScope() const; + void setScope(const std::string &scope); + std::string getMatchType() const; + void setMatchType(const std::string &matchType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string nextToken_; + std::string scope_; + std::string matchType_; + int maxResults_; + std::string tagKey_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGKEYSREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysResult.h new file mode 100644 index 000000000..723ff0c96 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagKeysResult.h @@ -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_LISTMULTIACCOUNTTAGKEYSRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ListMultiAccountTagKeysResult : public ServiceResult + { + public: + + + ListMultiAccountTagKeysResult(); + explicit ListMultiAccountTagKeysResult(const std::string &payload); + ~ListMultiAccountTagKeysResult(); + std::string getNextToken()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getTagKeys()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::vector tagKeys_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGKEYSRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesRequest.h new file mode 100644 index 000000000..5052ac3c2 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGVALUESREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGVALUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT ListMultiAccountTagValuesRequest : public RpcServiceRequest { +public: + ListMultiAccountTagValuesRequest(); + ~ListMultiAccountTagValuesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getScope() const; + void setScope(const std::string &scope); + std::string getMatchType() const; + void setMatchType(const std::string &matchType); + std::string getTagValue() const; + void setTagValue(const std::string &tagValue); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string nextToken_; + std::string scope_; + std::string matchType_; + std::string tagValue_; + int maxResults_; + std::string tagKey_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGVALUESREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesResult.h new file mode 100644 index 000000000..c793f1c71 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListMultiAccountTagValuesResult.h @@ -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_LISTMULTIACCOUNTTAGVALUESRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGVALUESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ListMultiAccountTagValuesResult : public ServiceResult + { + public: + + + ListMultiAccountTagValuesResult(); + explicit ListMultiAccountTagValuesResult(const std::string &payload); + ~ListMultiAccountTagValuesResult(); + std::string getNextToken()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getTagValues()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::vector tagValues_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTMULTIACCOUNTTAGVALUESRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListResourceTypesRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListResourceTypesRequest.h new file mode 100644 index 000000000..0c7af9943 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListResourceTypesRequest.h @@ -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_LISTRESOURCETYPESREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTRESOURCETYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT ListResourceTypesRequest : public RpcServiceRequest { +public: + ListResourceTypesRequest(); + ~ListResourceTypesRequest(); + std::vector getQuery() const; + void setQuery(const std::vector &query); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); + +private: + std::vector query_; + std::string resourceType_; + std::string acceptLanguage_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTRESOURCETYPESREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListResourceTypesResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListResourceTypesResult.h new file mode 100644 index 000000000..d1e4e1c22 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListResourceTypesResult.h @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTRESOURCETYPESRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTRESOURCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ListResourceTypesResult : public ServiceResult + { + public: + struct ResourceType + { + struct CodeMapping + { + std::string tag; + std::string resourceGroup; + }; + struct Urls + { + std::string productConsoleUrl; + std::string resourceConsoleUrl; + }; + std::string resourceTypeName; + std::string productName; + std::vector filterKeys; + CodeMapping codeMapping; + std::string resourceType; + Urls urls; + }; + + + ListResourceTypesResult(); + explicit ListResourceTypesResult(const std::string &payload); + ~ListResourceTypesResult(); + std::vector getResourceTypes()const; + std::string getDynamicCode()const; + std::string getErrorCode()const; + std::string getDynamicMessage()const; + std::string getErrorMessage()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resourceTypes_; + std::string dynamicCode_; + std::string errorCode_; + std::string dynamicMessage_; + std::string errorMessage_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTRESOURCETYPESRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagKeysRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagKeysRequest.h new file mode 100644 index 000000000..941f925cc --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagKeysRequest.h @@ -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_LISTTAGKEYSREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGKEYSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT ListTagKeysRequest : public RpcServiceRequest { +public: + ListTagKeysRequest(); + ~ListTagKeysRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMatchType() const; + void setMatchType(const std::string &matchType); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string nextToken_; + std::string matchType_; + int maxResults_; + std::string tagKey_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGKEYSREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagKeysResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagKeysResult.h new file mode 100644 index 000000000..ae2f0e280 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagKeysResult.h @@ -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_LISTTAGKEYSRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGKEYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ListTagKeysResult : public ServiceResult + { + public: + + + ListTagKeysResult(); + explicit ListTagKeysResult(const std::string &payload); + ~ListTagKeysResult(); + std::string getNextToken()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getTagKeys()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::vector tagKeys_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGKEYSRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagValuesRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagValuesRequest.h new file mode 100644 index 000000000..41597f378 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagValuesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGVALUESREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGVALUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT ListTagValuesRequest : public RpcServiceRequest { +public: + ListTagValuesRequest(); + ~ListTagValuesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getMatchType() const; + void setMatchType(const std::string &matchType); + std::string getTagValue() const; + void setTagValue(const std::string &tagValue); + int getMaxResults() const; + void setMaxResults(int maxResults); + std::string getTagKey() const; + void setTagKey(const std::string &tagKey); + +private: + std::string nextToken_; + std::string matchType_; + std::string tagValue_; + int maxResults_; + std::string tagKey_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGVALUESREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagValuesResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagValuesResult.h new file mode 100644 index 000000000..98c241436 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/ListTagValuesResult.h @@ -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_LISTTAGVALUESRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGVALUESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT ListTagValuesResult : public ServiceResult + { + public: + + + ListTagValuesResult(); + explicit ListTagValuesResult(const std::string &payload); + ~ListTagValuesResult(); + std::string getNextToken()const; + std::string getDynamicCode()const; + std::string getDynamicMessage()const; + std::string getErrorCode()const; + std::string getErrorMessage()const; + std::vector getTagValues()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::string dynamicCode_; + std::string dynamicMessage_; + std::string errorCode_; + std::string errorMessage_; + std::vector tagValues_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_LISTTAGVALUESRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesRequest.h new file mode 100644 index 000000000..5adac88b1 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesRequest.h @@ -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_SEARCHMULTIACCOUNTRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHMULTIACCOUNTRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT SearchMultiAccountResourcesRequest : public RpcServiceRequest { +public: + struct SortCriterion { + std::string key; + std::string order; + }; + struct Filter { + std::string matchType; + std::string key; + }; + SearchMultiAccountResourcesRequest(); + ~SearchMultiAccountResourcesRequest(); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getScope() const; + void setScope(const std::string &scope); + SortCriterion getSortCriterion() const; + void setSortCriterion(const SortCriterion &sortCriterion); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string nextToken_; + std::string scope_; + SortCriterion sortCriterion_; + std::vector filter_; + int maxResults_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHMULTIACCOUNTRESOURCESREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesResult.h new file mode 100644 index 000000000..e2e89a388 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchMultiAccountResourcesResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHMULTIACCOUNTRESOURCESRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHMULTIACCOUNTRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT SearchMultiAccountResourcesResult : public ServiceResult + { + public: + struct Filter + { + std::string matchType; + std::vector values; + std::string key; + }; + struct Resource + { + struct Tag + { + std::string value; + std::string key; + }; + std::vector ipAddresses; + std::string accountId; + std::string resourceGroupId; + std::string zoneId; + std::string resourceId; + std::string resourceName; + std::string createTime; + std::string resourceType; + std::string regionId; + std::vector tags; + }; + + + SearchMultiAccountResourcesResult(); + explicit SearchMultiAccountResourcesResult(const std::string &payload); + ~SearchMultiAccountResourcesResult(); + std::vector getFilters()const; + std::string getNextToken()const; + std::string getScope()const; + int getMaxResults()const; + std::vector getResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector filters_; + std::string nextToken_; + std::string scope_; + int maxResults_; + std::vector resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHMULTIACCOUNTRESOURCESRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/SearchResourcesRequest.h b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchResourcesRequest.h new file mode 100644 index 000000000..bd6f327d0 --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchResourcesRequest.h @@ -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_SEARCHRESOURCESREQUEST_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace ResourceCenter { +namespace Model { +class ALIBABACLOUD_RESOURCECENTER_EXPORT SearchResourcesRequest : public RpcServiceRequest { +public: + struct SortCriterion { + std::string key; + std::string order; + }; + struct Filter { + std::string matchType; + std::string key; + }; + SearchResourcesRequest(); + ~SearchResourcesRequest(); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + SortCriterion getSortCriterion() const; + void setSortCriterion(const SortCriterion &sortCriterion); + std::vector getFilter() const; + void setFilter(const std::vector &filter); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + std::string resourceGroupId_; + std::string nextToken_; + SortCriterion sortCriterion_; + std::vector filter_; + int maxResults_; +}; +} // namespace Model +} // namespace ResourceCenter +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHRESOURCESREQUEST_H_ diff --git a/resourcecenter/include/alibabacloud/resourcecenter/model/SearchResourcesResult.h b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchResourcesResult.h new file mode 100644 index 000000000..dc0bf83da --- /dev/null +++ b/resourcecenter/include/alibabacloud/resourcecenter/model/SearchResourcesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHRESOURCESRESULT_H_ +#define ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ResourceCenter + { + namespace Model + { + class ALIBABACLOUD_RESOURCECENTER_EXPORT SearchResourcesResult : public ServiceResult + { + public: + struct Filter + { + std::string matchType; + std::vector values; + std::string key; + }; + struct Resource + { + struct Tag + { + std::string value; + std::string key; + }; + std::vector ipAddresses; + std::string accountId; + std::string resourceGroupId; + std::string zoneId; + std::string resourceId; + std::string resourceName; + std::string createTime; + std::string resourceType; + std::string regionId; + std::vector tags; + }; + + + SearchResourcesResult(); + explicit SearchResourcesResult(const std::string &payload); + ~SearchResourcesResult(); + std::vector getFilters()const; + std::string getNextToken()const; + int getMaxResults()const; + std::vector getResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector filters_; + std::string nextToken_; + int maxResults_; + std::vector resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_RESOURCECENTER_MODEL_SEARCHRESOURCESRESULT_H_ \ No newline at end of file diff --git a/resourcecenter/src/ResourceCenterClient.cc b/resourcecenter/src/ResourceCenterClient.cc new file mode 100644 index 000000000..ae8122cbb --- /dev/null +++ b/resourcecenter/src/ResourceCenterClient.cc @@ -0,0 +1,629 @@ +/* + * 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 +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +namespace +{ + const std::string SERVICE_NAME = "ResourceCenter"; +} + +ResourceCenterClient::ResourceCenterClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ResourceCenterClient::ResourceCenterClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ResourceCenterClient::ResourceCenterClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); +} + +ResourceCenterClient::~ResourceCenterClient() +{} + +ResourceCenterClient::DisableMultiAccountResourceCenterOutcome ResourceCenterClient::disableMultiAccountResourceCenter(const DisableMultiAccountResourceCenterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableMultiAccountResourceCenterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableMultiAccountResourceCenterOutcome(DisableMultiAccountResourceCenterResult(outcome.result())); + else + return DisableMultiAccountResourceCenterOutcome(outcome.error()); +} + +void ResourceCenterClient::disableMultiAccountResourceCenterAsync(const DisableMultiAccountResourceCenterRequest& request, const DisableMultiAccountResourceCenterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableMultiAccountResourceCenter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::DisableMultiAccountResourceCenterOutcomeCallable ResourceCenterClient::disableMultiAccountResourceCenterCallable(const DisableMultiAccountResourceCenterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableMultiAccountResourceCenter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::DisableResourceCenterOutcome ResourceCenterClient::disableResourceCenter(const DisableResourceCenterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DisableResourceCenterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DisableResourceCenterOutcome(DisableResourceCenterResult(outcome.result())); + else + return DisableResourceCenterOutcome(outcome.error()); +} + +void ResourceCenterClient::disableResourceCenterAsync(const DisableResourceCenterRequest& request, const DisableResourceCenterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, disableResourceCenter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::DisableResourceCenterOutcomeCallable ResourceCenterClient::disableResourceCenterCallable(const DisableResourceCenterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->disableResourceCenter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::EnableMultiAccountResourceCenterOutcome ResourceCenterClient::enableMultiAccountResourceCenter(const EnableMultiAccountResourceCenterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableMultiAccountResourceCenterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableMultiAccountResourceCenterOutcome(EnableMultiAccountResourceCenterResult(outcome.result())); + else + return EnableMultiAccountResourceCenterOutcome(outcome.error()); +} + +void ResourceCenterClient::enableMultiAccountResourceCenterAsync(const EnableMultiAccountResourceCenterRequest& request, const EnableMultiAccountResourceCenterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableMultiAccountResourceCenter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::EnableMultiAccountResourceCenterOutcomeCallable ResourceCenterClient::enableMultiAccountResourceCenterCallable(const EnableMultiAccountResourceCenterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableMultiAccountResourceCenter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::EnableResourceCenterOutcome ResourceCenterClient::enableResourceCenter(const EnableResourceCenterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableResourceCenterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableResourceCenterOutcome(EnableResourceCenterResult(outcome.result())); + else + return EnableResourceCenterOutcome(outcome.error()); +} + +void ResourceCenterClient::enableResourceCenterAsync(const EnableResourceCenterRequest& request, const EnableResourceCenterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableResourceCenter(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::EnableResourceCenterOutcomeCallable ResourceCenterClient::enableResourceCenterCallable(const EnableResourceCenterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableResourceCenter(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::GetMultiAccountResourceCenterServiceStatusOutcome ResourceCenterClient::getMultiAccountResourceCenterServiceStatus(const GetMultiAccountResourceCenterServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMultiAccountResourceCenterServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMultiAccountResourceCenterServiceStatusOutcome(GetMultiAccountResourceCenterServiceStatusResult(outcome.result())); + else + return GetMultiAccountResourceCenterServiceStatusOutcome(outcome.error()); +} + +void ResourceCenterClient::getMultiAccountResourceCenterServiceStatusAsync(const GetMultiAccountResourceCenterServiceStatusRequest& request, const GetMultiAccountResourceCenterServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMultiAccountResourceCenterServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::GetMultiAccountResourceCenterServiceStatusOutcomeCallable ResourceCenterClient::getMultiAccountResourceCenterServiceStatusCallable(const GetMultiAccountResourceCenterServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMultiAccountResourceCenterServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::GetMultiAccountResourceConfigurationOutcome ResourceCenterClient::getMultiAccountResourceConfiguration(const GetMultiAccountResourceConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMultiAccountResourceConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMultiAccountResourceConfigurationOutcome(GetMultiAccountResourceConfigurationResult(outcome.result())); + else + return GetMultiAccountResourceConfigurationOutcome(outcome.error()); +} + +void ResourceCenterClient::getMultiAccountResourceConfigurationAsync(const GetMultiAccountResourceConfigurationRequest& request, const GetMultiAccountResourceConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMultiAccountResourceConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::GetMultiAccountResourceConfigurationOutcomeCallable ResourceCenterClient::getMultiAccountResourceConfigurationCallable(const GetMultiAccountResourceConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMultiAccountResourceConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::GetResourceCenterServiceStatusOutcome ResourceCenterClient::getResourceCenterServiceStatus(const GetResourceCenterServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceCenterServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceCenterServiceStatusOutcome(GetResourceCenterServiceStatusResult(outcome.result())); + else + return GetResourceCenterServiceStatusOutcome(outcome.error()); +} + +void ResourceCenterClient::getResourceCenterServiceStatusAsync(const GetResourceCenterServiceStatusRequest& request, const GetResourceCenterServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceCenterServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::GetResourceCenterServiceStatusOutcomeCallable ResourceCenterClient::getResourceCenterServiceStatusCallable(const GetResourceCenterServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceCenterServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::GetResourceConfigurationOutcome ResourceCenterClient::getResourceConfiguration(const GetResourceConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceConfigurationOutcome(GetResourceConfigurationResult(outcome.result())); + else + return GetResourceConfigurationOutcome(outcome.error()); +} + +void ResourceCenterClient::getResourceConfigurationAsync(const GetResourceConfigurationRequest& request, const GetResourceConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::GetResourceConfigurationOutcomeCallable ResourceCenterClient::getResourceConfigurationCallable(const GetResourceConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::ListMultiAccountResourceGroupsOutcome ResourceCenterClient::listMultiAccountResourceGroups(const ListMultiAccountResourceGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMultiAccountResourceGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMultiAccountResourceGroupsOutcome(ListMultiAccountResourceGroupsResult(outcome.result())); + else + return ListMultiAccountResourceGroupsOutcome(outcome.error()); +} + +void ResourceCenterClient::listMultiAccountResourceGroupsAsync(const ListMultiAccountResourceGroupsRequest& request, const ListMultiAccountResourceGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMultiAccountResourceGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::ListMultiAccountResourceGroupsOutcomeCallable ResourceCenterClient::listMultiAccountResourceGroupsCallable(const ListMultiAccountResourceGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMultiAccountResourceGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::ListMultiAccountTagKeysOutcome ResourceCenterClient::listMultiAccountTagKeys(const ListMultiAccountTagKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMultiAccountTagKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMultiAccountTagKeysOutcome(ListMultiAccountTagKeysResult(outcome.result())); + else + return ListMultiAccountTagKeysOutcome(outcome.error()); +} + +void ResourceCenterClient::listMultiAccountTagKeysAsync(const ListMultiAccountTagKeysRequest& request, const ListMultiAccountTagKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMultiAccountTagKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::ListMultiAccountTagKeysOutcomeCallable ResourceCenterClient::listMultiAccountTagKeysCallable(const ListMultiAccountTagKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMultiAccountTagKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::ListMultiAccountTagValuesOutcome ResourceCenterClient::listMultiAccountTagValues(const ListMultiAccountTagValuesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListMultiAccountTagValuesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListMultiAccountTagValuesOutcome(ListMultiAccountTagValuesResult(outcome.result())); + else + return ListMultiAccountTagValuesOutcome(outcome.error()); +} + +void ResourceCenterClient::listMultiAccountTagValuesAsync(const ListMultiAccountTagValuesRequest& request, const ListMultiAccountTagValuesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listMultiAccountTagValues(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::ListMultiAccountTagValuesOutcomeCallable ResourceCenterClient::listMultiAccountTagValuesCallable(const ListMultiAccountTagValuesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listMultiAccountTagValues(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::ListResourceTypesOutcome ResourceCenterClient::listResourceTypes(const ListResourceTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourceTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourceTypesOutcome(ListResourceTypesResult(outcome.result())); + else + return ListResourceTypesOutcome(outcome.error()); +} + +void ResourceCenterClient::listResourceTypesAsync(const ListResourceTypesRequest& request, const ListResourceTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourceTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::ListResourceTypesOutcomeCallable ResourceCenterClient::listResourceTypesCallable(const ListResourceTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourceTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::ListTagKeysOutcome ResourceCenterClient::listTagKeys(const ListTagKeysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagKeysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagKeysOutcome(ListTagKeysResult(outcome.result())); + else + return ListTagKeysOutcome(outcome.error()); +} + +void ResourceCenterClient::listTagKeysAsync(const ListTagKeysRequest& request, const ListTagKeysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagKeys(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::ListTagKeysOutcomeCallable ResourceCenterClient::listTagKeysCallable(const ListTagKeysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagKeys(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::ListTagValuesOutcome ResourceCenterClient::listTagValues(const ListTagValuesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagValuesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagValuesOutcome(ListTagValuesResult(outcome.result())); + else + return ListTagValuesOutcome(outcome.error()); +} + +void ResourceCenterClient::listTagValuesAsync(const ListTagValuesRequest& request, const ListTagValuesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagValues(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::ListTagValuesOutcomeCallable ResourceCenterClient::listTagValuesCallable(const ListTagValuesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagValues(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::SearchMultiAccountResourcesOutcome ResourceCenterClient::searchMultiAccountResources(const SearchMultiAccountResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchMultiAccountResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchMultiAccountResourcesOutcome(SearchMultiAccountResourcesResult(outcome.result())); + else + return SearchMultiAccountResourcesOutcome(outcome.error()); +} + +void ResourceCenterClient::searchMultiAccountResourcesAsync(const SearchMultiAccountResourcesRequest& request, const SearchMultiAccountResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchMultiAccountResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::SearchMultiAccountResourcesOutcomeCallable ResourceCenterClient::searchMultiAccountResourcesCallable(const SearchMultiAccountResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchMultiAccountResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ResourceCenterClient::SearchResourcesOutcome ResourceCenterClient::searchResources(const SearchResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchResourcesOutcome(SearchResourcesResult(outcome.result())); + else + return SearchResourcesOutcome(outcome.error()); +} + +void ResourceCenterClient::searchResourcesAsync(const SearchResourcesRequest& request, const SearchResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ResourceCenterClient::SearchResourcesOutcomeCallable ResourceCenterClient::searchResourcesCallable(const SearchResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/resourcecenter/src/model/DisableMultiAccountResourceCenterRequest.cc b/resourcecenter/src/model/DisableMultiAccountResourceCenterRequest.cc new file mode 100644 index 000000000..38fc302b6 --- /dev/null +++ b/resourcecenter/src/model/DisableMultiAccountResourceCenterRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::DisableMultiAccountResourceCenterRequest; + +DisableMultiAccountResourceCenterRequest::DisableMultiAccountResourceCenterRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "DisableMultiAccountResourceCenter") { + setMethod(HttpRequest::Method::Post); +} + +DisableMultiAccountResourceCenterRequest::~DisableMultiAccountResourceCenterRequest() {} + diff --git a/resourcecenter/src/model/DisableMultiAccountResourceCenterResult.cc b/resourcecenter/src/model/DisableMultiAccountResourceCenterResult.cc new file mode 100644 index 000000000..ee11a0bdb --- /dev/null +++ b/resourcecenter/src/model/DisableMultiAccountResourceCenterResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +DisableMultiAccountResourceCenterResult::DisableMultiAccountResourceCenterResult() : + ServiceResult() +{} + +DisableMultiAccountResourceCenterResult::DisableMultiAccountResourceCenterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableMultiAccountResourceCenterResult::~DisableMultiAccountResourceCenterResult() +{} + +void DisableMultiAccountResourceCenterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcecenter/src/model/DisableResourceCenterRequest.cc b/resourcecenter/src/model/DisableResourceCenterRequest.cc new file mode 100644 index 000000000..1b166de2e --- /dev/null +++ b/resourcecenter/src/model/DisableResourceCenterRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::DisableResourceCenterRequest; + +DisableResourceCenterRequest::DisableResourceCenterRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "DisableResourceCenter") { + setMethod(HttpRequest::Method::Post); +} + +DisableResourceCenterRequest::~DisableResourceCenterRequest() {} + diff --git a/resourcecenter/src/model/DisableResourceCenterResult.cc b/resourcecenter/src/model/DisableResourceCenterResult.cc new file mode 100644 index 000000000..047c06774 --- /dev/null +++ b/resourcecenter/src/model/DisableResourceCenterResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +DisableResourceCenterResult::DisableResourceCenterResult() : + ServiceResult() +{} + +DisableResourceCenterResult::DisableResourceCenterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableResourceCenterResult::~DisableResourceCenterResult() +{} + +void DisableResourceCenterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcecenter/src/model/EnableMultiAccountResourceCenterRequest.cc b/resourcecenter/src/model/EnableMultiAccountResourceCenterRequest.cc new file mode 100644 index 000000000..a3e7388d2 --- /dev/null +++ b/resourcecenter/src/model/EnableMultiAccountResourceCenterRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::EnableMultiAccountResourceCenterRequest; + +EnableMultiAccountResourceCenterRequest::EnableMultiAccountResourceCenterRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "EnableMultiAccountResourceCenter") { + setMethod(HttpRequest::Method::Post); +} + +EnableMultiAccountResourceCenterRequest::~EnableMultiAccountResourceCenterRequest() {} + +std::string EnableMultiAccountResourceCenterRequest::getChannel() const { + return channel_; +} + +void EnableMultiAccountResourceCenterRequest::setChannel(const std::string &channel) { + channel_ = channel; + setParameter(std::string("Channel"), channel); +} + diff --git a/resourcecenter/src/model/EnableMultiAccountResourceCenterResult.cc b/resourcecenter/src/model/EnableMultiAccountResourceCenterResult.cc new file mode 100644 index 000000000..4643a5d2a --- /dev/null +++ b/resourcecenter/src/model/EnableMultiAccountResourceCenterResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +EnableMultiAccountResourceCenterResult::EnableMultiAccountResourceCenterResult() : + ServiceResult() +{} + +EnableMultiAccountResourceCenterResult::EnableMultiAccountResourceCenterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableMultiAccountResourceCenterResult::~EnableMultiAccountResourceCenterResult() +{} + +void EnableMultiAccountResourceCenterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string EnableMultiAccountResourceCenterResult::getStatus()const +{ + return status_; +} + diff --git a/resourcecenter/src/model/EnableResourceCenterRequest.cc b/resourcecenter/src/model/EnableResourceCenterRequest.cc new file mode 100644 index 000000000..0bc198ee6 --- /dev/null +++ b/resourcecenter/src/model/EnableResourceCenterRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::EnableResourceCenterRequest; + +EnableResourceCenterRequest::EnableResourceCenterRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "EnableResourceCenter") { + setMethod(HttpRequest::Method::Post); +} + +EnableResourceCenterRequest::~EnableResourceCenterRequest() {} + +std::string EnableResourceCenterRequest::getChannel() const { + return channel_; +} + +void EnableResourceCenterRequest::setChannel(const std::string &channel) { + channel_ = channel; + setParameter(std::string("Channel"), channel); +} + diff --git a/resourcecenter/src/model/EnableResourceCenterResult.cc b/resourcecenter/src/model/EnableResourceCenterResult.cc new file mode 100644 index 000000000..73f7ec972 --- /dev/null +++ b/resourcecenter/src/model/EnableResourceCenterResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +EnableResourceCenterResult::EnableResourceCenterResult() : + ServiceResult() +{} + +EnableResourceCenterResult::EnableResourceCenterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableResourceCenterResult::~EnableResourceCenterResult() +{} + +void EnableResourceCenterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string EnableResourceCenterResult::getStatus()const +{ + return status_; +} + diff --git a/resourcecenter/src/model/GetMultiAccountResourceCenterServiceStatusRequest.cc b/resourcecenter/src/model/GetMultiAccountResourceCenterServiceStatusRequest.cc new file mode 100644 index 000000000..8b5fd8ba2 --- /dev/null +++ b/resourcecenter/src/model/GetMultiAccountResourceCenterServiceStatusRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::GetMultiAccountResourceCenterServiceStatusRequest; + +GetMultiAccountResourceCenterServiceStatusRequest::GetMultiAccountResourceCenterServiceStatusRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "GetMultiAccountResourceCenterServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetMultiAccountResourceCenterServiceStatusRequest::~GetMultiAccountResourceCenterServiceStatusRequest() {} + diff --git a/resourcecenter/src/model/GetMultiAccountResourceCenterServiceStatusResult.cc b/resourcecenter/src/model/GetMultiAccountResourceCenterServiceStatusResult.cc new file mode 100644 index 000000000..555bb65a8 --- /dev/null +++ b/resourcecenter/src/model/GetMultiAccountResourceCenterServiceStatusResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +GetMultiAccountResourceCenterServiceStatusResult::GetMultiAccountResourceCenterServiceStatusResult() : + ServiceResult() +{} + +GetMultiAccountResourceCenterServiceStatusResult::GetMultiAccountResourceCenterServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMultiAccountResourceCenterServiceStatusResult::~GetMultiAccountResourceCenterServiceStatusResult() +{} + +void GetMultiAccountResourceCenterServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ServiceStatus"].isNull()) + serviceStatus_ = value["ServiceStatus"].asString(); + if(!value["InitialStatus"].isNull()) + initialStatus_ = value["InitialStatus"].asString(); + +} + +std::string GetMultiAccountResourceCenterServiceStatusResult::getServiceStatus()const +{ + return serviceStatus_; +} + +std::string GetMultiAccountResourceCenterServiceStatusResult::getInitialStatus()const +{ + return initialStatus_; +} + diff --git a/resourcecenter/src/model/GetMultiAccountResourceConfigurationRequest.cc b/resourcecenter/src/model/GetMultiAccountResourceConfigurationRequest.cc new file mode 100644 index 000000000..88cef03b3 --- /dev/null +++ b/resourcecenter/src/model/GetMultiAccountResourceConfigurationRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::GetMultiAccountResourceConfigurationRequest; + +GetMultiAccountResourceConfigurationRequest::GetMultiAccountResourceConfigurationRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "GetMultiAccountResourceConfiguration") { + setMethod(HttpRequest::Method::Post); +} + +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_; +} + +void GetMultiAccountResourceConfigurationRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("AccountId"), accountId); +} + +std::string GetMultiAccountResourceConfigurationRequest::getResourceRegionId() const { + return resourceRegionId_; +} + +void GetMultiAccountResourceConfigurationRequest::setResourceRegionId(const std::string &resourceRegionId) { + resourceRegionId_ = resourceRegionId; + setParameter(std::string("ResourceRegionId"), resourceRegionId); +} + diff --git a/resourcecenter/src/model/GetMultiAccountResourceConfigurationResult.cc b/resourcecenter/src/model/GetMultiAccountResourceConfigurationResult.cc new file mode 100644 index 000000000..6cfa1ee2a --- /dev/null +++ b/resourcecenter/src/model/GetMultiAccountResourceConfigurationResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +GetMultiAccountResourceConfigurationResult::GetMultiAccountResourceConfigurationResult() : + ServiceResult() +{} + +GetMultiAccountResourceConfigurationResult::GetMultiAccountResourceConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMultiAccountResourceConfigurationResult::~GetMultiAccountResourceConfigurationResult() +{} + +void GetMultiAccountResourceConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcecenter/src/model/GetResourceCenterServiceStatusRequest.cc b/resourcecenter/src/model/GetResourceCenterServiceStatusRequest.cc new file mode 100644 index 000000000..6d572aa5e --- /dev/null +++ b/resourcecenter/src/model/GetResourceCenterServiceStatusRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::GetResourceCenterServiceStatusRequest; + +GetResourceCenterServiceStatusRequest::GetResourceCenterServiceStatusRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "GetResourceCenterServiceStatus") { + setMethod(HttpRequest::Method::Post); +} + +GetResourceCenterServiceStatusRequest::~GetResourceCenterServiceStatusRequest() {} + diff --git a/resourcecenter/src/model/GetResourceCenterServiceStatusResult.cc b/resourcecenter/src/model/GetResourceCenterServiceStatusResult.cc new file mode 100644 index 000000000..b97961d02 --- /dev/null +++ b/resourcecenter/src/model/GetResourceCenterServiceStatusResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +GetResourceCenterServiceStatusResult::GetResourceCenterServiceStatusResult() : + ServiceResult() +{} + +GetResourceCenterServiceStatusResult::GetResourceCenterServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceCenterServiceStatusResult::~GetResourceCenterServiceStatusResult() +{} + +void GetResourceCenterServiceStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ServiceStatus"].isNull()) + serviceStatus_ = value["ServiceStatus"].asString(); + if(!value["InitialStatus"].isNull()) + initialStatus_ = value["InitialStatus"].asString(); + +} + +std::string GetResourceCenterServiceStatusResult::getServiceStatus()const +{ + return serviceStatus_; +} + +std::string GetResourceCenterServiceStatusResult::getInitialStatus()const +{ + return initialStatus_; +} + diff --git a/resourcecenter/src/model/GetResourceConfigurationRequest.cc b/resourcecenter/src/model/GetResourceConfigurationRequest.cc new file mode 100644 index 000000000..55e62ebbf --- /dev/null +++ b/resourcecenter/src/model/GetResourceConfigurationRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::GetResourceConfigurationRequest; + +GetResourceConfigurationRequest::GetResourceConfigurationRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "GetResourceConfiguration") { + setMethod(HttpRequest::Method::Post); +} + +GetResourceConfigurationRequest::~GetResourceConfigurationRequest() {} + +std::string GetResourceConfigurationRequest::getResourceId() const { + return resourceId_; +} + +void GetResourceConfigurationRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string GetResourceConfigurationRequest::getResourceType() const { + return resourceType_; +} + +void GetResourceConfigurationRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string GetResourceConfigurationRequest::getResourceRegionId() const { + return resourceRegionId_; +} + +void GetResourceConfigurationRequest::setResourceRegionId(const std::string &resourceRegionId) { + resourceRegionId_ = resourceRegionId; + setParameter(std::string("ResourceRegionId"), resourceRegionId); +} + diff --git a/resourcecenter/src/model/GetResourceConfigurationResult.cc b/resourcecenter/src/model/GetResourceConfigurationResult.cc new file mode 100644 index 000000000..689f79b24 --- /dev/null +++ b/resourcecenter/src/model/GetResourceConfigurationResult.cc @@ -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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +GetResourceConfigurationResult::GetResourceConfigurationResult() : + ServiceResult() +{} + +GetResourceConfigurationResult::GetResourceConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceConfigurationResult::~GetResourceConfigurationResult() +{} + +void GetResourceConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/resourcecenter/src/model/ListMultiAccountResourceGroupsRequest.cc b/resourcecenter/src/model/ListMultiAccountResourceGroupsRequest.cc new file mode 100644 index 000000000..3b56dc467 --- /dev/null +++ b/resourcecenter/src/model/ListMultiAccountResourceGroupsRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::ListMultiAccountResourceGroupsRequest; + +ListMultiAccountResourceGroupsRequest::ListMultiAccountResourceGroupsRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "ListMultiAccountResourceGroups") { + setMethod(HttpRequest::Method::Post); +} + +ListMultiAccountResourceGroupsRequest::~ListMultiAccountResourceGroupsRequest() {} + +std::string ListMultiAccountResourceGroupsRequest::getAccountId() const { + return accountId_; +} + +void ListMultiAccountResourceGroupsRequest::setAccountId(const std::string &accountId) { + accountId_ = accountId; + setParameter(std::string("AccountId"), accountId); +} + +std::vector ListMultiAccountResourceGroupsRequest::getResourceGroupIds() const { + return resourceGroupIds_; +} + +void ListMultiAccountResourceGroupsRequest::setResourceGroupIds(const std::vector &resourceGroupIds) { + resourceGroupIds_ = resourceGroupIds; +} + +std::string ListMultiAccountResourceGroupsRequest::getNextToken() const { + return nextToken_; +} + +void ListMultiAccountResourceGroupsRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +int ListMultiAccountResourceGroupsRequest::getMaxResults() const { + return maxResults_; +} + +void ListMultiAccountResourceGroupsRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/resourcecenter/src/model/ListMultiAccountResourceGroupsResult.cc b/resourcecenter/src/model/ListMultiAccountResourceGroupsResult.cc new file mode 100644 index 000000000..9f0d3a20d --- /dev/null +++ b/resourcecenter/src/model/ListMultiAccountResourceGroupsResult.cc @@ -0,0 +1,109 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +ListMultiAccountResourceGroupsResult::ListMultiAccountResourceGroupsResult() : + ServiceResult() +{} + +ListMultiAccountResourceGroupsResult::ListMultiAccountResourceGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMultiAccountResourceGroupsResult::~ListMultiAccountResourceGroupsResult() +{} + +void ListMultiAccountResourceGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourceGroupsNode = value["ResourceGroups"]["ResourceGroup"]; + 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["Id"].isNull()) + resourceGroupsObject.id = valueResourceGroupsResourceGroup["Id"].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()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string ListMultiAccountResourceGroupsResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListMultiAccountResourceGroupsResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::vector ListMultiAccountResourceGroupsResult::getResourceGroups()const +{ + return resourceGroups_; +} + +std::string ListMultiAccountResourceGroupsResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListMultiAccountResourceGroupsResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMultiAccountResourceGroupsResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListMultiAccountResourceGroupsResult::getSuccess()const +{ + return success_; +} + diff --git a/resourcecenter/src/model/ListMultiAccountTagKeysRequest.cc b/resourcecenter/src/model/ListMultiAccountTagKeysRequest.cc new file mode 100644 index 000000000..be1913e48 --- /dev/null +++ b/resourcecenter/src/model/ListMultiAccountTagKeysRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::ResourceCenter::Model::ListMultiAccountTagKeysRequest; + +ListMultiAccountTagKeysRequest::ListMultiAccountTagKeysRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "ListMultiAccountTagKeys") { + setMethod(HttpRequest::Method::Post); +} + +ListMultiAccountTagKeysRequest::~ListMultiAccountTagKeysRequest() {} + +std::string ListMultiAccountTagKeysRequest::getNextToken() const { + return nextToken_; +} + +void ListMultiAccountTagKeysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListMultiAccountTagKeysRequest::getScope() const { + return scope_; +} + +void ListMultiAccountTagKeysRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); +} + +std::string ListMultiAccountTagKeysRequest::getMatchType() const { + return matchType_; +} + +void ListMultiAccountTagKeysRequest::setMatchType(const std::string &matchType) { + matchType_ = matchType; + setParameter(std::string("MatchType"), matchType); +} + +int ListMultiAccountTagKeysRequest::getMaxResults() const { + return maxResults_; +} + +void ListMultiAccountTagKeysRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListMultiAccountTagKeysRequest::getTagKey() const { + return tagKey_; +} + +void ListMultiAccountTagKeysRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/resourcecenter/src/model/ListMultiAccountTagKeysResult.cc b/resourcecenter/src/model/ListMultiAccountTagKeysResult.cc new file mode 100644 index 000000000..95746b5bb --- /dev/null +++ b/resourcecenter/src/model/ListMultiAccountTagKeysResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +ListMultiAccountTagKeysResult::ListMultiAccountTagKeysResult() : + ServiceResult() +{} + +ListMultiAccountTagKeysResult::ListMultiAccountTagKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMultiAccountTagKeysResult::~ListMultiAccountTagKeysResult() +{} + +void ListMultiAccountTagKeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + 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()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string ListMultiAccountTagKeysResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListMultiAccountTagKeysResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListMultiAccountTagKeysResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListMultiAccountTagKeysResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMultiAccountTagKeysResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListMultiAccountTagKeysResult::getTagKeys()const +{ + return tagKeys_; +} + +bool ListMultiAccountTagKeysResult::getSuccess()const +{ + return success_; +} + diff --git a/resourcecenter/src/model/ListMultiAccountTagValuesRequest.cc b/resourcecenter/src/model/ListMultiAccountTagValuesRequest.cc new file mode 100644 index 000000000..276dfc9cf --- /dev/null +++ b/resourcecenter/src/model/ListMultiAccountTagValuesRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::ListMultiAccountTagValuesRequest; + +ListMultiAccountTagValuesRequest::ListMultiAccountTagValuesRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "ListMultiAccountTagValues") { + setMethod(HttpRequest::Method::Post); +} + +ListMultiAccountTagValuesRequest::~ListMultiAccountTagValuesRequest() {} + +std::string ListMultiAccountTagValuesRequest::getNextToken() const { + return nextToken_; +} + +void ListMultiAccountTagValuesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListMultiAccountTagValuesRequest::getScope() const { + return scope_; +} + +void ListMultiAccountTagValuesRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); +} + +std::string ListMultiAccountTagValuesRequest::getMatchType() const { + return matchType_; +} + +void ListMultiAccountTagValuesRequest::setMatchType(const std::string &matchType) { + matchType_ = matchType; + setParameter(std::string("MatchType"), matchType); +} + +std::string ListMultiAccountTagValuesRequest::getTagValue() const { + return tagValue_; +} + +void ListMultiAccountTagValuesRequest::setTagValue(const std::string &tagValue) { + tagValue_ = tagValue; + setParameter(std::string("TagValue"), tagValue); +} + +int ListMultiAccountTagValuesRequest::getMaxResults() const { + return maxResults_; +} + +void ListMultiAccountTagValuesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListMultiAccountTagValuesRequest::getTagKey() const { + return tagKey_; +} + +void ListMultiAccountTagValuesRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/resourcecenter/src/model/ListMultiAccountTagValuesResult.cc b/resourcecenter/src/model/ListMultiAccountTagValuesResult.cc new file mode 100644 index 000000000..93c6e9a73 --- /dev/null +++ b/resourcecenter/src/model/ListMultiAccountTagValuesResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +ListMultiAccountTagValuesResult::ListMultiAccountTagValuesResult() : + ServiceResult() +{} + +ListMultiAccountTagValuesResult::ListMultiAccountTagValuesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListMultiAccountTagValuesResult::~ListMultiAccountTagValuesResult() +{} + +void ListMultiAccountTagValuesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + 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()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string ListMultiAccountTagValuesResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListMultiAccountTagValuesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListMultiAccountTagValuesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListMultiAccountTagValuesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListMultiAccountTagValuesResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListMultiAccountTagValuesResult::getTagValues()const +{ + return tagValues_; +} + +bool ListMultiAccountTagValuesResult::getSuccess()const +{ + return success_; +} + diff --git a/resourcecenter/src/model/ListResourceTypesRequest.cc b/resourcecenter/src/model/ListResourceTypesRequest.cc new file mode 100644 index 000000000..d0061c8ab --- /dev/null +++ b/resourcecenter/src/model/ListResourceTypesRequest.cc @@ -0,0 +1,53 @@ +/* + * 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 + +using AlibabaCloud::ResourceCenter::Model::ListResourceTypesRequest; + +ListResourceTypesRequest::ListResourceTypesRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "ListResourceTypes") { + setMethod(HttpRequest::Method::Post); +} + +ListResourceTypesRequest::~ListResourceTypesRequest() {} + +std::vector ListResourceTypesRequest::getQuery() const { + return query_; +} + +void ListResourceTypesRequest::setQuery(const std::vector &query) { + query_ = query; +} + +std::string ListResourceTypesRequest::getResourceType() const { + return resourceType_; +} + +void ListResourceTypesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListResourceTypesRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void ListResourceTypesRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/resourcecenter/src/model/ListResourceTypesResult.cc b/resourcecenter/src/model/ListResourceTypesResult.cc new file mode 100644 index 000000000..db3c22470 --- /dev/null +++ b/resourcecenter/src/model/ListResourceTypesResult.cc @@ -0,0 +1,109 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +ListResourceTypesResult::ListResourceTypesResult() : + ServiceResult() +{} + +ListResourceTypesResult::ListResourceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourceTypesResult::~ListResourceTypesResult() +{} + +void ListResourceTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourceTypesNode = value["ResourceTypes"]["ResourceType"]; + for (auto valueResourceTypesResourceType : allResourceTypesNode) + { + ResourceType resourceTypesObject; + if(!valueResourceTypesResourceType["ResourceType"].isNull()) + resourceTypesObject.resourceType = valueResourceTypesResourceType["ResourceType"].asString(); + if(!valueResourceTypesResourceType["ProductName"].isNull()) + resourceTypesObject.productName = valueResourceTypesResourceType["ProductName"].asString(); + if(!valueResourceTypesResourceType["ResourceTypeName"].isNull()) + resourceTypesObject.resourceTypeName = valueResourceTypesResourceType["ResourceTypeName"].asString(); + auto codeMappingNode = value["CodeMapping"]; + if(!codeMappingNode["ResourceGroup"].isNull()) + resourceTypesObject.codeMapping.resourceGroup = codeMappingNode["ResourceGroup"].asString(); + if(!codeMappingNode["Tag"].isNull()) + resourceTypesObject.codeMapping.tag = codeMappingNode["Tag"].asString(); + auto urlsNode = value["Urls"]; + if(!urlsNode["ProductConsoleUrl"].isNull()) + resourceTypesObject.urls.productConsoleUrl = urlsNode["ProductConsoleUrl"].asString(); + if(!urlsNode["ResourceConsoleUrl"].isNull()) + resourceTypesObject.urls.resourceConsoleUrl = urlsNode["ResourceConsoleUrl"].asString(); + auto allFilterKeys = value["FilterKeys"]["FilterKey"]; + for (auto value : allFilterKeys) + 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(); + +} + +std::vector ListResourceTypesResult::getResourceTypes()const +{ + return resourceTypes_; +} + +std::string ListResourceTypesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListResourceTypesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListResourceTypesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListResourceTypesResult::getErrorMessage()const +{ + return errorMessage_; +} + +bool ListResourceTypesResult::getSuccess()const +{ + return success_; +} + diff --git a/resourcecenter/src/model/ListTagKeysRequest.cc b/resourcecenter/src/model/ListTagKeysRequest.cc new file mode 100644 index 000000000..0db8114ff --- /dev/null +++ b/resourcecenter/src/model/ListTagKeysRequest.cc @@ -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 + +using AlibabaCloud::ResourceCenter::Model::ListTagKeysRequest; + +ListTagKeysRequest::ListTagKeysRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "ListTagKeys") { + setMethod(HttpRequest::Method::Post); +} + +ListTagKeysRequest::~ListTagKeysRequest() {} + +std::string ListTagKeysRequest::getNextToken() const { + return nextToken_; +} + +void ListTagKeysRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagKeysRequest::getMatchType() const { + return matchType_; +} + +void ListTagKeysRequest::setMatchType(const std::string &matchType) { + matchType_ = matchType; + setParameter(std::string("MatchType"), matchType); +} + +int ListTagKeysRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagKeysRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTagKeysRequest::getTagKey() const { + return tagKey_; +} + +void ListTagKeysRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/resourcecenter/src/model/ListTagKeysResult.cc b/resourcecenter/src/model/ListTagKeysResult.cc new file mode 100644 index 000000000..b7fa2d5eb --- /dev/null +++ b/resourcecenter/src/model/ListTagKeysResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +ListTagKeysResult::ListTagKeysResult() : + ServiceResult() +{} + +ListTagKeysResult::ListTagKeysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagKeysResult::~ListTagKeysResult() +{} + +void ListTagKeysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + 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()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string ListTagKeysResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListTagKeysResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListTagKeysResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListTagKeysResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListTagKeysResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListTagKeysResult::getTagKeys()const +{ + return tagKeys_; +} + +bool ListTagKeysResult::getSuccess()const +{ + return success_; +} + diff --git a/resourcecenter/src/model/ListTagValuesRequest.cc b/resourcecenter/src/model/ListTagValuesRequest.cc new file mode 100644 index 000000000..834ca8347 --- /dev/null +++ b/resourcecenter/src/model/ListTagValuesRequest.cc @@ -0,0 +1,72 @@ +/* + * 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 + +using AlibabaCloud::ResourceCenter::Model::ListTagValuesRequest; + +ListTagValuesRequest::ListTagValuesRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "ListTagValues") { + setMethod(HttpRequest::Method::Post); +} + +ListTagValuesRequest::~ListTagValuesRequest() {} + +std::string ListTagValuesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagValuesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTagValuesRequest::getMatchType() const { + return matchType_; +} + +void ListTagValuesRequest::setMatchType(const std::string &matchType) { + matchType_ = matchType; + setParameter(std::string("MatchType"), matchType); +} + +std::string ListTagValuesRequest::getTagValue() const { + return tagValue_; +} + +void ListTagValuesRequest::setTagValue(const std::string &tagValue) { + tagValue_ = tagValue; + setParameter(std::string("TagValue"), tagValue); +} + +int ListTagValuesRequest::getMaxResults() const { + return maxResults_; +} + +void ListTagValuesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + +std::string ListTagValuesRequest::getTagKey() const { + return tagKey_; +} + +void ListTagValuesRequest::setTagKey(const std::string &tagKey) { + tagKey_ = tagKey; + setParameter(std::string("TagKey"), tagKey); +} + diff --git a/resourcecenter/src/model/ListTagValuesResult.cc b/resourcecenter/src/model/ListTagValuesResult.cc new file mode 100644 index 000000000..9f4afb09d --- /dev/null +++ b/resourcecenter/src/model/ListTagValuesResult.cc @@ -0,0 +1,94 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +ListTagValuesResult::ListTagValuesResult() : + ServiceResult() +{} + +ListTagValuesResult::ListTagValuesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagValuesResult::~ListTagValuesResult() +{} + +void ListTagValuesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + 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()) + dynamicMessage_ = value["DynamicMessage"].asString(); + if(!value["ErrorCode"].isNull()) + errorCode_ = value["ErrorCode"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + +} + +std::string ListTagValuesResult::getNextToken()const +{ + return nextToken_; +} + +std::string ListTagValuesResult::getDynamicCode()const +{ + return dynamicCode_; +} + +std::string ListTagValuesResult::getDynamicMessage()const +{ + return dynamicMessage_; +} + +std::string ListTagValuesResult::getErrorCode()const +{ + return errorCode_; +} + +std::string ListTagValuesResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::vector ListTagValuesResult::getTagValues()const +{ + return tagValues_; +} + +bool ListTagValuesResult::getSuccess()const +{ + return success_; +} + diff --git a/resourcecenter/src/model/SearchMultiAccountResourcesRequest.cc b/resourcecenter/src/model/SearchMultiAccountResourcesRequest.cc new file mode 100644 index 000000000..538f6020d --- /dev/null +++ b/resourcecenter/src/model/SearchMultiAccountResourcesRequest.cc @@ -0,0 +1,78 @@ +/* + * 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 + +using AlibabaCloud::ResourceCenter::Model::SearchMultiAccountResourcesRequest; + +SearchMultiAccountResourcesRequest::SearchMultiAccountResourcesRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "SearchMultiAccountResources") { + setMethod(HttpRequest::Method::Post); +} + +SearchMultiAccountResourcesRequest::~SearchMultiAccountResourcesRequest() {} + +std::string SearchMultiAccountResourcesRequest::getNextToken() const { + return nextToken_; +} + +void SearchMultiAccountResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string SearchMultiAccountResourcesRequest::getScope() const { + return scope_; +} + +void SearchMultiAccountResourcesRequest::setScope(const std::string &scope) { + scope_ = scope; + setParameter(std::string("Scope"), scope); +} + +SearchMultiAccountResourcesRequest::SortCriterion SearchMultiAccountResourcesRequest::getSortCriterion() const { + return sortCriterion_; +} + +void SearchMultiAccountResourcesRequest::setSortCriterion(const SearchMultiAccountResourcesRequest::SortCriterion &sortCriterion) { + sortCriterion_ = sortCriterion; + setParameter(std::string("SortCriterion") + ".Key", sortCriterion.key); + setParameter(std::string("SortCriterion") + ".Order", sortCriterion.order); +} + +std::vector SearchMultiAccountResourcesRequest::getFilter() const { + return filter_; +} + +void SearchMultiAccountResourcesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".MatchType", filterObj.matchType); + setParameter(filterObjStr + ".Key", filterObj.key); + } +} + +int SearchMultiAccountResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void SearchMultiAccountResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/resourcecenter/src/model/SearchMultiAccountResourcesResult.cc b/resourcecenter/src/model/SearchMultiAccountResourcesResult.cc new file mode 100644 index 000000000..b665ae8cc --- /dev/null +++ b/resourcecenter/src/model/SearchMultiAccountResourcesResult.cc @@ -0,0 +1,123 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +SearchMultiAccountResourcesResult::SearchMultiAccountResourcesResult() : + ServiceResult() +{} + +SearchMultiAccountResourcesResult::SearchMultiAccountResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchMultiAccountResourcesResult::~SearchMultiAccountResourcesResult() +{} + +void SearchMultiAccountResourcesResult::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["Key"].isNull()) + filtersObject.key = valueFiltersFilter["Key"].asString(); + if(!valueFiltersFilter["MatchType"].isNull()) + filtersObject.matchType = valueFiltersFilter["MatchType"].asString(); + auto allValues = value["Values"]["Value"]; + for (auto value : allValues) + filtersObject.values.push_back(value.asString()); + filters_.push_back(filtersObject); + } + auto allResourcesNode = value["Resources"]["Resource"]; + 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["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(); + auto allTagsNode = valueResourcesResource["Tags"]["Tag"]; + for (auto valueResourcesResourceTagsTag : allTagsNode) + { + Resource::Tag tagsObject; + if(!valueResourcesResourceTagsTag["Key"].isNull()) + tagsObject.key = valueResourcesResourceTagsTag["Key"].asString(); + if(!valueResourcesResourceTagsTag["Value"].isNull()) + tagsObject.value = valueResourcesResourceTagsTag["Value"].asString(); + resourcesObject.tags.push_back(tagsObject); + } + auto allIpAddresses = value["IpAddresses"]["IpAddress"]; + for (auto value : allIpAddresses) + resourcesObject.ipAddresses.push_back(value.asString()); + resources_.push_back(resourcesObject); + } + 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()); + +} + +std::vector SearchMultiAccountResourcesResult::getFilters()const +{ + return filters_; +} + +std::string SearchMultiAccountResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::string SearchMultiAccountResourcesResult::getScope()const +{ + return scope_; +} + +int SearchMultiAccountResourcesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector SearchMultiAccountResourcesResult::getResources()const +{ + return resources_; +} + diff --git a/resourcecenter/src/model/SearchResourcesRequest.cc b/resourcecenter/src/model/SearchResourcesRequest.cc new file mode 100644 index 000000000..5108ba828 --- /dev/null +++ b/resourcecenter/src/model/SearchResourcesRequest.cc @@ -0,0 +1,78 @@ +/* + * 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 + +using AlibabaCloud::ResourceCenter::Model::SearchResourcesRequest; + +SearchResourcesRequest::SearchResourcesRequest() + : RpcServiceRequest("resourcecenter", "2022-12-01", "SearchResources") { + setMethod(HttpRequest::Method::Post); +} + +SearchResourcesRequest::~SearchResourcesRequest() {} + +std::string SearchResourcesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void SearchResourcesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string SearchResourcesRequest::getNextToken() const { + return nextToken_; +} + +void SearchResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +SearchResourcesRequest::SortCriterion SearchResourcesRequest::getSortCriterion() const { + return sortCriterion_; +} + +void SearchResourcesRequest::setSortCriterion(const SearchResourcesRequest::SortCriterion &sortCriterion) { + sortCriterion_ = sortCriterion; + setParameter(std::string("SortCriterion") + ".Key", sortCriterion.key); + setParameter(std::string("SortCriterion") + ".Order", sortCriterion.order); +} + +std::vector SearchResourcesRequest::getFilter() const { + return filter_; +} + +void SearchResourcesRequest::setFilter(const std::vector &filter) { + filter_ = filter; + for(int dep1 = 0; dep1 != filter.size(); dep1++) { + auto filterObj = filter.at(dep1); + std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1); + setParameter(filterObjStr + ".MatchType", filterObj.matchType); + setParameter(filterObjStr + ".Key", filterObj.key); + } +} + +int SearchResourcesRequest::getMaxResults() const { + return maxResults_; +} + +void SearchResourcesRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/resourcecenter/src/model/SearchResourcesResult.cc b/resourcecenter/src/model/SearchResourcesResult.cc new file mode 100644 index 000000000..401dd8d50 --- /dev/null +++ b/resourcecenter/src/model/SearchResourcesResult.cc @@ -0,0 +1,116 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::ResourceCenter; +using namespace AlibabaCloud::ResourceCenter::Model; + +SearchResourcesResult::SearchResourcesResult() : + ServiceResult() +{} + +SearchResourcesResult::SearchResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchResourcesResult::~SearchResourcesResult() +{} + +void SearchResourcesResult::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["Key"].isNull()) + filtersObject.key = valueFiltersFilter["Key"].asString(); + if(!valueFiltersFilter["MatchType"].isNull()) + filtersObject.matchType = valueFiltersFilter["MatchType"].asString(); + auto allValues = value["Values"]["Value"]; + for (auto value : allValues) + filtersObject.values.push_back(value.asString()); + filters_.push_back(filtersObject); + } + auto allResourcesNode = value["Resources"]["Resource"]; + 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["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(); + auto allTagsNode = valueResourcesResource["Tags"]["Tag"]; + for (auto valueResourcesResourceTagsTag : allTagsNode) + { + Resource::Tag tagsObject; + if(!valueResourcesResourceTagsTag["Key"].isNull()) + tagsObject.key = valueResourcesResourceTagsTag["Key"].asString(); + if(!valueResourcesResourceTagsTag["Value"].isNull()) + tagsObject.value = valueResourcesResourceTagsTag["Value"].asString(); + resourcesObject.tags.push_back(tagsObject); + } + auto allIpAddresses = value["IpAddresses"]["IpAddress"]; + for (auto value : allIpAddresses) + resourcesObject.ipAddresses.push_back(value.asString()); + resources_.push_back(resourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +std::vector SearchResourcesResult::getFilters()const +{ + return filters_; +} + +std::string SearchResourcesResult::getNextToken()const +{ + return nextToken_; +} + +int SearchResourcesResult::getMaxResults()const +{ + return maxResults_; +} + +std::vector SearchResourcesResult::getResources()const +{ + return resources_; +} +