Update StartExecution add Parameter TemplateURL.
This commit is contained in:
144
oos/src/model/CreateOpsItemRequest.cc
Normal file
144
oos/src/model/CreateOpsItemRequest.cc
Normal file
@@ -0,0 +1,144 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/CreateOpsItemRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::CreateOpsItemRequest;
|
||||
|
||||
CreateOpsItemRequest::CreateOpsItemRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "CreateOpsItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOpsItemRequest::~CreateOpsItemRequest() {}
|
||||
|
||||
std::string CreateOpsItemRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getSeverity() const {
|
||||
return severity_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setSeverity(const std::string &severity) {
|
||||
severity_ = severity;
|
||||
setParameter(std::string("Severity"), severity);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getSolutions() const {
|
||||
return solutions_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setSolutions(const std::string &solutions) {
|
||||
solutions_ = solutions;
|
||||
setParameter(std::string("Solutions"), solutions);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getResources() const {
|
||||
return resources_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setResources(const std::string &resources) {
|
||||
resources_ = resources;
|
||||
setParameter(std::string("Resources"), resources);
|
||||
}
|
||||
|
||||
int CreateOpsItemRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getDedupString() const {
|
||||
return dedupString_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setDedupString(const std::string &dedupString) {
|
||||
dedupString_ = dedupString;
|
||||
setParameter(std::string("DedupString"), dedupString);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string CreateOpsItemRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void CreateOpsItemRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
84
oos/src/model/CreateOpsItemResult.cc
Normal file
84
oos/src/model/CreateOpsItemResult.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/CreateOpsItemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
CreateOpsItemResult::CreateOpsItemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOpsItemResult::CreateOpsItemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOpsItemResult::~CreateOpsItemResult()
|
||||
{}
|
||||
|
||||
void CreateOpsItemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto opsItemNode = value["OpsItem"];
|
||||
if(!opsItemNode["Tags"].isNull())
|
||||
opsItem_.tags = opsItemNode["Tags"].asString();
|
||||
if(!opsItemNode["UpdateDate"].isNull())
|
||||
opsItem_.updateDate = opsItemNode["UpdateDate"].asString();
|
||||
if(!opsItemNode["Description"].isNull())
|
||||
opsItem_.description = opsItemNode["Description"].asString();
|
||||
if(!opsItemNode["OpsItemId"].isNull())
|
||||
opsItem_.opsItemId = opsItemNode["OpsItemId"].asString();
|
||||
if(!opsItemNode["CreateDate"].isNull())
|
||||
opsItem_.createDate = opsItemNode["CreateDate"].asString();
|
||||
if(!opsItemNode["Title"].isNull())
|
||||
opsItem_.title = opsItemNode["Title"].asString();
|
||||
if(!opsItemNode["Status"].isNull())
|
||||
opsItem_.status = opsItemNode["Status"].asString();
|
||||
if(!opsItemNode["Severity"].isNull())
|
||||
opsItem_.severity = opsItemNode["Severity"].asString();
|
||||
if(!opsItemNode["Category"].isNull())
|
||||
opsItem_.category = opsItemNode["Category"].asString();
|
||||
if(!opsItemNode["Source"].isNull())
|
||||
opsItem_.source = opsItemNode["Source"].asString();
|
||||
if(!opsItemNode["Priority"].isNull())
|
||||
opsItem_.priority = std::stoi(opsItemNode["Priority"].asString());
|
||||
if(!opsItemNode["Solutions"].isNull())
|
||||
opsItem_.solutions = opsItemNode["Solutions"].asString();
|
||||
if(!opsItemNode["Resources"].isNull())
|
||||
opsItem_.resources = opsItemNode["Resources"].asString();
|
||||
if(!opsItemNode["Attributes"].isNull())
|
||||
opsItem_.attributes = opsItemNode["Attributes"].asString();
|
||||
if(!opsItemNode["CreatedBy"].isNull())
|
||||
opsItem_.createdBy = opsItemNode["CreatedBy"].asString();
|
||||
if(!opsItemNode["LastModifiedBy"].isNull())
|
||||
opsItem_.lastModifiedBy = opsItemNode["LastModifiedBy"].asString();
|
||||
if(!opsItemNode["ResourceGroupId"].isNull())
|
||||
opsItem_.resourceGroupId = opsItemNode["ResourceGroupId"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateOpsItemResult::OpsItem CreateOpsItemResult::getOpsItem()const
|
||||
{
|
||||
return opsItem_;
|
||||
}
|
||||
|
||||
@@ -97,13 +97,15 @@ void CreateSecretParameterRequest::setKeyId(const std::string &keyId) {
|
||||
setParameter(std::string("KeyId"), keyId);
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getTags() const {
|
||||
std::map<std::string, std::string> CreateSecretParameterRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateSecretParameterRequest::setTags(const std::string &tags) {
|
||||
void CreateSecretParameterRequest::setTags(const std::map<std::string, std::string> &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
for(auto const &iter1 : tags) {
|
||||
setParameter(std::string("Tags") + "." + iter1.first, iter1.second);
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateSecretParameterRequest::getName() const {
|
||||
|
||||
@@ -43,3 +43,12 @@ void DeleteApplicationRequest::setName(const std::string &name) {
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
bool DeleteApplicationRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setForce(bool force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("Force"), force ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,8 @@ void GetApplicationGroupResult::parse(const std::string &payload)
|
||||
applicationGroup_.statusReason = applicationGroupNode["StatusReason"].asString();
|
||||
if(!applicationGroupNode["DeployOutputs"].isNull())
|
||||
applicationGroup_.deployOutputs = applicationGroupNode["DeployOutputs"].asString();
|
||||
if(!applicationGroupNode["Progress"].isNull())
|
||||
applicationGroup_.progress = applicationGroupNode["Progress"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
45
oos/src/model/GetOpsItemRequest.cc
Normal file
45
oos/src/model/GetOpsItemRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetOpsItemRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::GetOpsItemRequest;
|
||||
|
||||
GetOpsItemRequest::GetOpsItemRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "GetOpsItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOpsItemRequest::~GetOpsItemRequest() {}
|
||||
|
||||
std::string GetOpsItemRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetOpsItemRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetOpsItemRequest::getOpsItemId() const {
|
||||
return opsItemId_;
|
||||
}
|
||||
|
||||
void GetOpsItemRequest::setOpsItemId(const std::string &opsItemId) {
|
||||
opsItemId_ = opsItemId;
|
||||
setParameter(std::string("OpsItemId"), opsItemId);
|
||||
}
|
||||
|
||||
88
oos/src/model/GetOpsItemResult.cc
Normal file
88
oos/src/model/GetOpsItemResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/GetOpsItemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
GetOpsItemResult::GetOpsItemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOpsItemResult::GetOpsItemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOpsItemResult::~GetOpsItemResult()
|
||||
{}
|
||||
|
||||
void GetOpsItemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto opsItemNode = value["OpsItem"];
|
||||
if(!opsItemNode["OpsItemId"].isNull())
|
||||
opsItem_.opsItemId = opsItemNode["OpsItemId"].asString();
|
||||
if(!opsItemNode["CreateDate"].isNull())
|
||||
opsItem_.createDate = opsItemNode["CreateDate"].asString();
|
||||
if(!opsItemNode["UpdateDate"].isNull())
|
||||
opsItem_.updateDate = opsItemNode["UpdateDate"].asString();
|
||||
if(!opsItemNode["Title"].isNull())
|
||||
opsItem_.title = opsItemNode["Title"].asString();
|
||||
if(!opsItemNode["Status"].isNull())
|
||||
opsItem_.status = opsItemNode["Status"].asString();
|
||||
if(!opsItemNode["Severity"].isNull())
|
||||
opsItem_.severity = opsItemNode["Severity"].asString();
|
||||
if(!opsItemNode["Category"].isNull())
|
||||
opsItem_.category = opsItemNode["Category"].asString();
|
||||
if(!opsItemNode["Source"].isNull())
|
||||
opsItem_.source = opsItemNode["Source"].asString();
|
||||
if(!opsItemNode["Priority"].isNull())
|
||||
opsItem_.priority = std::stoi(opsItemNode["Priority"].asString());
|
||||
if(!opsItemNode["Tags"].isNull())
|
||||
opsItem_.tags = opsItemNode["Tags"].asString();
|
||||
if(!opsItemNode["DedupString"].isNull())
|
||||
opsItem_.dedupString = opsItemNode["DedupString"].asString();
|
||||
if(!opsItemNode["ResourceGroupId"].isNull())
|
||||
opsItem_.resourceGroupId = opsItemNode["ResourceGroupId"].asString();
|
||||
if(!opsItemNode["Description"].isNull())
|
||||
opsItem_.description = opsItemNode["Description"].asString();
|
||||
if(!opsItemNode["CreateBy"].isNull())
|
||||
opsItem_.createBy = opsItemNode["CreateBy"].asString();
|
||||
if(!opsItemNode["LastModifiedBy"].isNull())
|
||||
opsItem_.lastModifiedBy = opsItemNode["LastModifiedBy"].asString();
|
||||
if(!opsItemNode["Attributes"].isNull())
|
||||
opsItem_.attributes = opsItemNode["Attributes"].asString();
|
||||
auto allSolutions = opsItemNode["Solutions"]["Solution"];
|
||||
for (auto value : allSolutions)
|
||||
opsItem_.solutions.push_back(value.asString());
|
||||
auto allResources = opsItemNode["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
opsItem_.resources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
GetOpsItemResult::OpsItem GetOpsItemResult::getOpsItem()const
|
||||
{
|
||||
return opsItem_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,15 @@ ListApplicationGroupsRequest::ListApplicationGroupsRequest()
|
||||
|
||||
ListApplicationGroupsRequest::~ListApplicationGroupsRequest() {}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getResourceProduct() const {
|
||||
return resourceProduct_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setResourceProduct(const std::string &resourceProduct) {
|
||||
resourceProduct_ = resourceProduct;
|
||||
setParameter(std::string("ResourceProduct"), resourceProduct);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
@@ -43,6 +52,24 @@ void ListApplicationGroupsRequest::setNextToken(const std::string &nextToken) {
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getResourceId() const {
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setResourceId(const std::string &resourceId) {
|
||||
resourceId_ = resourceId;
|
||||
setParameter(std::string("ResourceId"), resourceId);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getProduct() const {
|
||||
return product_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setProduct(const std::string &product) {
|
||||
product_ = product;
|
||||
setParameter(std::string("Product"), product);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getDeployRegionId() const {
|
||||
return deployRegionId_;
|
||||
}
|
||||
@@ -52,6 +79,15 @@ void ListApplicationGroupsRequest::setDeployRegionId(const std::string &deployRe
|
||||
setParameter(std::string("DeployRegionId"), deployRegionId);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListApplicationGroupsRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string ListApplicationGroupsRequest::getApplicationName() const {
|
||||
return applicationName_;
|
||||
}
|
||||
|
||||
86
oos/src/model/ListOpsItemsRequest.cc
Normal file
86
oos/src/model/ListOpsItemsRequest.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/ListOpsItemsRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::ListOpsItemsRequest;
|
||||
|
||||
ListOpsItemsRequest::ListOpsItemsRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "ListOpsItems") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListOpsItemsRequest::~ListOpsItemsRequest() {}
|
||||
|
||||
std::string ListOpsItemsRequest::getResourceTags() const {
|
||||
return resourceTags_;
|
||||
}
|
||||
|
||||
void ListOpsItemsRequest::setResourceTags(const std::string &resourceTags) {
|
||||
resourceTags_ = resourceTags;
|
||||
setParameter(std::string("ResourceTags"), resourceTags);
|
||||
}
|
||||
|
||||
std::string ListOpsItemsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListOpsItemsRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::vector<ListOpsItemsRequest::Filter> ListOpsItemsRequest::getFilter() const {
|
||||
return filter_;
|
||||
}
|
||||
|
||||
void ListOpsItemsRequest::setFilter(const std::vector<ListOpsItemsRequest::Filter> &filter) {
|
||||
filter_ = filter;
|
||||
for(int dep1 = 0; dep1 != filter.size(); dep1++) {
|
||||
auto filterObj = filter.at(dep1);
|
||||
std::string filterObjStr = std::string("Filter") + "." + std::to_string(dep1 + 1);
|
||||
setParameter(filterObjStr + ".Name", filterObj.name);
|
||||
setParameter(filterObjStr + ".Operator", filterObj._operator);
|
||||
}
|
||||
}
|
||||
|
||||
std::string ListOpsItemsRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListOpsItemsRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListOpsItemsRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListOpsItemsRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
int ListOpsItemsRequest::getMaxResults() const {
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void ListOpsItemsRequest::setMaxResults(int maxResults) {
|
||||
maxResults_ = maxResults;
|
||||
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||
}
|
||||
|
||||
99
oos/src/model/ListOpsItemsResult.cc
Normal file
99
oos/src/model/ListOpsItemsResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/ListOpsItemsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
ListOpsItemsResult::ListOpsItemsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListOpsItemsResult::ListOpsItemsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListOpsItemsResult::~ListOpsItemsResult()
|
||||
{}
|
||||
|
||||
void ListOpsItemsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOpsItemsNode = value["OpsItems"]["OpsItem"];
|
||||
for (auto valueOpsItemsOpsItem : allOpsItemsNode)
|
||||
{
|
||||
OpsItem opsItemsObject;
|
||||
if(!valueOpsItemsOpsItem["OpsItemId"].isNull())
|
||||
opsItemsObject.opsItemId = valueOpsItemsOpsItem["OpsItemId"].asString();
|
||||
if(!valueOpsItemsOpsItem["CreateDate"].isNull())
|
||||
opsItemsObject.createDate = valueOpsItemsOpsItem["CreateDate"].asString();
|
||||
if(!valueOpsItemsOpsItem["UpdateDate"].isNull())
|
||||
opsItemsObject.updateDate = valueOpsItemsOpsItem["UpdateDate"].asString();
|
||||
if(!valueOpsItemsOpsItem["Title"].isNull())
|
||||
opsItemsObject.title = valueOpsItemsOpsItem["Title"].asString();
|
||||
if(!valueOpsItemsOpsItem["Status"].isNull())
|
||||
opsItemsObject.status = valueOpsItemsOpsItem["Status"].asString();
|
||||
if(!valueOpsItemsOpsItem["Severity"].isNull())
|
||||
opsItemsObject.severity = valueOpsItemsOpsItem["Severity"].asString();
|
||||
if(!valueOpsItemsOpsItem["Category"].isNull())
|
||||
opsItemsObject.category = valueOpsItemsOpsItem["Category"].asString();
|
||||
if(!valueOpsItemsOpsItem["Source"].isNull())
|
||||
opsItemsObject.source = valueOpsItemsOpsItem["Source"].asString();
|
||||
if(!valueOpsItemsOpsItem["Priority"].isNull())
|
||||
opsItemsObject.priority = std::stoi(valueOpsItemsOpsItem["Priority"].asString());
|
||||
if(!valueOpsItemsOpsItem["Tags"].isNull())
|
||||
opsItemsObject.tags = valueOpsItemsOpsItem["Tags"].asString();
|
||||
auto allResources = value["Resources"]["Resource"];
|
||||
for (auto value : allResources)
|
||||
opsItemsObject.resources.push_back(value.asString());
|
||||
opsItems_.push_back(opsItemsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
if(!value["MaxResults"].isNull())
|
||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListOpsItemsResult::OpsItem> ListOpsItemsResult::getOpsItems()const
|
||||
{
|
||||
return opsItems_;
|
||||
}
|
||||
|
||||
int ListOpsItemsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListOpsItemsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
int ListOpsItemsResult::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
@@ -73,9 +73,16 @@ void ListStateConfigurationsResult::parse(const std::string &payload)
|
||||
stateConfigurationsObject.templateId = valueStateConfigurationsStateConfiguration["TemplateId"].asString();
|
||||
stateConfigurations_.push_back(stateConfigurationsObject);
|
||||
}
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListStateConfigurationsResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<ListStateConfigurationsResult::StateConfiguration> ListStateConfigurationsResult::getStateConfigurations()const
|
||||
{
|
||||
return stateConfigurations_;
|
||||
|
||||
@@ -43,6 +43,15 @@ void StartExecutionRequest::setDescription(const std::string &description) {
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getTemplateURL() const {
|
||||
return templateURL_;
|
||||
}
|
||||
|
||||
void StartExecutionRequest::setTemplateURL(const std::string &templateURL) {
|
||||
templateURL_ = templateURL;
|
||||
setParameter(std::string("TemplateURL"), templateURL);
|
||||
}
|
||||
|
||||
std::string StartExecutionRequest::getMode() const {
|
||||
return mode_;
|
||||
}
|
||||
|
||||
162
oos/src/model/UpdateOpsItemRequest.cc
Normal file
162
oos/src/model/UpdateOpsItemRequest.cc
Normal file
@@ -0,0 +1,162 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/oos/model/UpdateOpsItemRequest.h>
|
||||
|
||||
using AlibabaCloud::Oos::Model::UpdateOpsItemRequest;
|
||||
|
||||
UpdateOpsItemRequest::UpdateOpsItemRequest()
|
||||
: RpcServiceRequest("oos", "2019-06-01", "UpdateOpsItem") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateOpsItemRequest::~UpdateOpsItemRequest() {}
|
||||
|
||||
std::string UpdateOpsItemRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setClientToken(const std::string &clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), clientToken);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getTitle() const {
|
||||
return title_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setTitle(const std::string &title) {
|
||||
title_ = title;
|
||||
setParameter(std::string("Title"), title);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getResourceGroupId() const {
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setResourceGroupId(const std::string &resourceGroupId) {
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter(std::string("ResourceGroupId"), resourceGroupId);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getSeverity() const {
|
||||
return severity_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setSeverity(const std::string &severity) {
|
||||
severity_ = severity;
|
||||
setParameter(std::string("Severity"), severity);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getSolutions() const {
|
||||
return solutions_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setSolutions(const std::string &solutions) {
|
||||
solutions_ = solutions;
|
||||
setParameter(std::string("Solutions"), solutions);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getResources() const {
|
||||
return resources_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setResources(const std::string &resources) {
|
||||
resources_ = resources;
|
||||
setParameter(std::string("Resources"), resources);
|
||||
}
|
||||
|
||||
int UpdateOpsItemRequest::getPriority() const {
|
||||
return priority_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setPriority(int priority) {
|
||||
priority_ = priority;
|
||||
setParameter(std::string("Priority"), std::to_string(priority));
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getDedupString() const {
|
||||
return dedupString_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setDedupString(const std::string &dedupString) {
|
||||
dedupString_ = dedupString;
|
||||
setParameter(std::string("DedupString"), dedupString);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getOpsItemId() const {
|
||||
return opsItemId_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setOpsItemId(const std::string &opsItemId) {
|
||||
opsItemId_ = opsItemId;
|
||||
setParameter(std::string("OpsItemId"), opsItemId);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getCategory() const {
|
||||
return category_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setCategory(const std::string &category) {
|
||||
category_ = category;
|
||||
setParameter(std::string("Category"), category);
|
||||
}
|
||||
|
||||
std::string UpdateOpsItemRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void UpdateOpsItemRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
86
oos/src/model/UpdateOpsItemResult.cc
Normal file
86
oos/src/model/UpdateOpsItemResult.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/UpdateOpsItemResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Oos;
|
||||
using namespace AlibabaCloud::Oos::Model;
|
||||
|
||||
UpdateOpsItemResult::UpdateOpsItemResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateOpsItemResult::UpdateOpsItemResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateOpsItemResult::~UpdateOpsItemResult()
|
||||
{}
|
||||
|
||||
void UpdateOpsItemResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto opsItemNode = value["OpsItem"];
|
||||
if(!opsItemNode["Tags"].isNull())
|
||||
opsItem_.tags = opsItemNode["Tags"].asString();
|
||||
if(!opsItemNode["UpdateDate"].isNull())
|
||||
opsItem_.updateDate = opsItemNode["UpdateDate"].asString();
|
||||
if(!opsItemNode["Description"].isNull())
|
||||
opsItem_.description = opsItemNode["Description"].asString();
|
||||
if(!opsItemNode["OpsItemId"].isNull())
|
||||
opsItem_.opsItemId = opsItemNode["OpsItemId"].asString();
|
||||
if(!opsItemNode["CreateDate"].isNull())
|
||||
opsItem_.createDate = opsItemNode["CreateDate"].asString();
|
||||
if(!opsItemNode["Title"].isNull())
|
||||
opsItem_.title = opsItemNode["Title"].asString();
|
||||
if(!opsItemNode["Status"].isNull())
|
||||
opsItem_.status = opsItemNode["Status"].asString();
|
||||
if(!opsItemNode["Severity"].isNull())
|
||||
opsItem_.severity = opsItemNode["Severity"].asString();
|
||||
if(!opsItemNode["Category"].isNull())
|
||||
opsItem_.category = opsItemNode["Category"].asString();
|
||||
if(!opsItemNode["Source"].isNull())
|
||||
opsItem_.source = opsItemNode["Source"].asString();
|
||||
if(!opsItemNode["Priority"].isNull())
|
||||
opsItem_.priority = std::stoi(opsItemNode["Priority"].asString());
|
||||
if(!opsItemNode["Attributes"].isNull())
|
||||
opsItem_.attributes = opsItemNode["Attributes"].asString();
|
||||
if(!opsItemNode["CreatedBy"].isNull())
|
||||
opsItem_.createdBy = opsItemNode["CreatedBy"].asString();
|
||||
if(!opsItemNode["LastModifiedBy"].isNull())
|
||||
opsItem_.lastModifiedBy = opsItemNode["LastModifiedBy"].asString();
|
||||
if(!opsItemNode["ResourceGroupId"].isNull())
|
||||
opsItem_.resourceGroupId = opsItemNode["ResourceGroupId"].asString();
|
||||
auto allSolutions = opsItemNode["Solutions"]["solution"];
|
||||
for (auto value : allSolutions)
|
||||
opsItem_.solutions.push_back(value.asString());
|
||||
auto allResources = opsItemNode["Resources"]["resource"];
|
||||
for (auto value : allResources)
|
||||
opsItem_.resources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
UpdateOpsItemResult::OpsItem UpdateOpsItemResult::getOpsItem()const
|
||||
{
|
||||
return opsItem_;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,15 @@ void ValidateTemplateContentRequest::setContent(const std::string &content) {
|
||||
setParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
std::string ValidateTemplateContentRequest::getTemplateURL() const {
|
||||
return templateURL_;
|
||||
}
|
||||
|
||||
void ValidateTemplateContentRequest::setTemplateURL(const std::string &templateURL) {
|
||||
templateURL_ = templateURL;
|
||||
setParameter(std::string("TemplateURL"), templateURL);
|
||||
}
|
||||
|
||||
std::string ValidateTemplateContentRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user