Release Apis of Version 2019-09-10.
This commit is contained in:
60
ros/src/model/CancelUpdateStackRequest.cc
Normal file
60
ros/src/model/CancelUpdateStackRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/CancelUpdateStackRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
48
ros/src/model/CancelUpdateStackResult.cc
Normal file
48
ros/src/model/CancelUpdateStackResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/CancelUpdateStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
61
ros/src/model/ContinueCreateStackRequest.cc
Normal file
61
ros/src/model/ContinueCreateStackRequest.cc
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ContinueCreateStackRequest.h>
|
||||
|
||||
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<std::string> ContinueCreateStackRequest::getRecreatingResources()const
|
||||
{
|
||||
return recreatingResources_;
|
||||
}
|
||||
|
||||
void ContinueCreateStackRequest::setRecreatingResources(const std::vector<std::string>& recreatingResources)
|
||||
{
|
||||
recreatingResources_ = recreatingResources;
|
||||
for(int i = 0; i!= recreatingResources.size(); i++)
|
||||
setCoreParameter("RecreatingResources."+ std::to_string(i), recreatingResources.at(i));
|
||||
}
|
||||
|
||||
55
ros/src/model/ContinueCreateStackResult.cc
Normal file
55
ros/src/model/ContinueCreateStackResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/ContinueCreateStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
276
ros/src/model/CreateChangeSetRequest.cc
Normal file
276
ros/src/model/CreateChangeSetRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/CreateChangeSetRequest.h>
|
||||
|
||||
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<std::string> CreateChangeSetRequest::getNotificationURLs()const
|
||||
{
|
||||
return notificationURLs_;
|
||||
}
|
||||
|
||||
void CreateChangeSetRequest::setNotificationURLs(const std::vector<std::string>& 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::Parameters> CreateChangeSetRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateChangeSetRequest::setParameters(const std::vector<Parameters>& 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);
|
||||
}
|
||||
|
||||
62
ros/src/model/CreateChangeSetResult.cc
Normal file
62
ros/src/model/CreateChangeSetResult.cc
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/CreateChangeSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
188
ros/src/model/CreateStackRequest.cc
Normal file
188
ros/src/model/CreateStackRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/CreateStackRequest.h>
|
||||
|
||||
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<std::string> CreateStackRequest::getNotificationURLs()const
|
||||
{
|
||||
return notificationURLs_;
|
||||
}
|
||||
|
||||
void CreateStackRequest::setNotificationURLs(const std::vector<std::string>& 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::Parameters> CreateStackRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void CreateStackRequest::setParameters(const std::vector<Parameters>& 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);
|
||||
}
|
||||
|
||||
55
ros/src/model/CreateStackResult.cc
Normal file
55
ros/src/model/CreateStackResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/CreateStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
49
ros/src/model/DeleteChangeSetRequest.cc
Normal file
49
ros/src/model/DeleteChangeSetRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/DeleteChangeSetRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
48
ros/src/model/DeleteChangeSetResult.cc
Normal file
48
ros/src/model/DeleteChangeSetResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/DeleteChangeSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
60
ros/src/model/DeleteStackRequest.cc
Normal file
60
ros/src/model/DeleteStackRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/DeleteStackRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
48
ros/src/model/DeleteStackResult.cc
Normal file
48
ros/src/model/DeleteStackResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/DeleteStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
38
ros/src/model/DescribeRegionsRequest.cc
Normal file
38
ros/src/model/DescribeRegionsRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/DescribeRegionsRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
65
ros/src/model/DescribeRegionsResult.cc
Normal file
65
ros/src/model/DescribeRegionsResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
49
ros/src/model/ExecuteChangeSetRequest.cc
Normal file
49
ros/src/model/ExecuteChangeSetRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ExecuteChangeSetRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
48
ros/src/model/ExecuteChangeSetResult.cc
Normal file
48
ros/src/model/ExecuteChangeSetResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ExecuteChangeSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
60
ros/src/model/GetChangeSetRequest.cc
Normal file
60
ros/src/model/GetChangeSetRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/GetChangeSetRequest.h>
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
162
ros/src/model/GetChangeSetResult.cc
Normal file
162
ros/src/model/GetChangeSetResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetChangeSetResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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<std::string> GetChangeSetResult::getChanges()const
|
||||
{
|
||||
return changes_;
|
||||
}
|
||||
|
||||
std::string GetChangeSetResult::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
std::vector<GetChangeSetResult::Parameter> 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_;
|
||||
}
|
||||
|
||||
38
ros/src/model/GetResourceTypeRequest.cc
Normal file
38
ros/src/model/GetResourceTypeRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetResourceTypeRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
69
ros/src/model/GetResourceTypeResult.cc
Normal file
69
ros/src/model/GetResourceTypeResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetResourceTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
38
ros/src/model/GetResourceTypeTemplateRequest.cc
Normal file
38
ros/src/model/GetResourceTypeTemplateRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetResourceTypeTemplateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
55
ros/src/model/GetResourceTypeTemplateResult.cc
Normal file
55
ros/src/model/GetResourceTypeTemplateResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetResourceTypeTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
49
ros/src/model/GetStackPolicyRequest.cc
Normal file
49
ros/src/model/GetStackPolicyRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/GetStackPolicyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
55
ros/src/model/GetStackPolicyResult.cc
Normal file
55
ros/src/model/GetStackPolicyResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetStackPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
60
ros/src/model/GetStackRequest.cc
Normal file
60
ros/src/model/GetStackRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/GetStackRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
82
ros/src/model/GetStackResourceRequest.cc
Normal file
82
ros/src/model/GetStackResourceRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetStackResourceRequest.h>
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
133
ros/src/model/GetStackResourceResult.cc
Normal file
133
ros/src/model/GetStackResourceResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetStackResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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<std::string> GetStackResourceResult::getResourceAttributes()const
|
||||
{
|
||||
return resourceAttributes_;
|
||||
}
|
||||
|
||||
std::string GetStackResourceResult::getStackName()const
|
||||
{
|
||||
return stackName_;
|
||||
}
|
||||
|
||||
std::string GetStackResourceResult::getStackId()const
|
||||
{
|
||||
return stackId_;
|
||||
}
|
||||
|
||||
163
ros/src/model/GetStackResult.cc
Normal file
163
ros/src/model/GetStackResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::Parameter> 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<std::string> GetStackResult::getOutputs()const
|
||||
{
|
||||
return outputs_;
|
||||
}
|
||||
|
||||
std::string GetStackResult::getUpdateTime()const
|
||||
{
|
||||
return updateTime_;
|
||||
}
|
||||
|
||||
std::string GetStackResult::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::vector<std::string> 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_;
|
||||
}
|
||||
|
||||
88
ros/src/model/GetTemplateEstimateCostRequest.cc
Normal file
88
ros/src/model/GetTemplateEstimateCostRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetTemplateEstimateCostRequest.h>
|
||||
|
||||
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::Parameters> GetTemplateEstimateCostRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void GetTemplateEstimateCostRequest::setParameters(const std::vector<Parameters>& 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);
|
||||
}
|
||||
|
||||
55
ros/src/model/GetTemplateEstimateCostResult.cc
Normal file
55
ros/src/model/GetTemplateEstimateCostResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetTemplateEstimateCostResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
60
ros/src/model/GetTemplateRequest.cc
Normal file
60
ros/src/model/GetTemplateRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/GetTemplateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
55
ros/src/model/GetTemplateResult.cc
Normal file
55
ros/src/model/GetTemplateResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/GetTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
107
ros/src/model/ListChangeSetsRequest.cc
Normal file
107
ros/src/model/ListChangeSetsRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListChangeSetsRequest.h>
|
||||
|
||||
using AlibabaCloud::ROS::Model::ListChangeSetsRequest;
|
||||
|
||||
ListChangeSetsRequest::ListChangeSetsRequest() :
|
||||
RpcServiceRequest("ros", "2019-09-10", "ListChangeSets")
|
||||
{}
|
||||
|
||||
ListChangeSetsRequest::~ListChangeSetsRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> ListChangeSetsRequest::getExecutionStatus()const
|
||||
{
|
||||
return executionStatus_;
|
||||
}
|
||||
|
||||
void ListChangeSetsRequest::setExecutionStatus(const std::vector<std::string>& executionStatus)
|
||||
{
|
||||
executionStatus_ = executionStatus;
|
||||
for(int i = 0; i!= executionStatus.size(); i++)
|
||||
setCoreParameter("ExecutionStatus."+ std::to_string(i), executionStatus.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ListChangeSetsRequest::getChangeSetName()const
|
||||
{
|
||||
return changeSetName_;
|
||||
}
|
||||
|
||||
void ListChangeSetsRequest::setChangeSetName(const std::vector<std::string>& 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<std::string> ListChangeSetsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListChangeSetsRequest::setStatus(const std::vector<std::string>& status)
|
||||
{
|
||||
status_ = status;
|
||||
for(int i = 0; i!= status.size(); i++)
|
||||
setCoreParameter("Status."+ std::to_string(i), status.at(i));
|
||||
}
|
||||
|
||||
100
ros/src/model/ListChangeSetsResult.cc
Normal file
100
ros/src/model/ListChangeSetsResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListChangeSetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::ChangeSet> ListChangeSetsResult::getChangeSets()const
|
||||
{
|
||||
return changeSets_;
|
||||
}
|
||||
|
||||
27
ros/src/model/ListResourceTypesRequest.cc
Normal file
27
ros/src/model/ListResourceTypesRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ListResourceTypesRequest.h>
|
||||
|
||||
using AlibabaCloud::ROS::Model::ListResourceTypesRequest;
|
||||
|
||||
ListResourceTypesRequest::ListResourceTypesRequest() :
|
||||
RpcServiceRequest("ros", "2019-09-10", "ListResourceTypes")
|
||||
{}
|
||||
|
||||
ListResourceTypesRequest::~ListResourceTypesRequest()
|
||||
{}
|
||||
|
||||
56
ros/src/model/ListResourceTypesResult.cc
Normal file
56
ros/src/model/ListResourceTypesResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListResourceTypesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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<std::string> ListResourceTypesResult::getResourceTypes()const
|
||||
{
|
||||
return resourceTypes_;
|
||||
}
|
||||
|
||||
107
ros/src/model/ListStackEventsRequest.cc
Normal file
107
ros/src/model/ListStackEventsRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListStackEventsRequest.h>
|
||||
|
||||
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<std::string> ListStackEventsRequest::getLogicalResourceId()const
|
||||
{
|
||||
return logicalResourceId_;
|
||||
}
|
||||
|
||||
void ListStackEventsRequest::setLogicalResourceId(const std::vector<std::string>& logicalResourceId)
|
||||
{
|
||||
logicalResourceId_ = logicalResourceId;
|
||||
for(int i = 0; i!= logicalResourceId.size(); i++)
|
||||
setCoreParameter("LogicalResourceId."+ std::to_string(i), logicalResourceId.at(i));
|
||||
}
|
||||
|
||||
std::vector<std::string> ListStackEventsRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListStackEventsRequest::setResourceType(const std::vector<std::string>& 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<std::string> ListStackEventsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListStackEventsRequest::setStatus(const std::vector<std::string>& status)
|
||||
{
|
||||
status_ = status;
|
||||
for(int i = 0; i!= status.size(); i++)
|
||||
setCoreParameter("Status."+ std::to_string(i), status.at(i));
|
||||
}
|
||||
|
||||
98
ros/src/model/ListStackEventsResult.cc
Normal file
98
ros/src/model/ListStackEventsResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListStackEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::Event> ListStackEventsResult::getEvents()const
|
||||
{
|
||||
return events_;
|
||||
}
|
||||
|
||||
int ListStackEventsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
49
ros/src/model/ListStackResourcesRequest.cc
Normal file
49
ros/src/model/ListStackResourcesRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ListStackResourcesRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
77
ros/src/model/ListStackResourcesResult.cc
Normal file
77
ros/src/model/ListStackResourcesResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListStackResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::Resource> ListStackResourcesResult::getResources()const
|
||||
{
|
||||
return resources_;
|
||||
}
|
||||
|
||||
106
ros/src/model/ListStacksRequest.cc
Normal file
106
ros/src/model/ListStacksRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListStacksRequest.h>
|
||||
|
||||
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<std::string> ListStacksRequest::getStackName()const
|
||||
{
|
||||
return stackName_;
|
||||
}
|
||||
|
||||
void ListStacksRequest::setStackName(const std::vector<std::string>& 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<std::string> ListStacksRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListStacksRequest::setStatus(const std::vector<std::string>& status)
|
||||
{
|
||||
status_ = status;
|
||||
for(int i = 0; i!= status.size(); i++)
|
||||
setCoreParameter("Status."+ std::to_string(i), status.at(i));
|
||||
}
|
||||
|
||||
100
ros/src/model/ListStacksResult.cc
Normal file
100
ros/src/model/ListStacksResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/ListStacksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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::Stack> ListStacksResult::getStacks()const
|
||||
{
|
||||
return stacks_;
|
||||
}
|
||||
|
||||
143
ros/src/model/PreviewStackRequest.cc
Normal file
143
ros/src/model/PreviewStackRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/PreviewStackRequest.h>
|
||||
|
||||
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::Parameters> PreviewStackRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void PreviewStackRequest::setParameters(const std::vector<Parameters>& 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);
|
||||
}
|
||||
|
||||
55
ros/src/model/PreviewStackResult.cc
Normal file
55
ros/src/model/PreviewStackResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/PreviewStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
71
ros/src/model/SetStackPolicyRequest.cc
Normal file
71
ros/src/model/SetStackPolicyRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/SetStackPolicyRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
48
ros/src/model/SetStackPolicyResult.cc
Normal file
48
ros/src/model/SetStackPolicyResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/SetStackPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
104
ros/src/model/SignalResourceRequest.cc
Normal file
104
ros/src/model/SignalResourceRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/SignalResourceRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
48
ros/src/model/SignalResourceResult.cc
Normal file
48
ros/src/model/SignalResourceResult.cc
Normal file
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/SignalResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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());
|
||||
|
||||
}
|
||||
|
||||
198
ros/src/model/UpdateStackRequest.cc
Normal file
198
ros/src/model/UpdateStackRequest.cc
Normal file
@@ -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 <alibabacloud/ros/model/UpdateStackRequest.h>
|
||||
|
||||
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::Parameters> UpdateStackRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void UpdateStackRequest::setParameters(const std::vector<Parameters>& 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);
|
||||
}
|
||||
|
||||
55
ros/src/model/UpdateStackResult.cc
Normal file
55
ros/src/model/UpdateStackResult.cc
Normal file
@@ -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 <alibabacloud/ros/model/UpdateStackResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
60
ros/src/model/ValidateTemplateRequest.cc
Normal file
60
ros/src/model/ValidateTemplateRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ValidateTemplateRequest.h>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
63
ros/src/model/ValidateTemplateResult.cc
Normal file
63
ros/src/model/ValidateTemplateResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ros/model/ValidateTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
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<std::string> ValidateTemplateResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string ValidateTemplateResult::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user