From 695aa4ad06432135ce0d131dd93f269f06ea51f3 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 30 Aug 2019 14:14:51 +0800 Subject: [PATCH] Release Apis of Version 2019-09-10. --- CHANGELOG | 3 + VERSION | 2 +- ros/include/alibabacloud/ros/ROSClient.h | 254 +++++ ros/include/alibabacloud/ros/ROSExport.h | 32 + .../ros/model/CancelUpdateStackRequest.h | 54 + .../ros/model/CancelUpdateStackResult.h | 49 + .../ros/model/ContinueCreateStackRequest.h | 54 + .../ros/model/ContinueCreateStackResult.h | 51 + .../ros/model/CreateChangeSetRequest.h | 116 ++ .../ros/model/CreateChangeSetResult.h | 53 + .../ros/model/CreateStackRequest.h | 92 ++ .../ros/model/CreateStackResult.h | 51 + .../ros/model/DeleteChangeSetRequest.h | 51 + .../ros/model/DeleteChangeSetResult.h | 49 + .../ros/model/DeleteStackRequest.h | 54 + .../ros/model/DeleteStackResult.h | 49 + .../ros/model/DescribeRegionsRequest.h | 48 + .../ros/model/DescribeRegionsResult.h | 57 + .../ros/model/ExecuteChangeSetRequest.h | 51 + .../ros/model/ExecuteChangeSetResult.h | 49 + .../ros/model/GetChangeSetRequest.h | 54 + .../ros/model/GetChangeSetResult.h | 84 ++ .../ros/model/GetResourceTypeRequest.h | 48 + .../ros/model/GetResourceTypeResult.h | 55 + .../model/GetResourceTypeTemplateRequest.h | 48 + .../ros/model/GetResourceTypeTemplateResult.h | 51 + .../ros/model/GetStackPolicyRequest.h | 51 + .../ros/model/GetStackPolicyResult.h | 51 + .../alibabacloud/ros/model/GetStackRequest.h | 54 + .../ros/model/GetStackResourceRequest.h | 60 ++ .../ros/model/GetStackResourceResult.h | 73 ++ .../alibabacloud/ros/model/GetStackResult.h | 84 ++ .../model/GetTemplateEstimateCostRequest.h | 65 ++ .../ros/model/GetTemplateEstimateCostResult.h | 51 + .../ros/model/GetTemplateRequest.h | 54 + .../ros/model/GetTemplateResult.h | 51 + .../ros/model/ListChangeSetsRequest.h | 66 ++ .../ros/model/ListChangeSetsResult.h | 70 ++ .../ros/model/ListResourceTypesRequest.h | 45 + .../ros/model/ListResourceTypesResult.h | 51 + .../ros/model/ListStackEventsRequest.h | 66 ++ .../ros/model/ListStackEventsResult.h | 69 ++ .../ros/model/ListStackResourcesRequest.h | 51 + .../ros/model/ListStackResourcesResult.h | 63 ++ .../ros/model/ListStacksRequest.h | 66 ++ .../alibabacloud/ros/model/ListStacksResult.h | 70 ++ .../ros/model/PreviewStackRequest.h | 80 ++ .../ros/model/PreviewStackResult.h | 51 + .../ros/model/SetStackPolicyRequest.h | 57 + .../ros/model/SetStackPolicyResult.h | 49 + .../ros/model/SignalResourceRequest.h | 66 ++ .../ros/model/SignalResourceResult.h | 49 + .../ros/model/UpdateStackRequest.h | 95 ++ .../ros/model/UpdateStackResult.h | 51 + .../ros/model/ValidateTemplateRequest.h | 54 + .../ros/model/ValidateTemplateResult.h | 53 + ros/src/ROSClient.cc | 989 ++++++++++++++++++ ros/src/model/CancelUpdateStackRequest.cc | 60 ++ ros/src/model/CancelUpdateStackResult.cc | 48 + ros/src/model/ContinueCreateStackRequest.cc | 61 ++ ros/src/model/ContinueCreateStackResult.cc | 55 + ros/src/model/CreateChangeSetRequest.cc | 276 +++++ ros/src/model/CreateChangeSetResult.cc | 62 ++ ros/src/model/CreateStackRequest.cc | 188 ++++ ros/src/model/CreateStackResult.cc | 55 + ros/src/model/DeleteChangeSetRequest.cc | 49 + ros/src/model/DeleteChangeSetResult.cc | 48 + ros/src/model/DeleteStackRequest.cc | 60 ++ ros/src/model/DeleteStackResult.cc | 48 + ros/src/model/DescribeRegionsRequest.cc | 38 + ros/src/model/DescribeRegionsResult.cc | 65 ++ ros/src/model/ExecuteChangeSetRequest.cc | 49 + ros/src/model/ExecuteChangeSetResult.cc | 48 + ros/src/model/GetChangeSetRequest.cc | 60 ++ ros/src/model/GetChangeSetResult.cc | 162 +++ ros/src/model/GetResourceTypeRequest.cc | 38 + ros/src/model/GetResourceTypeResult.cc | 69 ++ .../model/GetResourceTypeTemplateRequest.cc | 38 + .../model/GetResourceTypeTemplateResult.cc | 55 + ros/src/model/GetStackPolicyRequest.cc | 49 + ros/src/model/GetStackPolicyResult.cc | 55 + ros/src/model/GetStackRequest.cc | 60 ++ ros/src/model/GetStackResourceRequest.cc | 82 ++ ros/src/model/GetStackResourceResult.cc | 133 +++ ros/src/model/GetStackResult.cc | 163 +++ .../model/GetTemplateEstimateCostRequest.cc | 88 ++ .../model/GetTemplateEstimateCostResult.cc | 55 + ros/src/model/GetTemplateRequest.cc | 60 ++ ros/src/model/GetTemplateResult.cc | 55 + ros/src/model/ListChangeSetsRequest.cc | 107 ++ ros/src/model/ListChangeSetsResult.cc | 100 ++ ros/src/model/ListResourceTypesRequest.cc | 27 + ros/src/model/ListResourceTypesResult.cc | 56 + ros/src/model/ListStackEventsRequest.cc | 107 ++ ros/src/model/ListStackEventsResult.cc | 98 ++ ros/src/model/ListStackResourcesRequest.cc | 49 + ros/src/model/ListStackResourcesResult.cc | 77 ++ ros/src/model/ListStacksRequest.cc | 106 ++ ros/src/model/ListStacksResult.cc | 100 ++ ros/src/model/PreviewStackRequest.cc | 143 +++ ros/src/model/PreviewStackResult.cc | 55 + ros/src/model/SetStackPolicyRequest.cc | 71 ++ ros/src/model/SetStackPolicyResult.cc | 48 + ros/src/model/SignalResourceRequest.cc | 104 ++ ros/src/model/SignalResourceResult.cc | 48 + ros/src/model/UpdateStackRequest.cc | 198 ++++ ros/src/model/UpdateStackResult.cc | 55 + ros/src/model/ValidateTemplateRequest.cc | 60 ++ ros/src/model/ValidateTemplateResult.cc | 63 ++ 109 files changed, 8467 insertions(+), 1 deletion(-) create mode 100644 ros/include/alibabacloud/ros/ROSClient.h create mode 100644 ros/include/alibabacloud/ros/ROSExport.h create mode 100644 ros/include/alibabacloud/ros/model/CancelUpdateStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/CancelUpdateStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/ContinueCreateStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ContinueCreateStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/CreateChangeSetRequest.h create mode 100644 ros/include/alibabacloud/ros/model/CreateChangeSetResult.h create mode 100644 ros/include/alibabacloud/ros/model/CreateStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/CreateStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/DeleteChangeSetRequest.h create mode 100644 ros/include/alibabacloud/ros/model/DeleteChangeSetResult.h create mode 100644 ros/include/alibabacloud/ros/model/DeleteStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/DeleteStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/DescribeRegionsRequest.h create mode 100644 ros/include/alibabacloud/ros/model/DescribeRegionsResult.h create mode 100644 ros/include/alibabacloud/ros/model/ExecuteChangeSetRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ExecuteChangeSetResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetChangeSetRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetChangeSetResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetResourceTypeRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetResourceTypeResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetResourceTypeTemplateRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetResourceTypeTemplateResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetStackPolicyRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetStackPolicyResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetStackResourceRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetStackResourceResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetTemplateEstimateCostRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetTemplateEstimateCostResult.h create mode 100644 ros/include/alibabacloud/ros/model/GetTemplateRequest.h create mode 100644 ros/include/alibabacloud/ros/model/GetTemplateResult.h create mode 100644 ros/include/alibabacloud/ros/model/ListChangeSetsRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ListChangeSetsResult.h create mode 100644 ros/include/alibabacloud/ros/model/ListResourceTypesRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ListResourceTypesResult.h create mode 100644 ros/include/alibabacloud/ros/model/ListStackEventsRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ListStackEventsResult.h create mode 100644 ros/include/alibabacloud/ros/model/ListStackResourcesRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ListStackResourcesResult.h create mode 100644 ros/include/alibabacloud/ros/model/ListStacksRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ListStacksResult.h create mode 100644 ros/include/alibabacloud/ros/model/PreviewStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/PreviewStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/SetStackPolicyRequest.h create mode 100644 ros/include/alibabacloud/ros/model/SetStackPolicyResult.h create mode 100644 ros/include/alibabacloud/ros/model/SignalResourceRequest.h create mode 100644 ros/include/alibabacloud/ros/model/SignalResourceResult.h create mode 100644 ros/include/alibabacloud/ros/model/UpdateStackRequest.h create mode 100644 ros/include/alibabacloud/ros/model/UpdateStackResult.h create mode 100644 ros/include/alibabacloud/ros/model/ValidateTemplateRequest.h create mode 100644 ros/include/alibabacloud/ros/model/ValidateTemplateResult.h create mode 100644 ros/src/ROSClient.cc create mode 100644 ros/src/model/CancelUpdateStackRequest.cc create mode 100644 ros/src/model/CancelUpdateStackResult.cc create mode 100644 ros/src/model/ContinueCreateStackRequest.cc create mode 100644 ros/src/model/ContinueCreateStackResult.cc create mode 100644 ros/src/model/CreateChangeSetRequest.cc create mode 100644 ros/src/model/CreateChangeSetResult.cc create mode 100644 ros/src/model/CreateStackRequest.cc create mode 100644 ros/src/model/CreateStackResult.cc create mode 100644 ros/src/model/DeleteChangeSetRequest.cc create mode 100644 ros/src/model/DeleteChangeSetResult.cc create mode 100644 ros/src/model/DeleteStackRequest.cc create mode 100644 ros/src/model/DeleteStackResult.cc create mode 100644 ros/src/model/DescribeRegionsRequest.cc create mode 100644 ros/src/model/DescribeRegionsResult.cc create mode 100644 ros/src/model/ExecuteChangeSetRequest.cc create mode 100644 ros/src/model/ExecuteChangeSetResult.cc create mode 100644 ros/src/model/GetChangeSetRequest.cc create mode 100644 ros/src/model/GetChangeSetResult.cc create mode 100644 ros/src/model/GetResourceTypeRequest.cc create mode 100644 ros/src/model/GetResourceTypeResult.cc create mode 100644 ros/src/model/GetResourceTypeTemplateRequest.cc create mode 100644 ros/src/model/GetResourceTypeTemplateResult.cc create mode 100644 ros/src/model/GetStackPolicyRequest.cc create mode 100644 ros/src/model/GetStackPolicyResult.cc create mode 100644 ros/src/model/GetStackRequest.cc create mode 100644 ros/src/model/GetStackResourceRequest.cc create mode 100644 ros/src/model/GetStackResourceResult.cc create mode 100644 ros/src/model/GetStackResult.cc create mode 100644 ros/src/model/GetTemplateEstimateCostRequest.cc create mode 100644 ros/src/model/GetTemplateEstimateCostResult.cc create mode 100644 ros/src/model/GetTemplateRequest.cc create mode 100644 ros/src/model/GetTemplateResult.cc create mode 100644 ros/src/model/ListChangeSetsRequest.cc create mode 100644 ros/src/model/ListChangeSetsResult.cc create mode 100644 ros/src/model/ListResourceTypesRequest.cc create mode 100644 ros/src/model/ListResourceTypesResult.cc create mode 100644 ros/src/model/ListStackEventsRequest.cc create mode 100644 ros/src/model/ListStackEventsResult.cc create mode 100644 ros/src/model/ListStackResourcesRequest.cc create mode 100644 ros/src/model/ListStackResourcesResult.cc create mode 100644 ros/src/model/ListStacksRequest.cc create mode 100644 ros/src/model/ListStacksResult.cc create mode 100644 ros/src/model/PreviewStackRequest.cc create mode 100644 ros/src/model/PreviewStackResult.cc create mode 100644 ros/src/model/SetStackPolicyRequest.cc create mode 100644 ros/src/model/SetStackPolicyResult.cc create mode 100644 ros/src/model/SignalResourceRequest.cc create mode 100644 ros/src/model/SignalResourceResult.cc create mode 100644 ros/src/model/UpdateStackRequest.cc create mode 100644 ros/src/model/UpdateStackResult.cc create mode 100644 ros/src/model/ValidateTemplateRequest.cc create mode 100644 ros/src/model/ValidateTemplateResult.cc diff --git a/CHANGELOG b/CHANGELOG index 80c74118d..e92a05323 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-08-30 Version 1.36.102 +- Release Apis of Version 2019-09-10. + 2019-08-30 Version 1.36.101 - Supported Meida complex for IMM. diff --git a/VERSION b/VERSION index 4ffb08317..a9829c0ac 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.101 \ No newline at end of file +1.36.102 \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/ROSClient.h b/ros/include/alibabacloud/ros/ROSClient.h new file mode 100644 index 000000000..e81595519 --- /dev/null +++ b/ros/include/alibabacloud/ros/ROSClient.h @@ -0,0 +1,254 @@ +/* + * 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_ROS_ROSCLIENT_H_ +#define ALIBABACLOUD_ROS_ROSCLIENT_H_ + +#include +#include +#include +#include +#include "ROSExport.h" +#include "model/ListStacksRequest.h" +#include "model/ListStacksResult.h" +#include "model/GetChangeSetRequest.h" +#include "model/GetChangeSetResult.h" +#include "model/ValidateTemplateRequest.h" +#include "model/ValidateTemplateResult.h" +#include "model/UpdateStackRequest.h" +#include "model/UpdateStackResult.h" +#include "model/GetStackResourceRequest.h" +#include "model/GetStackResourceResult.h" +#include "model/ListResourceTypesRequest.h" +#include "model/ListResourceTypesResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/GetResourceTypeTemplateRequest.h" +#include "model/GetResourceTypeTemplateResult.h" +#include "model/CreateStackRequest.h" +#include "model/CreateStackResult.h" +#include "model/DeleteStackRequest.h" +#include "model/DeleteStackResult.h" +#include "model/GetTemplateEstimateCostRequest.h" +#include "model/GetTemplateEstimateCostResult.h" +#include "model/ContinueCreateStackRequest.h" +#include "model/ContinueCreateStackResult.h" +#include "model/GetResourceTypeRequest.h" +#include "model/GetResourceTypeResult.h" +#include "model/DeleteChangeSetRequest.h" +#include "model/DeleteChangeSetResult.h" +#include "model/PreviewStackRequest.h" +#include "model/PreviewStackResult.h" +#include "model/SignalResourceRequest.h" +#include "model/SignalResourceResult.h" +#include "model/ExecuteChangeSetRequest.h" +#include "model/ExecuteChangeSetResult.h" +#include "model/SetStackPolicyRequest.h" +#include "model/SetStackPolicyResult.h" +#include "model/CreateChangeSetRequest.h" +#include "model/CreateChangeSetResult.h" +#include "model/GetTemplateRequest.h" +#include "model/GetTemplateResult.h" +#include "model/ListStackEventsRequest.h" +#include "model/ListStackEventsResult.h" +#include "model/GetStackRequest.h" +#include "model/GetStackResult.h" +#include "model/GetStackPolicyRequest.h" +#include "model/GetStackPolicyResult.h" +#include "model/CancelUpdateStackRequest.h" +#include "model/CancelUpdateStackResult.h" +#include "model/ListStackResourcesRequest.h" +#include "model/ListStackResourcesResult.h" +#include "model/ListChangeSetsRequest.h" +#include "model/ListChangeSetsResult.h" + + +namespace AlibabaCloud +{ + namespace ROS + { + class ALIBABACLOUD_ROS_EXPORT ROSClient : public RpcServiceClient + { + public: + typedef Outcome ListStacksOutcome; + typedef std::future ListStacksOutcomeCallable; + typedef std::function&)> ListStacksAsyncHandler; + typedef Outcome GetChangeSetOutcome; + typedef std::future GetChangeSetOutcomeCallable; + typedef std::function&)> GetChangeSetAsyncHandler; + typedef Outcome ValidateTemplateOutcome; + typedef std::future ValidateTemplateOutcomeCallable; + typedef std::function&)> ValidateTemplateAsyncHandler; + typedef Outcome UpdateStackOutcome; + typedef std::future UpdateStackOutcomeCallable; + typedef std::function&)> UpdateStackAsyncHandler; + typedef Outcome GetStackResourceOutcome; + typedef std::future GetStackResourceOutcomeCallable; + typedef std::function&)> GetStackResourceAsyncHandler; + typedef Outcome ListResourceTypesOutcome; + typedef std::future ListResourceTypesOutcomeCallable; + typedef std::function&)> ListResourceTypesAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome GetResourceTypeTemplateOutcome; + typedef std::future GetResourceTypeTemplateOutcomeCallable; + typedef std::function&)> GetResourceTypeTemplateAsyncHandler; + typedef Outcome CreateStackOutcome; + typedef std::future CreateStackOutcomeCallable; + typedef std::function&)> CreateStackAsyncHandler; + typedef Outcome DeleteStackOutcome; + typedef std::future DeleteStackOutcomeCallable; + typedef std::function&)> DeleteStackAsyncHandler; + typedef Outcome GetTemplateEstimateCostOutcome; + typedef std::future GetTemplateEstimateCostOutcomeCallable; + typedef std::function&)> GetTemplateEstimateCostAsyncHandler; + typedef Outcome ContinueCreateStackOutcome; + typedef std::future ContinueCreateStackOutcomeCallable; + typedef std::function&)> ContinueCreateStackAsyncHandler; + typedef Outcome GetResourceTypeOutcome; + typedef std::future GetResourceTypeOutcomeCallable; + typedef std::function&)> GetResourceTypeAsyncHandler; + typedef Outcome DeleteChangeSetOutcome; + typedef std::future DeleteChangeSetOutcomeCallable; + typedef std::function&)> DeleteChangeSetAsyncHandler; + typedef Outcome PreviewStackOutcome; + typedef std::future PreviewStackOutcomeCallable; + typedef std::function&)> PreviewStackAsyncHandler; + typedef Outcome SignalResourceOutcome; + typedef std::future SignalResourceOutcomeCallable; + typedef std::function&)> SignalResourceAsyncHandler; + typedef Outcome ExecuteChangeSetOutcome; + typedef std::future ExecuteChangeSetOutcomeCallable; + typedef std::function&)> ExecuteChangeSetAsyncHandler; + typedef Outcome SetStackPolicyOutcome; + typedef std::future SetStackPolicyOutcomeCallable; + typedef std::function&)> SetStackPolicyAsyncHandler; + typedef Outcome CreateChangeSetOutcome; + typedef std::future CreateChangeSetOutcomeCallable; + typedef std::function&)> CreateChangeSetAsyncHandler; + typedef Outcome GetTemplateOutcome; + typedef std::future GetTemplateOutcomeCallable; + typedef std::function&)> GetTemplateAsyncHandler; + typedef Outcome ListStackEventsOutcome; + typedef std::future ListStackEventsOutcomeCallable; + typedef std::function&)> ListStackEventsAsyncHandler; + typedef Outcome GetStackOutcome; + typedef std::future GetStackOutcomeCallable; + typedef std::function&)> GetStackAsyncHandler; + typedef Outcome GetStackPolicyOutcome; + typedef std::future GetStackPolicyOutcomeCallable; + typedef std::function&)> GetStackPolicyAsyncHandler; + typedef Outcome CancelUpdateStackOutcome; + typedef std::future CancelUpdateStackOutcomeCallable; + typedef std::function&)> CancelUpdateStackAsyncHandler; + typedef Outcome ListStackResourcesOutcome; + typedef std::future ListStackResourcesOutcomeCallable; + typedef std::function&)> ListStackResourcesAsyncHandler; + typedef Outcome ListChangeSetsOutcome; + typedef std::future ListChangeSetsOutcomeCallable; + typedef std::function&)> ListChangeSetsAsyncHandler; + + ROSClient(const Credentials &credentials, const ClientConfiguration &configuration); + ROSClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ROSClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ROSClient(); + ListStacksOutcome listStacks(const Model::ListStacksRequest &request)const; + void listStacksAsync(const Model::ListStacksRequest& request, const ListStacksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStacksOutcomeCallable listStacksCallable(const Model::ListStacksRequest& request) const; + GetChangeSetOutcome getChangeSet(const Model::GetChangeSetRequest &request)const; + void getChangeSetAsync(const Model::GetChangeSetRequest& request, const GetChangeSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetChangeSetOutcomeCallable getChangeSetCallable(const Model::GetChangeSetRequest& request) const; + ValidateTemplateOutcome validateTemplate(const Model::ValidateTemplateRequest &request)const; + void validateTemplateAsync(const Model::ValidateTemplateRequest& request, const ValidateTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ValidateTemplateOutcomeCallable validateTemplateCallable(const Model::ValidateTemplateRequest& request) const; + UpdateStackOutcome updateStack(const Model::UpdateStackRequest &request)const; + void updateStackAsync(const Model::UpdateStackRequest& request, const UpdateStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateStackOutcomeCallable updateStackCallable(const Model::UpdateStackRequest& request) const; + GetStackResourceOutcome getStackResource(const Model::GetStackResourceRequest &request)const; + void getStackResourceAsync(const Model::GetStackResourceRequest& request, const GetStackResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStackResourceOutcomeCallable getStackResourceCallable(const Model::GetStackResourceRequest& 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; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + GetResourceTypeTemplateOutcome getResourceTypeTemplate(const Model::GetResourceTypeTemplateRequest &request)const; + void getResourceTypeTemplateAsync(const Model::GetResourceTypeTemplateRequest& request, const GetResourceTypeTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceTypeTemplateOutcomeCallable getResourceTypeTemplateCallable(const Model::GetResourceTypeTemplateRequest& request) const; + CreateStackOutcome createStack(const Model::CreateStackRequest &request)const; + void createStackAsync(const Model::CreateStackRequest& request, const CreateStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateStackOutcomeCallable createStackCallable(const Model::CreateStackRequest& request) const; + DeleteStackOutcome deleteStack(const Model::DeleteStackRequest &request)const; + void deleteStackAsync(const Model::DeleteStackRequest& request, const DeleteStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteStackOutcomeCallable deleteStackCallable(const Model::DeleteStackRequest& request) const; + GetTemplateEstimateCostOutcome getTemplateEstimateCost(const Model::GetTemplateEstimateCostRequest &request)const; + void getTemplateEstimateCostAsync(const Model::GetTemplateEstimateCostRequest& request, const GetTemplateEstimateCostAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTemplateEstimateCostOutcomeCallable getTemplateEstimateCostCallable(const Model::GetTemplateEstimateCostRequest& request) const; + ContinueCreateStackOutcome continueCreateStack(const Model::ContinueCreateStackRequest &request)const; + void continueCreateStackAsync(const Model::ContinueCreateStackRequest& request, const ContinueCreateStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ContinueCreateStackOutcomeCallable continueCreateStackCallable(const Model::ContinueCreateStackRequest& request) const; + GetResourceTypeOutcome getResourceType(const Model::GetResourceTypeRequest &request)const; + void getResourceTypeAsync(const Model::GetResourceTypeRequest& request, const GetResourceTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetResourceTypeOutcomeCallable getResourceTypeCallable(const Model::GetResourceTypeRequest& request) const; + DeleteChangeSetOutcome deleteChangeSet(const Model::DeleteChangeSetRequest &request)const; + void deleteChangeSetAsync(const Model::DeleteChangeSetRequest& request, const DeleteChangeSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteChangeSetOutcomeCallable deleteChangeSetCallable(const Model::DeleteChangeSetRequest& request) const; + PreviewStackOutcome previewStack(const Model::PreviewStackRequest &request)const; + void previewStackAsync(const Model::PreviewStackRequest& request, const PreviewStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PreviewStackOutcomeCallable previewStackCallable(const Model::PreviewStackRequest& request) const; + SignalResourceOutcome signalResource(const Model::SignalResourceRequest &request)const; + void signalResourceAsync(const Model::SignalResourceRequest& request, const SignalResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SignalResourceOutcomeCallable signalResourceCallable(const Model::SignalResourceRequest& request) const; + ExecuteChangeSetOutcome executeChangeSet(const Model::ExecuteChangeSetRequest &request)const; + void executeChangeSetAsync(const Model::ExecuteChangeSetRequest& request, const ExecuteChangeSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ExecuteChangeSetOutcomeCallable executeChangeSetCallable(const Model::ExecuteChangeSetRequest& request) const; + SetStackPolicyOutcome setStackPolicy(const Model::SetStackPolicyRequest &request)const; + void setStackPolicyAsync(const Model::SetStackPolicyRequest& request, const SetStackPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetStackPolicyOutcomeCallable setStackPolicyCallable(const Model::SetStackPolicyRequest& request) const; + CreateChangeSetOutcome createChangeSet(const Model::CreateChangeSetRequest &request)const; + void createChangeSetAsync(const Model::CreateChangeSetRequest& request, const CreateChangeSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateChangeSetOutcomeCallable createChangeSetCallable(const Model::CreateChangeSetRequest& request) const; + GetTemplateOutcome getTemplate(const Model::GetTemplateRequest &request)const; + void getTemplateAsync(const Model::GetTemplateRequest& request, const GetTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTemplateOutcomeCallable getTemplateCallable(const Model::GetTemplateRequest& request) const; + ListStackEventsOutcome listStackEvents(const Model::ListStackEventsRequest &request)const; + void listStackEventsAsync(const Model::ListStackEventsRequest& request, const ListStackEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStackEventsOutcomeCallable listStackEventsCallable(const Model::ListStackEventsRequest& request) const; + GetStackOutcome getStack(const Model::GetStackRequest &request)const; + void getStackAsync(const Model::GetStackRequest& request, const GetStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStackOutcomeCallable getStackCallable(const Model::GetStackRequest& request) const; + GetStackPolicyOutcome getStackPolicy(const Model::GetStackPolicyRequest &request)const; + void getStackPolicyAsync(const Model::GetStackPolicyRequest& request, const GetStackPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetStackPolicyOutcomeCallable getStackPolicyCallable(const Model::GetStackPolicyRequest& request) const; + CancelUpdateStackOutcome cancelUpdateStack(const Model::CancelUpdateStackRequest &request)const; + void cancelUpdateStackAsync(const Model::CancelUpdateStackRequest& request, const CancelUpdateStackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CancelUpdateStackOutcomeCallable cancelUpdateStackCallable(const Model::CancelUpdateStackRequest& request) const; + ListStackResourcesOutcome listStackResources(const Model::ListStackResourcesRequest &request)const; + void listStackResourcesAsync(const Model::ListStackResourcesRequest& request, const ListStackResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListStackResourcesOutcomeCallable listStackResourcesCallable(const Model::ListStackResourcesRequest& request) const; + ListChangeSetsOutcome listChangeSets(const Model::ListChangeSetsRequest &request)const; + void listChangeSetsAsync(const Model::ListChangeSetsRequest& request, const ListChangeSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListChangeSetsOutcomeCallable listChangeSetsCallable(const Model::ListChangeSetsRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_ROS_ROSCLIENT_H_ diff --git a/ros/include/alibabacloud/ros/ROSExport.h b/ros/include/alibabacloud/ros/ROSExport.h new file mode 100644 index 000000000..d6b16d713 --- /dev/null +++ b/ros/include/alibabacloud/ros/ROSExport.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_ROS_ROSEXPORT_H_ +#define ALIBABACLOUD_ROS_ROSEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_ROS_LIBRARY) +# define ALIBABACLOUD_ROS_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_ROS_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_ROS_EXPORT +#endif + +#endif // !ALIBABACLOUD_ROS_ROSEXPORT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/CancelUpdateStackRequest.h b/ros/include/alibabacloud/ros/model/CancelUpdateStackRequest.h new file mode 100644 index 000000000..cd4c5425d --- /dev/null +++ b/ros/include/alibabacloud/ros/model/CancelUpdateStackRequest.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_ROS_MODEL_CANCELUPDATESTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_CANCELUPDATESTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT CancelUpdateStackRequest : public RpcServiceRequest + { + + public: + CancelUpdateStackRequest(); + ~CancelUpdateStackRequest(); + + std::string getCancelType()const; + void setCancelType(const std::string& cancelType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + + private: + std::string cancelType_; + std::string regionId_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CANCELUPDATESTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/CancelUpdateStackResult.h b/ros/include/alibabacloud/ros/model/CancelUpdateStackResult.h new file mode 100644 index 000000000..9529c92c5 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/CancelUpdateStackResult.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_ROS_MODEL_CANCELUPDATESTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_CANCELUPDATESTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT CancelUpdateStackResult : public ServiceResult + { + public: + + + CancelUpdateStackResult(); + explicit CancelUpdateStackResult(const std::string &payload); + ~CancelUpdateStackResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CANCELUPDATESTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ContinueCreateStackRequest.h b/ros/include/alibabacloud/ros/model/ContinueCreateStackRequest.h new file mode 100644 index 000000000..13cec5cde --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ContinueCreateStackRequest.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_ROS_MODEL_CONTINUECREATESTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_CONTINUECREATESTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ContinueCreateStackRequest : public RpcServiceRequest + { + + public: + ContinueCreateStackRequest(); + ~ContinueCreateStackRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + std::vector getRecreatingResources()const; + void setRecreatingResources(const std::vector& recreatingResources); + + private: + std::string regionId_; + std::string stackId_; + std::vector recreatingResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CONTINUECREATESTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ContinueCreateStackResult.h b/ros/include/alibabacloud/ros/model/ContinueCreateStackResult.h new file mode 100644 index 000000000..6322be5af --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ContinueCreateStackResult.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_ROS_MODEL_CONTINUECREATESTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_CONTINUECREATESTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ContinueCreateStackResult : public ServiceResult + { + public: + + + ContinueCreateStackResult(); + explicit ContinueCreateStackResult(const std::string &payload); + ~ContinueCreateStackResult(); + std::string getStackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CONTINUECREATESTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/CreateChangeSetRequest.h b/ros/include/alibabacloud/ros/model/CreateChangeSetRequest.h new file mode 100644 index 000000000..945b16ca0 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/CreateChangeSetRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_CREATECHANGESETREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_CREATECHANGESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT CreateChangeSetRequest : public RpcServiceRequest + { + struct Parameters + { + std::string parameterValue; + std::string parameterKey; + }; + + public: + CreateChangeSetRequest(); + ~CreateChangeSetRequest(); + + std::string getStackPolicyDuringUpdateURL()const; + void setStackPolicyDuringUpdateURL(const std::string& stackPolicyDuringUpdateURL); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTemplateBody()const; + void setTemplateBody(const std::string& templateBody); + std::string getStackId()const; + void setStackId(const std::string& stackId); + std::string getChangeSetType()const; + void setChangeSetType(const std::string& changeSetType); + std::string getDescription()const; + void setDescription(const std::string& description); + bool getDisableRollback()const; + void setDisableRollback(bool disableRollback); + std::string getUpdateAllowPolicy()const; + void setUpdateAllowPolicy(const std::string& updateAllowPolicy); + long getTimeoutInMinutes()const; + void setTimeoutInMinutes(long timeoutInMinutes); + bool getUsePreviousParameters()const; + void setUsePreviousParameters(bool usePreviousParameters); + std::string getTemplateURL()const; + void setTemplateURL(const std::string& templateURL); + std::string getOrderSource()const; + void setOrderSource(const std::string& orderSource); + std::string getActivityId()const; + void setActivityId(const std::string& activityId); + std::string getStackPolicyDuringUpdateBody()const; + void setStackPolicyDuringUpdateBody(const std::string& stackPolicyDuringUpdateBody); + std::vector getNotificationURLs()const; + void setNotificationURLs(const std::vector& notificationURLs); + std::string getStackPolicyURL()const; + void setStackPolicyURL(const std::string& stackPolicyURL); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getChangeSetName()const; + void setChangeSetName(const std::string& changeSetName); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::vector getParameters()const; + void setParameters(const std::vector& parameters); + std::string getStackPolicyBody()const; + void setStackPolicyBody(const std::string& stackPolicyBody); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string stackPolicyDuringUpdateURL_; + std::string clientToken_; + std::string templateBody_; + std::string stackId_; + std::string changeSetType_; + std::string description_; + bool disableRollback_; + std::string updateAllowPolicy_; + long timeoutInMinutes_; + bool usePreviousParameters_; + std::string templateURL_; + std::string orderSource_; + std::string activityId_; + std::string stackPolicyDuringUpdateBody_; + std::vector notificationURLs_; + std::string stackPolicyURL_; + std::string regionId_; + std::string changeSetName_; + std::string stackName_; + std::vector parameters_; + std::string stackPolicyBody_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CREATECHANGESETREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/CreateChangeSetResult.h b/ros/include/alibabacloud/ros/model/CreateChangeSetResult.h new file mode 100644 index 000000000..b46e9c02e --- /dev/null +++ b/ros/include/alibabacloud/ros/model/CreateChangeSetResult.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_ROS_MODEL_CREATECHANGESETRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_CREATECHANGESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT CreateChangeSetResult : public ServiceResult + { + public: + + + CreateChangeSetResult(); + explicit CreateChangeSetResult(const std::string &payload); + ~CreateChangeSetResult(); + std::string getChangeSetId()const; + std::string getStackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string changeSetId_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CREATECHANGESETRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/CreateStackRequest.h b/ros/include/alibabacloud/ros/model/CreateStackRequest.h new file mode 100644 index 000000000..0168715c7 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/CreateStackRequest.h @@ -0,0 +1,92 @@ +/* + * 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_ROS_MODEL_CREATESTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_CREATESTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT CreateStackRequest : public RpcServiceRequest + { + struct Parameters + { + std::string parameterValue; + std::string parameterKey; + }; + + public: + CreateStackRequest(); + ~CreateStackRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTemplateBody()const; + void setTemplateBody(const std::string& templateBody); + bool getDisableRollback()const; + void setDisableRollback(bool disableRollback); + long getTimeoutInMinutes()const; + void setTimeoutInMinutes(long timeoutInMinutes); + std::string getOrderSource()const; + void setOrderSource(const std::string& orderSource); + std::string getTemplateURL()const; + void setTemplateURL(const std::string& templateURL); + std::string getActivityId()const; + void setActivityId(const std::string& activityId); + std::vector getNotificationURLs()const; + void setNotificationURLs(const std::vector& notificationURLs); + std::string getStackPolicyURL()const; + void setStackPolicyURL(const std::string& stackPolicyURL); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::vector getParameters()const; + void setParameters(const std::vector& parameters); + std::string getStackPolicyBody()const; + void setStackPolicyBody(const std::string& stackPolicyBody); + std::string getChannelId()const; + void setChannelId(const std::string& channelId); + + private: + std::string clientToken_; + std::string templateBody_; + bool disableRollback_; + long timeoutInMinutes_; + std::string orderSource_; + std::string templateURL_; + std::string activityId_; + std::vector notificationURLs_; + std::string stackPolicyURL_; + std::string regionId_; + std::string stackName_; + std::vector parameters_; + std::string stackPolicyBody_; + std::string channelId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CREATESTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/CreateStackResult.h b/ros/include/alibabacloud/ros/model/CreateStackResult.h new file mode 100644 index 000000000..0580e96a7 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/CreateStackResult.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_ROS_MODEL_CREATESTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_CREATESTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT CreateStackResult : public ServiceResult + { + public: + + + CreateStackResult(); + explicit CreateStackResult(const std::string &payload); + ~CreateStackResult(); + std::string getStackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_CREATESTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/DeleteChangeSetRequest.h b/ros/include/alibabacloud/ros/model/DeleteChangeSetRequest.h new file mode 100644 index 000000000..41493f477 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/DeleteChangeSetRequest.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_ROS_MODEL_DELETECHANGESETREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_DELETECHANGESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT DeleteChangeSetRequest : public RpcServiceRequest + { + + public: + DeleteChangeSetRequest(); + ~DeleteChangeSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getChangeSetId()const; + void setChangeSetId(const std::string& changeSetId); + + private: + std::string regionId_; + std::string changeSetId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_DELETECHANGESETREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/DeleteChangeSetResult.h b/ros/include/alibabacloud/ros/model/DeleteChangeSetResult.h new file mode 100644 index 000000000..3c0550fc5 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/DeleteChangeSetResult.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_ROS_MODEL_DELETECHANGESETRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_DELETECHANGESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT DeleteChangeSetResult : public ServiceResult + { + public: + + + DeleteChangeSetResult(); + explicit DeleteChangeSetResult(const std::string &payload); + ~DeleteChangeSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_DELETECHANGESETRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/DeleteStackRequest.h b/ros/include/alibabacloud/ros/model/DeleteStackRequest.h new file mode 100644 index 000000000..4599c2c46 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/DeleteStackRequest.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_ROS_MODEL_DELETESTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_DELETESTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT DeleteStackRequest : public RpcServiceRequest + { + + public: + DeleteStackRequest(); + ~DeleteStackRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getRetainAllResources()const; + void setRetainAllResources(bool retainAllResources); + std::string getStackId()const; + void setStackId(const std::string& stackId); + + private: + std::string regionId_; + bool retainAllResources_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_DELETESTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/DeleteStackResult.h b/ros/include/alibabacloud/ros/model/DeleteStackResult.h new file mode 100644 index 000000000..9eb985451 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/DeleteStackResult.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_ROS_MODEL_DELETESTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_DELETESTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT DeleteStackResult : public ServiceResult + { + public: + + + DeleteStackResult(); + explicit DeleteStackResult(const std::string &payload); + ~DeleteStackResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_DELETESTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/DescribeRegionsRequest.h b/ros/include/alibabacloud/ros/model/DescribeRegionsRequest.h new file mode 100644 index 000000000..51b020825 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/DescribeRegionsRequest.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_ROS_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + std::string getAcceptLanguage()const; + void setAcceptLanguage(const std::string& acceptLanguage); + + private: + std::string acceptLanguage_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/DescribeRegionsResult.h b/ros/include/alibabacloud/ros/model/DescribeRegionsResult.h new file mode 100644 index 000000000..285b78c74 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/DescribeRegionsResult.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_ROS_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Region + { + std::string regionId; + std::string regionEndpoint; + std::string localName; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + std::vector getRegions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ExecuteChangeSetRequest.h b/ros/include/alibabacloud/ros/model/ExecuteChangeSetRequest.h new file mode 100644 index 000000000..33eb7e3b8 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ExecuteChangeSetRequest.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_ROS_MODEL_EXECUTECHANGESETREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_EXECUTECHANGESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ExecuteChangeSetRequest : public RpcServiceRequest + { + + public: + ExecuteChangeSetRequest(); + ~ExecuteChangeSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getChangeSetId()const; + void setChangeSetId(const std::string& changeSetId); + + private: + std::string regionId_; + std::string changeSetId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_EXECUTECHANGESETREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ExecuteChangeSetResult.h b/ros/include/alibabacloud/ros/model/ExecuteChangeSetResult.h new file mode 100644 index 000000000..7995e3be8 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ExecuteChangeSetResult.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_ROS_MODEL_EXECUTECHANGESETRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_EXECUTECHANGESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ExecuteChangeSetResult : public ServiceResult + { + public: + + + ExecuteChangeSetResult(); + explicit ExecuteChangeSetResult(const std::string &payload); + ~ExecuteChangeSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_EXECUTECHANGESETRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetChangeSetRequest.h b/ros/include/alibabacloud/ros/model/GetChangeSetRequest.h new file mode 100644 index 000000000..19cddab05 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetChangeSetRequest.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_ROS_MODEL_GETCHANGESETREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETCHANGESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetChangeSetRequest : public RpcServiceRequest + { + + public: + GetChangeSetRequest(); + ~GetChangeSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getChangeSetId()const; + void setChangeSetId(const std::string& changeSetId); + bool getShowTemplate()const; + void setShowTemplate(bool showTemplate); + + private: + std::string regionId_; + std::string changeSetId_; + bool showTemplate_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETCHANGESETREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetChangeSetResult.h b/ros/include/alibabacloud/ros/model/GetChangeSetResult.h new file mode 100644 index 000000000..fa37a1ac7 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetChangeSetResult.h @@ -0,0 +1,84 @@ +/* + * 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_ROS_MODEL_GETCHANGESETRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETCHANGESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetChangeSetResult : public ServiceResult + { + public: + struct Parameter + { + std::string parameterValue; + std::string parameterKey; + }; + + + GetChangeSetResult(); + explicit GetChangeSetResult(const std::string &payload); + ~GetChangeSetResult(); + std::vector getChanges()const; + std::string getStatus()const; + std::vector getParameters()const; + std::string getDescription()const; + std::string getCreateTime()const; + std::string getTemplateBody()const; + std::string getChangeSetName()const; + std::string getChangeSetId()const; + std::string getExecutionStatus()const; + std::string getChangeSetType()const; + std::string getRegionId()const; + bool getDisableRollback()const; + std::string getStackName()const; + std::string getStackId()const; + int getTimeoutInMinutes()const; + + protected: + void parse(const std::string &payload); + private: + std::vector changes_; + std::string status_; + std::vector parameters_; + std::string description_; + std::string createTime_; + std::string templateBody_; + std::string changeSetName_; + std::string changeSetId_; + std::string executionStatus_; + std::string changeSetType_; + std::string regionId_; + bool disableRollback_; + std::string stackName_; + std::string stackId_; + int timeoutInMinutes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETCHANGESETRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetResourceTypeRequest.h b/ros/include/alibabacloud/ros/model/GetResourceTypeRequest.h new file mode 100644 index 000000000..065d8195d --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetResourceTypeRequest.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_ROS_MODEL_GETRESOURCETYPEREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetResourceTypeRequest : public RpcServiceRequest + { + + public: + GetResourceTypeRequest(); + ~GetResourceTypeRequest(); + + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPEREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetResourceTypeResult.h b/ros/include/alibabacloud/ros/model/GetResourceTypeResult.h new file mode 100644 index 000000000..e1a98b2c6 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetResourceTypeResult.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_ROS_MODEL_GETRESOURCETYPERESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetResourceTypeResult : public ServiceResult + { + public: + + + GetResourceTypeResult(); + explicit GetResourceTypeResult(const std::string &payload); + ~GetResourceTypeResult(); + std::string getAttributes()const; + std::string getResourceType()const; + std::string getProperties()const; + + protected: + void parse(const std::string &payload); + private: + std::string attributes_; + std::string resourceType_; + std::string properties_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPERESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetResourceTypeTemplateRequest.h b/ros/include/alibabacloud/ros/model/GetResourceTypeTemplateRequest.h new file mode 100644 index 000000000..3ba4077a1 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetResourceTypeTemplateRequest.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_ROS_MODEL_GETRESOURCETYPETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetResourceTypeTemplateRequest : public RpcServiceRequest + { + + public: + GetResourceTypeTemplateRequest(); + ~GetResourceTypeTemplateRequest(); + + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + + private: + std::string resourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetResourceTypeTemplateResult.h b/ros/include/alibabacloud/ros/model/GetResourceTypeTemplateResult.h new file mode 100644 index 000000000..66823a4cc --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetResourceTypeTemplateResult.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_ROS_MODEL_GETRESOURCETYPETEMPLATERESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetResourceTypeTemplateResult : public ServiceResult + { + public: + + + GetResourceTypeTemplateResult(); + explicit GetResourceTypeTemplateResult(const std::string &payload); + ~GetResourceTypeTemplateResult(); + std::string getTemplateBody()const; + + protected: + void parse(const std::string &payload); + private: + std::string templateBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETRESOURCETYPETEMPLATERESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetStackPolicyRequest.h b/ros/include/alibabacloud/ros/model/GetStackPolicyRequest.h new file mode 100644 index 000000000..0cf502611 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetStackPolicyRequest.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_ROS_MODEL_GETSTACKPOLICYREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETSTACKPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetStackPolicyRequest : public RpcServiceRequest + { + + public: + GetStackPolicyRequest(); + ~GetStackPolicyRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + + private: + std::string regionId_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETSTACKPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetStackPolicyResult.h b/ros/include/alibabacloud/ros/model/GetStackPolicyResult.h new file mode 100644 index 000000000..8c20f4e7d --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetStackPolicyResult.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_ROS_MODEL_GETSTACKPOLICYRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETSTACKPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetStackPolicyResult : public ServiceResult + { + public: + + + GetStackPolicyResult(); + explicit GetStackPolicyResult(const std::string &payload); + ~GetStackPolicyResult(); + std::string getStackPolicyBody()const; + + protected: + void parse(const std::string &payload); + private: + std::string stackPolicyBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETSTACKPOLICYRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetStackRequest.h b/ros/include/alibabacloud/ros/model/GetStackRequest.h new file mode 100644 index 000000000..27c443379 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetStackRequest.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_ROS_MODEL_GETSTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETSTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetStackRequest : public RpcServiceRequest + { + + public: + GetStackRequest(); + ~GetStackRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getStackId()const; + void setStackId(const std::string& stackId); + + private: + std::string regionId_; + std::string clientToken_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETSTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetStackResourceRequest.h b/ros/include/alibabacloud/ros/model/GetStackResourceRequest.h new file mode 100644 index 000000000..b8025388f --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetStackResourceRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_GETSTACKRESOURCEREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETSTACKRESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetStackResourceRequest : public RpcServiceRequest + { + + public: + GetStackResourceRequest(); + ~GetStackResourceRequest(); + + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + std::string getLogicalResourceId()const; + void setLogicalResourceId(const std::string& logicalResourceId); + bool getShowResourceAttributes()const; + void setShowResourceAttributes(bool showResourceAttributes); + + private: + std::string clientToken_; + std::string regionId_; + std::string stackId_; + std::string logicalResourceId_; + bool showResourceAttributes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETSTACKRESOURCEREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetStackResourceResult.h b/ros/include/alibabacloud/ros/model/GetStackResourceResult.h new file mode 100644 index 000000000..f340a1085 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetStackResourceResult.h @@ -0,0 +1,73 @@ +/* + * 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_ROS_MODEL_GETSTACKRESOURCERESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETSTACKRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetStackResourceResult : public ServiceResult + { + public: + + + GetStackResourceResult(); + explicit GetStackResourceResult(const std::string &payload); + ~GetStackResourceResult(); + std::string getStatus()const; + std::string getLogicalResourceId()const; + std::string getDescription()const; + std::string getPhysicalResourceId()const; + std::string getStatusReason()const; + std::string getCreateTime()const; + std::string getMetadata()const; + std::string getUpdateTime()const; + std::string getResourceType()const; + std::vector getResourceAttributes()const; + std::string getStackName()const; + std::string getStackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string logicalResourceId_; + std::string description_; + std::string physicalResourceId_; + std::string statusReason_; + std::string createTime_; + std::string metadata_; + std::string updateTime_; + std::string resourceType_; + std::vector resourceAttributes_; + std::string stackName_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETSTACKRESOURCERESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetStackResult.h b/ros/include/alibabacloud/ros/model/GetStackResult.h new file mode 100644 index 000000000..71f01e7b7 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetStackResult.h @@ -0,0 +1,84 @@ +/* + * 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_ROS_MODEL_GETSTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETSTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetStackResult : public ServiceResult + { + public: + struct Parameter + { + std::string parameterValue; + std::string parameterKey; + }; + + + GetStackResult(); + explicit GetStackResult(const std::string &payload); + ~GetStackResult(); + std::string getStatus()const; + std::vector getParameters()const; + std::string getDescription()const; + std::string getStatusReason()const; + std::string getParentStackId()const; + std::string getCreateTime()const; + std::string getTemplateDescription()const; + std::vector getOutputs()const; + std::string getUpdateTime()const; + std::string getRegionId()const; + std::vector getNotificationURLs()const; + bool getDisableRollback()const; + std::string getStackName()const; + std::string getStackId()const; + int getTimeoutInMinutes()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::vector parameters_; + std::string description_; + std::string statusReason_; + std::string parentStackId_; + std::string createTime_; + std::string templateDescription_; + std::vector outputs_; + std::string updateTime_; + std::string regionId_; + std::vector notificationURLs_; + bool disableRollback_; + std::string stackName_; + std::string stackId_; + int timeoutInMinutes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETSTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetTemplateEstimateCostRequest.h b/ros/include/alibabacloud/ros/model/GetTemplateEstimateCostRequest.h new file mode 100644 index 000000000..82fda46b0 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetTemplateEstimateCostRequest.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_ROS_MODEL_GETTEMPLATEESTIMATECOSTREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETTEMPLATEESTIMATECOSTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetTemplateEstimateCostRequest : public RpcServiceRequest + { + struct Parameters + { + std::string parameterValue; + std::string parameterKey; + }; + + public: + GetTemplateEstimateCostRequest(); + ~GetTemplateEstimateCostRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTemplateBody()const; + void setTemplateBody(const std::string& templateBody); + std::vector getParameters()const; + void setParameters(const std::vector& parameters); + std::string getTemplateURL()const; + void setTemplateURL(const std::string& templateURL); + + private: + std::string regionId_; + std::string clientToken_; + std::string templateBody_; + std::vector parameters_; + std::string templateURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETTEMPLATEESTIMATECOSTREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetTemplateEstimateCostResult.h b/ros/include/alibabacloud/ros/model/GetTemplateEstimateCostResult.h new file mode 100644 index 000000000..73b3823d6 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetTemplateEstimateCostResult.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_ROS_MODEL_GETTEMPLATEESTIMATECOSTRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETTEMPLATEESTIMATECOSTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetTemplateEstimateCostResult : public ServiceResult + { + public: + + + GetTemplateEstimateCostResult(); + explicit GetTemplateEstimateCostResult(const std::string &payload); + ~GetTemplateEstimateCostResult(); + std::string getResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETTEMPLATEESTIMATECOSTRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetTemplateRequest.h b/ros/include/alibabacloud/ros/model/GetTemplateRequest.h new file mode 100644 index 000000000..81447e147 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetTemplateRequest.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_ROS_MODEL_GETTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_GETTEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetTemplateRequest : public RpcServiceRequest + { + + public: + GetTemplateRequest(); + ~GetTemplateRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + std::string getChangeSetId()const; + void setChangeSetId(const std::string& changeSetId); + + private: + std::string regionId_; + std::string stackId_; + std::string changeSetId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/GetTemplateResult.h b/ros/include/alibabacloud/ros/model/GetTemplateResult.h new file mode 100644 index 000000000..ec33debd3 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/GetTemplateResult.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_ROS_MODEL_GETTEMPLATERESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_GETTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT GetTemplateResult : public ServiceResult + { + public: + + + GetTemplateResult(); + explicit GetTemplateResult(const std::string &payload); + ~GetTemplateResult(); + std::string getTemplateBody()const; + + protected: + void parse(const std::string &payload); + private: + std::string templateBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_GETTEMPLATERESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListChangeSetsRequest.h b/ros/include/alibabacloud/ros/model/ListChangeSetsRequest.h new file mode 100644 index 000000000..e73ea06f6 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListChangeSetsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_LISTCHANGESETSREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTCHANGESETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListChangeSetsRequest : public RpcServiceRequest + { + + public: + ListChangeSetsRequest(); + ~ListChangeSetsRequest(); + + std::vector getExecutionStatus()const; + void setExecutionStatus(const std::vector& executionStatus); + std::vector getChangeSetName()const; + void setChangeSetName(const std::vector& changeSetName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + long getPageSize()const; + void setPageSize(long pageSize); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::vector getStatus()const; + void setStatus(const std::vector& status); + + private: + std::vector executionStatus_; + std::vector changeSetName_; + std::string regionId_; + std::string stackId_; + long pageSize_; + long pageNumber_; + std::vector status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTCHANGESETSREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListChangeSetsResult.h b/ros/include/alibabacloud/ros/model/ListChangeSetsResult.h new file mode 100644 index 000000000..e64d4b8a7 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListChangeSetsResult.h @@ -0,0 +1,70 @@ +/* + * 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_ROS_MODEL_LISTCHANGESETSRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTCHANGESETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListChangeSetsResult : public ServiceResult + { + public: + struct ChangeSet + { + std::string status; + std::string changeSetId; + std::string description; + std::string executionStatus; + std::string createTime; + std::string changeSetType; + std::string regionId; + std::string changeSetName; + std::string stackName; + std::string stackId; + }; + + + ListChangeSetsResult(); + explicit ListChangeSetsResult(const std::string &payload); + ~ListChangeSetsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getChangeSets()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector changeSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTCHANGESETSRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListResourceTypesRequest.h b/ros/include/alibabacloud/ros/model/ListResourceTypesRequest.h new file mode 100644 index 000000000..6efe6fdd3 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListResourceTypesRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_LISTRESOURCETYPESREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTRESOURCETYPESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListResourceTypesRequest : public RpcServiceRequest + { + + public: + ListResourceTypesRequest(); + ~ListResourceTypesRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTRESOURCETYPESREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListResourceTypesResult.h b/ros/include/alibabacloud/ros/model/ListResourceTypesResult.h new file mode 100644 index 000000000..592eef545 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListResourceTypesResult.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_ROS_MODEL_LISTRESOURCETYPESRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTRESOURCETYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListResourceTypesResult : public ServiceResult + { + public: + + + ListResourceTypesResult(); + explicit ListResourceTypesResult(const std::string &payload); + ~ListResourceTypesResult(); + std::vector getResourceTypes()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resourceTypes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTRESOURCETYPESRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListStackEventsRequest.h b/ros/include/alibabacloud/ros/model/ListStackEventsRequest.h new file mode 100644 index 000000000..841fb08ce --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListStackEventsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_LISTSTACKEVENTSREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTSTACKEVENTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListStackEventsRequest : public RpcServiceRequest + { + + public: + ListStackEventsRequest(); + ~ListStackEventsRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + long getPageSize()const; + void setPageSize(long pageSize); + std::vector getLogicalResourceId()const; + void setLogicalResourceId(const std::vector& logicalResourceId); + std::vector getResourceType()const; + void setResourceType(const std::vector& resourceType); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::vector getStatus()const; + void setStatus(const std::vector& status); + + private: + std::string regionId_; + std::string stackId_; + long pageSize_; + std::vector logicalResourceId_; + std::vector resourceType_; + long pageNumber_; + std::vector status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTSTACKEVENTSREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListStackEventsResult.h b/ros/include/alibabacloud/ros/model/ListStackEventsResult.h new file mode 100644 index 000000000..22bffc5bf --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListStackEventsResult.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_ROS_MODEL_LISTSTACKEVENTSRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTSTACKEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListStackEventsResult : public ServiceResult + { + public: + struct Event + { + std::string status; + std::string logicalResourceId; + std::string physicalResourceId; + std::string statusReason; + std::string createTime; + std::string eventId; + std::string resourceType; + std::string stackName; + std::string stackId; + }; + + + ListStackEventsResult(); + explicit ListStackEventsResult(const std::string &payload); + ~ListStackEventsResult(); + int getTotalCount()const; + int getPageSize()const; + std::vector getEvents()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + std::vector events_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTSTACKEVENTSRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListStackResourcesRequest.h b/ros/include/alibabacloud/ros/model/ListStackResourcesRequest.h new file mode 100644 index 000000000..2dda0a4b5 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListStackResourcesRequest.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_ROS_MODEL_LISTSTACKRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTSTACKRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListStackResourcesRequest : public RpcServiceRequest + { + + public: + ListStackResourcesRequest(); + ~ListStackResourcesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackId()const; + void setStackId(const std::string& stackId); + + private: + std::string regionId_; + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTSTACKRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListStackResourcesResult.h b/ros/include/alibabacloud/ros/model/ListStackResourcesResult.h new file mode 100644 index 000000000..0b8c77f32 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListStackResourcesResult.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_ROS_MODEL_LISTSTACKRESOURCESRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTSTACKRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListStackResourcesResult : public ServiceResult + { + public: + struct Resource + { + std::string status; + std::string logicalResourceId; + std::string physicalResourceId; + std::string statusReason; + std::string createTime; + std::string updateTime; + std::string resourceType; + std::string stackName; + std::string stackId; + }; + + + ListStackResourcesResult(); + explicit ListStackResourcesResult(const std::string &payload); + ~ListStackResourcesResult(); + std::vector getResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector resources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTSTACKRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListStacksRequest.h b/ros/include/alibabacloud/ros/model/ListStacksRequest.h new file mode 100644 index 000000000..3e7ad8b89 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListStacksRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_LISTSTACKSREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTSTACKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListStacksRequest : public RpcServiceRequest + { + + public: + ListStacksRequest(); + ~ListStacksRequest(); + + std::string getParentStackId()const; + void setParentStackId(const std::string& parentStackId); + bool getShowNestedStack()const; + void setShowNestedStack(bool showNestedStack); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + long getPageSize()const; + void setPageSize(long pageSize); + std::vector getStackName()const; + void setStackName(const std::vector& stackName); + long getPageNumber()const; + void setPageNumber(long pageNumber); + std::vector getStatus()const; + void setStatus(const std::vector& status); + + private: + std::string parentStackId_; + bool showNestedStack_; + std::string regionId_; + long pageSize_; + std::vector stackName_; + long pageNumber_; + std::vector status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTSTACKSREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ListStacksResult.h b/ros/include/alibabacloud/ros/model/ListStacksResult.h new file mode 100644 index 000000000..e53f86d3c --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ListStacksResult.h @@ -0,0 +1,70 @@ +/* + * 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_ROS_MODEL_LISTSTACKSRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_LISTSTACKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ListStacksResult : public ServiceResult + { + public: + struct Stack + { + std::string status; + std::string statusReason; + std::string parentStackId; + std::string createTime; + std::string updateTime; + std::string regionId; + bool disableRollback; + std::string stackName; + std::string stackId; + int timeoutInMinutes; + }; + + + ListStacksResult(); + explicit ListStacksResult(const std::string &payload); + ~ListStacksResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getStacks()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector stacks_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_LISTSTACKSRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/PreviewStackRequest.h b/ros/include/alibabacloud/ros/model/PreviewStackRequest.h new file mode 100644 index 000000000..9de793b34 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/PreviewStackRequest.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_ROS_MODEL_PREVIEWSTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_PREVIEWSTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT PreviewStackRequest : public RpcServiceRequest + { + struct Parameters + { + std::string parameterValue; + std::string parameterKey; + }; + + public: + PreviewStackRequest(); + ~PreviewStackRequest(); + + std::string getStackPolicyURL()const; + void setStackPolicyURL(const std::string& stackPolicyURL); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTemplateBody()const; + void setTemplateBody(const std::string& templateBody); + bool getDisableRollback()const; + void setDisableRollback(bool disableRollback); + std::string getStackName()const; + void setStackName(const std::string& stackName); + std::vector getParameters()const; + void setParameters(const std::vector& parameters); + std::string getStackPolicyBody()const; + void setStackPolicyBody(const std::string& stackPolicyBody); + long getTimeoutInMinutes()const; + void setTimeoutInMinutes(long timeoutInMinutes); + std::string getTemplateURL()const; + void setTemplateURL(const std::string& templateURL); + + private: + std::string stackPolicyURL_; + std::string regionId_; + std::string clientToken_; + std::string templateBody_; + bool disableRollback_; + std::string stackName_; + std::vector parameters_; + std::string stackPolicyBody_; + long timeoutInMinutes_; + std::string templateURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_PREVIEWSTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/PreviewStackResult.h b/ros/include/alibabacloud/ros/model/PreviewStackResult.h new file mode 100644 index 000000000..d44cf105c --- /dev/null +++ b/ros/include/alibabacloud/ros/model/PreviewStackResult.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_ROS_MODEL_PREVIEWSTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_PREVIEWSTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT PreviewStackResult : public ServiceResult + { + public: + + + PreviewStackResult(); + explicit PreviewStackResult(const std::string &payload); + ~PreviewStackResult(); + std::string getStack()const; + + protected: + void parse(const std::string &payload); + private: + std::string stack_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_PREVIEWSTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/SetStackPolicyRequest.h b/ros/include/alibabacloud/ros/model/SetStackPolicyRequest.h new file mode 100644 index 000000000..6490bd6bb --- /dev/null +++ b/ros/include/alibabacloud/ros/model/SetStackPolicyRequest.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_ROS_MODEL_SETSTACKPOLICYREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_SETSTACKPOLICYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT SetStackPolicyRequest : public RpcServiceRequest + { + + public: + SetStackPolicyRequest(); + ~SetStackPolicyRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getStackPolicyURL()const; + void setStackPolicyURL(const std::string& stackPolicyURL); + std::string getStackId()const; + void setStackId(const std::string& stackId); + std::string getStackPolicyBody()const; + void setStackPolicyBody(const std::string& stackPolicyBody); + + private: + std::string regionId_; + std::string stackPolicyURL_; + std::string stackId_; + std::string stackPolicyBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_SETSTACKPOLICYREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/SetStackPolicyResult.h b/ros/include/alibabacloud/ros/model/SetStackPolicyResult.h new file mode 100644 index 000000000..2e17e4df3 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/SetStackPolicyResult.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_ROS_MODEL_SETSTACKPOLICYRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_SETSTACKPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT SetStackPolicyResult : public ServiceResult + { + public: + + + SetStackPolicyResult(); + explicit SetStackPolicyResult(const std::string &payload); + ~SetStackPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_SETSTACKPOLICYRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/SignalResourceRequest.h b/ros/include/alibabacloud/ros/model/SignalResourceRequest.h new file mode 100644 index 000000000..e3f3cf988 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/SignalResourceRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ROS_MODEL_SIGNALRESOURCEREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_SIGNALRESOURCEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT SignalResourceRequest : public RpcServiceRequest + { + + public: + SignalResourceRequest(); + ~SignalResourceRequest(); + + std::string getData()const; + void setData(const std::string& data); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getStackId()const; + void setStackId(const std::string& stackId); + std::string getLogicalResourceId()const; + void setLogicalResourceId(const std::string& logicalResourceId); + std::string getUniqueId()const; + void setUniqueId(const std::string& uniqueId); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string data_; + std::string regionId_; + std::string clientToken_; + std::string stackId_; + std::string logicalResourceId_; + std::string uniqueId_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_SIGNALRESOURCEREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/SignalResourceResult.h b/ros/include/alibabacloud/ros/model/SignalResourceResult.h new file mode 100644 index 000000000..273a85fdd --- /dev/null +++ b/ros/include/alibabacloud/ros/model/SignalResourceResult.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_ROS_MODEL_SIGNALRESOURCERESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_SIGNALRESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT SignalResourceResult : public ServiceResult + { + public: + + + SignalResourceResult(); + explicit SignalResourceResult(const std::string &payload); + ~SignalResourceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_SIGNALRESOURCERESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/UpdateStackRequest.h b/ros/include/alibabacloud/ros/model/UpdateStackRequest.h new file mode 100644 index 000000000..30e83bb41 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/UpdateStackRequest.h @@ -0,0 +1,95 @@ +/* + * 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_ROS_MODEL_UPDATESTACKREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_UPDATESTACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT UpdateStackRequest : public RpcServiceRequest + { + struct Parameters + { + std::string parameterValue; + std::string parameterKey; + }; + + public: + UpdateStackRequest(); + ~UpdateStackRequest(); + + std::string getStackPolicyDuringUpdateURL()const; + void setStackPolicyDuringUpdateURL(const std::string& stackPolicyDuringUpdateURL); + std::string getClientToken()const; + void setClientToken(const std::string& clientToken); + std::string getTemplateBody()const; + void setTemplateBody(const std::string& templateBody); + std::string getStackId()const; + void setStackId(const std::string& stackId); + bool getDisableRollback()const; + void setDisableRollback(bool disableRollback); + bool getEnableRecover()const; + void setEnableRecover(bool enableRecover); + std::string getUpdateAllowPolicy()const; + void setUpdateAllowPolicy(const std::string& updateAllowPolicy); + long getTimeoutInMinutes()const; + void setTimeoutInMinutes(long timeoutInMinutes); + bool getUsePreviousParameters()const; + void setUsePreviousParameters(bool usePreviousParameters); + std::string getTemplateURL()const; + void setTemplateURL(const std::string& templateURL); + std::string getStackPolicyDuringUpdateBody()const; + void setStackPolicyDuringUpdateBody(const std::string& stackPolicyDuringUpdateBody); + std::string getStackPolicyURL()const; + void setStackPolicyURL(const std::string& stackPolicyURL); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getParameters()const; + void setParameters(const std::vector& parameters); + std::string getStackPolicyBody()const; + void setStackPolicyBody(const std::string& stackPolicyBody); + + private: + std::string stackPolicyDuringUpdateURL_; + std::string clientToken_; + std::string templateBody_; + std::string stackId_; + bool disableRollback_; + bool enableRecover_; + std::string updateAllowPolicy_; + long timeoutInMinutes_; + bool usePreviousParameters_; + std::string templateURL_; + std::string stackPolicyDuringUpdateBody_; + std::string stackPolicyURL_; + std::string regionId_; + std::vector parameters_; + std::string stackPolicyBody_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_UPDATESTACKREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/UpdateStackResult.h b/ros/include/alibabacloud/ros/model/UpdateStackResult.h new file mode 100644 index 000000000..2c179a630 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/UpdateStackResult.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_ROS_MODEL_UPDATESTACKRESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_UPDATESTACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT UpdateStackResult : public ServiceResult + { + public: + + + UpdateStackResult(); + explicit UpdateStackResult(const std::string &payload); + ~UpdateStackResult(); + std::string getStackId()const; + + protected: + void parse(const std::string &payload); + private: + std::string stackId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_UPDATESTACKRESULT_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ValidateTemplateRequest.h b/ros/include/alibabacloud/ros/model/ValidateTemplateRequest.h new file mode 100644 index 000000000..71d1ebbc4 --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ValidateTemplateRequest.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_ROS_MODEL_VALIDATETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ROS_MODEL_VALIDATETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ValidateTemplateRequest : public RpcServiceRequest + { + + public: + ValidateTemplateRequest(); + ~ValidateTemplateRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getTemplateBody()const; + void setTemplateBody(const std::string& templateBody); + std::string getTemplateURL()const; + void setTemplateURL(const std::string& templateURL); + + private: + std::string regionId_; + std::string templateBody_; + std::string templateURL_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_VALIDATETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/ros/include/alibabacloud/ros/model/ValidateTemplateResult.h b/ros/include/alibabacloud/ros/model/ValidateTemplateResult.h new file mode 100644 index 000000000..a2e4f61eb --- /dev/null +++ b/ros/include/alibabacloud/ros/model/ValidateTemplateResult.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_ROS_MODEL_VALIDATETEMPLATERESULT_H_ +#define ALIBABACLOUD_ROS_MODEL_VALIDATETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace ROS + { + namespace Model + { + class ALIBABACLOUD_ROS_EXPORT ValidateTemplateResult : public ServiceResult + { + public: + + + ValidateTemplateResult(); + explicit ValidateTemplateResult(const std::string &payload); + ~ValidateTemplateResult(); + std::vector getParameters()const; + std::string getDescription()const; + + protected: + void parse(const std::string &payload); + private: + std::vector parameters_; + std::string description_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ROS_MODEL_VALIDATETEMPLATERESULT_H_ \ No newline at end of file diff --git a/ros/src/ROSClient.cc b/ros/src/ROSClient.cc new file mode 100644 index 000000000..645be34f7 --- /dev/null +++ b/ros/src/ROSClient.cc @@ -0,0 +1,989 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +namespace +{ + const std::string SERVICE_NAME = "ROS"; +} + +ROSClient::ROSClient(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, "ROS"); +} + +ROSClient::ROSClient(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, "ROS"); +} + +ROSClient::ROSClient(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, "ROS"); +} + +ROSClient::~ROSClient() +{} + +ROSClient::ListStacksOutcome ROSClient::listStacks(const ListStacksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStacksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStacksOutcome(ListStacksResult(outcome.result())); + else + return ListStacksOutcome(outcome.error()); +} + +void ROSClient::listStacksAsync(const ListStacksRequest& request, const ListStacksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStacks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ListStacksOutcomeCallable ROSClient::listStacksCallable(const ListStacksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStacks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetChangeSetOutcome ROSClient::getChangeSet(const GetChangeSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetChangeSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetChangeSetOutcome(GetChangeSetResult(outcome.result())); + else + return GetChangeSetOutcome(outcome.error()); +} + +void ROSClient::getChangeSetAsync(const GetChangeSetRequest& request, const GetChangeSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getChangeSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetChangeSetOutcomeCallable ROSClient::getChangeSetCallable(const GetChangeSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getChangeSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ValidateTemplateOutcome ROSClient::validateTemplate(const ValidateTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ValidateTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ValidateTemplateOutcome(ValidateTemplateResult(outcome.result())); + else + return ValidateTemplateOutcome(outcome.error()); +} + +void ROSClient::validateTemplateAsync(const ValidateTemplateRequest& request, const ValidateTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, validateTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ValidateTemplateOutcomeCallable ROSClient::validateTemplateCallable(const ValidateTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->validateTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::UpdateStackOutcome ROSClient::updateStack(const UpdateStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateStackOutcome(UpdateStackResult(outcome.result())); + else + return UpdateStackOutcome(outcome.error()); +} + +void ROSClient::updateStackAsync(const UpdateStackRequest& request, const UpdateStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::UpdateStackOutcomeCallable ROSClient::updateStackCallable(const UpdateStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetStackResourceOutcome ROSClient::getStackResource(const GetStackResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStackResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStackResourceOutcome(GetStackResourceResult(outcome.result())); + else + return GetStackResourceOutcome(outcome.error()); +} + +void ROSClient::getStackResourceAsync(const GetStackResourceRequest& request, const GetStackResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStackResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetStackResourceOutcomeCallable ROSClient::getStackResourceCallable(const GetStackResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStackResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ListResourceTypesOutcome ROSClient::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 ROSClient::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)); +} + +ROSClient::ListResourceTypesOutcomeCallable ROSClient::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(); +} + +ROSClient::DescribeRegionsOutcome ROSClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void ROSClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::DescribeRegionsOutcomeCallable ROSClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetResourceTypeTemplateOutcome ROSClient::getResourceTypeTemplate(const GetResourceTypeTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceTypeTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceTypeTemplateOutcome(GetResourceTypeTemplateResult(outcome.result())); + else + return GetResourceTypeTemplateOutcome(outcome.error()); +} + +void ROSClient::getResourceTypeTemplateAsync(const GetResourceTypeTemplateRequest& request, const GetResourceTypeTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceTypeTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetResourceTypeTemplateOutcomeCallable ROSClient::getResourceTypeTemplateCallable(const GetResourceTypeTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceTypeTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::CreateStackOutcome ROSClient::createStack(const CreateStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateStackOutcome(CreateStackResult(outcome.result())); + else + return CreateStackOutcome(outcome.error()); +} + +void ROSClient::createStackAsync(const CreateStackRequest& request, const CreateStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::CreateStackOutcomeCallable ROSClient::createStackCallable(const CreateStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::DeleteStackOutcome ROSClient::deleteStack(const DeleteStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteStackOutcome(DeleteStackResult(outcome.result())); + else + return DeleteStackOutcome(outcome.error()); +} + +void ROSClient::deleteStackAsync(const DeleteStackRequest& request, const DeleteStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::DeleteStackOutcomeCallable ROSClient::deleteStackCallable(const DeleteStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetTemplateEstimateCostOutcome ROSClient::getTemplateEstimateCost(const GetTemplateEstimateCostRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTemplateEstimateCostOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTemplateEstimateCostOutcome(GetTemplateEstimateCostResult(outcome.result())); + else + return GetTemplateEstimateCostOutcome(outcome.error()); +} + +void ROSClient::getTemplateEstimateCostAsync(const GetTemplateEstimateCostRequest& request, const GetTemplateEstimateCostAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTemplateEstimateCost(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetTemplateEstimateCostOutcomeCallable ROSClient::getTemplateEstimateCostCallable(const GetTemplateEstimateCostRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTemplateEstimateCost(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ContinueCreateStackOutcome ROSClient::continueCreateStack(const ContinueCreateStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ContinueCreateStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ContinueCreateStackOutcome(ContinueCreateStackResult(outcome.result())); + else + return ContinueCreateStackOutcome(outcome.error()); +} + +void ROSClient::continueCreateStackAsync(const ContinueCreateStackRequest& request, const ContinueCreateStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, continueCreateStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ContinueCreateStackOutcomeCallable ROSClient::continueCreateStackCallable(const ContinueCreateStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->continueCreateStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetResourceTypeOutcome ROSClient::getResourceType(const GetResourceTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetResourceTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetResourceTypeOutcome(GetResourceTypeResult(outcome.result())); + else + return GetResourceTypeOutcome(outcome.error()); +} + +void ROSClient::getResourceTypeAsync(const GetResourceTypeRequest& request, const GetResourceTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getResourceType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetResourceTypeOutcomeCallable ROSClient::getResourceTypeCallable(const GetResourceTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getResourceType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::DeleteChangeSetOutcome ROSClient::deleteChangeSet(const DeleteChangeSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteChangeSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteChangeSetOutcome(DeleteChangeSetResult(outcome.result())); + else + return DeleteChangeSetOutcome(outcome.error()); +} + +void ROSClient::deleteChangeSetAsync(const DeleteChangeSetRequest& request, const DeleteChangeSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteChangeSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::DeleteChangeSetOutcomeCallable ROSClient::deleteChangeSetCallable(const DeleteChangeSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteChangeSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::PreviewStackOutcome ROSClient::previewStack(const PreviewStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PreviewStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PreviewStackOutcome(PreviewStackResult(outcome.result())); + else + return PreviewStackOutcome(outcome.error()); +} + +void ROSClient::previewStackAsync(const PreviewStackRequest& request, const PreviewStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, previewStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::PreviewStackOutcomeCallable ROSClient::previewStackCallable(const PreviewStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->previewStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::SignalResourceOutcome ROSClient::signalResource(const SignalResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SignalResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SignalResourceOutcome(SignalResourceResult(outcome.result())); + else + return SignalResourceOutcome(outcome.error()); +} + +void ROSClient::signalResourceAsync(const SignalResourceRequest& request, const SignalResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, signalResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::SignalResourceOutcomeCallable ROSClient::signalResourceCallable(const SignalResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->signalResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ExecuteChangeSetOutcome ROSClient::executeChangeSet(const ExecuteChangeSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ExecuteChangeSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ExecuteChangeSetOutcome(ExecuteChangeSetResult(outcome.result())); + else + return ExecuteChangeSetOutcome(outcome.error()); +} + +void ROSClient::executeChangeSetAsync(const ExecuteChangeSetRequest& request, const ExecuteChangeSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, executeChangeSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ExecuteChangeSetOutcomeCallable ROSClient::executeChangeSetCallable(const ExecuteChangeSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->executeChangeSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::SetStackPolicyOutcome ROSClient::setStackPolicy(const SetStackPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetStackPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetStackPolicyOutcome(SetStackPolicyResult(outcome.result())); + else + return SetStackPolicyOutcome(outcome.error()); +} + +void ROSClient::setStackPolicyAsync(const SetStackPolicyRequest& request, const SetStackPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setStackPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::SetStackPolicyOutcomeCallable ROSClient::setStackPolicyCallable(const SetStackPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setStackPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::CreateChangeSetOutcome ROSClient::createChangeSet(const CreateChangeSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateChangeSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateChangeSetOutcome(CreateChangeSetResult(outcome.result())); + else + return CreateChangeSetOutcome(outcome.error()); +} + +void ROSClient::createChangeSetAsync(const CreateChangeSetRequest& request, const CreateChangeSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createChangeSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::CreateChangeSetOutcomeCallable ROSClient::createChangeSetCallable(const CreateChangeSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createChangeSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetTemplateOutcome ROSClient::getTemplate(const GetTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTemplateOutcome(GetTemplateResult(outcome.result())); + else + return GetTemplateOutcome(outcome.error()); +} + +void ROSClient::getTemplateAsync(const GetTemplateRequest& request, const GetTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetTemplateOutcomeCallable ROSClient::getTemplateCallable(const GetTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ListStackEventsOutcome ROSClient::listStackEvents(const ListStackEventsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStackEventsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStackEventsOutcome(ListStackEventsResult(outcome.result())); + else + return ListStackEventsOutcome(outcome.error()); +} + +void ROSClient::listStackEventsAsync(const ListStackEventsRequest& request, const ListStackEventsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStackEvents(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ListStackEventsOutcomeCallable ROSClient::listStackEventsCallable(const ListStackEventsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStackEvents(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetStackOutcome ROSClient::getStack(const GetStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStackOutcome(GetStackResult(outcome.result())); + else + return GetStackOutcome(outcome.error()); +} + +void ROSClient::getStackAsync(const GetStackRequest& request, const GetStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetStackOutcomeCallable ROSClient::getStackCallable(const GetStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::GetStackPolicyOutcome ROSClient::getStackPolicy(const GetStackPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetStackPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetStackPolicyOutcome(GetStackPolicyResult(outcome.result())); + else + return GetStackPolicyOutcome(outcome.error()); +} + +void ROSClient::getStackPolicyAsync(const GetStackPolicyRequest& request, const GetStackPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getStackPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::GetStackPolicyOutcomeCallable ROSClient::getStackPolicyCallable(const GetStackPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getStackPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::CancelUpdateStackOutcome ROSClient::cancelUpdateStack(const CancelUpdateStackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CancelUpdateStackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CancelUpdateStackOutcome(CancelUpdateStackResult(outcome.result())); + else + return CancelUpdateStackOutcome(outcome.error()); +} + +void ROSClient::cancelUpdateStackAsync(const CancelUpdateStackRequest& request, const CancelUpdateStackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, cancelUpdateStack(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::CancelUpdateStackOutcomeCallable ROSClient::cancelUpdateStackCallable(const CancelUpdateStackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->cancelUpdateStack(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ListStackResourcesOutcome ROSClient::listStackResources(const ListStackResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListStackResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListStackResourcesOutcome(ListStackResourcesResult(outcome.result())); + else + return ListStackResourcesOutcome(outcome.error()); +} + +void ROSClient::listStackResourcesAsync(const ListStackResourcesRequest& request, const ListStackResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listStackResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ListStackResourcesOutcomeCallable ROSClient::listStackResourcesCallable(const ListStackResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listStackResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ROSClient::ListChangeSetsOutcome ROSClient::listChangeSets(const ListChangeSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListChangeSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListChangeSetsOutcome(ListChangeSetsResult(outcome.result())); + else + return ListChangeSetsOutcome(outcome.error()); +} + +void ROSClient::listChangeSetsAsync(const ListChangeSetsRequest& request, const ListChangeSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listChangeSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ROSClient::ListChangeSetsOutcomeCallable ROSClient::listChangeSetsCallable(const ListChangeSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listChangeSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/ros/src/model/CancelUpdateStackRequest.cc b/ros/src/model/CancelUpdateStackRequest.cc new file mode 100644 index 000000000..fd412d03a --- /dev/null +++ b/ros/src/model/CancelUpdateStackRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::CancelUpdateStackRequest; + +CancelUpdateStackRequest::CancelUpdateStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "CancelUpdateStack") +{} + +CancelUpdateStackRequest::~CancelUpdateStackRequest() +{} + +std::string CancelUpdateStackRequest::getCancelType()const +{ + return cancelType_; +} + +void CancelUpdateStackRequest::setCancelType(const std::string& cancelType) +{ + cancelType_ = cancelType; + setCoreParameter("CancelType", cancelType); +} + +std::string CancelUpdateStackRequest::getRegionId()const +{ + return regionId_; +} + +void CancelUpdateStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CancelUpdateStackRequest::getStackId()const +{ + return stackId_; +} + +void CancelUpdateStackRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + diff --git a/ros/src/model/CancelUpdateStackResult.cc b/ros/src/model/CancelUpdateStackResult.cc new file mode 100644 index 000000000..ee5028e25 --- /dev/null +++ b/ros/src/model/CancelUpdateStackResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +CancelUpdateStackResult::CancelUpdateStackResult() : + ServiceResult() +{} + +CancelUpdateStackResult::CancelUpdateStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CancelUpdateStackResult::~CancelUpdateStackResult() +{} + +void CancelUpdateStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ros/src/model/ContinueCreateStackRequest.cc b/ros/src/model/ContinueCreateStackRequest.cc new file mode 100644 index 000000000..7258a51fc --- /dev/null +++ b/ros/src/model/ContinueCreateStackRequest.cc @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::ContinueCreateStackRequest; + +ContinueCreateStackRequest::ContinueCreateStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "ContinueCreateStack") +{} + +ContinueCreateStackRequest::~ContinueCreateStackRequest() +{} + +std::string ContinueCreateStackRequest::getRegionId()const +{ + return regionId_; +} + +void ContinueCreateStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ContinueCreateStackRequest::getStackId()const +{ + return stackId_; +} + +void ContinueCreateStackRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +std::vector ContinueCreateStackRequest::getRecreatingResources()const +{ + return recreatingResources_; +} + +void ContinueCreateStackRequest::setRecreatingResources(const std::vector& recreatingResources) +{ + recreatingResources_ = recreatingResources; + for(int i = 0; i!= recreatingResources.size(); i++) + setCoreParameter("RecreatingResources."+ std::to_string(i), recreatingResources.at(i)); +} + diff --git a/ros/src/model/ContinueCreateStackResult.cc b/ros/src/model/ContinueCreateStackResult.cc new file mode 100644 index 000000000..5321f133b --- /dev/null +++ b/ros/src/model/ContinueCreateStackResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +ContinueCreateStackResult::ContinueCreateStackResult() : + ServiceResult() +{} + +ContinueCreateStackResult::ContinueCreateStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ContinueCreateStackResult::~ContinueCreateStackResult() +{} + +void ContinueCreateStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + +} + +std::string ContinueCreateStackResult::getStackId()const +{ + return stackId_; +} + diff --git a/ros/src/model/CreateChangeSetRequest.cc b/ros/src/model/CreateChangeSetRequest.cc new file mode 100644 index 000000000..0a1de8d6c --- /dev/null +++ b/ros/src/model/CreateChangeSetRequest.cc @@ -0,0 +1,276 @@ +/* + * 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::ROS::Model::CreateChangeSetRequest; + +CreateChangeSetRequest::CreateChangeSetRequest() : + RpcServiceRequest("ros", "2019-09-10", "CreateChangeSet") +{} + +CreateChangeSetRequest::~CreateChangeSetRequest() +{} + +std::string CreateChangeSetRequest::getStackPolicyDuringUpdateURL()const +{ + return stackPolicyDuringUpdateURL_; +} + +void CreateChangeSetRequest::setStackPolicyDuringUpdateURL(const std::string& stackPolicyDuringUpdateURL) +{ + stackPolicyDuringUpdateURL_ = stackPolicyDuringUpdateURL; + setCoreParameter("StackPolicyDuringUpdateURL", stackPolicyDuringUpdateURL); +} + +std::string CreateChangeSetRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateChangeSetRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateChangeSetRequest::getTemplateBody()const +{ + return templateBody_; +} + +void CreateChangeSetRequest::setTemplateBody(const std::string& templateBody) +{ + templateBody_ = templateBody; + setCoreParameter("TemplateBody", templateBody); +} + +std::string CreateChangeSetRequest::getStackId()const +{ + return stackId_; +} + +void CreateChangeSetRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +std::string CreateChangeSetRequest::getChangeSetType()const +{ + return changeSetType_; +} + +void CreateChangeSetRequest::setChangeSetType(const std::string& changeSetType) +{ + changeSetType_ = changeSetType; + setCoreParameter("ChangeSetType", changeSetType); +} + +std::string CreateChangeSetRequest::getDescription()const +{ + return description_; +} + +void CreateChangeSetRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +bool CreateChangeSetRequest::getDisableRollback()const +{ + return disableRollback_; +} + +void CreateChangeSetRequest::setDisableRollback(bool disableRollback) +{ + disableRollback_ = disableRollback; + setCoreParameter("DisableRollback", disableRollback ? "true" : "false"); +} + +std::string CreateChangeSetRequest::getUpdateAllowPolicy()const +{ + return updateAllowPolicy_; +} + +void CreateChangeSetRequest::setUpdateAllowPolicy(const std::string& updateAllowPolicy) +{ + updateAllowPolicy_ = updateAllowPolicy; + setCoreParameter("UpdateAllowPolicy", updateAllowPolicy); +} + +long CreateChangeSetRequest::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + +void CreateChangeSetRequest::setTimeoutInMinutes(long timeoutInMinutes) +{ + timeoutInMinutes_ = timeoutInMinutes; + setCoreParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes)); +} + +bool CreateChangeSetRequest::getUsePreviousParameters()const +{ + return usePreviousParameters_; +} + +void CreateChangeSetRequest::setUsePreviousParameters(bool usePreviousParameters) +{ + usePreviousParameters_ = usePreviousParameters; + setCoreParameter("UsePreviousParameters", usePreviousParameters ? "true" : "false"); +} + +std::string CreateChangeSetRequest::getTemplateURL()const +{ + return templateURL_; +} + +void CreateChangeSetRequest::setTemplateURL(const std::string& templateURL) +{ + templateURL_ = templateURL; + setCoreParameter("TemplateURL", templateURL); +} + +std::string CreateChangeSetRequest::getOrderSource()const +{ + return orderSource_; +} + +void CreateChangeSetRequest::setOrderSource(const std::string& orderSource) +{ + orderSource_ = orderSource; + setCoreParameter("OrderSource", orderSource); +} + +std::string CreateChangeSetRequest::getActivityId()const +{ + return activityId_; +} + +void CreateChangeSetRequest::setActivityId(const std::string& activityId) +{ + activityId_ = activityId; + setCoreParameter("ActivityId", activityId); +} + +std::string CreateChangeSetRequest::getStackPolicyDuringUpdateBody()const +{ + return stackPolicyDuringUpdateBody_; +} + +void CreateChangeSetRequest::setStackPolicyDuringUpdateBody(const std::string& stackPolicyDuringUpdateBody) +{ + stackPolicyDuringUpdateBody_ = stackPolicyDuringUpdateBody; + setCoreParameter("StackPolicyDuringUpdateBody", stackPolicyDuringUpdateBody); +} + +std::vector CreateChangeSetRequest::getNotificationURLs()const +{ + return notificationURLs_; +} + +void CreateChangeSetRequest::setNotificationURLs(const std::vector& notificationURLs) +{ + notificationURLs_ = notificationURLs; + for(int i = 0; i!= notificationURLs.size(); i++) + setCoreParameter("NotificationURLs."+ std::to_string(i), notificationURLs.at(i)); +} + +std::string CreateChangeSetRequest::getStackPolicyURL()const +{ + return stackPolicyURL_; +} + +void CreateChangeSetRequest::setStackPolicyURL(const std::string& stackPolicyURL) +{ + stackPolicyURL_ = stackPolicyURL; + setCoreParameter("StackPolicyURL", stackPolicyURL); +} + +std::string CreateChangeSetRequest::getRegionId()const +{ + return regionId_; +} + +void CreateChangeSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateChangeSetRequest::getChangeSetName()const +{ + return changeSetName_; +} + +void CreateChangeSetRequest::setChangeSetName(const std::string& changeSetName) +{ + changeSetName_ = changeSetName; + setCoreParameter("ChangeSetName", changeSetName); +} + +std::string CreateChangeSetRequest::getStackName()const +{ + return stackName_; +} + +void CreateChangeSetRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::vector CreateChangeSetRequest::getParameters()const +{ + return parameters_; +} + +void CreateChangeSetRequest::setParameters(const std::vector& parameters) +{ + parameters_ = parameters; + int i = 0; + for(int i = 0; i!= parameters.size(); i++) { + auto obj = parameters.at(i); + std::string str ="Parameters."+ std::to_string(i); + setCoreParameter(str + ".ParameterValue", obj.parameterValue); + setCoreParameter(str + ".ParameterKey", obj.parameterKey); + } +} + +std::string CreateChangeSetRequest::getStackPolicyBody()const +{ + return stackPolicyBody_; +} + +void CreateChangeSetRequest::setStackPolicyBody(const std::string& stackPolicyBody) +{ + stackPolicyBody_ = stackPolicyBody; + setCoreParameter("StackPolicyBody", stackPolicyBody); +} + +std::string CreateChangeSetRequest::getChannelId()const +{ + return channelId_; +} + +void CreateChangeSetRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); +} + diff --git a/ros/src/model/CreateChangeSetResult.cc b/ros/src/model/CreateChangeSetResult.cc new file mode 100644 index 000000000..659472b1b --- /dev/null +++ b/ros/src/model/CreateChangeSetResult.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 +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +CreateChangeSetResult::CreateChangeSetResult() : + ServiceResult() +{} + +CreateChangeSetResult::CreateChangeSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateChangeSetResult::~CreateChangeSetResult() +{} + +void CreateChangeSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["ChangeSetId"].isNull()) + changeSetId_ = value["ChangeSetId"].asString(); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + +} + +std::string CreateChangeSetResult::getChangeSetId()const +{ + return changeSetId_; +} + +std::string CreateChangeSetResult::getStackId()const +{ + return stackId_; +} + diff --git a/ros/src/model/CreateStackRequest.cc b/ros/src/model/CreateStackRequest.cc new file mode 100644 index 000000000..0fe964c86 --- /dev/null +++ b/ros/src/model/CreateStackRequest.cc @@ -0,0 +1,188 @@ +/* + * 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::ROS::Model::CreateStackRequest; + +CreateStackRequest::CreateStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "CreateStack") +{} + +CreateStackRequest::~CreateStackRequest() +{} + +std::string CreateStackRequest::getClientToken()const +{ + return clientToken_; +} + +void CreateStackRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string CreateStackRequest::getTemplateBody()const +{ + return templateBody_; +} + +void CreateStackRequest::setTemplateBody(const std::string& templateBody) +{ + templateBody_ = templateBody; + setCoreParameter("TemplateBody", templateBody); +} + +bool CreateStackRequest::getDisableRollback()const +{ + return disableRollback_; +} + +void CreateStackRequest::setDisableRollback(bool disableRollback) +{ + disableRollback_ = disableRollback; + setCoreParameter("DisableRollback", disableRollback ? "true" : "false"); +} + +long CreateStackRequest::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + +void CreateStackRequest::setTimeoutInMinutes(long timeoutInMinutes) +{ + timeoutInMinutes_ = timeoutInMinutes; + setCoreParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes)); +} + +std::string CreateStackRequest::getOrderSource()const +{ + return orderSource_; +} + +void CreateStackRequest::setOrderSource(const std::string& orderSource) +{ + orderSource_ = orderSource; + setCoreParameter("OrderSource", orderSource); +} + +std::string CreateStackRequest::getTemplateURL()const +{ + return templateURL_; +} + +void CreateStackRequest::setTemplateURL(const std::string& templateURL) +{ + templateURL_ = templateURL; + setCoreParameter("TemplateURL", templateURL); +} + +std::string CreateStackRequest::getActivityId()const +{ + return activityId_; +} + +void CreateStackRequest::setActivityId(const std::string& activityId) +{ + activityId_ = activityId; + setCoreParameter("ActivityId", activityId); +} + +std::vector CreateStackRequest::getNotificationURLs()const +{ + return notificationURLs_; +} + +void CreateStackRequest::setNotificationURLs(const std::vector& notificationURLs) +{ + notificationURLs_ = notificationURLs; + for(int i = 0; i!= notificationURLs.size(); i++) + setCoreParameter("NotificationURLs."+ std::to_string(i), notificationURLs.at(i)); +} + +std::string CreateStackRequest::getStackPolicyURL()const +{ + return stackPolicyURL_; +} + +void CreateStackRequest::setStackPolicyURL(const std::string& stackPolicyURL) +{ + stackPolicyURL_ = stackPolicyURL; + setCoreParameter("StackPolicyURL", stackPolicyURL); +} + +std::string CreateStackRequest::getRegionId()const +{ + return regionId_; +} + +void CreateStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string CreateStackRequest::getStackName()const +{ + return stackName_; +} + +void CreateStackRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::vector CreateStackRequest::getParameters()const +{ + return parameters_; +} + +void CreateStackRequest::setParameters(const std::vector& parameters) +{ + parameters_ = parameters; + int i = 0; + for(int i = 0; i!= parameters.size(); i++) { + auto obj = parameters.at(i); + std::string str ="Parameters."+ std::to_string(i); + setCoreParameter(str + ".ParameterValue", obj.parameterValue); + setCoreParameter(str + ".ParameterKey", obj.parameterKey); + } +} + +std::string CreateStackRequest::getStackPolicyBody()const +{ + return stackPolicyBody_; +} + +void CreateStackRequest::setStackPolicyBody(const std::string& stackPolicyBody) +{ + stackPolicyBody_ = stackPolicyBody; + setCoreParameter("StackPolicyBody", stackPolicyBody); +} + +std::string CreateStackRequest::getChannelId()const +{ + return channelId_; +} + +void CreateStackRequest::setChannelId(const std::string& channelId) +{ + channelId_ = channelId; + setCoreParameter("ChannelId", channelId); +} + diff --git a/ros/src/model/CreateStackResult.cc b/ros/src/model/CreateStackResult.cc new file mode 100644 index 000000000..0c8f60ed1 --- /dev/null +++ b/ros/src/model/CreateStackResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +CreateStackResult::CreateStackResult() : + ServiceResult() +{} + +CreateStackResult::CreateStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateStackResult::~CreateStackResult() +{} + +void CreateStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + +} + +std::string CreateStackResult::getStackId()const +{ + return stackId_; +} + diff --git a/ros/src/model/DeleteChangeSetRequest.cc b/ros/src/model/DeleteChangeSetRequest.cc new file mode 100644 index 000000000..521077977 --- /dev/null +++ b/ros/src/model/DeleteChangeSetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::ROS::Model::DeleteChangeSetRequest; + +DeleteChangeSetRequest::DeleteChangeSetRequest() : + RpcServiceRequest("ros", "2019-09-10", "DeleteChangeSet") +{} + +DeleteChangeSetRequest::~DeleteChangeSetRequest() +{} + +std::string DeleteChangeSetRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteChangeSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string DeleteChangeSetRequest::getChangeSetId()const +{ + return changeSetId_; +} + +void DeleteChangeSetRequest::setChangeSetId(const std::string& changeSetId) +{ + changeSetId_ = changeSetId; + setCoreParameter("ChangeSetId", changeSetId); +} + diff --git a/ros/src/model/DeleteChangeSetResult.cc b/ros/src/model/DeleteChangeSetResult.cc new file mode 100644 index 000000000..a1f08d633 --- /dev/null +++ b/ros/src/model/DeleteChangeSetResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +DeleteChangeSetResult::DeleteChangeSetResult() : + ServiceResult() +{} + +DeleteChangeSetResult::DeleteChangeSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteChangeSetResult::~DeleteChangeSetResult() +{} + +void DeleteChangeSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ros/src/model/DeleteStackRequest.cc b/ros/src/model/DeleteStackRequest.cc new file mode 100644 index 000000000..bc0225dfb --- /dev/null +++ b/ros/src/model/DeleteStackRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::DeleteStackRequest; + +DeleteStackRequest::DeleteStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "DeleteStack") +{} + +DeleteStackRequest::~DeleteStackRequest() +{} + +std::string DeleteStackRequest::getRegionId()const +{ + return regionId_; +} + +void DeleteStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +bool DeleteStackRequest::getRetainAllResources()const +{ + return retainAllResources_; +} + +void DeleteStackRequest::setRetainAllResources(bool retainAllResources) +{ + retainAllResources_ = retainAllResources; + setCoreParameter("RetainAllResources", retainAllResources ? "true" : "false"); +} + +std::string DeleteStackRequest::getStackId()const +{ + return stackId_; +} + +void DeleteStackRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + diff --git a/ros/src/model/DeleteStackResult.cc b/ros/src/model/DeleteStackResult.cc new file mode 100644 index 000000000..2335246fd --- /dev/null +++ b/ros/src/model/DeleteStackResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +DeleteStackResult::DeleteStackResult() : + ServiceResult() +{} + +DeleteStackResult::DeleteStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteStackResult::~DeleteStackResult() +{} + +void DeleteStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ros/src/model/DescribeRegionsRequest.cc b/ros/src/model/DescribeRegionsRequest.cc new file mode 100644 index 000000000..d1e14028d --- /dev/null +++ b/ros/src/model/DescribeRegionsRequest.cc @@ -0,0 +1,38 @@ +/* + * 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::ROS::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() : + RpcServiceRequest("ros", "2019-09-10", "DescribeRegions") +{} + +DescribeRegionsRequest::~DescribeRegionsRequest() +{} + +std::string DescribeRegionsRequest::getAcceptLanguage()const +{ + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage) +{ + acceptLanguage_ = acceptLanguage; + setCoreParameter("AcceptLanguage", acceptLanguage); +} + diff --git a/ros/src/model/DescribeRegionsResult.cc b/ros/src/model/DescribeRegionsResult.cc new file mode 100644 index 000000000..2df98109d --- /dev/null +++ b/ros/src/model/DescribeRegionsResult.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::ROS; +using namespace AlibabaCloud::ROS::Model; + +DescribeRegionsResult::DescribeRegionsResult() : + ServiceResult() +{} + +DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRegionsResult::~DescribeRegionsResult() +{} + +void DescribeRegionsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allRegions = value["Regions"]["Region"]; + for (auto value : allRegions) + { + Region regionsObject; + if(!value["RegionId"].isNull()) + regionsObject.regionId = value["RegionId"].asString(); + if(!value["LocalName"].isNull()) + regionsObject.localName = value["LocalName"].asString(); + if(!value["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = value["RegionEndpoint"].asString(); + regions_.push_back(regionsObject); + } + +} + +std::vector DescribeRegionsResult::getRegions()const +{ + return regions_; +} + diff --git a/ros/src/model/ExecuteChangeSetRequest.cc b/ros/src/model/ExecuteChangeSetRequest.cc new file mode 100644 index 000000000..0ebe6e467 --- /dev/null +++ b/ros/src/model/ExecuteChangeSetRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::ROS::Model::ExecuteChangeSetRequest; + +ExecuteChangeSetRequest::ExecuteChangeSetRequest() : + RpcServiceRequest("ros", "2019-09-10", "ExecuteChangeSet") +{} + +ExecuteChangeSetRequest::~ExecuteChangeSetRequest() +{} + +std::string ExecuteChangeSetRequest::getRegionId()const +{ + return regionId_; +} + +void ExecuteChangeSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ExecuteChangeSetRequest::getChangeSetId()const +{ + return changeSetId_; +} + +void ExecuteChangeSetRequest::setChangeSetId(const std::string& changeSetId) +{ + changeSetId_ = changeSetId; + setCoreParameter("ChangeSetId", changeSetId); +} + diff --git a/ros/src/model/ExecuteChangeSetResult.cc b/ros/src/model/ExecuteChangeSetResult.cc new file mode 100644 index 000000000..4850d92c4 --- /dev/null +++ b/ros/src/model/ExecuteChangeSetResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +ExecuteChangeSetResult::ExecuteChangeSetResult() : + ServiceResult() +{} + +ExecuteChangeSetResult::ExecuteChangeSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ExecuteChangeSetResult::~ExecuteChangeSetResult() +{} + +void ExecuteChangeSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ros/src/model/GetChangeSetRequest.cc b/ros/src/model/GetChangeSetRequest.cc new file mode 100644 index 000000000..1835f4d37 --- /dev/null +++ b/ros/src/model/GetChangeSetRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::GetChangeSetRequest; + +GetChangeSetRequest::GetChangeSetRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetChangeSet") +{} + +GetChangeSetRequest::~GetChangeSetRequest() +{} + +std::string GetChangeSetRequest::getRegionId()const +{ + return regionId_; +} + +void GetChangeSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetChangeSetRequest::getChangeSetId()const +{ + return changeSetId_; +} + +void GetChangeSetRequest::setChangeSetId(const std::string& changeSetId) +{ + changeSetId_ = changeSetId; + setCoreParameter("ChangeSetId", changeSetId); +} + +bool GetChangeSetRequest::getShowTemplate()const +{ + return showTemplate_; +} + +void GetChangeSetRequest::setShowTemplate(bool showTemplate) +{ + showTemplate_ = showTemplate; + setCoreParameter("ShowTemplate", showTemplate ? "true" : "false"); +} + diff --git a/ros/src/model/GetChangeSetResult.cc b/ros/src/model/GetChangeSetResult.cc new file mode 100644 index 000000000..b7734e943 --- /dev/null +++ b/ros/src/model/GetChangeSetResult.cc @@ -0,0 +1,162 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetChangeSetResult::GetChangeSetResult() : + ServiceResult() +{} + +GetChangeSetResult::GetChangeSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetChangeSetResult::~GetChangeSetResult() +{} + +void GetChangeSetResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allParameters = value["Parameters"]["Parameter"]; + for (auto value : allParameters) + { + Parameter parametersObject; + if(!value["ParameterKey"].isNull()) + parametersObject.parameterKey = value["ParameterKey"].asString(); + if(!value["ParameterValue"].isNull()) + parametersObject.parameterValue = value["ParameterValue"].asString(); + parameters_.push_back(parametersObject); + } + auto allChanges = value["Changes"]["Change"]; + for (const auto &item : allChanges) + changes_.push_back(item.asString()); + if(!value["ChangeSetId"].isNull()) + changeSetId_ = value["ChangeSetId"].asString(); + if(!value["ChangeSetName"].isNull()) + changeSetName_ = value["ChangeSetName"].asString(); + if(!value["ChangeSetType"].isNull()) + changeSetType_ = value["ChangeSetType"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["DisableRollback"].isNull()) + disableRollback_ = value["DisableRollback"].asString() == "true"; + if(!value["ExecutionStatus"].isNull()) + executionStatus_ = value["ExecutionStatus"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + if(!value["StackName"].isNull()) + stackName_ = value["StackName"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["TemplateBody"].isNull()) + templateBody_ = value["TemplateBody"].asString(); + if(!value["TimeoutInMinutes"].isNull()) + timeoutInMinutes_ = std::stoi(value["TimeoutInMinutes"].asString()); + +} + +std::vector GetChangeSetResult::getChanges()const +{ + return changes_; +} + +std::string GetChangeSetResult::getStatus()const +{ + return status_; +} + +std::vector GetChangeSetResult::getParameters()const +{ + return parameters_; +} + +std::string GetChangeSetResult::getDescription()const +{ + return description_; +} + +std::string GetChangeSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetChangeSetResult::getTemplateBody()const +{ + return templateBody_; +} + +std::string GetChangeSetResult::getChangeSetName()const +{ + return changeSetName_; +} + +std::string GetChangeSetResult::getChangeSetId()const +{ + return changeSetId_; +} + +std::string GetChangeSetResult::getExecutionStatus()const +{ + return executionStatus_; +} + +std::string GetChangeSetResult::getChangeSetType()const +{ + return changeSetType_; +} + +std::string GetChangeSetResult::getRegionId()const +{ + return regionId_; +} + +bool GetChangeSetResult::getDisableRollback()const +{ + return disableRollback_; +} + +std::string GetChangeSetResult::getStackName()const +{ + return stackName_; +} + +std::string GetChangeSetResult::getStackId()const +{ + return stackId_; +} + +int GetChangeSetResult::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + diff --git a/ros/src/model/GetResourceTypeRequest.cc b/ros/src/model/GetResourceTypeRequest.cc new file mode 100644 index 000000000..4eac18e7f --- /dev/null +++ b/ros/src/model/GetResourceTypeRequest.cc @@ -0,0 +1,38 @@ +/* + * 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::ROS::Model::GetResourceTypeRequest; + +GetResourceTypeRequest::GetResourceTypeRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetResourceType") +{} + +GetResourceTypeRequest::~GetResourceTypeRequest() +{} + +std::string GetResourceTypeRequest::getResourceType()const +{ + return resourceType_; +} + +void GetResourceTypeRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/ros/src/model/GetResourceTypeResult.cc b/ros/src/model/GetResourceTypeResult.cc new file mode 100644 index 000000000..f39cacaa6 --- /dev/null +++ b/ros/src/model/GetResourceTypeResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetResourceTypeResult::GetResourceTypeResult() : + ServiceResult() +{} + +GetResourceTypeResult::GetResourceTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceTypeResult::~GetResourceTypeResult() +{} + +void GetResourceTypeResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Attributes"].isNull()) + attributes_ = value["Attributes"].asString(); + if(!value["Properties"].isNull()) + properties_ = value["Properties"].asString(); + if(!value["ResourceType"].isNull()) + resourceType_ = value["ResourceType"].asString(); + +} + +std::string GetResourceTypeResult::getAttributes()const +{ + return attributes_; +} + +std::string GetResourceTypeResult::getResourceType()const +{ + return resourceType_; +} + +std::string GetResourceTypeResult::getProperties()const +{ + return properties_; +} + diff --git a/ros/src/model/GetResourceTypeTemplateRequest.cc b/ros/src/model/GetResourceTypeTemplateRequest.cc new file mode 100644 index 000000000..cbf700a9d --- /dev/null +++ b/ros/src/model/GetResourceTypeTemplateRequest.cc @@ -0,0 +1,38 @@ +/* + * 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::ROS::Model::GetResourceTypeTemplateRequest; + +GetResourceTypeTemplateRequest::GetResourceTypeTemplateRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetResourceTypeTemplate") +{} + +GetResourceTypeTemplateRequest::~GetResourceTypeTemplateRequest() +{} + +std::string GetResourceTypeTemplateRequest::getResourceType()const +{ + return resourceType_; +} + +void GetResourceTypeTemplateRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setCoreParameter("ResourceType", resourceType); +} + diff --git a/ros/src/model/GetResourceTypeTemplateResult.cc b/ros/src/model/GetResourceTypeTemplateResult.cc new file mode 100644 index 000000000..17abee461 --- /dev/null +++ b/ros/src/model/GetResourceTypeTemplateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetResourceTypeTemplateResult::GetResourceTypeTemplateResult() : + ServiceResult() +{} + +GetResourceTypeTemplateResult::GetResourceTypeTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetResourceTypeTemplateResult::~GetResourceTypeTemplateResult() +{} + +void GetResourceTypeTemplateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TemplateBody"].isNull()) + templateBody_ = value["TemplateBody"].asString(); + +} + +std::string GetResourceTypeTemplateResult::getTemplateBody()const +{ + return templateBody_; +} + diff --git a/ros/src/model/GetStackPolicyRequest.cc b/ros/src/model/GetStackPolicyRequest.cc new file mode 100644 index 000000000..df2a17dc9 --- /dev/null +++ b/ros/src/model/GetStackPolicyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::ROS::Model::GetStackPolicyRequest; + +GetStackPolicyRequest::GetStackPolicyRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetStackPolicy") +{} + +GetStackPolicyRequest::~GetStackPolicyRequest() +{} + +std::string GetStackPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void GetStackPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetStackPolicyRequest::getStackId()const +{ + return stackId_; +} + +void GetStackPolicyRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + diff --git a/ros/src/model/GetStackPolicyResult.cc b/ros/src/model/GetStackPolicyResult.cc new file mode 100644 index 000000000..fabe2a089 --- /dev/null +++ b/ros/src/model/GetStackPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetStackPolicyResult::GetStackPolicyResult() : + ServiceResult() +{} + +GetStackPolicyResult::GetStackPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStackPolicyResult::~GetStackPolicyResult() +{} + +void GetStackPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["StackPolicyBody"].isNull()) + stackPolicyBody_ = value["StackPolicyBody"].asString(); + +} + +std::string GetStackPolicyResult::getStackPolicyBody()const +{ + return stackPolicyBody_; +} + diff --git a/ros/src/model/GetStackRequest.cc b/ros/src/model/GetStackRequest.cc new file mode 100644 index 000000000..22e5a348d --- /dev/null +++ b/ros/src/model/GetStackRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::GetStackRequest; + +GetStackRequest::GetStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetStack") +{} + +GetStackRequest::~GetStackRequest() +{} + +std::string GetStackRequest::getRegionId()const +{ + return regionId_; +} + +void GetStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetStackRequest::getClientToken()const +{ + return clientToken_; +} + +void GetStackRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string GetStackRequest::getStackId()const +{ + return stackId_; +} + +void GetStackRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + diff --git a/ros/src/model/GetStackResourceRequest.cc b/ros/src/model/GetStackResourceRequest.cc new file mode 100644 index 000000000..b146af8a9 --- /dev/null +++ b/ros/src/model/GetStackResourceRequest.cc @@ -0,0 +1,82 @@ +/* + * 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::ROS::Model::GetStackResourceRequest; + +GetStackResourceRequest::GetStackResourceRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetStackResource") +{} + +GetStackResourceRequest::~GetStackResourceRequest() +{} + +std::string GetStackResourceRequest::getClientToken()const +{ + return clientToken_; +} + +void GetStackResourceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string GetStackResourceRequest::getRegionId()const +{ + return regionId_; +} + +void GetStackResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetStackResourceRequest::getStackId()const +{ + return stackId_; +} + +void GetStackResourceRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +std::string GetStackResourceRequest::getLogicalResourceId()const +{ + return logicalResourceId_; +} + +void GetStackResourceRequest::setLogicalResourceId(const std::string& logicalResourceId) +{ + logicalResourceId_ = logicalResourceId; + setCoreParameter("LogicalResourceId", logicalResourceId); +} + +bool GetStackResourceRequest::getShowResourceAttributes()const +{ + return showResourceAttributes_; +} + +void GetStackResourceRequest::setShowResourceAttributes(bool showResourceAttributes) +{ + showResourceAttributes_ = showResourceAttributes; + setCoreParameter("ShowResourceAttributes", showResourceAttributes ? "true" : "false"); +} + diff --git a/ros/src/model/GetStackResourceResult.cc b/ros/src/model/GetStackResourceResult.cc new file mode 100644 index 000000000..5ac81d205 --- /dev/null +++ b/ros/src/model/GetStackResourceResult.cc @@ -0,0 +1,133 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetStackResourceResult::GetStackResourceResult() : + ServiceResult() +{} + +GetStackResourceResult::GetStackResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStackResourceResult::~GetStackResourceResult() +{} + +void GetStackResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allResourceAttributes = value["ResourceAttributes"]["ResourceAttribute"]; + for (const auto &item : allResourceAttributes) + resourceAttributes_.push_back(item.asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["LogicalResourceId"].isNull()) + logicalResourceId_ = value["LogicalResourceId"].asString(); + if(!value["Metadata"].isNull()) + metadata_ = value["Metadata"].asString(); + if(!value["PhysicalResourceId"].isNull()) + physicalResourceId_ = value["PhysicalResourceId"].asString(); + if(!value["ResourceType"].isNull()) + resourceType_ = value["ResourceType"].asString(); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + if(!value["StackName"].isNull()) + stackName_ = value["StackName"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["StatusReason"].isNull()) + statusReason_ = value["StatusReason"].asString(); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + +} + +std::string GetStackResourceResult::getStatus()const +{ + return status_; +} + +std::string GetStackResourceResult::getLogicalResourceId()const +{ + return logicalResourceId_; +} + +std::string GetStackResourceResult::getDescription()const +{ + return description_; +} + +std::string GetStackResourceResult::getPhysicalResourceId()const +{ + return physicalResourceId_; +} + +std::string GetStackResourceResult::getStatusReason()const +{ + return statusReason_; +} + +std::string GetStackResourceResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetStackResourceResult::getMetadata()const +{ + return metadata_; +} + +std::string GetStackResourceResult::getUpdateTime()const +{ + return updateTime_; +} + +std::string GetStackResourceResult::getResourceType()const +{ + return resourceType_; +} + +std::vector GetStackResourceResult::getResourceAttributes()const +{ + return resourceAttributes_; +} + +std::string GetStackResourceResult::getStackName()const +{ + return stackName_; +} + +std::string GetStackResourceResult::getStackId()const +{ + return stackId_; +} + diff --git a/ros/src/model/GetStackResult.cc b/ros/src/model/GetStackResult.cc new file mode 100644 index 000000000..bcfeecbeb --- /dev/null +++ b/ros/src/model/GetStackResult.cc @@ -0,0 +1,163 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetStackResult::GetStackResult() : + ServiceResult() +{} + +GetStackResult::GetStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetStackResult::~GetStackResult() +{} + +void GetStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allParameters = value["Parameters"]["Parameter"]; + for (auto value : allParameters) + { + Parameter parametersObject; + if(!value["ParameterKey"].isNull()) + parametersObject.parameterKey = value["ParameterKey"].asString(); + if(!value["ParameterValue"].isNull()) + parametersObject.parameterValue = value["ParameterValue"].asString(); + parameters_.push_back(parametersObject); + } + auto allOutputs = value["Outputs"]["Output"]; + for (const auto &item : allOutputs) + outputs_.push_back(item.asString()); + auto allNotificationURLs = value["NotificationURLs"]["NotificationURL"]; + for (const auto &item : allNotificationURLs) + notificationURLs_.push_back(item.asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["DisableRollback"].isNull()) + disableRollback_ = value["DisableRollback"].asString() == "true"; + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + if(!value["StackName"].isNull()) + stackName_ = value["StackName"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["StatusReason"].isNull()) + statusReason_ = value["StatusReason"].asString(); + if(!value["TemplateDescription"].isNull()) + templateDescription_ = value["TemplateDescription"].asString(); + if(!value["TimeoutInMinutes"].isNull()) + timeoutInMinutes_ = std::stoi(value["TimeoutInMinutes"].asString()); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + if(!value["ParentStackId"].isNull()) + parentStackId_ = value["ParentStackId"].asString(); + +} + +std::string GetStackResult::getStatus()const +{ + return status_; +} + +std::vector GetStackResult::getParameters()const +{ + return parameters_; +} + +std::string GetStackResult::getDescription()const +{ + return description_; +} + +std::string GetStackResult::getStatusReason()const +{ + return statusReason_; +} + +std::string GetStackResult::getParentStackId()const +{ + return parentStackId_; +} + +std::string GetStackResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetStackResult::getTemplateDescription()const +{ + return templateDescription_; +} + +std::vector GetStackResult::getOutputs()const +{ + return outputs_; +} + +std::string GetStackResult::getUpdateTime()const +{ + return updateTime_; +} + +std::string GetStackResult::getRegionId()const +{ + return regionId_; +} + +std::vector GetStackResult::getNotificationURLs()const +{ + return notificationURLs_; +} + +bool GetStackResult::getDisableRollback()const +{ + return disableRollback_; +} + +std::string GetStackResult::getStackName()const +{ + return stackName_; +} + +std::string GetStackResult::getStackId()const +{ + return stackId_; +} + +int GetStackResult::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + diff --git a/ros/src/model/GetTemplateEstimateCostRequest.cc b/ros/src/model/GetTemplateEstimateCostRequest.cc new file mode 100644 index 000000000..44c364176 --- /dev/null +++ b/ros/src/model/GetTemplateEstimateCostRequest.cc @@ -0,0 +1,88 @@ +/* + * 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::ROS::Model::GetTemplateEstimateCostRequest; + +GetTemplateEstimateCostRequest::GetTemplateEstimateCostRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetTemplateEstimateCost") +{} + +GetTemplateEstimateCostRequest::~GetTemplateEstimateCostRequest() +{} + +std::string GetTemplateEstimateCostRequest::getRegionId()const +{ + return regionId_; +} + +void GetTemplateEstimateCostRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetTemplateEstimateCostRequest::getClientToken()const +{ + return clientToken_; +} + +void GetTemplateEstimateCostRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string GetTemplateEstimateCostRequest::getTemplateBody()const +{ + return templateBody_; +} + +void GetTemplateEstimateCostRequest::setTemplateBody(const std::string& templateBody) +{ + templateBody_ = templateBody; + setCoreParameter("TemplateBody", templateBody); +} + +std::vector GetTemplateEstimateCostRequest::getParameters()const +{ + return parameters_; +} + +void GetTemplateEstimateCostRequest::setParameters(const std::vector& parameters) +{ + parameters_ = parameters; + int i = 0; + for(int i = 0; i!= parameters.size(); i++) { + auto obj = parameters.at(i); + std::string str ="Parameters."+ std::to_string(i); + setCoreParameter(str + ".ParameterValue", obj.parameterValue); + setCoreParameter(str + ".ParameterKey", obj.parameterKey); + } +} + +std::string GetTemplateEstimateCostRequest::getTemplateURL()const +{ + return templateURL_; +} + +void GetTemplateEstimateCostRequest::setTemplateURL(const std::string& templateURL) +{ + templateURL_ = templateURL; + setCoreParameter("TemplateURL", templateURL); +} + diff --git a/ros/src/model/GetTemplateEstimateCostResult.cc b/ros/src/model/GetTemplateEstimateCostResult.cc new file mode 100644 index 000000000..52b9d4071 --- /dev/null +++ b/ros/src/model/GetTemplateEstimateCostResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetTemplateEstimateCostResult::GetTemplateEstimateCostResult() : + ServiceResult() +{} + +GetTemplateEstimateCostResult::GetTemplateEstimateCostResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTemplateEstimateCostResult::~GetTemplateEstimateCostResult() +{} + +void GetTemplateEstimateCostResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Resources"].isNull()) + resources_ = value["Resources"].asString(); + +} + +std::string GetTemplateEstimateCostResult::getResources()const +{ + return resources_; +} + diff --git a/ros/src/model/GetTemplateRequest.cc b/ros/src/model/GetTemplateRequest.cc new file mode 100644 index 000000000..bcea4beb3 --- /dev/null +++ b/ros/src/model/GetTemplateRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::GetTemplateRequest; + +GetTemplateRequest::GetTemplateRequest() : + RpcServiceRequest("ros", "2019-09-10", "GetTemplate") +{} + +GetTemplateRequest::~GetTemplateRequest() +{} + +std::string GetTemplateRequest::getRegionId()const +{ + return regionId_; +} + +void GetTemplateRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string GetTemplateRequest::getStackId()const +{ + return stackId_; +} + +void GetTemplateRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +std::string GetTemplateRequest::getChangeSetId()const +{ + return changeSetId_; +} + +void GetTemplateRequest::setChangeSetId(const std::string& changeSetId) +{ + changeSetId_ = changeSetId; + setCoreParameter("ChangeSetId", changeSetId); +} + diff --git a/ros/src/model/GetTemplateResult.cc b/ros/src/model/GetTemplateResult.cc new file mode 100644 index 000000000..8dd1cfb10 --- /dev/null +++ b/ros/src/model/GetTemplateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +GetTemplateResult::GetTemplateResult() : + ServiceResult() +{} + +GetTemplateResult::GetTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTemplateResult::~GetTemplateResult() +{} + +void GetTemplateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["TemplateBody"].isNull()) + templateBody_ = value["TemplateBody"].asString(); + +} + +std::string GetTemplateResult::getTemplateBody()const +{ + return templateBody_; +} + diff --git a/ros/src/model/ListChangeSetsRequest.cc b/ros/src/model/ListChangeSetsRequest.cc new file mode 100644 index 000000000..0ed4895db --- /dev/null +++ b/ros/src/model/ListChangeSetsRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::ListChangeSetsRequest; + +ListChangeSetsRequest::ListChangeSetsRequest() : + RpcServiceRequest("ros", "2019-09-10", "ListChangeSets") +{} + +ListChangeSetsRequest::~ListChangeSetsRequest() +{} + +std::vector ListChangeSetsRequest::getExecutionStatus()const +{ + return executionStatus_; +} + +void ListChangeSetsRequest::setExecutionStatus(const std::vector& executionStatus) +{ + executionStatus_ = executionStatus; + for(int i = 0; i!= executionStatus.size(); i++) + setCoreParameter("ExecutionStatus."+ std::to_string(i), executionStatus.at(i)); +} + +std::vector ListChangeSetsRequest::getChangeSetName()const +{ + return changeSetName_; +} + +void ListChangeSetsRequest::setChangeSetName(const std::vector& changeSetName) +{ + changeSetName_ = changeSetName; + for(int i = 0; i!= changeSetName.size(); i++) + setCoreParameter("ChangeSetName."+ std::to_string(i), changeSetName.at(i)); +} + +std::string ListChangeSetsRequest::getRegionId()const +{ + return regionId_; +} + +void ListChangeSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListChangeSetsRequest::getStackId()const +{ + return stackId_; +} + +void ListChangeSetsRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +long ListChangeSetsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListChangeSetsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +long ListChangeSetsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListChangeSetsRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::vector ListChangeSetsRequest::getStatus()const +{ + return status_; +} + +void ListChangeSetsRequest::setStatus(const std::vector& status) +{ + status_ = status; + for(int i = 0; i!= status.size(); i++) + setCoreParameter("Status."+ std::to_string(i), status.at(i)); +} + diff --git a/ros/src/model/ListChangeSetsResult.cc b/ros/src/model/ListChangeSetsResult.cc new file mode 100644 index 000000000..6eaa4ea46 --- /dev/null +++ b/ros/src/model/ListChangeSetsResult.cc @@ -0,0 +1,100 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +ListChangeSetsResult::ListChangeSetsResult() : + ServiceResult() +{} + +ListChangeSetsResult::ListChangeSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListChangeSetsResult::~ListChangeSetsResult() +{} + +void ListChangeSetsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allChangeSets = value["ChangeSets"]["ChangeSet"]; + for (auto value : allChangeSets) + { + ChangeSet changeSetsObject; + if(!value["ChangeSetId"].isNull()) + changeSetsObject.changeSetId = value["ChangeSetId"].asString(); + if(!value["ChangeSetName"].isNull()) + changeSetsObject.changeSetName = value["ChangeSetName"].asString(); + if(!value["ChangeSetType"].isNull()) + changeSetsObject.changeSetType = value["ChangeSetType"].asString(); + if(!value["CreateTime"].isNull()) + changeSetsObject.createTime = value["CreateTime"].asString(); + if(!value["Description"].isNull()) + changeSetsObject.description = value["Description"].asString(); + if(!value["ExecutionStatus"].isNull()) + changeSetsObject.executionStatus = value["ExecutionStatus"].asString(); + if(!value["RegionId"].isNull()) + changeSetsObject.regionId = value["RegionId"].asString(); + if(!value["StackId"].isNull()) + changeSetsObject.stackId = value["StackId"].asString(); + if(!value["StackName"].isNull()) + changeSetsObject.stackName = value["StackName"].asString(); + if(!value["Status"].isNull()) + changeSetsObject.status = value["Status"].asString(); + changeSets_.push_back(changeSetsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListChangeSetsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListChangeSetsResult::getPageSize()const +{ + return pageSize_; +} + +int ListChangeSetsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListChangeSetsResult::getChangeSets()const +{ + return changeSets_; +} + diff --git a/ros/src/model/ListResourceTypesRequest.cc b/ros/src/model/ListResourceTypesRequest.cc new file mode 100644 index 000000000..4b10eee02 --- /dev/null +++ b/ros/src/model/ListResourceTypesRequest.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::ROS::Model::ListResourceTypesRequest; + +ListResourceTypesRequest::ListResourceTypesRequest() : + RpcServiceRequest("ros", "2019-09-10", "ListResourceTypes") +{} + +ListResourceTypesRequest::~ListResourceTypesRequest() +{} + diff --git a/ros/src/model/ListResourceTypesResult.cc b/ros/src/model/ListResourceTypesResult.cc new file mode 100644 index 000000000..bd9a0a406 --- /dev/null +++ b/ros/src/model/ListResourceTypesResult.cc @@ -0,0 +1,56 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +ListResourceTypesResult::ListResourceTypesResult() : + ServiceResult() +{} + +ListResourceTypesResult::ListResourceTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourceTypesResult::~ListResourceTypesResult() +{} + +void ListResourceTypesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allResourceTypes = value["ResourceTypes"]["ResourceType"]; + for (const auto &item : allResourceTypes) + resourceTypes_.push_back(item.asString()); + +} + +std::vector ListResourceTypesResult::getResourceTypes()const +{ + return resourceTypes_; +} + diff --git a/ros/src/model/ListStackEventsRequest.cc b/ros/src/model/ListStackEventsRequest.cc new file mode 100644 index 000000000..d83bac913 --- /dev/null +++ b/ros/src/model/ListStackEventsRequest.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::ListStackEventsRequest; + +ListStackEventsRequest::ListStackEventsRequest() : + RpcServiceRequest("ros", "2019-09-10", "ListStackEvents") +{} + +ListStackEventsRequest::~ListStackEventsRequest() +{} + +std::string ListStackEventsRequest::getRegionId()const +{ + return regionId_; +} + +void ListStackEventsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListStackEventsRequest::getStackId()const +{ + return stackId_; +} + +void ListStackEventsRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +long ListStackEventsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListStackEventsRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::vector ListStackEventsRequest::getLogicalResourceId()const +{ + return logicalResourceId_; +} + +void ListStackEventsRequest::setLogicalResourceId(const std::vector& logicalResourceId) +{ + logicalResourceId_ = logicalResourceId; + for(int i = 0; i!= logicalResourceId.size(); i++) + setCoreParameter("LogicalResourceId."+ std::to_string(i), logicalResourceId.at(i)); +} + +std::vector ListStackEventsRequest::getResourceType()const +{ + return resourceType_; +} + +void ListStackEventsRequest::setResourceType(const std::vector& resourceType) +{ + resourceType_ = resourceType; + for(int i = 0; i!= resourceType.size(); i++) + setCoreParameter("ResourceType."+ std::to_string(i), resourceType.at(i)); +} + +long ListStackEventsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListStackEventsRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::vector ListStackEventsRequest::getStatus()const +{ + return status_; +} + +void ListStackEventsRequest::setStatus(const std::vector& status) +{ + status_ = status; + for(int i = 0; i!= status.size(); i++) + setCoreParameter("Status."+ std::to_string(i), status.at(i)); +} + diff --git a/ros/src/model/ListStackEventsResult.cc b/ros/src/model/ListStackEventsResult.cc new file mode 100644 index 000000000..27829ec79 --- /dev/null +++ b/ros/src/model/ListStackEventsResult.cc @@ -0,0 +1,98 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +ListStackEventsResult::ListStackEventsResult() : + ServiceResult() +{} + +ListStackEventsResult::ListStackEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStackEventsResult::~ListStackEventsResult() +{} + +void ListStackEventsResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allEvents = value["Events"]["Event"]; + for (auto value : allEvents) + { + Event eventsObject; + if(!value["CreateTime"].isNull()) + eventsObject.createTime = value["CreateTime"].asString(); + if(!value["EventId"].isNull()) + eventsObject.eventId = value["EventId"].asString(); + if(!value["LogicalResourceId"].isNull()) + eventsObject.logicalResourceId = value["LogicalResourceId"].asString(); + if(!value["PhysicalResourceId"].isNull()) + eventsObject.physicalResourceId = value["PhysicalResourceId"].asString(); + if(!value["ResourceType"].isNull()) + eventsObject.resourceType = value["ResourceType"].asString(); + if(!value["StackId"].isNull()) + eventsObject.stackId = value["StackId"].asString(); + if(!value["StackName"].isNull()) + eventsObject.stackName = value["StackName"].asString(); + if(!value["Status"].isNull()) + eventsObject.status = value["Status"].asString(); + if(!value["StatusReason"].isNull()) + eventsObject.statusReason = value["StatusReason"].asString(); + events_.push_back(eventsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListStackEventsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListStackEventsResult::getPageSize()const +{ + return pageSize_; +} + +std::vector ListStackEventsResult::getEvents()const +{ + return events_; +} + +int ListStackEventsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ros/src/model/ListStackResourcesRequest.cc b/ros/src/model/ListStackResourcesRequest.cc new file mode 100644 index 000000000..fb536558f --- /dev/null +++ b/ros/src/model/ListStackResourcesRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::ROS::Model::ListStackResourcesRequest; + +ListStackResourcesRequest::ListStackResourcesRequest() : + RpcServiceRequest("ros", "2019-09-10", "ListStackResources") +{} + +ListStackResourcesRequest::~ListStackResourcesRequest() +{} + +std::string ListStackResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListStackResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ListStackResourcesRequest::getStackId()const +{ + return stackId_; +} + +void ListStackResourcesRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + diff --git a/ros/src/model/ListStackResourcesResult.cc b/ros/src/model/ListStackResourcesResult.cc new file mode 100644 index 000000000..5582a5233 --- /dev/null +++ b/ros/src/model/ListStackResourcesResult.cc @@ -0,0 +1,77 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +ListStackResourcesResult::ListStackResourcesResult() : + ServiceResult() +{} + +ListStackResourcesResult::ListStackResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStackResourcesResult::~ListStackResourcesResult() +{} + +void ListStackResourcesResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allResources = value["Resources"]["Resource"]; + for (auto value : allResources) + { + Resource resourcesObject; + if(!value["CreateTime"].isNull()) + resourcesObject.createTime = value["CreateTime"].asString(); + if(!value["LogicalResourceId"].isNull()) + resourcesObject.logicalResourceId = value["LogicalResourceId"].asString(); + if(!value["PhysicalResourceId"].isNull()) + resourcesObject.physicalResourceId = value["PhysicalResourceId"].asString(); + if(!value["ResourceType"].isNull()) + resourcesObject.resourceType = value["ResourceType"].asString(); + if(!value["StackId"].isNull()) + resourcesObject.stackId = value["StackId"].asString(); + if(!value["StackName"].isNull()) + resourcesObject.stackName = value["StackName"].asString(); + if(!value["Status"].isNull()) + resourcesObject.status = value["Status"].asString(); + if(!value["StatusReason"].isNull()) + resourcesObject.statusReason = value["StatusReason"].asString(); + if(!value["UpdateTime"].isNull()) + resourcesObject.updateTime = value["UpdateTime"].asString(); + resources_.push_back(resourcesObject); + } + +} + +std::vector ListStackResourcesResult::getResources()const +{ + return resources_; +} + diff --git a/ros/src/model/ListStacksRequest.cc b/ros/src/model/ListStacksRequest.cc new file mode 100644 index 000000000..15a7c2e60 --- /dev/null +++ b/ros/src/model/ListStacksRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::ROS::Model::ListStacksRequest; + +ListStacksRequest::ListStacksRequest() : + RpcServiceRequest("ros", "2019-09-10", "ListStacks") +{} + +ListStacksRequest::~ListStacksRequest() +{} + +std::string ListStacksRequest::getParentStackId()const +{ + return parentStackId_; +} + +void ListStacksRequest::setParentStackId(const std::string& parentStackId) +{ + parentStackId_ = parentStackId; + setCoreParameter("ParentStackId", parentStackId); +} + +bool ListStacksRequest::getShowNestedStack()const +{ + return showNestedStack_; +} + +void ListStacksRequest::setShowNestedStack(bool showNestedStack) +{ + showNestedStack_ = showNestedStack; + setCoreParameter("ShowNestedStack", showNestedStack ? "true" : "false"); +} + +std::string ListStacksRequest::getRegionId()const +{ + return regionId_; +} + +void ListStacksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +long ListStacksRequest::getPageSize()const +{ + return pageSize_; +} + +void ListStacksRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::vector ListStacksRequest::getStackName()const +{ + return stackName_; +} + +void ListStacksRequest::setStackName(const std::vector& stackName) +{ + stackName_ = stackName; + for(int i = 0; i!= stackName.size(); i++) + setCoreParameter("StackName."+ std::to_string(i), stackName.at(i)); +} + +long ListStacksRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListStacksRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::vector ListStacksRequest::getStatus()const +{ + return status_; +} + +void ListStacksRequest::setStatus(const std::vector& status) +{ + status_ = status; + for(int i = 0; i!= status.size(); i++) + setCoreParameter("Status."+ std::to_string(i), status.at(i)); +} + diff --git a/ros/src/model/ListStacksResult.cc b/ros/src/model/ListStacksResult.cc new file mode 100644 index 000000000..911ea1cf8 --- /dev/null +++ b/ros/src/model/ListStacksResult.cc @@ -0,0 +1,100 @@ +/* + * 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::ROS; +using namespace AlibabaCloud::ROS::Model; + +ListStacksResult::ListStacksResult() : + ServiceResult() +{} + +ListStacksResult::ListStacksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListStacksResult::~ListStacksResult() +{} + +void ListStacksResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allStacks = value["Stacks"]["Stack"]; + for (auto value : allStacks) + { + Stack stacksObject; + if(!value["CreateTime"].isNull()) + stacksObject.createTime = value["CreateTime"].asString(); + if(!value["DisableRollback"].isNull()) + stacksObject.disableRollback = value["DisableRollback"].asString() == "true"; + if(!value["RegionId"].isNull()) + stacksObject.regionId = value["RegionId"].asString(); + if(!value["StackId"].isNull()) + stacksObject.stackId = value["StackId"].asString(); + if(!value["StackName"].isNull()) + stacksObject.stackName = value["StackName"].asString(); + if(!value["Status"].isNull()) + stacksObject.status = value["Status"].asString(); + if(!value["StatusReason"].isNull()) + stacksObject.statusReason = value["StatusReason"].asString(); + if(!value["TimeoutInMinutes"].isNull()) + stacksObject.timeoutInMinutes = std::stoi(value["TimeoutInMinutes"].asString()); + if(!value["ParentStackId"].isNull()) + stacksObject.parentStackId = value["ParentStackId"].asString(); + if(!value["UpdateTime"].isNull()) + stacksObject.updateTime = value["UpdateTime"].asString(); + stacks_.push_back(stacksObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListStacksResult::getTotalCount()const +{ + return totalCount_; +} + +int ListStacksResult::getPageSize()const +{ + return pageSize_; +} + +int ListStacksResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListStacksResult::getStacks()const +{ + return stacks_; +} + diff --git a/ros/src/model/PreviewStackRequest.cc b/ros/src/model/PreviewStackRequest.cc new file mode 100644 index 000000000..c58cc67f1 --- /dev/null +++ b/ros/src/model/PreviewStackRequest.cc @@ -0,0 +1,143 @@ +/* + * 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::ROS::Model::PreviewStackRequest; + +PreviewStackRequest::PreviewStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "PreviewStack") +{} + +PreviewStackRequest::~PreviewStackRequest() +{} + +std::string PreviewStackRequest::getStackPolicyURL()const +{ + return stackPolicyURL_; +} + +void PreviewStackRequest::setStackPolicyURL(const std::string& stackPolicyURL) +{ + stackPolicyURL_ = stackPolicyURL; + setCoreParameter("StackPolicyURL", stackPolicyURL); +} + +std::string PreviewStackRequest::getRegionId()const +{ + return regionId_; +} + +void PreviewStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string PreviewStackRequest::getClientToken()const +{ + return clientToken_; +} + +void PreviewStackRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string PreviewStackRequest::getTemplateBody()const +{ + return templateBody_; +} + +void PreviewStackRequest::setTemplateBody(const std::string& templateBody) +{ + templateBody_ = templateBody; + setCoreParameter("TemplateBody", templateBody); +} + +bool PreviewStackRequest::getDisableRollback()const +{ + return disableRollback_; +} + +void PreviewStackRequest::setDisableRollback(bool disableRollback) +{ + disableRollback_ = disableRollback; + setCoreParameter("DisableRollback", disableRollback ? "true" : "false"); +} + +std::string PreviewStackRequest::getStackName()const +{ + return stackName_; +} + +void PreviewStackRequest::setStackName(const std::string& stackName) +{ + stackName_ = stackName; + setCoreParameter("StackName", stackName); +} + +std::vector PreviewStackRequest::getParameters()const +{ + return parameters_; +} + +void PreviewStackRequest::setParameters(const std::vector& parameters) +{ + parameters_ = parameters; + int i = 0; + for(int i = 0; i!= parameters.size(); i++) { + auto obj = parameters.at(i); + std::string str ="Parameters."+ std::to_string(i); + setCoreParameter(str + ".ParameterValue", obj.parameterValue); + setCoreParameter(str + ".ParameterKey", obj.parameterKey); + } +} + +std::string PreviewStackRequest::getStackPolicyBody()const +{ + return stackPolicyBody_; +} + +void PreviewStackRequest::setStackPolicyBody(const std::string& stackPolicyBody) +{ + stackPolicyBody_ = stackPolicyBody; + setCoreParameter("StackPolicyBody", stackPolicyBody); +} + +long PreviewStackRequest::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + +void PreviewStackRequest::setTimeoutInMinutes(long timeoutInMinutes) +{ + timeoutInMinutes_ = timeoutInMinutes; + setCoreParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes)); +} + +std::string PreviewStackRequest::getTemplateURL()const +{ + return templateURL_; +} + +void PreviewStackRequest::setTemplateURL(const std::string& templateURL) +{ + templateURL_ = templateURL; + setCoreParameter("TemplateURL", templateURL); +} + diff --git a/ros/src/model/PreviewStackResult.cc b/ros/src/model/PreviewStackResult.cc new file mode 100644 index 000000000..079542f59 --- /dev/null +++ b/ros/src/model/PreviewStackResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +PreviewStackResult::PreviewStackResult() : + ServiceResult() +{} + +PreviewStackResult::PreviewStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PreviewStackResult::~PreviewStackResult() +{} + +void PreviewStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["Stack"].isNull()) + stack_ = value["Stack"].asString(); + +} + +std::string PreviewStackResult::getStack()const +{ + return stack_; +} + diff --git a/ros/src/model/SetStackPolicyRequest.cc b/ros/src/model/SetStackPolicyRequest.cc new file mode 100644 index 000000000..40d89f275 --- /dev/null +++ b/ros/src/model/SetStackPolicyRequest.cc @@ -0,0 +1,71 @@ +/* + * 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::ROS::Model::SetStackPolicyRequest; + +SetStackPolicyRequest::SetStackPolicyRequest() : + RpcServiceRequest("ros", "2019-09-10", "SetStackPolicy") +{} + +SetStackPolicyRequest::~SetStackPolicyRequest() +{} + +std::string SetStackPolicyRequest::getRegionId()const +{ + return regionId_; +} + +void SetStackPolicyRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SetStackPolicyRequest::getStackPolicyURL()const +{ + return stackPolicyURL_; +} + +void SetStackPolicyRequest::setStackPolicyURL(const std::string& stackPolicyURL) +{ + stackPolicyURL_ = stackPolicyURL; + setCoreParameter("StackPolicyURL", stackPolicyURL); +} + +std::string SetStackPolicyRequest::getStackId()const +{ + return stackId_; +} + +void SetStackPolicyRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +std::string SetStackPolicyRequest::getStackPolicyBody()const +{ + return stackPolicyBody_; +} + +void SetStackPolicyRequest::setStackPolicyBody(const std::string& stackPolicyBody) +{ + stackPolicyBody_ = stackPolicyBody; + setCoreParameter("StackPolicyBody", stackPolicyBody); +} + diff --git a/ros/src/model/SetStackPolicyResult.cc b/ros/src/model/SetStackPolicyResult.cc new file mode 100644 index 000000000..b912969f6 --- /dev/null +++ b/ros/src/model/SetStackPolicyResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +SetStackPolicyResult::SetStackPolicyResult() : + ServiceResult() +{} + +SetStackPolicyResult::SetStackPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetStackPolicyResult::~SetStackPolicyResult() +{} + +void SetStackPolicyResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ros/src/model/SignalResourceRequest.cc b/ros/src/model/SignalResourceRequest.cc new file mode 100644 index 000000000..d531243b2 --- /dev/null +++ b/ros/src/model/SignalResourceRequest.cc @@ -0,0 +1,104 @@ +/* + * 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::ROS::Model::SignalResourceRequest; + +SignalResourceRequest::SignalResourceRequest() : + RpcServiceRequest("ros", "2019-09-10", "SignalResource") +{} + +SignalResourceRequest::~SignalResourceRequest() +{} + +std::string SignalResourceRequest::getData()const +{ + return data_; +} + +void SignalResourceRequest::setData(const std::string& data) +{ + data_ = data; + setCoreParameter("Data", data); +} + +std::string SignalResourceRequest::getRegionId()const +{ + return regionId_; +} + +void SignalResourceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string SignalResourceRequest::getClientToken()const +{ + return clientToken_; +} + +void SignalResourceRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string SignalResourceRequest::getStackId()const +{ + return stackId_; +} + +void SignalResourceRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +std::string SignalResourceRequest::getLogicalResourceId()const +{ + return logicalResourceId_; +} + +void SignalResourceRequest::setLogicalResourceId(const std::string& logicalResourceId) +{ + logicalResourceId_ = logicalResourceId; + setCoreParameter("LogicalResourceId", logicalResourceId); +} + +std::string SignalResourceRequest::getUniqueId()const +{ + return uniqueId_; +} + +void SignalResourceRequest::setUniqueId(const std::string& uniqueId) +{ + uniqueId_ = uniqueId; + setCoreParameter("UniqueId", uniqueId); +} + +std::string SignalResourceRequest::getStatus()const +{ + return status_; +} + +void SignalResourceRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/ros/src/model/SignalResourceResult.cc b/ros/src/model/SignalResourceResult.cc new file mode 100644 index 000000000..85352693b --- /dev/null +++ b/ros/src/model/SignalResourceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +SignalResourceResult::SignalResourceResult() : + ServiceResult() +{} + +SignalResourceResult::SignalResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SignalResourceResult::~SignalResourceResult() +{} + +void SignalResourceResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ros/src/model/UpdateStackRequest.cc b/ros/src/model/UpdateStackRequest.cc new file mode 100644 index 000000000..c401f371b --- /dev/null +++ b/ros/src/model/UpdateStackRequest.cc @@ -0,0 +1,198 @@ +/* + * 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::ROS::Model::UpdateStackRequest; + +UpdateStackRequest::UpdateStackRequest() : + RpcServiceRequest("ros", "2019-09-10", "UpdateStack") +{} + +UpdateStackRequest::~UpdateStackRequest() +{} + +std::string UpdateStackRequest::getStackPolicyDuringUpdateURL()const +{ + return stackPolicyDuringUpdateURL_; +} + +void UpdateStackRequest::setStackPolicyDuringUpdateURL(const std::string& stackPolicyDuringUpdateURL) +{ + stackPolicyDuringUpdateURL_ = stackPolicyDuringUpdateURL; + setCoreParameter("StackPolicyDuringUpdateURL", stackPolicyDuringUpdateURL); +} + +std::string UpdateStackRequest::getClientToken()const +{ + return clientToken_; +} + +void UpdateStackRequest::setClientToken(const std::string& clientToken) +{ + clientToken_ = clientToken; + setCoreParameter("ClientToken", clientToken); +} + +std::string UpdateStackRequest::getTemplateBody()const +{ + return templateBody_; +} + +void UpdateStackRequest::setTemplateBody(const std::string& templateBody) +{ + templateBody_ = templateBody; + setCoreParameter("TemplateBody", templateBody); +} + +std::string UpdateStackRequest::getStackId()const +{ + return stackId_; +} + +void UpdateStackRequest::setStackId(const std::string& stackId) +{ + stackId_ = stackId; + setCoreParameter("StackId", stackId); +} + +bool UpdateStackRequest::getDisableRollback()const +{ + return disableRollback_; +} + +void UpdateStackRequest::setDisableRollback(bool disableRollback) +{ + disableRollback_ = disableRollback; + setCoreParameter("DisableRollback", disableRollback ? "true" : "false"); +} + +bool UpdateStackRequest::getEnableRecover()const +{ + return enableRecover_; +} + +void UpdateStackRequest::setEnableRecover(bool enableRecover) +{ + enableRecover_ = enableRecover; + setCoreParameter("EnableRecover", enableRecover ? "true" : "false"); +} + +std::string UpdateStackRequest::getUpdateAllowPolicy()const +{ + return updateAllowPolicy_; +} + +void UpdateStackRequest::setUpdateAllowPolicy(const std::string& updateAllowPolicy) +{ + updateAllowPolicy_ = updateAllowPolicy; + setCoreParameter("UpdateAllowPolicy", updateAllowPolicy); +} + +long UpdateStackRequest::getTimeoutInMinutes()const +{ + return timeoutInMinutes_; +} + +void UpdateStackRequest::setTimeoutInMinutes(long timeoutInMinutes) +{ + timeoutInMinutes_ = timeoutInMinutes; + setCoreParameter("TimeoutInMinutes", std::to_string(timeoutInMinutes)); +} + +bool UpdateStackRequest::getUsePreviousParameters()const +{ + return usePreviousParameters_; +} + +void UpdateStackRequest::setUsePreviousParameters(bool usePreviousParameters) +{ + usePreviousParameters_ = usePreviousParameters; + setCoreParameter("UsePreviousParameters", usePreviousParameters ? "true" : "false"); +} + +std::string UpdateStackRequest::getTemplateURL()const +{ + return templateURL_; +} + +void UpdateStackRequest::setTemplateURL(const std::string& templateURL) +{ + templateURL_ = templateURL; + setCoreParameter("TemplateURL", templateURL); +} + +std::string UpdateStackRequest::getStackPolicyDuringUpdateBody()const +{ + return stackPolicyDuringUpdateBody_; +} + +void UpdateStackRequest::setStackPolicyDuringUpdateBody(const std::string& stackPolicyDuringUpdateBody) +{ + stackPolicyDuringUpdateBody_ = stackPolicyDuringUpdateBody; + setCoreParameter("StackPolicyDuringUpdateBody", stackPolicyDuringUpdateBody); +} + +std::string UpdateStackRequest::getStackPolicyURL()const +{ + return stackPolicyURL_; +} + +void UpdateStackRequest::setStackPolicyURL(const std::string& stackPolicyURL) +{ + stackPolicyURL_ = stackPolicyURL; + setCoreParameter("StackPolicyURL", stackPolicyURL); +} + +std::string UpdateStackRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateStackRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::vector UpdateStackRequest::getParameters()const +{ + return parameters_; +} + +void UpdateStackRequest::setParameters(const std::vector& parameters) +{ + parameters_ = parameters; + int i = 0; + for(int i = 0; i!= parameters.size(); i++) { + auto obj = parameters.at(i); + std::string str ="Parameters."+ std::to_string(i); + setCoreParameter(str + ".ParameterValue", obj.parameterValue); + setCoreParameter(str + ".ParameterKey", obj.parameterKey); + } +} + +std::string UpdateStackRequest::getStackPolicyBody()const +{ + return stackPolicyBody_; +} + +void UpdateStackRequest::setStackPolicyBody(const std::string& stackPolicyBody) +{ + stackPolicyBody_ = stackPolicyBody; + setCoreParameter("StackPolicyBody", stackPolicyBody); +} + diff --git a/ros/src/model/UpdateStackResult.cc b/ros/src/model/UpdateStackResult.cc new file mode 100644 index 000000000..80c6ceff1 --- /dev/null +++ b/ros/src/model/UpdateStackResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +UpdateStackResult::UpdateStackResult() : + ServiceResult() +{} + +UpdateStackResult::UpdateStackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateStackResult::~UpdateStackResult() +{} + +void UpdateStackResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + if(!value["StackId"].isNull()) + stackId_ = value["StackId"].asString(); + +} + +std::string UpdateStackResult::getStackId()const +{ + return stackId_; +} + diff --git a/ros/src/model/ValidateTemplateRequest.cc b/ros/src/model/ValidateTemplateRequest.cc new file mode 100644 index 000000000..143fcc0e3 --- /dev/null +++ b/ros/src/model/ValidateTemplateRequest.cc @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::ROS::Model::ValidateTemplateRequest; + +ValidateTemplateRequest::ValidateTemplateRequest() : + RpcServiceRequest("ros", "2019-09-10", "ValidateTemplate") +{} + +ValidateTemplateRequest::~ValidateTemplateRequest() +{} + +std::string ValidateTemplateRequest::getRegionId()const +{ + return regionId_; +} + +void ValidateTemplateRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setCoreParameter("RegionId", regionId); +} + +std::string ValidateTemplateRequest::getTemplateBody()const +{ + return templateBody_; +} + +void ValidateTemplateRequest::setTemplateBody(const std::string& templateBody) +{ + templateBody_ = templateBody; + setCoreParameter("TemplateBody", templateBody); +} + +std::string ValidateTemplateRequest::getTemplateURL()const +{ + return templateURL_; +} + +void ValidateTemplateRequest::setTemplateURL(const std::string& templateURL) +{ + templateURL_ = templateURL; + setCoreParameter("TemplateURL", templateURL); +} + diff --git a/ros/src/model/ValidateTemplateResult.cc b/ros/src/model/ValidateTemplateResult.cc new file mode 100644 index 000000000..f71ce9237 --- /dev/null +++ b/ros/src/model/ValidateTemplateResult.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 +#include + +using namespace AlibabaCloud::ROS; +using namespace AlibabaCloud::ROS::Model; + +ValidateTemplateResult::ValidateTemplateResult() : + ServiceResult() +{} + +ValidateTemplateResult::ValidateTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ValidateTemplateResult::~ValidateTemplateResult() +{} + +void ValidateTemplateResult::parse(const std::string &payload) +{ + Json::CharReaderBuilder builder; + Json::CharReader *reader = builder.newCharReader(); + Json::Value *val; + Json::Value value; + JSONCPP_STRING *errs; + reader->parse(payload.data(), payload.data() + payload.size(), val, errs); + value = *val; + setRequestId(value["RequestId"].asString()); + auto allParameters = value["Parameters"]["Parameter"]; + for (const auto &item : allParameters) + parameters_.push_back(item.asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + +} + +std::vector ValidateTemplateResult::getParameters()const +{ + return parameters_; +} + +std::string ValidateTemplateResult::getDescription()const +{ + return description_; +} +