Counters and Parameters are changed to Map in ListExections and StartExecution.
This commit is contained in:
51
oos/src/model/CancelExecutionRequest.cc
Normal file
51
oos/src/model/CancelExecutionRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CancelExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CancelExecutionRequest;
|
||||
|
||||
CancelExecutionRequest::CancelExecutionRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CancelExecution")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelExecutionRequest::~CancelExecutionRequest()
|
||||
{}
|
||||
|
||||
std::string CancelExecutionRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void CancelExecutionRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string CancelExecutionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CancelExecutionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
oos/src/model/CancelExecutionResult.cc
Normal file
44
oos/src/model/CancelExecutionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CancelExecutionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CancelExecutionResult::CancelExecutionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CancelExecutionResult::CancelExecutionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CancelExecutionResult::~CancelExecutionResult()
|
||||
{}
|
||||
|
||||
void CancelExecutionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
oos/src/model/CreateTemplateRequest.cc
Normal file
73
oos/src/model/CreateTemplateRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/CreateTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateTemplateRequest;
|
||||
|
||||
CreateTemplateRequest::CreateTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "CreateTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateTemplateRequest::~CreateTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string CreateTemplateRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CreateTemplateRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void CreateTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
76
oos/src/model/CreateTemplateResult.cc
Normal file
76
oos/src/model/CreateTemplateResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/CreateTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateTemplateResult::CreateTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTemplateResult::CreateTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTemplateResult::~CreateTemplateResult()
|
||||
{}
|
||||
|
||||
void CreateTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateTemplateResult::_Template CreateTemplateResult::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
51
oos/src/model/DeleteExecutionsRequest.cc
Normal file
51
oos/src/model/DeleteExecutionsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteExecutionsRequest;
|
||||
|
||||
DeleteExecutionsRequest::DeleteExecutionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteExecutions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExecutionsRequest::~DeleteExecutionsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteExecutionsRequest::getExecutionIds()const
|
||||
{
|
||||
return executionIds_;
|
||||
}
|
||||
|
||||
void DeleteExecutionsRequest::setExecutionIds(const std::string& executionIds)
|
||||
{
|
||||
executionIds_ = executionIds;
|
||||
setParameter("ExecutionIds", executionIds);
|
||||
}
|
||||
|
||||
std::string DeleteExecutionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteExecutionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteExecutionsResult.cc
Normal file
44
oos/src/model/DeleteExecutionsResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteExecutionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteExecutionsResult::DeleteExecutionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteExecutionsResult::DeleteExecutionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteExecutionsResult::~DeleteExecutionsResult()
|
||||
{}
|
||||
|
||||
void DeleteExecutionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
oos/src/model/DeleteTemplateRequest.cc
Normal file
62
oos/src/model/DeleteTemplateRequest.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/oos/model/DeleteTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteTemplateRequest;
|
||||
|
||||
DeleteTemplateRequest::DeleteTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTemplateRequest::~DeleteTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DeleteTemplateRequest::getAutoDeleteExecutions()const
|
||||
{
|
||||
return autoDeleteExecutions_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setAutoDeleteExecutions(bool autoDeleteExecutions)
|
||||
{
|
||||
autoDeleteExecutions_ = autoDeleteExecutions;
|
||||
setParameter("AutoDeleteExecutions", autoDeleteExecutions ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void DeleteTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteTemplateResult.cc
Normal file
44
oos/src/model/DeleteTemplateResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteTemplateResult::DeleteTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTemplateResult::DeleteTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTemplateResult::~DeleteTemplateResult()
|
||||
{}
|
||||
|
||||
void DeleteTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
62
oos/src/model/DeleteTemplatesRequest.cc
Normal file
62
oos/src/model/DeleteTemplatesRequest.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/oos/model/DeleteTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DeleteTemplatesRequest;
|
||||
|
||||
DeleteTemplatesRequest::DeleteTemplatesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DeleteTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteTemplatesRequest::~DeleteTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteTemplatesRequest::getTemplateNames()const
|
||||
{
|
||||
return templateNames_;
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setTemplateNames(const std::string& templateNames)
|
||||
{
|
||||
templateNames_ = templateNames;
|
||||
setParameter("TemplateNames", templateNames);
|
||||
}
|
||||
|
||||
std::string DeleteTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DeleteTemplatesRequest::getAutoDeleteExecutions()const
|
||||
{
|
||||
return autoDeleteExecutions_;
|
||||
}
|
||||
|
||||
void DeleteTemplatesRequest::setAutoDeleteExecutions(bool autoDeleteExecutions)
|
||||
{
|
||||
autoDeleteExecutions_ = autoDeleteExecutions;
|
||||
setParameter("AutoDeleteExecutions", autoDeleteExecutions ? "true" : "false");
|
||||
}
|
||||
|
||||
44
oos/src/model/DeleteTemplatesResult.cc
Normal file
44
oos/src/model/DeleteTemplatesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DeleteTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DeleteTemplatesResult::DeleteTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTemplatesResult::DeleteTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTemplatesResult::~DeleteTemplatesResult()
|
||||
{}
|
||||
|
||||
void DeleteTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
51
oos/src/model/DescribeRegionsRequest.cc
Normal file
51
oos/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "DescribeRegions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeRegionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeRegionsRequest::getAcceptLanguage()const
|
||||
{
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DescribeRegionsRequest::setAcceptLanguage(const std::string& acceptLanguage)
|
||||
{
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter("AcceptLanguage", acceptLanguage);
|
||||
}
|
||||
|
||||
61
oos/src/model/DescribeRegionsResult.cc
Normal file
61
oos/src/model/DescribeRegionsResult.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/oos/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
51
oos/src/model/GenerateExecutionPolicyRequest.cc
Normal file
51
oos/src/model/GenerateExecutionPolicyRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GenerateExecutionPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GenerateExecutionPolicyRequest;
|
||||
|
||||
GenerateExecutionPolicyRequest::GenerateExecutionPolicyRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GenerateExecutionPolicy")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenerateExecutionPolicyRequest::~GenerateExecutionPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void GenerateExecutionPolicyRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
51
oos/src/model/GenerateExecutionPolicyResult.cc
Normal file
51
oos/src/model/GenerateExecutionPolicyResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GenerateExecutionPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GenerateExecutionPolicyResult::GenerateExecutionPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenerateExecutionPolicyResult::GenerateExecutionPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenerateExecutionPolicyResult::~GenerateExecutionPolicyResult()
|
||||
{}
|
||||
|
||||
void GenerateExecutionPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Policy"].isNull())
|
||||
policy_ = value["Policy"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GenerateExecutionPolicyResult::getPolicy()const
|
||||
{
|
||||
return policy_;
|
||||
}
|
||||
|
||||
51
oos/src/model/GetExecutionTemplateRequest.cc
Normal file
51
oos/src/model/GetExecutionTemplateRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetExecutionTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetExecutionTemplateRequest;
|
||||
|
||||
GetExecutionTemplateRequest::GetExecutionTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetExecutionTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetExecutionTemplateRequest::~GetExecutionTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string GetExecutionTemplateRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void GetExecutionTemplateRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string GetExecutionTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetExecutionTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
81
oos/src/model/GetExecutionTemplateResult.cc
Normal file
81
oos/src/model/GetExecutionTemplateResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetExecutionTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetExecutionTemplateResult::GetExecutionTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetExecutionTemplateResult::GetExecutionTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetExecutionTemplateResult::~GetExecutionTemplateResult()
|
||||
{}
|
||||
|
||||
void GetExecutionTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetExecutionTemplateResult::_Template GetExecutionTemplateResult::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
std::string GetExecutionTemplateResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
62
oos/src/model/GetTemplateRequest.cc
Normal file
62
oos/src/model/GetTemplateRequest.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/oos/model/GetTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetTemplateRequest;
|
||||
|
||||
GetTemplateRequest::GetTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "GetTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTemplateRequest::~GetTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string GetTemplateRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
std::string GetTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void GetTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
83
oos/src/model/GetTemplateResult.cc
Normal file
83
oos/src/model/GetTemplateResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetTemplateResult::GetTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetTemplateResult::GetTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetTemplateResult::~GetTemplateResult()
|
||||
{}
|
||||
|
||||
void GetTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
if(!value["Content"].isNull())
|
||||
content_ = value["Content"].asString();
|
||||
|
||||
}
|
||||
|
||||
GetTemplateResult::_Template GetTemplateResult::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
std::string GetTemplateResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
73
oos/src/model/ListActionsRequest.cc
Normal file
73
oos/src/model/ListActionsRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListActionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListActionsRequest;
|
||||
|
||||
ListActionsRequest::ListActionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListActions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListActionsRequest::~ListActionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListActionsRequest::getOOSActionName()const
|
||||
{
|
||||
return oOSActionName_;
|
||||
}
|
||||
|
||||
void ListActionsRequest::setOOSActionName(const std::string& oOSActionName)
|
||||
{
|
||||
oOSActionName_ = oOSActionName;
|
||||
setParameter("OOSActionName", oOSActionName);
|
||||
}
|
||||
|
||||
std::string ListActionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListActionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListActionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListActionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListActionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListActionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
81
oos/src/model/ListActionsResult.cc
Normal file
81
oos/src/model/ListActionsResult.cc
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListActionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListActionsResult::ListActionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListActionsResult::ListActionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListActionsResult::~ListActionsResult()
|
||||
{}
|
||||
|
||||
void ListActionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allActionsNode = value["Actions"]["Action"];
|
||||
for (auto valueActionsAction : allActionsNode)
|
||||
{
|
||||
Action actionsObject;
|
||||
if(!valueActionsAction["OOSActionName"].isNull())
|
||||
actionsObject.oOSActionName = valueActionsAction["OOSActionName"].asString();
|
||||
if(!valueActionsAction["Description"].isNull())
|
||||
actionsObject.description = valueActionsAction["Description"].asString();
|
||||
if(!valueActionsAction["ActionType"].isNull())
|
||||
actionsObject.actionType = valueActionsAction["ActionType"].asString();
|
||||
if(!valueActionsAction["CreatedDate"].isNull())
|
||||
actionsObject.createdDate = valueActionsAction["CreatedDate"].asString();
|
||||
if(!valueActionsAction["Properties"].isNull())
|
||||
actionsObject.properties = valueActionsAction["Properties"].asString();
|
||||
if(!valueActionsAction["TemplateVersion"].isNull())
|
||||
actionsObject.templateVersion = valueActionsAction["TemplateVersion"].asString();
|
||||
actions_.push_back(actionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListActionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListActionsResult::Action> ListActionsResult::getActions()const
|
||||
{
|
||||
return actions_;
|
||||
}
|
||||
|
||||
int ListActionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
95
oos/src/model/ListExecutionLogsRequest.cc
Normal file
95
oos/src/model/ListExecutionLogsRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionLogsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionLogsRequest;
|
||||
|
||||
ListExecutionLogsRequest::ListExecutionLogsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListExecutionLogs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListExecutionLogsRequest::~ListExecutionLogsRequest()
|
||||
{}
|
||||
|
||||
std::string ListExecutionLogsRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getLogType()const
|
||||
{
|
||||
return logType_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setLogType(const std::string& logType)
|
||||
{
|
||||
logType_ = logType;
|
||||
setParameter("LogType", logType);
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListExecutionLogsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsRequest::getTaskExecutionId()const
|
||||
{
|
||||
return taskExecutionId_;
|
||||
}
|
||||
|
||||
void ListExecutionLogsRequest::setTaskExecutionId(const std::string& taskExecutionId)
|
||||
{
|
||||
taskExecutionId_ = taskExecutionId;
|
||||
setParameter("TaskExecutionId", taskExecutionId);
|
||||
}
|
||||
|
||||
84
oos/src/model/ListExecutionLogsResult.cc
Normal file
84
oos/src/model/ListExecutionLogsResult.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionLogsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListExecutionLogsResult::ListExecutionLogsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListExecutionLogsResult::ListExecutionLogsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListExecutionLogsResult::~ListExecutionLogsResult()
|
||||
{}
|
||||
|
||||
void ListExecutionLogsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allExecutionLogsNode = value["ExecutionLogs"]["ExecutionLog"];
|
||||
for (auto valueExecutionLogsExecutionLog : allExecutionLogsNode)
|
||||
{
|
||||
ExecutionLog executionLogsObject;
|
||||
if(!valueExecutionLogsExecutionLog["Timestamp"].isNull())
|
||||
executionLogsObject.timestamp = valueExecutionLogsExecutionLog["Timestamp"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["Message"].isNull())
|
||||
executionLogsObject.message = valueExecutionLogsExecutionLog["Message"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["TaskExecutionId"].isNull())
|
||||
executionLogsObject.taskExecutionId = valueExecutionLogsExecutionLog["TaskExecutionId"].asString();
|
||||
if(!valueExecutionLogsExecutionLog["LogType"].isNull())
|
||||
executionLogsObject.logType = valueExecutionLogsExecutionLog["LogType"].asString();
|
||||
executionLogs_.push_back(executionLogsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["IsTruncated"].isNull())
|
||||
isTruncated_ = value["IsTruncated"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListExecutionLogsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListExecutionLogsResult::ExecutionLog> ListExecutionLogsResult::getExecutionLogs()const
|
||||
{
|
||||
return executionLogs_;
|
||||
}
|
||||
|
||||
int ListExecutionLogsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
bool ListExecutionLogsResult::getIsTruncated()const
|
||||
{
|
||||
return isTruncated_;
|
||||
}
|
||||
|
||||
51
oos/src/model/ListExecutionRiskyTasksRequest.cc
Normal file
51
oos/src/model/ListExecutionRiskyTasksRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListExecutionRiskyTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionRiskyTasksRequest;
|
||||
|
||||
ListExecutionRiskyTasksRequest::ListExecutionRiskyTasksRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListExecutionRiskyTasks")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListExecutionRiskyTasksRequest::~ListExecutionRiskyTasksRequest()
|
||||
{}
|
||||
|
||||
std::string ListExecutionRiskyTasksRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListExecutionRiskyTasksRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionRiskyTasksRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void ListExecutionRiskyTasksRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
65
oos/src/model/ListExecutionRiskyTasksResult.cc
Normal file
65
oos/src/model/ListExecutionRiskyTasksResult.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/oos/model/ListExecutionRiskyTasksResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListExecutionRiskyTasksResult::ListExecutionRiskyTasksResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListExecutionRiskyTasksResult::ListExecutionRiskyTasksResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListExecutionRiskyTasksResult::~ListExecutionRiskyTasksResult()
|
||||
{}
|
||||
|
||||
void ListExecutionRiskyTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRiskyTasksNode = value["RiskyTasks"]["RiskyTask"];
|
||||
for (auto valueRiskyTasksRiskyTask : allRiskyTasksNode)
|
||||
{
|
||||
RiskyTask riskyTasksObject;
|
||||
if(!valueRiskyTasksRiskyTask["Service"].isNull())
|
||||
riskyTasksObject.service = valueRiskyTasksRiskyTask["Service"].asString();
|
||||
if(!valueRiskyTasksRiskyTask["API"].isNull())
|
||||
riskyTasksObject.aPI = valueRiskyTasksRiskyTask["API"].asString();
|
||||
auto allTask = value["Task"]["Task"];
|
||||
for (auto value : allTask)
|
||||
riskyTasksObject.task.push_back(value.asString());
|
||||
auto all_Template = value["Template"]["Template"];
|
||||
for (auto value : all_Template)
|
||||
riskyTasksObject._template.push_back(value.asString());
|
||||
riskyTasks_.push_back(riskyTasksObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListExecutionRiskyTasksResult::RiskyTask> ListExecutionRiskyTasksResult::getRiskyTasks()const
|
||||
{
|
||||
return riskyTasks_;
|
||||
}
|
||||
|
||||
238
oos/src/model/ListExecutionsRequest.cc
Normal file
238
oos/src/model/ListExecutionsRequest.cc
Normal file
@@ -0,0 +1,238 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/ListExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListExecutionsRequest;
|
||||
|
||||
ListExecutionsRequest::ListExecutionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListExecutions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListExecutionsRequest::~ListExecutionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListExecutionsRequest::getExecutedBy()const
|
||||
{
|
||||
return executedBy_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setExecutedBy(const std::string& executedBy)
|
||||
{
|
||||
executedBy_ = executedBy;
|
||||
setParameter("ExecutedBy", executedBy);
|
||||
}
|
||||
|
||||
bool ListExecutionsRequest::getIncludeChildExecution()const
|
||||
{
|
||||
return includeChildExecution_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setIncludeChildExecution(bool includeChildExecution)
|
||||
{
|
||||
includeChildExecution_ = includeChildExecution;
|
||||
setParameter("IncludeChildExecution", includeChildExecution ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getRamRole()const
|
||||
{
|
||||
return ramRole_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setRamRole(const std::string& ramRole)
|
||||
{
|
||||
ramRole_ = ramRole;
|
||||
setParameter("RamRole", ramRole);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getEndDateBefore()const
|
||||
{
|
||||
return endDateBefore_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setEndDateBefore(const std::string& endDateBefore)
|
||||
{
|
||||
endDateBefore_ = endDateBefore;
|
||||
setParameter("EndDateBefore", endDateBefore);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStartDateAfter()const
|
||||
{
|
||||
return startDateAfter_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStartDateAfter(const std::string& startDateAfter)
|
||||
{
|
||||
startDateAfter_ = startDateAfter;
|
||||
setParameter("StartDateAfter", startDateAfter);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStartDateBefore()const
|
||||
{
|
||||
return startDateBefore_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStartDateBefore(const std::string& startDateBefore)
|
||||
{
|
||||
startDateBefore_ = startDateBefore;
|
||||
setParameter("StartDateBefore", startDateBefore);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListExecutionsRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getParentExecutionId()const
|
||||
{
|
||||
return parentExecutionId_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setParentExecutionId(const std::string& parentExecutionId)
|
||||
{
|
||||
parentExecutionId_ = parentExecutionId;
|
||||
setParameter("ParentExecutionId", parentExecutionId);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getEndDateAfter()const
|
||||
{
|
||||
return endDateAfter_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setEndDateAfter(const std::string& endDateAfter)
|
||||
{
|
||||
endDateAfter_ = endDateAfter;
|
||||
setParameter("EndDateAfter", endDateAfter);
|
||||
}
|
||||
|
||||
int ListExecutionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
std::string ListExecutionsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListExecutionsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
129
oos/src/model/ListExecutionsResult.cc
Normal file
129
oos/src/model/ListExecutionsResult.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/ListExecutionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListExecutionsResult::ListExecutionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListExecutionsResult::ListExecutionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListExecutionsResult::~ListExecutionsResult()
|
||||
{}
|
||||
|
||||
void ListExecutionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allExecutionsNode = value["Executions"]["Execution"];
|
||||
for (auto valueExecutionsExecution : allExecutionsNode)
|
||||
{
|
||||
Execution executionsObject;
|
||||
if(!valueExecutionsExecution["ExecutionId"].isNull())
|
||||
executionsObject.executionId = valueExecutionsExecution["ExecutionId"].asString();
|
||||
if(!valueExecutionsExecution["TemplateName"].isNull())
|
||||
executionsObject.templateName = valueExecutionsExecution["TemplateName"].asString();
|
||||
if(!valueExecutionsExecution["TemplateId"].isNull())
|
||||
executionsObject.templateId = valueExecutionsExecution["TemplateId"].asString();
|
||||
if(!valueExecutionsExecution["TemplateVersion"].isNull())
|
||||
executionsObject.templateVersion = valueExecutionsExecution["TemplateVersion"].asString();
|
||||
if(!valueExecutionsExecution["Mode"].isNull())
|
||||
executionsObject.mode = valueExecutionsExecution["Mode"].asString();
|
||||
if(!valueExecutionsExecution["ExecutedBy"].isNull())
|
||||
executionsObject.executedBy = valueExecutionsExecution["ExecutedBy"].asString();
|
||||
if(!valueExecutionsExecution["StartDate"].isNull())
|
||||
executionsObject.startDate = valueExecutionsExecution["StartDate"].asString();
|
||||
if(!valueExecutionsExecution["EndDate"].isNull())
|
||||
executionsObject.endDate = valueExecutionsExecution["EndDate"].asString();
|
||||
if(!valueExecutionsExecution["CreateDate"].isNull())
|
||||
executionsObject.createDate = valueExecutionsExecution["CreateDate"].asString();
|
||||
if(!valueExecutionsExecution["UpdateDate"].isNull())
|
||||
executionsObject.updateDate = valueExecutionsExecution["UpdateDate"].asString();
|
||||
if(!valueExecutionsExecution["Status"].isNull())
|
||||
executionsObject.status = valueExecutionsExecution["Status"].asString();
|
||||
if(!valueExecutionsExecution["StatusMessage"].isNull())
|
||||
executionsObject.statusMessage = valueExecutionsExecution["StatusMessage"].asString();
|
||||
if(!valueExecutionsExecution["StatusReason"].isNull())
|
||||
executionsObject.statusReason = valueExecutionsExecution["StatusReason"].asString();
|
||||
if(!valueExecutionsExecution["WaitingStatus"].isNull())
|
||||
executionsObject.waitingStatus = valueExecutionsExecution["WaitingStatus"].asString();
|
||||
if(!valueExecutionsExecution["ParentExecutionId"].isNull())
|
||||
executionsObject.parentExecutionId = valueExecutionsExecution["ParentExecutionId"].asString();
|
||||
if(!valueExecutionsExecution["Parameters"].isNull())
|
||||
executionsObject.parameters = valueExecutionsExecution["Parameters"].asString();
|
||||
if(!valueExecutionsExecution["Outputs"].isNull())
|
||||
executionsObject.outputs = valueExecutionsExecution["Outputs"].asString();
|
||||
if(!valueExecutionsExecution["SafetyCheck"].isNull())
|
||||
executionsObject.safetyCheck = valueExecutionsExecution["SafetyCheck"].asString();
|
||||
if(!valueExecutionsExecution["IsParent"].isNull())
|
||||
executionsObject.isParent = valueExecutionsExecution["IsParent"].asString() == "true";
|
||||
if(!valueExecutionsExecution["RamRole"].isNull())
|
||||
executionsObject.ramRole = valueExecutionsExecution["RamRole"].asString();
|
||||
if(!valueExecutionsExecution["Counters"].isNull())
|
||||
executionsObject.counters = valueExecutionsExecution["Counters"].asString();
|
||||
if(!valueExecutionsExecution["Category"].isNull())
|
||||
executionsObject.category = valueExecutionsExecution["Category"].asString();
|
||||
if(!valueExecutionsExecution["Tags"].isNull())
|
||||
executionsObject.tags = valueExecutionsExecution["Tags"].asString();
|
||||
if(!valueExecutionsExecution["Description"].isNull())
|
||||
executionsObject.description = valueExecutionsExecution["Description"].asString();
|
||||
auto allCurrentTasksNode = allExecutionsNode["CurrentTasks"]["CurrentTask"];
|
||||
for (auto allExecutionsNodeCurrentTasksCurrentTask : allCurrentTasksNode)
|
||||
{
|
||||
Execution::CurrentTask currentTasksObject;
|
||||
if(!allExecutionsNodeCurrentTasksCurrentTask["TaskExecutionId"].isNull())
|
||||
currentTasksObject.taskExecutionId = allExecutionsNodeCurrentTasksCurrentTask["TaskExecutionId"].asString();
|
||||
if(!allExecutionsNodeCurrentTasksCurrentTask["TaskName"].isNull())
|
||||
currentTasksObject.taskName = allExecutionsNodeCurrentTasksCurrentTask["TaskName"].asString();
|
||||
if(!allExecutionsNodeCurrentTasksCurrentTask["TaskAction"].isNull())
|
||||
currentTasksObject.taskAction = allExecutionsNodeCurrentTasksCurrentTask["TaskAction"].asString();
|
||||
executionsObject.currentTasks.push_back(currentTasksObject);
|
||||
}
|
||||
executions_.push_back(executionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListExecutionsResult::Execution> ListExecutionsResult::getExecutions()const
|
||||
{
|
||||
return executions_;
|
||||
}
|
||||
|
||||
std::string ListExecutionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListExecutionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
73
oos/src/model/ListTagKeysRequest.cc
Normal file
73
oos/src/model/ListTagKeysRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagKeysRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagKeysRequest;
|
||||
|
||||
ListTagKeysRequest::ListTagKeysRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTagKeys")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagKeysRequest::~ListTagKeysRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagKeysRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagKeysRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagKeysRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListTagKeysRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTagKeysRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
66
oos/src/model/ListTagKeysResult.cc
Normal file
66
oos/src/model/ListTagKeysResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagKeysResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListTagKeysResult::ListTagKeysResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagKeysResult::ListTagKeysResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagKeysResult::~ListTagKeysResult()
|
||||
{}
|
||||
|
||||
void ListTagKeysResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allKeys = value["Keys"]["Key"];
|
||||
for (const auto &item : allKeys)
|
||||
keys_.push_back(item.asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagKeysResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagKeysResult::getKeys()const
|
||||
{
|
||||
return keys_;
|
||||
}
|
||||
|
||||
int ListTagKeysResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
84
oos/src/model/ListTagResourcesRequest.cc
Normal file
84
oos/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListTagResourcesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListTagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceIds(const std::map<std::string, std::string>& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setJsonParameters("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
70
oos/src/model/ListTagResourcesResult.cc
Normal file
70
oos/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourcesNode = value["TagResources"]["TagResource"];
|
||||
for (auto valueTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
TagResource tagResourcesObject;
|
||||
if(!valueTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString();
|
||||
if(!valueTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!valueTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString();
|
||||
tagResources_.push_back(tagResourcesObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListTagResourcesResult::TagResource> ListTagResourcesResult::getTagResources()const
|
||||
{
|
||||
return tagResources_;
|
||||
}
|
||||
|
||||
84
oos/src/model/ListTagValuesRequest.cc
Normal file
84
oos/src/model/ListTagValuesRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagValuesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTagValuesRequest;
|
||||
|
||||
ListTagValuesRequest::ListTagValuesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTagValues")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTagValuesRequest::~ListTagValuesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagValuesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagValuesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagValuesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int ListTagValuesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListTagValuesRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ListTagValuesRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
66
oos/src/model/ListTagValuesResult.cc
Normal file
66
oos/src/model/ListTagValuesResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ListTagValuesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListTagValuesResult::ListTagValuesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagValuesResult::ListTagValuesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagValuesResult::~ListTagValuesResult()
|
||||
{}
|
||||
|
||||
void ListTagValuesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allValues = value["Values"]["Value"];
|
||||
for (const auto &item : allValues)
|
||||
values_.push_back(item.asString());
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagValuesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTagValuesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<std::string> ListTagValuesResult::getValues()const
|
||||
{
|
||||
return values_;
|
||||
}
|
||||
|
||||
205
oos/src/model/ListTaskExecutionsRequest.cc
Normal file
205
oos/src/model/ListTaskExecutionsRequest.cc
Normal file
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/ListTaskExecutionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTaskExecutionsRequest;
|
||||
|
||||
ListTaskExecutionsRequest::ListTaskExecutionsRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTaskExecutions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTaskExecutionsRequest::~ListTaskExecutionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
bool ListTaskExecutionsRequest::getIncludeChildTaskExecution()const
|
||||
{
|
||||
return includeChildTaskExecution_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setIncludeChildTaskExecution(bool includeChildTaskExecution)
|
||||
{
|
||||
includeChildTaskExecution_ = includeChildTaskExecution;
|
||||
setParameter("IncludeChildTaskExecution", includeChildTaskExecution ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getParentTaskExecutionId()const
|
||||
{
|
||||
return parentTaskExecutionId_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setParentTaskExecutionId(const std::string& parentTaskExecutionId)
|
||||
{
|
||||
parentTaskExecutionId_ = parentTaskExecutionId;
|
||||
setParameter("ParentTaskExecutionId", parentTaskExecutionId);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getEndDateBefore()const
|
||||
{
|
||||
return endDateBefore_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setEndDateBefore(const std::string& endDateBefore)
|
||||
{
|
||||
endDateBefore_ = endDateBefore;
|
||||
setParameter("EndDateBefore", endDateBefore);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getStartDateAfter()const
|
||||
{
|
||||
return startDateAfter_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setStartDateAfter(const std::string& startDateAfter)
|
||||
{
|
||||
startDateAfter_ = startDateAfter;
|
||||
setParameter("StartDateAfter", startDateAfter);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getStartDateBefore()const
|
||||
{
|
||||
return startDateBefore_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setStartDateBefore(const std::string& startDateBefore)
|
||||
{
|
||||
startDateBefore_ = startDateBefore;
|
||||
setParameter("StartDateBefore", startDateBefore);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getEndDateAfter()const
|
||||
{
|
||||
return endDateAfter_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setEndDateAfter(const std::string& endDateAfter)
|
||||
{
|
||||
endDateAfter_ = endDateAfter;
|
||||
setParameter("EndDateAfter", endDateAfter);
|
||||
}
|
||||
|
||||
int ListTaskExecutionsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getTaskExecutionId()const
|
||||
{
|
||||
return taskExecutionId_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setTaskExecutionId(const std::string& taskExecutionId)
|
||||
{
|
||||
taskExecutionId_ = taskExecutionId;
|
||||
setParameter("TaskExecutionId", taskExecutionId);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getTaskAction()const
|
||||
{
|
||||
return taskAction_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setTaskAction(const std::string& taskAction)
|
||||
{
|
||||
taskAction_ = taskAction;
|
||||
setParameter("TaskAction", taskAction);
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void ListTaskExecutionsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
107
oos/src/model/ListTaskExecutionsResult.cc
Normal file
107
oos/src/model/ListTaskExecutionsResult.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/oos/model/ListTaskExecutionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListTaskExecutionsResult::ListTaskExecutionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTaskExecutionsResult::ListTaskExecutionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTaskExecutionsResult::~ListTaskExecutionsResult()
|
||||
{}
|
||||
|
||||
void ListTaskExecutionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTaskExecutionsNode = value["TaskExecutions"]["TaskExecution"];
|
||||
for (auto valueTaskExecutionsTaskExecution : allTaskExecutionsNode)
|
||||
{
|
||||
TaskExecution taskExecutionsObject;
|
||||
if(!valueTaskExecutionsTaskExecution["ExecutionId"].isNull())
|
||||
taskExecutionsObject.executionId = valueTaskExecutionsTaskExecution["ExecutionId"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["TaskExecutionId"].isNull())
|
||||
taskExecutionsObject.taskExecutionId = valueTaskExecutionsTaskExecution["TaskExecutionId"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["TemplateId"].isNull())
|
||||
taskExecutionsObject.templateId = valueTaskExecutionsTaskExecution["TemplateId"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["StartDate"].isNull())
|
||||
taskExecutionsObject.startDate = valueTaskExecutionsTaskExecution["StartDate"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["EndDate"].isNull())
|
||||
taskExecutionsObject.endDate = valueTaskExecutionsTaskExecution["EndDate"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["CreateDate"].isNull())
|
||||
taskExecutionsObject.createDate = valueTaskExecutionsTaskExecution["CreateDate"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["UpdateDate"].isNull())
|
||||
taskExecutionsObject.updateDate = valueTaskExecutionsTaskExecution["UpdateDate"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["Status"].isNull())
|
||||
taskExecutionsObject.status = valueTaskExecutionsTaskExecution["Status"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["Properties"].isNull())
|
||||
taskExecutionsObject.properties = valueTaskExecutionsTaskExecution["Properties"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["Outputs"].isNull())
|
||||
taskExecutionsObject.outputs = valueTaskExecutionsTaskExecution["Outputs"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["TaskAction"].isNull())
|
||||
taskExecutionsObject.taskAction = valueTaskExecutionsTaskExecution["TaskAction"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["TaskName"].isNull())
|
||||
taskExecutionsObject.taskName = valueTaskExecutionsTaskExecution["TaskName"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["StatusMessage"].isNull())
|
||||
taskExecutionsObject.statusMessage = valueTaskExecutionsTaskExecution["StatusMessage"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["ChildExecutionId"].isNull())
|
||||
taskExecutionsObject.childExecutionId = valueTaskExecutionsTaskExecution["ChildExecutionId"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["ParentTaskExecutionId"].isNull())
|
||||
taskExecutionsObject.parentTaskExecutionId = valueTaskExecutionsTaskExecution["ParentTaskExecutionId"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["LoopItem"].isNull())
|
||||
taskExecutionsObject.loopItem = valueTaskExecutionsTaskExecution["LoopItem"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["Loop"].isNull())
|
||||
taskExecutionsObject.loop = valueTaskExecutionsTaskExecution["Loop"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["ExtraData"].isNull())
|
||||
taskExecutionsObject.extraData = valueTaskExecutionsTaskExecution["ExtraData"].asString();
|
||||
if(!valueTaskExecutionsTaskExecution["LoopBatchNumber"].isNull())
|
||||
taskExecutionsObject.loopBatchNumber = std::stoi(valueTaskExecutionsTaskExecution["LoopBatchNumber"].asString());
|
||||
taskExecutions_.push_back(taskExecutionsObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTaskExecutionsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTaskExecutionsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListTaskExecutionsResult::TaskExecution> ListTaskExecutionsResult::getTaskExecutions()const
|
||||
{
|
||||
return taskExecutions_;
|
||||
}
|
||||
|
||||
183
oos/src/model/ListTemplatesRequest.cc
Normal file
183
oos/src/model/ListTemplatesRequest.cc
Normal file
@@ -0,0 +1,183 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/ListTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListTemplatesRequest;
|
||||
|
||||
ListTemplatesRequest::ListTemplatesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ListTemplates")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTemplatesRequest::~ListTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTemplatesRequest::getCreatedDateBefore()const
|
||||
{
|
||||
return createdDateBefore_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setCreatedDateBefore(const std::string& createdDateBefore)
|
||||
{
|
||||
createdDateBefore_ = createdDateBefore;
|
||||
setParameter("CreatedDateBefore", createdDateBefore);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getCreatedBy()const
|
||||
{
|
||||
return createdBy_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setCreatedBy(const std::string& createdBy)
|
||||
{
|
||||
createdBy_ = createdBy;
|
||||
setParameter("CreatedBy", createdBy);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getSortOrder()const
|
||||
{
|
||||
return sortOrder_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setSortOrder(const std::string& sortOrder)
|
||||
{
|
||||
sortOrder_ = sortOrder;
|
||||
setParameter("SortOrder", sortOrder);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getShareType()const
|
||||
{
|
||||
return shareType_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setShareType(const std::string& shareType)
|
||||
{
|
||||
shareType_ = shareType;
|
||||
setParameter("ShareType", shareType);
|
||||
}
|
||||
|
||||
bool ListTemplatesRequest::getHasTrigger()const
|
||||
{
|
||||
return hasTrigger_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setHasTrigger(bool hasTrigger)
|
||||
{
|
||||
hasTrigger_ = hasTrigger;
|
||||
setParameter("HasTrigger", hasTrigger ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getCreatedDateAfter()const
|
||||
{
|
||||
return createdDateAfter_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setCreatedDateAfter(const std::string& createdDateAfter)
|
||||
{
|
||||
createdDateAfter_ = createdDateAfter;
|
||||
setParameter("CreatedDateAfter", createdDateAfter);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ListTemplatesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
int ListTemplatesRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getTemplateFormat()const
|
||||
{
|
||||
return templateFormat_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setTemplateFormat(const std::string& templateFormat)
|
||||
{
|
||||
templateFormat_ = templateFormat;
|
||||
setParameter("TemplateFormat", templateFormat);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getSortField()const
|
||||
{
|
||||
return sortField_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setSortField(const std::string& sortField)
|
||||
{
|
||||
sortField_ = sortField;
|
||||
setParameter("SortField", sortField);
|
||||
}
|
||||
|
||||
std::string ListTemplatesRequest::getCategory()const
|
||||
{
|
||||
return category_;
|
||||
}
|
||||
|
||||
void ListTemplatesRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
101
oos/src/model/ListTemplatesResult.cc
Normal file
101
oos/src/model/ListTemplatesResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/ListTemplatesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListTemplatesResult::ListTemplatesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTemplatesResult::ListTemplatesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTemplatesResult::~ListTemplatesResult()
|
||||
{}
|
||||
|
||||
void ListTemplatesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTemplatesNode = value["Templates"]["Template"];
|
||||
for (auto valueTemplatesTemplate : allTemplatesNode)
|
||||
{
|
||||
_Template templatesObject;
|
||||
if(!valueTemplatesTemplate["TemplateName"].isNull())
|
||||
templatesObject.templateName = valueTemplatesTemplate["TemplateName"].asString();
|
||||
if(!valueTemplatesTemplate["TemplateId"].isNull())
|
||||
templatesObject.templateId = valueTemplatesTemplate["TemplateId"].asString();
|
||||
if(!valueTemplatesTemplate["CreatedDate"].isNull())
|
||||
templatesObject.createdDate = valueTemplatesTemplate["CreatedDate"].asString();
|
||||
if(!valueTemplatesTemplate["CreatedBy"].isNull())
|
||||
templatesObject.createdBy = valueTemplatesTemplate["CreatedBy"].asString();
|
||||
if(!valueTemplatesTemplate["UpdatedDate"].isNull())
|
||||
templatesObject.updatedDate = valueTemplatesTemplate["UpdatedDate"].asString();
|
||||
if(!valueTemplatesTemplate["UpdatedBy"].isNull())
|
||||
templatesObject.updatedBy = valueTemplatesTemplate["UpdatedBy"].asString();
|
||||
if(!valueTemplatesTemplate["Hash"].isNull())
|
||||
templatesObject.hash = valueTemplatesTemplate["Hash"].asString();
|
||||
if(!valueTemplatesTemplate["Description"].isNull())
|
||||
templatesObject.description = valueTemplatesTemplate["Description"].asString();
|
||||
if(!valueTemplatesTemplate["ShareType"].isNull())
|
||||
templatesObject.shareType = valueTemplatesTemplate["ShareType"].asString();
|
||||
if(!valueTemplatesTemplate["TemplateFormat"].isNull())
|
||||
templatesObject.templateFormat = valueTemplatesTemplate["TemplateFormat"].asString();
|
||||
if(!valueTemplatesTemplate["TemplateVersion"].isNull())
|
||||
templatesObject.templateVersion = valueTemplatesTemplate["TemplateVersion"].asString();
|
||||
if(!valueTemplatesTemplate["HasTrigger"].isNull())
|
||||
templatesObject.hasTrigger = valueTemplatesTemplate["HasTrigger"].asString() == "true";
|
||||
if(!valueTemplatesTemplate["TotalExecutionCount"].isNull())
|
||||
templatesObject.totalExecutionCount = std::stoi(valueTemplatesTemplate["TotalExecutionCount"].asString());
|
||||
if(!valueTemplatesTemplate["Popularity"].isNull())
|
||||
templatesObject.popularity = std::stoi(valueTemplatesTemplate["Popularity"].asString());
|
||||
if(!valueTemplatesTemplate["Tags"].isNull())
|
||||
templatesObject.tags = valueTemplatesTemplate["Tags"].asString();
|
||||
if(!valueTemplatesTemplate["Category"].isNull())
|
||||
templatesObject.category = valueTemplatesTemplate["Category"].asString();
|
||||
templates_.push_back(templatesObject);
|
||||
}
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTemplatesResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListTemplatesResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
std::vector<ListTemplatesResult::_Template> ListTemplatesResult::getTemplates()const
|
||||
{
|
||||
return templates_;
|
||||
}
|
||||
|
||||
139
oos/src/model/NotifyExecutionRequest.cc
Normal file
139
oos/src/model/NotifyExecutionRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/NotifyExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::NotifyExecutionRequest;
|
||||
|
||||
NotifyExecutionRequest::NotifyExecutionRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "NotifyExecution")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
NotifyExecutionRequest::~NotifyExecutionRequest()
|
||||
{}
|
||||
|
||||
std::string NotifyExecutionRequest::getTaskName()const
|
||||
{
|
||||
return taskName_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getNotifyType()const
|
||||
{
|
||||
return notifyType_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setNotifyType(const std::string& notifyType)
|
||||
{
|
||||
notifyType_ = notifyType;
|
||||
setParameter("NotifyType", notifyType);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getExecutionStatus()const
|
||||
{
|
||||
return executionStatus_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setExecutionStatus(const std::string& executionStatus)
|
||||
{
|
||||
executionStatus_ = executionStatus;
|
||||
setParameter("ExecutionStatus", executionStatus);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getNotifyNote()const
|
||||
{
|
||||
return notifyNote_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setNotifyNote(const std::string& notifyNote)
|
||||
{
|
||||
notifyNote_ = notifyNote;
|
||||
setParameter("NotifyNote", notifyNote);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getLoopItem()const
|
||||
{
|
||||
return loopItem_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setLoopItem(const std::string& loopItem)
|
||||
{
|
||||
loopItem_ = loopItem;
|
||||
setParameter("LoopItem", loopItem);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getTaskExecutionIds()const
|
||||
{
|
||||
return taskExecutionIds_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setTaskExecutionIds(const std::string& taskExecutionIds)
|
||||
{
|
||||
taskExecutionIds_ = taskExecutionIds;
|
||||
setParameter("TaskExecutionIds", taskExecutionIds);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getTaskExecutionId()const
|
||||
{
|
||||
return taskExecutionId_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setTaskExecutionId(const std::string& taskExecutionId)
|
||||
{
|
||||
taskExecutionId_ = taskExecutionId;
|
||||
setParameter("TaskExecutionId", taskExecutionId);
|
||||
}
|
||||
|
||||
std::string NotifyExecutionRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void NotifyExecutionRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
44
oos/src/model/NotifyExecutionResult.cc
Normal file
44
oos/src/model/NotifyExecutionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/NotifyExecutionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
NotifyExecutionResult::NotifyExecutionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
NotifyExecutionResult::NotifyExecutionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
NotifyExecutionResult::~NotifyExecutionResult()
|
||||
{}
|
||||
|
||||
void NotifyExecutionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
150
oos/src/model/StartExecutionRequest.cc
Normal file
150
oos/src/model/StartExecutionRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/StartExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::StartExecutionRequest;
|
||||
|
||||
StartExecutionRequest::StartExecutionRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "StartExecution")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartExecutionRequest::~StartExecutionRequest()
|
||||
{}
|
||||
|
||||
std::string StartExecutionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getTemplateVersion()const
|
||||
{
|
||||
return templateVersion_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setTemplateVersion(const std::string& templateVersion)
|
||||
{
|
||||
templateVersion_ = templateVersion;
|
||||
setParameter("TemplateVersion", templateVersion);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getLoopMode()const
|
||||
{
|
||||
return loopMode_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setLoopMode(const std::string& loopMode)
|
||||
{
|
||||
loopMode_ = loopMode;
|
||||
setParameter("LoopMode", loopMode);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getSafetyCheck()const
|
||||
{
|
||||
return safetyCheck_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setSafetyCheck(const std::string& safetyCheck)
|
||||
{
|
||||
safetyCheck_ = safetyCheck;
|
||||
setParameter("SafetyCheck", safetyCheck);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> StartExecutionRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getParentExecutionId()const
|
||||
{
|
||||
return parentExecutionId_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setParentExecutionId(const std::string& parentExecutionId)
|
||||
{
|
||||
parentExecutionId_ = parentExecutionId;
|
||||
setParameter("ParentExecutionId", parentExecutionId);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setParameters(const std::string& parameters)
|
||||
{
|
||||
parameters_ = parameters;
|
||||
setParameter("Parameters", parameters);
|
||||
}
|
||||
|
||||
106
oos/src/model/StartExecutionResult.cc
Normal file
106
oos/src/model/StartExecutionResult.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/oos/model/StartExecutionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
StartExecutionResult::StartExecutionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartExecutionResult::StartExecutionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartExecutionResult::~StartExecutionResult()
|
||||
{}
|
||||
|
||||
void StartExecutionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto executionNode = value["Execution"];
|
||||
if(!executionNode["ExecutionId"].isNull())
|
||||
execution_.executionId = executionNode["ExecutionId"].asString();
|
||||
if(!executionNode["TemplateName"].isNull())
|
||||
execution_.templateName = executionNode["TemplateName"].asString();
|
||||
if(!executionNode["TemplateId"].isNull())
|
||||
execution_.templateId = executionNode["TemplateId"].asString();
|
||||
if(!executionNode["TemplateVersion"].isNull())
|
||||
execution_.templateVersion = executionNode["TemplateVersion"].asString();
|
||||
if(!executionNode["Mode"].isNull())
|
||||
execution_.mode = executionNode["Mode"].asString();
|
||||
if(!executionNode["LoopMode"].isNull())
|
||||
execution_.loopMode = executionNode["LoopMode"].asString();
|
||||
if(!executionNode["ExecutedBy"].isNull())
|
||||
execution_.executedBy = executionNode["ExecutedBy"].asString();
|
||||
if(!executionNode["StartDate"].isNull())
|
||||
execution_.startDate = executionNode["StartDate"].asString();
|
||||
if(!executionNode["EndDate"].isNull())
|
||||
execution_.endDate = executionNode["EndDate"].asString();
|
||||
if(!executionNode["CreateDate"].isNull())
|
||||
execution_.createDate = executionNode["CreateDate"].asString();
|
||||
if(!executionNode["UpdateDate"].isNull())
|
||||
execution_.updateDate = executionNode["UpdateDate"].asString();
|
||||
if(!executionNode["Status"].isNull())
|
||||
execution_.status = executionNode["Status"].asString();
|
||||
if(!executionNode["StatusMessage"].isNull())
|
||||
execution_.statusMessage = executionNode["StatusMessage"].asString();
|
||||
if(!executionNode["ParentExecutionId"].isNull())
|
||||
execution_.parentExecutionId = executionNode["ParentExecutionId"].asString();
|
||||
if(!executionNode["Parameters"].isNull())
|
||||
execution_.parameters = executionNode["Parameters"].asString();
|
||||
if(!executionNode["Outputs"].isNull())
|
||||
execution_.outputs = executionNode["Outputs"].asString();
|
||||
if(!executionNode["SafetyCheck"].isNull())
|
||||
execution_.safetyCheck = executionNode["SafetyCheck"].asString();
|
||||
if(!executionNode["IsParent"].isNull())
|
||||
execution_.isParent = executionNode["IsParent"].asString() == "true";
|
||||
if(!executionNode["Counters"].isNull())
|
||||
execution_.counters = executionNode["Counters"].asString();
|
||||
if(!executionNode["RamRole"].isNull())
|
||||
execution_.ramRole = executionNode["RamRole"].asString();
|
||||
if(!executionNode["Tags"].isNull())
|
||||
execution_.tags = executionNode["Tags"].asString();
|
||||
if(!executionNode["Description"].isNull())
|
||||
execution_.description = executionNode["Description"].asString();
|
||||
auto allCurrentTasksNode = executionNode["CurrentTasks"]["CurrentTask"];
|
||||
for (auto executionNodeCurrentTasksCurrentTask : allCurrentTasksNode)
|
||||
{
|
||||
Execution::CurrentTask currentTaskObject;
|
||||
if(!executionNodeCurrentTasksCurrentTask["TaskExecutionId"].isNull())
|
||||
currentTaskObject.taskExecutionId = executionNodeCurrentTasksCurrentTask["TaskExecutionId"].asString();
|
||||
if(!executionNodeCurrentTasksCurrentTask["TaskName"].isNull())
|
||||
currentTaskObject.taskName = executionNodeCurrentTasksCurrentTask["TaskName"].asString();
|
||||
if(!executionNodeCurrentTasksCurrentTask["TaskAction"].isNull())
|
||||
currentTaskObject.taskAction = executionNodeCurrentTasksCurrentTask["TaskAction"].asString();
|
||||
execution_.currentTasks.push_back(currentTaskObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
StartExecutionResult::Execution StartExecutionResult::getExecution()const
|
||||
{
|
||||
return execution_;
|
||||
}
|
||||
|
||||
73
oos/src/model/TagResourcesRequest.cc
Normal file
73
oos/src/model/TagResourcesRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> TagResourcesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> TagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceIds(const std::map<std::string, std::string>& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setJsonParameters("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
44
oos/src/model/TagResourcesResult.cc
Normal file
44
oos/src/model/TagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
oos/src/model/TriggerExecutionRequest.cc
Normal file
84
oos/src/model/TriggerExecutionRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/TriggerExecutionRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::TriggerExecutionRequest;
|
||||
|
||||
TriggerExecutionRequest::TriggerExecutionRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "TriggerExecution")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TriggerExecutionRequest::~TriggerExecutionRequest()
|
||||
{}
|
||||
|
||||
std::string TriggerExecutionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void TriggerExecutionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
std::string TriggerExecutionRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void TriggerExecutionRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string TriggerExecutionRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void TriggerExecutionRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string TriggerExecutionRequest::getExecutionId()const
|
||||
{
|
||||
return executionId_;
|
||||
}
|
||||
|
||||
void TriggerExecutionRequest::setExecutionId(const std::string& executionId)
|
||||
{
|
||||
executionId_ = executionId;
|
||||
setParameter("ExecutionId", executionId);
|
||||
}
|
||||
|
||||
std::string TriggerExecutionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TriggerExecutionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
44
oos/src/model/TriggerExecutionResult.cc
Normal file
44
oos/src/model/TriggerExecutionResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/TriggerExecutionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
TriggerExecutionResult::TriggerExecutionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TriggerExecutionResult::TriggerExecutionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TriggerExecutionResult::~TriggerExecutionResult()
|
||||
{}
|
||||
|
||||
void TriggerExecutionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
84
oos/src/model/UntagResourcesRequest.cc
Normal file
84
oos/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "UntagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UntagResourcesRequest::getTagKeys()const
|
||||
{
|
||||
return tagKeys_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKeys(const std::map<std::string, std::string>& tagKeys)
|
||||
{
|
||||
tagKeys_ = tagKeys;
|
||||
setJsonParameters("TagKeys", tagKeys);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UntagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceIds(const std::map<std::string, std::string>& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setJsonParameters("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
44
oos/src/model/UntagResourcesResult.cc
Normal file
44
oos/src/model/UntagResourcesResult.cc
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
73
oos/src/model/UpdateTemplateRequest.cc
Normal file
73
oos/src/model/UpdateTemplateRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/UpdateTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::UpdateTemplateRequest;
|
||||
|
||||
UpdateTemplateRequest::UpdateTemplateRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "UpdateTemplate")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateTemplateRequest::~UpdateTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateTemplateRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void UpdateTemplateRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> UpdateTemplateRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void UpdateTemplateRequest::setTags(const std::map<std::string, std::string>& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setJsonParameters("Tags", tags);
|
||||
}
|
||||
|
||||
std::string UpdateTemplateRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateTemplateRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateTemplateRequest::getTemplateName()const
|
||||
{
|
||||
return templateName_;
|
||||
}
|
||||
|
||||
void UpdateTemplateRequest::setTemplateName(const std::string& templateName)
|
||||
{
|
||||
templateName_ = templateName;
|
||||
setParameter("TemplateName", templateName);
|
||||
}
|
||||
|
||||
76
oos/src/model/UpdateTemplateResult.cc
Normal file
76
oos/src/model/UpdateTemplateResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/UpdateTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
UpdateTemplateResult::UpdateTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateTemplateResult::UpdateTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateTemplateResult::~UpdateTemplateResult()
|
||||
{}
|
||||
|
||||
void UpdateTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto _templateNode = value["Template"];
|
||||
if(!_templateNode["TemplateName"].isNull())
|
||||
_template_.templateName = _templateNode["TemplateName"].asString();
|
||||
if(!_templateNode["TemplateId"].isNull())
|
||||
_template_.templateId = _templateNode["TemplateId"].asString();
|
||||
if(!_templateNode["CreatedDate"].isNull())
|
||||
_template_.createdDate = _templateNode["CreatedDate"].asString();
|
||||
if(!_templateNode["CreatedBy"].isNull())
|
||||
_template_.createdBy = _templateNode["CreatedBy"].asString();
|
||||
if(!_templateNode["UpdatedDate"].isNull())
|
||||
_template_.updatedDate = _templateNode["UpdatedDate"].asString();
|
||||
if(!_templateNode["UpdatedBy"].isNull())
|
||||
_template_.updatedBy = _templateNode["UpdatedBy"].asString();
|
||||
if(!_templateNode["Hash"].isNull())
|
||||
_template_.hash = _templateNode["Hash"].asString();
|
||||
if(!_templateNode["Description"].isNull())
|
||||
_template_.description = _templateNode["Description"].asString();
|
||||
if(!_templateNode["ShareType"].isNull())
|
||||
_template_.shareType = _templateNode["ShareType"].asString();
|
||||
if(!_templateNode["TemplateFormat"].isNull())
|
||||
_template_.templateFormat = _templateNode["TemplateFormat"].asString();
|
||||
if(!_templateNode["TemplateVersion"].isNull())
|
||||
_template_.templateVersion = _templateNode["TemplateVersion"].asString();
|
||||
if(!_templateNode["HasTrigger"].isNull())
|
||||
_template_.hasTrigger = _templateNode["HasTrigger"].asString() == "true";
|
||||
if(!_templateNode["Tags"].isNull())
|
||||
_template_.tags = _templateNode["Tags"].asString();
|
||||
|
||||
}
|
||||
|
||||
UpdateTemplateResult::_Template UpdateTemplateResult::get_Template()const
|
||||
{
|
||||
return _template_;
|
||||
}
|
||||
|
||||
51
oos/src/model/ValidateTemplateContentRequest.cc
Normal file
51
oos/src/model/ValidateTemplateContentRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/ValidateTemplateContentRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ValidateTemplateContentRequest;
|
||||
|
||||
ValidateTemplateContentRequest::ValidateTemplateContentRequest() :
|
||||
RpcServiceRequest("oos", "2019-06-01", "ValidateTemplateContent")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ValidateTemplateContentRequest::~ValidateTemplateContentRequest()
|
||||
{}
|
||||
|
||||
std::string ValidateTemplateContentRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void ValidateTemplateContentRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string ValidateTemplateContentRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ValidateTemplateContentRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
86
oos/src/model/ValidateTemplateContentResult.cc
Normal file
86
oos/src/model/ValidateTemplateContentResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/oos/model/ValidateTemplateContentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ValidateTemplateContentResult::ValidateTemplateContentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ValidateTemplateContentResult::ValidateTemplateContentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ValidateTemplateContentResult::~ValidateTemplateContentResult()
|
||||
{}
|
||||
|
||||
void ValidateTemplateContentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTasksNode = value["Tasks"]["Task"];
|
||||
for (auto valueTasksTask : allTasksNode)
|
||||
{
|
||||
Task tasksObject;
|
||||
if(!valueTasksTask["Name"].isNull())
|
||||
tasksObject.name = valueTasksTask["Name"].asString();
|
||||
if(!valueTasksTask["Type"].isNull())
|
||||
tasksObject.type = valueTasksTask["Type"].asString();
|
||||
if(!valueTasksTask["Description"].isNull())
|
||||
tasksObject.description = valueTasksTask["Description"].asString();
|
||||
if(!valueTasksTask["Properties"].isNull())
|
||||
tasksObject.properties = valueTasksTask["Properties"].asString();
|
||||
if(!valueTasksTask["Outputs"].isNull())
|
||||
tasksObject.outputs = valueTasksTask["Outputs"].asString();
|
||||
tasks_.push_back(tasksObject);
|
||||
}
|
||||
if(!value["Parameters"].isNull())
|
||||
parameters_ = value["Parameters"].asString();
|
||||
if(!value["RamRole"].isNull())
|
||||
ramRole_ = value["RamRole"].asString();
|
||||
if(!value["Outputs"].isNull())
|
||||
outputs_ = value["Outputs"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<ValidateTemplateContentResult::Task> ValidateTemplateContentResult::getTasks()const
|
||||
{
|
||||
return tasks_;
|
||||
}
|
||||
|
||||
std::string ValidateTemplateContentResult::getParameters()const
|
||||
{
|
||||
return parameters_;
|
||||
}
|
||||
|
||||
std::string ValidateTemplateContentResult::getRamRole()const
|
||||
{
|
||||
return ramRole_;
|
||||
}
|
||||
|
||||
std::string ValidateTemplateContentResult::getOutputs()const
|
||||
{
|
||||
return outputs_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user