From 54883f36c214085a15d2f7c00e683df7d696eca0 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 13 Mar 2020 10:22:17 +0800 Subject: [PATCH] ACM POP SDK. --- CHANGELOG | 3 + VERSION | 2 +- acms-open/CMakeLists.txt | 114 ++++++ .../alibabacloud/acms-open/Acms_openClient.h | 110 ++++++ .../alibabacloud/acms-open/Acms_openExport.h | 32 ++ .../model/CreateConfigurationRequest.h | 69 ++++ .../model/CreateConfigurationResult.h | 53 +++ .../acms-open/model/CreateNamespaceRequest.h | 48 +++ .../acms-open/model/CreateNamespaceResult.h | 55 +++ .../model/DeleteConfigurationRequest.h | 54 +++ .../model/DeleteConfigurationResult.h | 53 +++ .../acms-open/model/DeleteNamespaceRequest.h | 48 +++ .../acms-open/model/DeleteNamespaceResult.h | 53 +++ .../model/DeployConfigurationRequest.h | 69 ++++ .../model/DeployConfigurationResult.h | 53 +++ .../model/DescribeConfigurationRequest.h | 54 +++ .../model/DescribeConfigurationResult.h | 65 ++++ .../model/DescribeNamespaceRequest.h | 48 +++ .../acms-open/model/DescribeNamespaceResult.h | 63 ++++ .../acms-open/model/UpdateNamespaceRequest.h | 51 +++ .../acms-open/model/UpdateNamespaceResult.h | 53 +++ acms-open/src/Acms-openClient.cc | 341 ++++++++++++++++++ .../src/model/CreateConfigurationRequest.cc | 118 ++++++ .../src/model/CreateConfigurationResult.cc | 58 +++ acms-open/src/model/CreateNamespaceRequest.cc | 41 +++ acms-open/src/model/CreateNamespaceResult.cc | 65 ++++ .../src/model/DeleteConfigurationRequest.cc | 63 ++++ .../src/model/DeleteConfigurationResult.cc | 58 +++ acms-open/src/model/DeleteNamespaceRequest.cc | 41 +++ acms-open/src/model/DeleteNamespaceResult.cc | 58 +++ .../src/model/DeployConfigurationRequest.cc | 118 ++++++ .../src/model/DeployConfigurationResult.cc | 58 +++ .../src/model/DescribeConfigurationRequest.cc | 63 ++++ .../src/model/DescribeConfigurationResult.cc | 78 ++++ .../src/model/DescribeNamespaceRequest.cc | 41 +++ .../src/model/DescribeNamespaceResult.cc | 74 ++++ acms-open/src/model/UpdateNamespaceRequest.cc | 52 +++ acms-open/src/model/UpdateNamespaceResult.cc | 58 +++ 38 files changed, 2534 insertions(+), 1 deletion(-) create mode 100644 acms-open/CMakeLists.txt create mode 100644 acms-open/include/alibabacloud/acms-open/Acms_openClient.h create mode 100644 acms-open/include/alibabacloud/acms-open/Acms_openExport.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/CreateConfigurationRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/CreateConfigurationResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/CreateNamespaceRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/CreateNamespaceResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DeployConfigurationRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DeployConfigurationResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceResult.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h create mode 100644 acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceResult.h create mode 100644 acms-open/src/Acms-openClient.cc create mode 100644 acms-open/src/model/CreateConfigurationRequest.cc create mode 100644 acms-open/src/model/CreateConfigurationResult.cc create mode 100644 acms-open/src/model/CreateNamespaceRequest.cc create mode 100644 acms-open/src/model/CreateNamespaceResult.cc create mode 100644 acms-open/src/model/DeleteConfigurationRequest.cc create mode 100644 acms-open/src/model/DeleteConfigurationResult.cc create mode 100644 acms-open/src/model/DeleteNamespaceRequest.cc create mode 100644 acms-open/src/model/DeleteNamespaceResult.cc create mode 100644 acms-open/src/model/DeployConfigurationRequest.cc create mode 100644 acms-open/src/model/DeployConfigurationResult.cc create mode 100644 acms-open/src/model/DescribeConfigurationRequest.cc create mode 100644 acms-open/src/model/DescribeConfigurationResult.cc create mode 100644 acms-open/src/model/DescribeNamespaceRequest.cc create mode 100644 acms-open/src/model/DescribeNamespaceResult.cc create mode 100644 acms-open/src/model/UpdateNamespaceRequest.cc create mode 100644 acms-open/src/model/UpdateNamespaceResult.cc diff --git a/CHANGELOG b/CHANGELOG index 26d592747..89ea32629 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2020-03-13 Version: 1.36.318 +- ACM POP SDK. + 2020-03-12 Version: 1.36.317 - Add new Api SegmentBody. diff --git a/VERSION b/VERSION index b355ae85d..2f328cfd3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.317 \ No newline at end of file +1.36.318 \ No newline at end of file diff --git a/acms-open/CMakeLists.txt b/acms-open/CMakeLists.txt new file mode 100644 index 000000000..0843b7bd1 --- /dev/null +++ b/acms-open/CMakeLists.txt @@ -0,0 +1,114 @@ +# +# 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(acms-open_public_header + include/alibabacloud/acms-open/Acms_openClient.h + include/alibabacloud/acms-open/Acms_openExport.h ) + +set(acms-open_public_header_model + include/alibabacloud/acms-open/model/CreateConfigurationRequest.h + include/alibabacloud/acms-open/model/CreateConfigurationResult.h + include/alibabacloud/acms-open/model/CreateNamespaceRequest.h + include/alibabacloud/acms-open/model/CreateNamespaceResult.h + include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h + include/alibabacloud/acms-open/model/DeleteConfigurationResult.h + include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h + include/alibabacloud/acms-open/model/DeleteNamespaceResult.h + include/alibabacloud/acms-open/model/DeployConfigurationRequest.h + include/alibabacloud/acms-open/model/DeployConfigurationResult.h + include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h + include/alibabacloud/acms-open/model/DescribeConfigurationResult.h + include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h + include/alibabacloud/acms-open/model/DescribeNamespaceResult.h + include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h + include/alibabacloud/acms-open/model/UpdateNamespaceResult.h ) + +set(acms-open_src + src/Acms-openClient.cc + src/model/CreateConfigurationRequest.cc + src/model/CreateConfigurationResult.cc + src/model/CreateNamespaceRequest.cc + src/model/CreateNamespaceResult.cc + src/model/DeleteConfigurationRequest.cc + src/model/DeleteConfigurationResult.cc + src/model/DeleteNamespaceRequest.cc + src/model/DeleteNamespaceResult.cc + src/model/DeployConfigurationRequest.cc + src/model/DeployConfigurationResult.cc + src/model/DescribeConfigurationRequest.cc + src/model/DescribeConfigurationResult.cc + src/model/DescribeNamespaceRequest.cc + src/model/DescribeNamespaceResult.cc + src/model/UpdateNamespaceRequest.cc + src/model/UpdateNamespaceResult.cc ) + +add_library(acms-open ${LIB_TYPE} + ${acms-open_public_header} + ${acms-open_public_header_model} + ${acms-open_src}) + +set_target_properties(acms-open + 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}acms-open + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(acms-open + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_ACMS_OPEN_LIBRARY) +endif() + +target_include_directories(acms-open + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(acms-open + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(acms-open + jsoncpp) + target_include_directories(acms-open + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(acms-open + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(acms-open + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(acms-open + PRIVATE /usr/include/jsoncpp) + target_link_libraries(acms-open + jsoncpp) +endif() + +install(FILES ${acms-open_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open) +install(FILES ${acms-open_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/acms-open/model) +install(TARGETS acms-open + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/Acms_openClient.h b/acms-open/include/alibabacloud/acms-open/Acms_openClient.h new file mode 100644 index 000000000..0a2093fb4 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/Acms_openClient.h @@ -0,0 +1,110 @@ +/* + * 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_ACMS_OPEN_ACMS_OPENCLIENT_H_ +#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_ + +#include +#include +#include +#include +#include "Acms_openExport.h" +#include "model/CreateConfigurationRequest.h" +#include "model/CreateConfigurationResult.h" +#include "model/CreateNamespaceRequest.h" +#include "model/CreateNamespaceResult.h" +#include "model/DeleteConfigurationRequest.h" +#include "model/DeleteConfigurationResult.h" +#include "model/DeleteNamespaceRequest.h" +#include "model/DeleteNamespaceResult.h" +#include "model/DeployConfigurationRequest.h" +#include "model/DeployConfigurationResult.h" +#include "model/DescribeConfigurationRequest.h" +#include "model/DescribeConfigurationResult.h" +#include "model/DescribeNamespaceRequest.h" +#include "model/DescribeNamespaceResult.h" +#include "model/UpdateNamespaceRequest.h" +#include "model/UpdateNamespaceResult.h" + + +namespace AlibabaCloud +{ + namespace Acms_open + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT Acms_openClient : public RoaServiceClient + { + public: + typedef Outcome CreateConfigurationOutcome; + typedef std::future CreateConfigurationOutcomeCallable; + typedef std::function&)> CreateConfigurationAsyncHandler; + typedef Outcome CreateNamespaceOutcome; + typedef std::future CreateNamespaceOutcomeCallable; + typedef std::function&)> CreateNamespaceAsyncHandler; + typedef Outcome DeleteConfigurationOutcome; + typedef std::future DeleteConfigurationOutcomeCallable; + typedef std::function&)> DeleteConfigurationAsyncHandler; + typedef Outcome DeleteNamespaceOutcome; + typedef std::future DeleteNamespaceOutcomeCallable; + typedef std::function&)> DeleteNamespaceAsyncHandler; + typedef Outcome DeployConfigurationOutcome; + typedef std::future DeployConfigurationOutcomeCallable; + typedef std::function&)> DeployConfigurationAsyncHandler; + typedef Outcome DescribeConfigurationOutcome; + typedef std::future DescribeConfigurationOutcomeCallable; + typedef std::function&)> DescribeConfigurationAsyncHandler; + typedef Outcome DescribeNamespaceOutcome; + typedef std::future DescribeNamespaceOutcomeCallable; + typedef std::function&)> DescribeNamespaceAsyncHandler; + typedef Outcome UpdateNamespaceOutcome; + typedef std::future UpdateNamespaceOutcomeCallable; + typedef std::function&)> UpdateNamespaceAsyncHandler; + + Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration); + Acms_openClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + Acms_openClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~Acms_openClient(); + CreateConfigurationOutcome createConfiguration(const Model::CreateConfigurationRequest &request)const; + void createConfigurationAsync(const Model::CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateConfigurationOutcomeCallable createConfigurationCallable(const Model::CreateConfigurationRequest& request) const; + CreateNamespaceOutcome createNamespace(const Model::CreateNamespaceRequest &request)const; + void createNamespaceAsync(const Model::CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateNamespaceOutcomeCallable createNamespaceCallable(const Model::CreateNamespaceRequest& request) const; + DeleteConfigurationOutcome deleteConfiguration(const Model::DeleteConfigurationRequest &request)const; + void deleteConfigurationAsync(const Model::DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteConfigurationOutcomeCallable deleteConfigurationCallable(const Model::DeleteConfigurationRequest& request) const; + DeleteNamespaceOutcome deleteNamespace(const Model::DeleteNamespaceRequest &request)const; + void deleteNamespaceAsync(const Model::DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteNamespaceOutcomeCallable deleteNamespaceCallable(const Model::DeleteNamespaceRequest& request) const; + DeployConfigurationOutcome deployConfiguration(const Model::DeployConfigurationRequest &request)const; + void deployConfigurationAsync(const Model::DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeployConfigurationOutcomeCallable deployConfigurationCallable(const Model::DeployConfigurationRequest& request) const; + DescribeConfigurationOutcome describeConfiguration(const Model::DescribeConfigurationRequest &request)const; + void describeConfigurationAsync(const Model::DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeConfigurationOutcomeCallable describeConfigurationCallable(const Model::DescribeConfigurationRequest& request) const; + DescribeNamespaceOutcome describeNamespace(const Model::DescribeNamespaceRequest &request)const; + void describeNamespaceAsync(const Model::DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNamespaceOutcomeCallable describeNamespaceCallable(const Model::DescribeNamespaceRequest& request) const; + UpdateNamespaceOutcome updateNamespace(const Model::UpdateNamespaceRequest &request)const; + void updateNamespaceAsync(const Model::UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateNamespaceOutcomeCallable updateNamespaceCallable(const Model::UpdateNamespaceRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENCLIENT_H_ diff --git a/acms-open/include/alibabacloud/acms-open/Acms_openExport.h b/acms-open/include/alibabacloud/acms-open/Acms_openExport.h new file mode 100644 index 000000000..3458ab446 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/Acms_openExport.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_ACMS_OPEN_ACMS_OPENEXPORT_H_ +#define ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ACMS_OPEN_LIBRARY) +# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ACMS_OPEN_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ACMS_OPEN_EXPORT +#endif + +#endif // !ALIBABACLOUD_ACMS_OPEN_ACMS_OPENEXPORT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/CreateConfigurationRequest.h b/acms-open/include/alibabacloud/acms-open/model/CreateConfigurationRequest.h new file mode 100644 index 000000000..ca3e5458f --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/CreateConfigurationRequest.h @@ -0,0 +1,69 @@ +/* + * 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_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationRequest : public RoaServiceRequest + { + + public: + CreateConfigurationRequest(); + ~CreateConfigurationRequest(); + + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getGroup()const; + void setGroup(const std::string& group); + std::string getDesc()const; + void setDesc(const std::string& desc); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string dataId_; + std::string appName_; + std::string namespaceId_; + std::string type_; + std::string content_; + std::string group_; + std::string desc_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/CreateConfigurationResult.h b/acms-open/include/alibabacloud/acms-open/model/CreateConfigurationResult.h new file mode 100644 index 000000000..33e9fbbbd --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/CreateConfigurationResult.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_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateConfigurationResult : public ServiceResult + { + public: + + + CreateConfigurationResult(); + explicit CreateConfigurationResult(const std::string &payload); + ~CreateConfigurationResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/CreateNamespaceRequest.h b/acms-open/include/alibabacloud/acms-open/model/CreateNamespaceRequest.h new file mode 100644 index 000000000..eafc4743c --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/CreateNamespaceRequest.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_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceRequest : public RoaServiceRequest + { + + public: + CreateNamespaceRequest(); + ~CreateNamespaceRequest(); + + std::string getName()const; + void setName(const std::string& name); + + private: + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/CreateNamespaceResult.h b/acms-open/include/alibabacloud/acms-open/model/CreateNamespaceResult.h new file mode 100644 index 000000000..1fe354801 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/CreateNamespaceResult.h @@ -0,0 +1,55 @@ +/* + * 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_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT CreateNamespaceResult : public ServiceResult + { + public: + + + CreateNamespaceResult(); + explicit CreateNamespaceResult(const std::string &payload); + ~CreateNamespaceResult(); + std::string getMessage()const; + std::string getNamespaceId()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string namespaceId_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_CREATENAMESPACERESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h b/acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationRequest.h new file mode 100644 index 000000000..80804b35a --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationRequest.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_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationRequest : public RoaServiceRequest + { + + public: + DeleteConfigurationRequest(); + ~DeleteConfigurationRequest(); + + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getGroup()const; + void setGroup(const std::string& group); + + private: + std::string dataId_; + std::string namespaceId_; + std::string group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationResult.h b/acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationResult.h new file mode 100644 index 000000000..a9c134f68 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DeleteConfigurationResult.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_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteConfigurationResult : public ServiceResult + { + public: + + + DeleteConfigurationResult(); + explicit DeleteConfigurationResult(const std::string &payload); + ~DeleteConfigurationResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h b/acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceRequest.h new file mode 100644 index 000000000..e8d794e26 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceRequest.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_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceRequest : public RoaServiceRequest + { + + public: + DeleteNamespaceRequest(); + ~DeleteNamespaceRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceResult.h b/acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceResult.h new file mode 100644 index 000000000..aecc3f2af --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DeleteNamespaceResult.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_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DeleteNamespaceResult : public ServiceResult + { + public: + + + DeleteNamespaceResult(); + explicit DeleteNamespaceResult(const std::string &payload); + ~DeleteNamespaceResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DELETENAMESPACERESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DeployConfigurationRequest.h b/acms-open/include/alibabacloud/acms-open/model/DeployConfigurationRequest.h new file mode 100644 index 000000000..8b7a80908 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DeployConfigurationRequest.h @@ -0,0 +1,69 @@ +/* + * 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_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationRequest : public RoaServiceRequest + { + + public: + DeployConfigurationRequest(); + ~DeployConfigurationRequest(); + + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getAppName()const; + void setAppName(const std::string& appName); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getType()const; + void setType(const std::string& type); + std::string getContent()const; + void setContent(const std::string& content); + std::string getGroup()const; + void setGroup(const std::string& group); + std::string getDesc()const; + void setDesc(const std::string& desc); + std::string getTags()const; + void setTags(const std::string& tags); + + private: + std::string dataId_; + std::string appName_; + std::string namespaceId_; + std::string type_; + std::string content_; + std::string group_; + std::string desc_; + std::string tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DeployConfigurationResult.h b/acms-open/include/alibabacloud/acms-open/model/DeployConfigurationResult.h new file mode 100644 index 000000000..1c343f25b --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DeployConfigurationResult.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_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DeployConfigurationResult : public ServiceResult + { + public: + + + DeployConfigurationResult(); + explicit DeployConfigurationResult(const std::string &payload); + ~DeployConfigurationResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DEPLOYCONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h b/acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationRequest.h new file mode 100644 index 000000000..065d3c373 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationRequest.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_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationRequest : public RoaServiceRequest + { + + public: + DescribeConfigurationRequest(); + ~DescribeConfigurationRequest(); + + std::string getDataId()const; + void setDataId(const std::string& dataId); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + std::string getGroup()const; + void setGroup(const std::string& group); + + private: + std::string dataId_; + std::string namespaceId_; + std::string group_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationResult.h b/acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationResult.h new file mode 100644 index 000000000..ff3a6f94d --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DescribeConfigurationResult.h @@ -0,0 +1,65 @@ +/* + * 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_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeConfigurationResult : public ServiceResult + { + public: + struct Configuration + { + std::string group; + std::string desc; + std::string dataId; + std::string content; + std::string tags; + std::string md5; + std::string appName; + }; + + + DescribeConfigurationResult(); + explicit DescribeConfigurationResult(const std::string &payload); + ~DescribeConfigurationResult(); + Configuration getConfiguration()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + Configuration configuration_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBECONFIGURATIONRESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h b/acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceRequest.h new file mode 100644 index 000000000..fb864263f --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceRequest.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_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceRequest : public RoaServiceRequest + { + + public: + DescribeNamespaceRequest(); + ~DescribeNamespaceRequest(); + + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceResult.h b/acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceResult.h new file mode 100644 index 000000000..ad4ff754c --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/DescribeNamespaceResult.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_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT DescribeNamespaceResult : public ServiceResult + { + public: + struct _Namespace + { + std::string secretKey; + std::string endpoint; + std::string regionId; + std::string accessKey; + std::string name; + }; + + + DescribeNamespaceResult(); + explicit DescribeNamespaceResult(const std::string &payload); + ~DescribeNamespaceResult(); + std::string getMessage()const; + _Namespace get_Namespace()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + _Namespace _namespace_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_DESCRIBENAMESPACERESULT_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h b/acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceRequest.h new file mode 100644 index 000000000..92db61476 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceRequest.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_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceRequest : public RoaServiceRequest + { + + public: + UpdateNamespaceRequest(); + ~UpdateNamespaceRequest(); + + std::string getNamespaceName()const; + void setNamespaceName(const std::string& namespaceName); + std::string getNamespaceId()const; + void setNamespaceId(const std::string& namespaceId); + + private: + std::string namespaceName_; + std::string namespaceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACEREQUEST_H_ \ No newline at end of file diff --git a/acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceResult.h b/acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceResult.h new file mode 100644 index 000000000..69c78ce40 --- /dev/null +++ b/acms-open/include/alibabacloud/acms-open/model/UpdateNamespaceResult.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_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_ +#define ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Acms_open + { + namespace Model + { + class ALIBABACLOUD_ACMS_OPEN_EXPORT UpdateNamespaceResult : public ServiceResult + { + public: + + + UpdateNamespaceResult(); + explicit UpdateNamespaceResult(const std::string &payload); + ~UpdateNamespaceResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ACMS_OPEN_MODEL_UPDATENAMESPACERESULT_H_ \ No newline at end of file diff --git a/acms-open/src/Acms-openClient.cc b/acms-open/src/Acms-openClient.cc new file mode 100644 index 000000000..f51551809 --- /dev/null +++ b/acms-open/src/Acms-openClient.cc @@ -0,0 +1,341 @@ +/* + * 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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +namespace +{ + const std::string SERVICE_NAME = "acms-open"; +} + +Acms_openClient::Acms_openClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RoaServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "acms"); +} + +Acms_openClient::Acms_openClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RoaServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "acms"); +} + +Acms_openClient::Acms_openClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RoaServiceClient(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, "acms"); +} + +Acms_openClient::~Acms_openClient() +{} + +Acms_openClient::CreateConfigurationOutcome Acms_openClient::createConfiguration(const CreateConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateConfigurationOutcome(CreateConfigurationResult(outcome.result())); + else + return CreateConfigurationOutcome(outcome.error()); +} + +void Acms_openClient::createConfigurationAsync(const CreateConfigurationRequest& request, const CreateConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::CreateConfigurationOutcomeCallable Acms_openClient::createConfigurationCallable(const CreateConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::CreateNamespaceOutcome Acms_openClient::createNamespace(const CreateNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateNamespaceOutcome(CreateNamespaceResult(outcome.result())); + else + return CreateNamespaceOutcome(outcome.error()); +} + +void Acms_openClient::createNamespaceAsync(const CreateNamespaceRequest& request, const CreateNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::CreateNamespaceOutcomeCallable Acms_openClient::createNamespaceCallable(const CreateNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::DeleteConfigurationOutcome Acms_openClient::deleteConfiguration(const DeleteConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteConfigurationOutcome(DeleteConfigurationResult(outcome.result())); + else + return DeleteConfigurationOutcome(outcome.error()); +} + +void Acms_openClient::deleteConfigurationAsync(const DeleteConfigurationRequest& request, const DeleteConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::DeleteConfigurationOutcomeCallable Acms_openClient::deleteConfigurationCallable(const DeleteConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::DeleteNamespaceOutcome Acms_openClient::deleteNamespace(const DeleteNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteNamespaceOutcome(DeleteNamespaceResult(outcome.result())); + else + return DeleteNamespaceOutcome(outcome.error()); +} + +void Acms_openClient::deleteNamespaceAsync(const DeleteNamespaceRequest& request, const DeleteNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::DeleteNamespaceOutcomeCallable Acms_openClient::deleteNamespaceCallable(const DeleteNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::DeployConfigurationOutcome Acms_openClient::deployConfiguration(const DeployConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeployConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeployConfigurationOutcome(DeployConfigurationResult(outcome.result())); + else + return DeployConfigurationOutcome(outcome.error()); +} + +void Acms_openClient::deployConfigurationAsync(const DeployConfigurationRequest& request, const DeployConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deployConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::DeployConfigurationOutcomeCallable Acms_openClient::deployConfigurationCallable(const DeployConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deployConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::DescribeConfigurationOutcome Acms_openClient::describeConfiguration(const DescribeConfigurationRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeConfigurationOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeConfigurationOutcome(DescribeConfigurationResult(outcome.result())); + else + return DescribeConfigurationOutcome(outcome.error()); +} + +void Acms_openClient::describeConfigurationAsync(const DescribeConfigurationRequest& request, const DescribeConfigurationAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeConfiguration(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::DescribeConfigurationOutcomeCallable Acms_openClient::describeConfigurationCallable(const DescribeConfigurationRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeConfiguration(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::DescribeNamespaceOutcome Acms_openClient::describeNamespace(const DescribeNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNamespaceOutcome(DescribeNamespaceResult(outcome.result())); + else + return DescribeNamespaceOutcome(outcome.error()); +} + +void Acms_openClient::describeNamespaceAsync(const DescribeNamespaceRequest& request, const DescribeNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::DescribeNamespaceOutcomeCallable Acms_openClient::describeNamespaceCallable(const DescribeNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +Acms_openClient::UpdateNamespaceOutcome Acms_openClient::updateNamespace(const UpdateNamespaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateNamespaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateNamespaceOutcome(UpdateNamespaceResult(outcome.result())); + else + return UpdateNamespaceOutcome(outcome.error()); +} + +void Acms_openClient::updateNamespaceAsync(const UpdateNamespaceRequest& request, const UpdateNamespaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateNamespace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +Acms_openClient::UpdateNamespaceOutcomeCallable Acms_openClient::updateNamespaceCallable(const UpdateNamespaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateNamespace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/acms-open/src/model/CreateConfigurationRequest.cc b/acms-open/src/model/CreateConfigurationRequest.cc new file mode 100644 index 000000000..00dfc3ec3 --- /dev/null +++ b/acms-open/src/model/CreateConfigurationRequest.cc @@ -0,0 +1,118 @@ +/* + * 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::Acms_open::Model::CreateConfigurationRequest; + +CreateConfigurationRequest::CreateConfigurationRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/configuration"); + setMethod(HttpRequest::Method::Post); +} + +CreateConfigurationRequest::~CreateConfigurationRequest() +{} + +std::string CreateConfigurationRequest::getDataId()const +{ + return dataId_; +} + +void CreateConfigurationRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setBodyParameter("DataId", dataId); +} + +std::string CreateConfigurationRequest::getAppName()const +{ + return appName_; +} + +void CreateConfigurationRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setBodyParameter("AppName", appName); +} + +std::string CreateConfigurationRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void CreateConfigurationRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setBodyParameter("NamespaceId", namespaceId); +} + +std::string CreateConfigurationRequest::getType()const +{ + return type_; +} + +void CreateConfigurationRequest::setType(const std::string& type) +{ + type_ = type; + setBodyParameter("Type", type); +} + +std::string CreateConfigurationRequest::getContent()const +{ + return content_; +} + +void CreateConfigurationRequest::setContent(const std::string& content) +{ + content_ = content; + setBodyParameter("Content", content); +} + +std::string CreateConfigurationRequest::getGroup()const +{ + return group_; +} + +void CreateConfigurationRequest::setGroup(const std::string& group) +{ + group_ = group; + setBodyParameter("Group", group); +} + +std::string CreateConfigurationRequest::getDesc()const +{ + return desc_; +} + +void CreateConfigurationRequest::setDesc(const std::string& desc) +{ + desc_ = desc; + setBodyParameter("Desc", desc); +} + +std::string CreateConfigurationRequest::getTags()const +{ + return tags_; +} + +void CreateConfigurationRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setBodyParameter("Tags", tags); +} + diff --git a/acms-open/src/model/CreateConfigurationResult.cc b/acms-open/src/model/CreateConfigurationResult.cc new file mode 100644 index 000000000..e6e56af02 --- /dev/null +++ b/acms-open/src/model/CreateConfigurationResult.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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +CreateConfigurationResult::CreateConfigurationResult() : + ServiceResult() +{} + +CreateConfigurationResult::CreateConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateConfigurationResult::~CreateConfigurationResult() +{} + +void CreateConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateConfigurationResult::getMessage()const +{ + return message_; +} + +std::string CreateConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/CreateNamespaceRequest.cc b/acms-open/src/model/CreateNamespaceRequest.cc new file mode 100644 index 000000000..5d691881b --- /dev/null +++ b/acms-open/src/model/CreateNamespaceRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::Acms_open::Model::CreateNamespaceRequest; + +CreateNamespaceRequest::CreateNamespaceRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/namespace"); + setMethod(HttpRequest::Method::Post); +} + +CreateNamespaceRequest::~CreateNamespaceRequest() +{} + +std::string CreateNamespaceRequest::getName()const +{ + return name_; +} + +void CreateNamespaceRequest::setName(const std::string& name) +{ + name_ = name; + setBodyParameter("Name", name); +} + diff --git a/acms-open/src/model/CreateNamespaceResult.cc b/acms-open/src/model/CreateNamespaceResult.cc new file mode 100644 index 000000000..9659c29eb --- /dev/null +++ b/acms-open/src/model/CreateNamespaceResult.cc @@ -0,0 +1,65 @@ +/* + * 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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +CreateNamespaceResult::CreateNamespaceResult() : + ServiceResult() +{} + +CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateNamespaceResult::~CreateNamespaceResult() +{} + +void CreateNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["NamespaceId"].isNull()) + namespaceId_ = value["NamespaceId"].asString(); + +} + +std::string CreateNamespaceResult::getMessage()const +{ + return message_; +} + +std::string CreateNamespaceResult::getNamespaceId()const +{ + return namespaceId_; +} + +std::string CreateNamespaceResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/DeleteConfigurationRequest.cc b/acms-open/src/model/DeleteConfigurationRequest.cc new file mode 100644 index 000000000..a08ecbe41 --- /dev/null +++ b/acms-open/src/model/DeleteConfigurationRequest.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::Acms_open::Model::DeleteConfigurationRequest; + +DeleteConfigurationRequest::DeleteConfigurationRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/configuration"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteConfigurationRequest::~DeleteConfigurationRequest() +{} + +std::string DeleteConfigurationRequest::getDataId()const +{ + return dataId_; +} + +void DeleteConfigurationRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string DeleteConfigurationRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DeleteConfigurationRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string DeleteConfigurationRequest::getGroup()const +{ + return group_; +} + +void DeleteConfigurationRequest::setGroup(const std::string& group) +{ + group_ = group; + setParameter("Group", group); +} + diff --git a/acms-open/src/model/DeleteConfigurationResult.cc b/acms-open/src/model/DeleteConfigurationResult.cc new file mode 100644 index 000000000..f8ca533ea --- /dev/null +++ b/acms-open/src/model/DeleteConfigurationResult.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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +DeleteConfigurationResult::DeleteConfigurationResult() : + ServiceResult() +{} + +DeleteConfigurationResult::DeleteConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteConfigurationResult::~DeleteConfigurationResult() +{} + +void DeleteConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteConfigurationResult::getMessage()const +{ + return message_; +} + +std::string DeleteConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/DeleteNamespaceRequest.cc b/acms-open/src/model/DeleteNamespaceRequest.cc new file mode 100644 index 000000000..0f45e09d1 --- /dev/null +++ b/acms-open/src/model/DeleteNamespaceRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::Acms_open::Model::DeleteNamespaceRequest; + +DeleteNamespaceRequest::DeleteNamespaceRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/namespace"); + setMethod(HttpRequest::Method::Delete); +} + +DeleteNamespaceRequest::~DeleteNamespaceRequest() +{} + +std::string DeleteNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/acms-open/src/model/DeleteNamespaceResult.cc b/acms-open/src/model/DeleteNamespaceResult.cc new file mode 100644 index 000000000..b9f951c66 --- /dev/null +++ b/acms-open/src/model/DeleteNamespaceResult.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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +DeleteNamespaceResult::DeleteNamespaceResult() : + ServiceResult() +{} + +DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteNamespaceResult::~DeleteNamespaceResult() +{} + +void DeleteNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteNamespaceResult::getMessage()const +{ + return message_; +} + +std::string DeleteNamespaceResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/DeployConfigurationRequest.cc b/acms-open/src/model/DeployConfigurationRequest.cc new file mode 100644 index 000000000..f3abf8b54 --- /dev/null +++ b/acms-open/src/model/DeployConfigurationRequest.cc @@ -0,0 +1,118 @@ +/* + * 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::Acms_open::Model::DeployConfigurationRequest; + +DeployConfigurationRequest::DeployConfigurationRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/configuration"); + setMethod(HttpRequest::Method::Put); +} + +DeployConfigurationRequest::~DeployConfigurationRequest() +{} + +std::string DeployConfigurationRequest::getDataId()const +{ + return dataId_; +} + +void DeployConfigurationRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setBodyParameter("DataId", dataId); +} + +std::string DeployConfigurationRequest::getAppName()const +{ + return appName_; +} + +void DeployConfigurationRequest::setAppName(const std::string& appName) +{ + appName_ = appName; + setBodyParameter("AppName", appName); +} + +std::string DeployConfigurationRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DeployConfigurationRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setBodyParameter("NamespaceId", namespaceId); +} + +std::string DeployConfigurationRequest::getType()const +{ + return type_; +} + +void DeployConfigurationRequest::setType(const std::string& type) +{ + type_ = type; + setBodyParameter("Type", type); +} + +std::string DeployConfigurationRequest::getContent()const +{ + return content_; +} + +void DeployConfigurationRequest::setContent(const std::string& content) +{ + content_ = content; + setBodyParameter("Content", content); +} + +std::string DeployConfigurationRequest::getGroup()const +{ + return group_; +} + +void DeployConfigurationRequest::setGroup(const std::string& group) +{ + group_ = group; + setBodyParameter("Group", group); +} + +std::string DeployConfigurationRequest::getDesc()const +{ + return desc_; +} + +void DeployConfigurationRequest::setDesc(const std::string& desc) +{ + desc_ = desc; + setBodyParameter("Desc", desc); +} + +std::string DeployConfigurationRequest::getTags()const +{ + return tags_; +} + +void DeployConfigurationRequest::setTags(const std::string& tags) +{ + tags_ = tags; + setBodyParameter("Tags", tags); +} + diff --git a/acms-open/src/model/DeployConfigurationResult.cc b/acms-open/src/model/DeployConfigurationResult.cc new file mode 100644 index 000000000..69902a75a --- /dev/null +++ b/acms-open/src/model/DeployConfigurationResult.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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +DeployConfigurationResult::DeployConfigurationResult() : + ServiceResult() +{} + +DeployConfigurationResult::DeployConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeployConfigurationResult::~DeployConfigurationResult() +{} + +void DeployConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeployConfigurationResult::getMessage()const +{ + return message_; +} + +std::string DeployConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/DescribeConfigurationRequest.cc b/acms-open/src/model/DescribeConfigurationRequest.cc new file mode 100644 index 000000000..1ae6a665e --- /dev/null +++ b/acms-open/src/model/DescribeConfigurationRequest.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::Acms_open::Model::DescribeConfigurationRequest; + +DescribeConfigurationRequest::DescribeConfigurationRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/configuration"); + setMethod(HttpRequest::Method::Get); +} + +DescribeConfigurationRequest::~DescribeConfigurationRequest() +{} + +std::string DescribeConfigurationRequest::getDataId()const +{ + return dataId_; +} + +void DescribeConfigurationRequest::setDataId(const std::string& dataId) +{ + dataId_ = dataId; + setParameter("DataId", dataId); +} + +std::string DescribeConfigurationRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DescribeConfigurationRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + +std::string DescribeConfigurationRequest::getGroup()const +{ + return group_; +} + +void DescribeConfigurationRequest::setGroup(const std::string& group) +{ + group_ = group; + setParameter("Group", group); +} + diff --git a/acms-open/src/model/DescribeConfigurationResult.cc b/acms-open/src/model/DescribeConfigurationResult.cc new file mode 100644 index 000000000..ecfeef17b --- /dev/null +++ b/acms-open/src/model/DescribeConfigurationResult.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 +#include + +using namespace AlibabaCloud::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +DescribeConfigurationResult::DescribeConfigurationResult() : + ServiceResult() +{} + +DescribeConfigurationResult::DescribeConfigurationResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeConfigurationResult::~DescribeConfigurationResult() +{} + +void DescribeConfigurationResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto configurationNode = value["Configuration"]; + if(!configurationNode["DataId"].isNull()) + configuration_.dataId = configurationNode["DataId"].asString(); + if(!configurationNode["Group"].isNull()) + configuration_.group = configurationNode["Group"].asString(); + if(!configurationNode["Content"].isNull()) + configuration_.content = configurationNode["Content"].asString(); + if(!configurationNode["Md5"].isNull()) + configuration_.md5 = configurationNode["Md5"].asString(); + if(!configurationNode["AppName"].isNull()) + configuration_.appName = configurationNode["AppName"].asString(); + if(!configurationNode["Desc"].isNull()) + configuration_.desc = configurationNode["Desc"].asString(); + if(!configurationNode["Tags"].isNull()) + configuration_.tags = configurationNode["Tags"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +DescribeConfigurationResult::Configuration DescribeConfigurationResult::getConfiguration()const +{ + return configuration_; +} + +std::string DescribeConfigurationResult::getMessage()const +{ + return message_; +} + +std::string DescribeConfigurationResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/DescribeNamespaceRequest.cc b/acms-open/src/model/DescribeNamespaceRequest.cc new file mode 100644 index 000000000..fbcd3bec6 --- /dev/null +++ b/acms-open/src/model/DescribeNamespaceRequest.cc @@ -0,0 +1,41 @@ +/* + * 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::Acms_open::Model::DescribeNamespaceRequest; + +DescribeNamespaceRequest::DescribeNamespaceRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/namespace"); + setMethod(HttpRequest::Method::Get); +} + +DescribeNamespaceRequest::~DescribeNamespaceRequest() +{} + +std::string DescribeNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setParameter("NamespaceId", namespaceId); +} + diff --git a/acms-open/src/model/DescribeNamespaceResult.cc b/acms-open/src/model/DescribeNamespaceResult.cc new file mode 100644 index 000000000..fbfa9bf10 --- /dev/null +++ b/acms-open/src/model/DescribeNamespaceResult.cc @@ -0,0 +1,74 @@ +/* + * 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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +DescribeNamespaceResult::DescribeNamespaceResult() : + ServiceResult() +{} + +DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNamespaceResult::~DescribeNamespaceResult() +{} + +void DescribeNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto _namespaceNode = value["Namespace"]; + if(!_namespaceNode["RegionId"].isNull()) + _namespace_.regionId = _namespaceNode["RegionId"].asString(); + if(!_namespaceNode["Endpoint"].isNull()) + _namespace_.endpoint = _namespaceNode["Endpoint"].asString(); + if(!_namespaceNode["AccessKey"].isNull()) + _namespace_.accessKey = _namespaceNode["AccessKey"].asString(); + if(!_namespaceNode["SecretKey"].isNull()) + _namespace_.secretKey = _namespaceNode["SecretKey"].asString(); + if(!_namespaceNode["Name"].isNull()) + _namespace_.name = _namespaceNode["Name"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DescribeNamespaceResult::getMessage()const +{ + return message_; +} + +DescribeNamespaceResult::_Namespace DescribeNamespaceResult::get_Namespace()const +{ + return _namespace_; +} + +std::string DescribeNamespaceResult::getCode()const +{ + return code_; +} + diff --git a/acms-open/src/model/UpdateNamespaceRequest.cc b/acms-open/src/model/UpdateNamespaceRequest.cc new file mode 100644 index 000000000..a1791b443 --- /dev/null +++ b/acms-open/src/model/UpdateNamespaceRequest.cc @@ -0,0 +1,52 @@ +/* + * 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::Acms_open::Model::UpdateNamespaceRequest; + +UpdateNamespaceRequest::UpdateNamespaceRequest() : + RoaServiceRequest("acms-open", "2020-02-06") +{ + setResourcePath("/diamond-ops/pop/namespace"); + setMethod(HttpRequest::Method::Put); +} + +UpdateNamespaceRequest::~UpdateNamespaceRequest() +{} + +std::string UpdateNamespaceRequest::getNamespaceName()const +{ + return namespaceName_; +} + +void UpdateNamespaceRequest::setNamespaceName(const std::string& namespaceName) +{ + namespaceName_ = namespaceName; + setBodyParameter("NamespaceName", namespaceName); +} + +std::string UpdateNamespaceRequest::getNamespaceId()const +{ + return namespaceId_; +} + +void UpdateNamespaceRequest::setNamespaceId(const std::string& namespaceId) +{ + namespaceId_ = namespaceId; + setBodyParameter("NamespaceId", namespaceId); +} + diff --git a/acms-open/src/model/UpdateNamespaceResult.cc b/acms-open/src/model/UpdateNamespaceResult.cc new file mode 100644 index 000000000..354bb2404 --- /dev/null +++ b/acms-open/src/model/UpdateNamespaceResult.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::Acms_open; +using namespace AlibabaCloud::Acms_open::Model; + +UpdateNamespaceResult::UpdateNamespaceResult() : + ServiceResult() +{} + +UpdateNamespaceResult::UpdateNamespaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateNamespaceResult::~UpdateNamespaceResult() +{} + +void UpdateNamespaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateNamespaceResult::getMessage()const +{ + return message_; +} + +std::string UpdateNamespaceResult::getCode()const +{ + return code_; +} +