Generated 2017-08-01 for Edas.
This commit is contained in:
7829
edas/src/EdasClient.cc
Normal file
7829
edas/src/EdasClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
41
edas/src/model/AbortAndRollbackChangeOrderRequest.cc
Normal file
41
edas/src/model/AbortAndRollbackChangeOrderRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AbortAndRollbackChangeOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AbortAndRollbackChangeOrderRequest;
|
||||
|
||||
AbortAndRollbackChangeOrderRequest::AbortAndRollbackChangeOrderRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/changeorder/change_order_abort_and_rollback");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
AbortAndRollbackChangeOrderRequest::~AbortAndRollbackChangeOrderRequest()
|
||||
{}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderRequest::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void AbortAndRollbackChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
}
|
||||
|
||||
80
edas/src/model/AbortAndRollbackChangeOrderResult.cc
Normal file
80
edas/src/model/AbortAndRollbackChangeOrderResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AbortAndRollbackChangeOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AbortAndRollbackChangeOrderResult::AbortAndRollbackChangeOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AbortAndRollbackChangeOrderResult::AbortAndRollbackChangeOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AbortAndRollbackChangeOrderResult::~AbortAndRollbackChangeOrderResult()
|
||||
{}
|
||||
|
||||
void AbortAndRollbackChangeOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
AbortAndRollbackChangeOrderResult::Data AbortAndRollbackChangeOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
int AbortAndRollbackChangeOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/AbortChangeOrderRequest.cc
Normal file
41
edas/src/model/AbortChangeOrderRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AbortChangeOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AbortChangeOrderRequest;
|
||||
|
||||
AbortChangeOrderRequest::AbortChangeOrderRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/changeorder/change_order_abort");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
AbortChangeOrderRequest::~AbortChangeOrderRequest()
|
||||
{}
|
||||
|
||||
std::string AbortChangeOrderRequest::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void AbortChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
}
|
||||
|
||||
80
edas/src/model/AbortChangeOrderResult.cc
Normal file
80
edas/src/model/AbortChangeOrderResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AbortChangeOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AbortChangeOrderResult::AbortChangeOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AbortChangeOrderResult::AbortChangeOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AbortChangeOrderResult::~AbortChangeOrderResult()
|
||||
{}
|
||||
|
||||
void AbortChangeOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
AbortChangeOrderResult::Data AbortChangeOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
int AbortChangeOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/AddLogPathRequest.cc
Normal file
52
edas/src/model/AddLogPathRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AddLogPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AddLogPathRequest;
|
||||
|
||||
AddLogPathRequest::AddLogPathRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/log/popListLogDirs");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddLogPathRequest::~AddLogPathRequest()
|
||||
{}
|
||||
|
||||
std::string AddLogPathRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void AddLogPathRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setBodyParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string AddLogPathRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void AddLogPathRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setBodyParameter("AppId", appId);
|
||||
}
|
||||
|
||||
58
edas/src/model/AddLogPathResult.cc
Normal file
58
edas/src/model/AddLogPathResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AddLogPathResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AddLogPathResult::AddLogPathResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddLogPathResult::AddLogPathResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddLogPathResult::~AddLogPathResult()
|
||||
{}
|
||||
|
||||
void AddLogPathResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddLogPathResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddLogPathResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
151
edas/src/model/AddMockRuleRequest.cc
Normal file
151
edas/src/model/AddMockRuleRequest.cc
Normal file
@@ -0,0 +1,151 @@
|
||||
/*
|
||||
* 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/edas/model/AddMockRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AddMockRuleRequest;
|
||||
|
||||
AddMockRuleRequest::AddMockRuleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/sp/api/mock/addMockRule");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMockRuleRequest::~AddMockRuleRequest()
|
||||
{}
|
||||
|
||||
std::string AddMockRuleRequest::getScMockItemJson()const
|
||||
{
|
||||
return scMockItemJson_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setScMockItemJson(const std::string& scMockItemJson)
|
||||
{
|
||||
scMockItemJson_ = scMockItemJson;
|
||||
setParameter("ScMockItemJson", scMockItemJson);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getDubboMockItemJson()const
|
||||
{
|
||||
return dubboMockItemJson_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setDubboMockItemJson(const std::string& dubboMockItemJson)
|
||||
{
|
||||
dubboMockItemJson_ = dubboMockItemJson;
|
||||
setParameter("DubboMockItemJson", dubboMockItemJson);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getExtraJson()const
|
||||
{
|
||||
return extraJson_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setExtraJson(const std::string& extraJson)
|
||||
{
|
||||
extraJson_ = extraJson;
|
||||
setParameter("ExtraJson", extraJson);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getProviderAppId()const
|
||||
{
|
||||
return providerAppId_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setProviderAppId(const std::string& providerAppId)
|
||||
{
|
||||
providerAppId_ = providerAppId;
|
||||
setParameter("ProviderAppId", providerAppId);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setParameter("Source", source);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getProviderAppName()const
|
||||
{
|
||||
return providerAppName_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setProviderAppName(const std::string& providerAppName)
|
||||
{
|
||||
providerAppName_ = providerAppName;
|
||||
setParameter("ProviderAppName", providerAppName);
|
||||
}
|
||||
|
||||
bool AddMockRuleRequest::getEnable()const
|
||||
{
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setEnable(bool enable)
|
||||
{
|
||||
enable_ = enable;
|
||||
setParameter("Enable", enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getConsumerAppsJson()const
|
||||
{
|
||||
return consumerAppsJson_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setConsumerAppsJson(const std::string& consumerAppsJson)
|
||||
{
|
||||
consumerAppsJson_ = consumerAppsJson;
|
||||
setParameter("ConsumerAppsJson", consumerAppsJson);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
97
edas/src/model/AddMockRuleResult.cc
Normal file
97
edas/src/model/AddMockRuleResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/edas/model/AddMockRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AddMockRuleResult::AddMockRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddMockRuleResult::AddMockRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddMockRuleResult::~AddMockRuleResult()
|
||||
{}
|
||||
|
||||
void AddMockRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccountId"].isNull())
|
||||
data_.accountId = dataNode["AccountId"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["ConsumerAppId"].isNull())
|
||||
data_.consumerAppId = dataNode["ConsumerAppId"].asString();
|
||||
if(!dataNode["ConsumerAppName"].isNull())
|
||||
data_.consumerAppName = dataNode["ConsumerAppName"].asString();
|
||||
if(!dataNode["Enable"].isNull())
|
||||
data_.enable = dataNode["Enable"].asString() == "true";
|
||||
if(!dataNode["ExtraJson"].isNull())
|
||||
data_.extraJson = dataNode["ExtraJson"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["ProviderAppId"].isNull())
|
||||
data_.providerAppId = dataNode["ProviderAppId"].asString();
|
||||
if(!dataNode["ProviderAppName"].isNull())
|
||||
data_.providerAppName = dataNode["ProviderAppName"].asString();
|
||||
if(!dataNode["Region"].isNull())
|
||||
data_.region = dataNode["Region"].asString();
|
||||
if(!dataNode["ScMockItemJson"].isNull())
|
||||
data_.scMockItemJson = dataNode["ScMockItemJson"].asString();
|
||||
if(!dataNode["Source"].isNull())
|
||||
data_.source = dataNode["Source"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddMockRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddMockRuleResult::Data AddMockRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddMockRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddMockRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
162
edas/src/model/AddServiceTimeConfigRequest.cc
Normal file
162
edas/src/model/AddServiceTimeConfigRequest.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/edas/model/AddServiceTimeConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AddServiceTimeConfigRequest;
|
||||
|
||||
AddServiceTimeConfigRequest::AddServiceTimeConfigRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/sp/api/timeout/add");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddServiceTimeConfigRequest::~AddServiceTimeConfigRequest()
|
||||
{}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setServiceType(const std::string& serviceType)
|
||||
{
|
||||
serviceType_ = serviceType;
|
||||
setParameter("ServiceType", serviceType);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getConsumerAppId()const
|
||||
{
|
||||
return consumerAppId_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setConsumerAppId(const std::string& consumerAppId)
|
||||
{
|
||||
consumerAppId_ = consumerAppId;
|
||||
setParameter("ConsumerAppId", consumerAppId);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getServiceVersion()const
|
||||
{
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setServiceVersion(const std::string& serviceVersion)
|
||||
{
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter("ServiceVersion", serviceVersion);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setParameter("Source", source);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setRegion(const std::string& region)
|
||||
{
|
||||
region_ = region;
|
||||
setParameter("Region", region);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getServiceGroup()const
|
||||
{
|
||||
return serviceGroup_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setServiceGroup(const std::string& serviceGroup)
|
||||
{
|
||||
serviceGroup_ = serviceGroup;
|
||||
setParameter("ServiceGroup", serviceGroup);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getConsumerAppName()const
|
||||
{
|
||||
return consumerAppName_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setConsumerAppName(const std::string& consumerAppName)
|
||||
{
|
||||
consumerAppName_ = consumerAppName;
|
||||
setParameter("ConsumerAppName", consumerAppName);
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigRequest::getTimeout()const
|
||||
{
|
||||
return timeout_;
|
||||
}
|
||||
|
||||
void AddServiceTimeConfigRequest::setTimeout(const std::string& timeout)
|
||||
{
|
||||
timeout_ = timeout;
|
||||
setParameter("Timeout", timeout);
|
||||
}
|
||||
|
||||
81
edas/src/model/AddServiceTimeConfigResult.cc
Normal file
81
edas/src/model/AddServiceTimeConfigResult.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/edas/model/AddServiceTimeConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AddServiceTimeConfigResult::AddServiceTimeConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddServiceTimeConfigResult::AddServiceTimeConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddServiceTimeConfigResult::~AddServiceTimeConfigResult()
|
||||
{}
|
||||
|
||||
void AddServiceTimeConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Timeout"].isNull())
|
||||
data_.timeout = dataNode["Timeout"].asString();
|
||||
if(!dataNode["ConsumerAppName"].isNull())
|
||||
data_.consumerAppName = dataNode["ConsumerAppName"].asString();
|
||||
if(!dataNode["ConsumerAppId"].isNull())
|
||||
data_.consumerAppId = dataNode["ConsumerAppId"].asString();
|
||||
if(!dataNode["Path"].isNull())
|
||||
data_.path = dataNode["Path"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddServiceTimeConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddServiceTimeConfigResult::Data AddServiceTimeConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddServiceTimeConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddServiceTimeConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
edas/src/model/AuthorizeApplicationRequest.cc
Normal file
52
edas/src/model/AuthorizeApplicationRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AuthorizeApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AuthorizeApplicationRequest;
|
||||
|
||||
AuthorizeApplicationRequest::AuthorizeApplicationRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/account/authorize_app");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeApplicationRequest::~AuthorizeApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string AuthorizeApplicationRequest::getAppIds()const
|
||||
{
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
void AuthorizeApplicationRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
}
|
||||
|
||||
std::string AuthorizeApplicationRequest::getTargetUserId()const
|
||||
{
|
||||
return targetUserId_;
|
||||
}
|
||||
|
||||
void AuthorizeApplicationRequest::setTargetUserId(const std::string& targetUserId)
|
||||
{
|
||||
targetUserId_ = targetUserId;
|
||||
setParameter("TargetUserId", targetUserId);
|
||||
}
|
||||
|
||||
58
edas/src/model/AuthorizeApplicationResult.cc
Normal file
58
edas/src/model/AuthorizeApplicationResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AuthorizeApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AuthorizeApplicationResult::AuthorizeApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeApplicationResult::AuthorizeApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeApplicationResult::~AuthorizeApplicationResult()
|
||||
{}
|
||||
|
||||
void AuthorizeApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AuthorizeApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AuthorizeApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/AuthorizeResourceGroupRequest.cc
Normal file
52
edas/src/model/AuthorizeResourceGroupRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AuthorizeResourceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AuthorizeResourceGroupRequest;
|
||||
|
||||
AuthorizeResourceGroupRequest::AuthorizeResourceGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/account/authorize_res_group");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeResourceGroupRequest::~AuthorizeResourceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string AuthorizeResourceGroupRequest::getResourceGroupIds()const
|
||||
{
|
||||
return resourceGroupIds_;
|
||||
}
|
||||
|
||||
void AuthorizeResourceGroupRequest::setResourceGroupIds(const std::string& resourceGroupIds)
|
||||
{
|
||||
resourceGroupIds_ = resourceGroupIds;
|
||||
setParameter("ResourceGroupIds", resourceGroupIds);
|
||||
}
|
||||
|
||||
std::string AuthorizeResourceGroupRequest::getTargetUserId()const
|
||||
{
|
||||
return targetUserId_;
|
||||
}
|
||||
|
||||
void AuthorizeResourceGroupRequest::setTargetUserId(const std::string& targetUserId)
|
||||
{
|
||||
targetUserId_ = targetUserId;
|
||||
setParameter("TargetUserId", targetUserId);
|
||||
}
|
||||
|
||||
58
edas/src/model/AuthorizeResourceGroupResult.cc
Normal file
58
edas/src/model/AuthorizeResourceGroupResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AuthorizeResourceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AuthorizeResourceGroupResult::AuthorizeResourceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeResourceGroupResult::AuthorizeResourceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeResourceGroupResult::~AuthorizeResourceGroupResult()
|
||||
{}
|
||||
|
||||
void AuthorizeResourceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AuthorizeResourceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AuthorizeResourceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/AuthorizeRoleRequest.cc
Normal file
52
edas/src/model/AuthorizeRoleRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AuthorizeRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::AuthorizeRoleRequest;
|
||||
|
||||
AuthorizeRoleRequest::AuthorizeRoleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/account/authorize_role");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AuthorizeRoleRequest::~AuthorizeRoleRequest()
|
||||
{}
|
||||
|
||||
std::string AuthorizeRoleRequest::getRoleIds()const
|
||||
{
|
||||
return roleIds_;
|
||||
}
|
||||
|
||||
void AuthorizeRoleRequest::setRoleIds(const std::string& roleIds)
|
||||
{
|
||||
roleIds_ = roleIds;
|
||||
setParameter("RoleIds", roleIds);
|
||||
}
|
||||
|
||||
std::string AuthorizeRoleRequest::getTargetUserId()const
|
||||
{
|
||||
return targetUserId_;
|
||||
}
|
||||
|
||||
void AuthorizeRoleRequest::setTargetUserId(const std::string& targetUserId)
|
||||
{
|
||||
targetUserId_ = targetUserId;
|
||||
setParameter("TargetUserId", targetUserId);
|
||||
}
|
||||
|
||||
58
edas/src/model/AuthorizeRoleResult.cc
Normal file
58
edas/src/model/AuthorizeRoleResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/AuthorizeRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
AuthorizeRoleResult::AuthorizeRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AuthorizeRoleResult::AuthorizeRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AuthorizeRoleResult::~AuthorizeRoleResult()
|
||||
{}
|
||||
|
||||
void AuthorizeRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AuthorizeRoleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AuthorizeRoleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
129
edas/src/model/BindEcsSlbRequest.cc
Normal file
129
edas/src/model/BindEcsSlbRequest.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/edas/model/BindEcsSlbRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::BindEcsSlbRequest;
|
||||
|
||||
BindEcsSlbRequest::BindEcsSlbRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/app/slb/bind_slb");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindEcsSlbRequest::~BindEcsSlbRequest()
|
||||
{}
|
||||
|
||||
std::string BindEcsSlbRequest::getVServerGroupId()const
|
||||
{
|
||||
return vServerGroupId_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setVServerGroupId(const std::string& vServerGroupId)
|
||||
{
|
||||
vServerGroupId_ = vServerGroupId;
|
||||
setParameter("VServerGroupId", vServerGroupId);
|
||||
}
|
||||
|
||||
int BindEcsSlbRequest::getListenerPort()const
|
||||
{
|
||||
return listenerPort_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setListenerPort(int listenerPort)
|
||||
{
|
||||
listenerPort_ = listenerPort;
|
||||
setParameter("ListenerPort", std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getVForwardingUrlRule()const
|
||||
{
|
||||
return vForwardingUrlRule_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setVForwardingUrlRule(const std::string& vForwardingUrlRule)
|
||||
{
|
||||
vForwardingUrlRule_ = vForwardingUrlRule;
|
||||
setParameter("VForwardingUrlRule", vForwardingUrlRule);
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getSlbId()const
|
||||
{
|
||||
return slbId_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setSlbId(const std::string& slbId)
|
||||
{
|
||||
slbId_ = slbId;
|
||||
setParameter("SlbId", slbId);
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getDeployGroupId()const
|
||||
{
|
||||
return deployGroupId_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setDeployGroupId(const std::string& deployGroupId)
|
||||
{
|
||||
deployGroupId_ = deployGroupId;
|
||||
setParameter("DeployGroupId", deployGroupId);
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getListenerHealthCheckUrl()const
|
||||
{
|
||||
return listenerHealthCheckUrl_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setListenerHealthCheckUrl(const std::string& listenerHealthCheckUrl)
|
||||
{
|
||||
listenerHealthCheckUrl_ = listenerHealthCheckUrl;
|
||||
setParameter("ListenerHealthCheckUrl", listenerHealthCheckUrl);
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getListenerProtocol()const
|
||||
{
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setListenerProtocol(const std::string& listenerProtocol)
|
||||
{
|
||||
listenerProtocol_ = listenerProtocol;
|
||||
setParameter("ListenerProtocol", listenerProtocol);
|
||||
}
|
||||
|
||||
std::string BindEcsSlbRequest::getVServerGroupName()const
|
||||
{
|
||||
return vServerGroupName_;
|
||||
}
|
||||
|
||||
void BindEcsSlbRequest::setVServerGroupName(const std::string& vServerGroupName)
|
||||
{
|
||||
vServerGroupName_ = vServerGroupName;
|
||||
setParameter("VServerGroupName", vServerGroupName);
|
||||
}
|
||||
|
||||
65
edas/src/model/BindEcsSlbResult.cc
Normal file
65
edas/src/model/BindEcsSlbResult.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/edas/model/BindEcsSlbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
BindEcsSlbResult::BindEcsSlbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindEcsSlbResult::BindEcsSlbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindEcsSlbResult::~BindEcsSlbResult()
|
||||
{}
|
||||
|
||||
void BindEcsSlbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindEcsSlbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindEcsSlbResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int BindEcsSlbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
140
edas/src/model/BindK8sSlbRequest.cc
Normal file
140
edas/src/model/BindK8sSlbRequest.cc
Normal file
@@ -0,0 +1,140 @@
|
||||
/*
|
||||
* 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/edas/model/BindK8sSlbRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::BindK8sSlbRequest;
|
||||
|
||||
BindK8sSlbRequest::BindK8sSlbRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_slb_binding");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindK8sSlbRequest::~BindK8sSlbRequest()
|
||||
{}
|
||||
|
||||
std::string BindK8sSlbRequest::getScheduler()const
|
||||
{
|
||||
return scheduler_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setScheduler(const std::string& scheduler)
|
||||
{
|
||||
scheduler_ = scheduler;
|
||||
setParameter("Scheduler", scheduler);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getServicePortInfos()const
|
||||
{
|
||||
return servicePortInfos_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setServicePortInfos(const std::string& servicePortInfos)
|
||||
{
|
||||
servicePortInfos_ = servicePortInfos;
|
||||
setParameter("ServicePortInfos", servicePortInfos);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getSlbId()const
|
||||
{
|
||||
return slbId_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setSlbId(const std::string& slbId)
|
||||
{
|
||||
slbId_ = slbId;
|
||||
setParameter("SlbId", slbId);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getSlbProtocol()const
|
||||
{
|
||||
return slbProtocol_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setSlbProtocol(const std::string& slbProtocol)
|
||||
{
|
||||
slbProtocol_ = slbProtocol;
|
||||
setParameter("SlbProtocol", slbProtocol);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setPort(const std::string& port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", port);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getSpecification()const
|
||||
{
|
||||
return specification_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setSpecification(const std::string& specification)
|
||||
{
|
||||
specification_ = specification;
|
||||
setParameter("Specification", specification);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string BindK8sSlbRequest::getTargetPort()const
|
||||
{
|
||||
return targetPort_;
|
||||
}
|
||||
|
||||
void BindK8sSlbRequest::setTargetPort(const std::string& targetPort)
|
||||
{
|
||||
targetPort_ = targetPort;
|
||||
setParameter("TargetPort", targetPort);
|
||||
}
|
||||
|
||||
65
edas/src/model/BindK8sSlbResult.cc
Normal file
65
edas/src/model/BindK8sSlbResult.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/edas/model/BindK8sSlbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
BindK8sSlbResult::BindK8sSlbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindK8sSlbResult::BindK8sSlbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindK8sSlbResult::~BindK8sSlbResult()
|
||||
{}
|
||||
|
||||
void BindK8sSlbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindK8sSlbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindK8sSlbResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int BindK8sSlbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
96
edas/src/model/BindSlbRequest.cc
Normal file
96
edas/src/model/BindSlbRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/edas/model/BindSlbRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::BindSlbRequest;
|
||||
|
||||
BindSlbRequest::BindSlbRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/app/bind_slb_json");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindSlbRequest::~BindSlbRequest()
|
||||
{}
|
||||
|
||||
std::string BindSlbRequest::getVServerGroupId()const
|
||||
{
|
||||
return vServerGroupId_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setVServerGroupId(const std::string& vServerGroupId)
|
||||
{
|
||||
vServerGroupId_ = vServerGroupId;
|
||||
setParameter("VServerGroupId", vServerGroupId);
|
||||
}
|
||||
|
||||
int BindSlbRequest::getListenerPort()const
|
||||
{
|
||||
return listenerPort_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setListenerPort(int listenerPort)
|
||||
{
|
||||
listenerPort_ = listenerPort;
|
||||
setParameter("ListenerPort", std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getSlbId()const
|
||||
{
|
||||
return slbId_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setSlbId(const std::string& slbId)
|
||||
{
|
||||
slbId_ = slbId;
|
||||
setParameter("SlbId", slbId);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getSlbIp()const
|
||||
{
|
||||
return slbIp_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setSlbIp(const std::string& slbIp)
|
||||
{
|
||||
slbIp_ = slbIp;
|
||||
setParameter("SlbIp", slbIp);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
82
edas/src/model/BindSlbResult.cc
Normal file
82
edas/src/model/BindSlbResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/BindSlbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
BindSlbResult::BindSlbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindSlbResult::BindSlbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindSlbResult::~BindSlbResult()
|
||||
{}
|
||||
|
||||
void BindSlbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["ExtSlbId"].isNull())
|
||||
data_.extSlbId = dataNode["ExtSlbId"].asString();
|
||||
if(!dataNode["ExtSlbIp"].isNull())
|
||||
data_.extSlbIp = dataNode["ExtSlbIp"].asString();
|
||||
if(!dataNode["ExtSlbName"].isNull())
|
||||
data_.extSlbName = dataNode["ExtSlbName"].asString();
|
||||
if(!dataNode["ExtVServerGroupId"].isNull())
|
||||
data_.extVServerGroupId = dataNode["ExtVServerGroupId"].asString();
|
||||
if(!dataNode["SlbId"].isNull())
|
||||
data_.slbId = dataNode["SlbId"].asString();
|
||||
if(!dataNode["SlbIp"].isNull())
|
||||
data_.slbIp = dataNode["SlbIp"].asString();
|
||||
if(!dataNode["SlbName"].isNull())
|
||||
data_.slbName = dataNode["SlbName"].asString();
|
||||
if(!dataNode["SlbPort"].isNull())
|
||||
data_.slbPort = std::stoi(dataNode["SlbPort"].asString());
|
||||
if(!dataNode["VServerGroupId"].isNull())
|
||||
data_.vServerGroupId = dataNode["VServerGroupId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindSlbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
BindSlbResult::Data BindSlbResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int BindSlbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
74
edas/src/model/ChangeDeployGroupRequest.cc
Normal file
74
edas/src/model/ChangeDeployGroupRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/ChangeDeployGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::ChangeDeployGroupRequest;
|
||||
|
||||
ChangeDeployGroupRequest::ChangeDeployGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/changeorder/co_change_group");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ChangeDeployGroupRequest::~ChangeDeployGroupRequest()
|
||||
{}
|
||||
|
||||
bool ChangeDeployGroupRequest::getForceStatus()const
|
||||
{
|
||||
return forceStatus_;
|
||||
}
|
||||
|
||||
void ChangeDeployGroupRequest::setForceStatus(bool forceStatus)
|
||||
{
|
||||
forceStatus_ = forceStatus;
|
||||
setParameter("ForceStatus", forceStatus ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ChangeDeployGroupRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ChangeDeployGroupRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string ChangeDeployGroupRequest::getEccInfo()const
|
||||
{
|
||||
return eccInfo_;
|
||||
}
|
||||
|
||||
void ChangeDeployGroupRequest::setEccInfo(const std::string& eccInfo)
|
||||
{
|
||||
eccInfo_ = eccInfo;
|
||||
setParameter("EccInfo", eccInfo);
|
||||
}
|
||||
|
||||
std::string ChangeDeployGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void ChangeDeployGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
65
edas/src/model/ChangeDeployGroupResult.cc
Normal file
65
edas/src/model/ChangeDeployGroupResult.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/edas/model/ChangeDeployGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
ChangeDeployGroupResult::ChangeDeployGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeDeployGroupResult::ChangeDeployGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeDeployGroupResult::~ChangeDeployGroupResult()
|
||||
{}
|
||||
|
||||
void ChangeDeployGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeDeployGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ChangeDeployGroupResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int ChangeDeployGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/ContinuePipelineRequest.cc
Normal file
52
edas/src/model/ContinuePipelineRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/ContinuePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::ContinuePipelineRequest;
|
||||
|
||||
ContinuePipelineRequest::ContinuePipelineRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/changeorder/pipeline_batch_confirm");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ContinuePipelineRequest::~ContinuePipelineRequest()
|
||||
{}
|
||||
|
||||
bool ContinuePipelineRequest::getConfirm()const
|
||||
{
|
||||
return confirm_;
|
||||
}
|
||||
|
||||
void ContinuePipelineRequest::setConfirm(bool confirm)
|
||||
{
|
||||
confirm_ = confirm;
|
||||
setParameter("Confirm", confirm ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ContinuePipelineRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void ContinuePipelineRequest::setPipelineId(const std::string& pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", pipelineId);
|
||||
}
|
||||
|
||||
58
edas/src/model/ContinuePipelineResult.cc
Normal file
58
edas/src/model/ContinuePipelineResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/ContinuePipelineResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
ContinuePipelineResult::ContinuePipelineResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ContinuePipelineResult::ContinuePipelineResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ContinuePipelineResult::~ContinuePipelineResult()
|
||||
{}
|
||||
|
||||
void ContinuePipelineResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ContinuePipelineResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ContinuePipelineResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
74
edas/src/model/ConvertK8sResourceRequest.cc
Normal file
74
edas/src/model/ConvertK8sResourceRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/ConvertK8sResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::ConvertK8sResourceRequest;
|
||||
|
||||
ConvertK8sResourceRequest::ConvertK8sResourceRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/oam/k8s_resource_convert");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConvertK8sResourceRequest::~ConvertK8sResourceRequest()
|
||||
{}
|
||||
|
||||
std::string ConvertK8sResourceRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ConvertK8sResourceRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string ConvertK8sResourceRequest::getResourceName()const
|
||||
{
|
||||
return resourceName_;
|
||||
}
|
||||
|
||||
void ConvertK8sResourceRequest::setResourceName(const std::string& resourceName)
|
||||
{
|
||||
resourceName_ = resourceName;
|
||||
setParameter("ResourceName", resourceName);
|
||||
}
|
||||
|
||||
std::string ConvertK8sResourceRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ConvertK8sResourceRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string ConvertK8sResourceRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ConvertK8sResourceRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
58
edas/src/model/ConvertK8sResourceResult.cc
Normal file
58
edas/src/model/ConvertK8sResourceResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/ConvertK8sResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
ConvertK8sResourceResult::ConvertK8sResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConvertK8sResourceResult::ConvertK8sResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConvertK8sResourceResult::~ConvertK8sResourceResult()
|
||||
{}
|
||||
|
||||
void ConvertK8sResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string ConvertK8sResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ConvertK8sResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
107
edas/src/model/CreateApplicationScalingRuleRequest.cc
Normal file
107
edas/src/model/CreateApplicationScalingRuleRequest.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/edas/model/CreateApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateApplicationScalingRuleRequest;
|
||||
|
||||
CreateApplicationScalingRuleRequest::CreateApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v1/eam/scale/application_scaling_rule");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationScalingRuleRequest::~CreateApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
}
|
||||
|
||||
bool CreateApplicationScalingRuleRequest::getScalingRuleEnable()const
|
||||
{
|
||||
return scalingRuleEnable_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleEnable(bool scalingRuleEnable)
|
||||
{
|
||||
scalingRuleEnable_ = scalingRuleEnable;
|
||||
setParameter("ScalingRuleEnable", scalingRuleEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleTimer()const
|
||||
{
|
||||
return scalingRuleTimer_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleTimer(const std::string& scalingRuleTimer)
|
||||
{
|
||||
scalingRuleTimer_ = scalingRuleTimer;
|
||||
setParameter("ScalingRuleTimer", scalingRuleTimer);
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleMetric()const
|
||||
{
|
||||
return scalingRuleMetric_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleMetric(const std::string& scalingRuleMetric)
|
||||
{
|
||||
scalingRuleMetric_ = scalingRuleMetric;
|
||||
setParameter("ScalingRuleMetric", scalingRuleMetric);
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleTrigger()const
|
||||
{
|
||||
return scalingRuleTrigger_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleTrigger(const std::string& scalingRuleTrigger)
|
||||
{
|
||||
scalingRuleTrigger_ = scalingRuleTrigger;
|
||||
setParameter("ScalingRuleTrigger", scalingRuleTrigger);
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleType()const
|
||||
{
|
||||
return scalingRuleType_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleType(const std::string& scalingRuleType)
|
||||
{
|
||||
scalingRuleType_ = scalingRuleType;
|
||||
setParameter("ScalingRuleType", scalingRuleType);
|
||||
}
|
||||
|
||||
114
edas/src/model/CreateApplicationScalingRuleResult.cc
Normal file
114
edas/src/model/CreateApplicationScalingRuleResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateApplicationScalingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateApplicationScalingRuleResult::CreateApplicationScalingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateApplicationScalingRuleResult::CreateApplicationScalingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateApplicationScalingRuleResult::~CreateApplicationScalingRuleResult()
|
||||
{}
|
||||
|
||||
void CreateApplicationScalingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto appScalingRuleNode = value["AppScalingRule"];
|
||||
if(!appScalingRuleNode["AppId"].isNull())
|
||||
appScalingRule_.appId = appScalingRuleNode["AppId"].asString();
|
||||
if(!appScalingRuleNode["ScaleRuleName"].isNull())
|
||||
appScalingRule_.scaleRuleName = appScalingRuleNode["ScaleRuleName"].asString();
|
||||
if(!appScalingRuleNode["ScaleRuleType"].isNull())
|
||||
appScalingRule_.scaleRuleType = appScalingRuleNode["ScaleRuleType"].asString();
|
||||
if(!appScalingRuleNode["ScaleRuleEnabled"].isNull())
|
||||
appScalingRule_.scaleRuleEnabled = appScalingRuleNode["ScaleRuleEnabled"].asString() == "true";
|
||||
if(!appScalingRuleNode["MinReplicas"].isNull())
|
||||
appScalingRule_.minReplicas = std::stoi(appScalingRuleNode["MinReplicas"].asString());
|
||||
if(!appScalingRuleNode["MaxReplicas"].isNull())
|
||||
appScalingRule_.maxReplicas = std::stoi(appScalingRuleNode["MaxReplicas"].asString());
|
||||
if(!appScalingRuleNode["CreateTime"].isNull())
|
||||
appScalingRule_.createTime = std::stol(appScalingRuleNode["CreateTime"].asString());
|
||||
if(!appScalingRuleNode["UpdateTime"].isNull())
|
||||
appScalingRule_.updateTime = std::stol(appScalingRuleNode["UpdateTime"].asString());
|
||||
if(!appScalingRuleNode["LastDisableTime"].isNull())
|
||||
appScalingRule_.lastDisableTime = std::stol(appScalingRuleNode["LastDisableTime"].asString());
|
||||
auto metricNode = appScalingRuleNode["Metric"];
|
||||
if(!metricNode["MaxReplicas"].isNull())
|
||||
appScalingRule_.metric.maxReplicas = std::stoi(metricNode["MaxReplicas"].asString());
|
||||
if(!metricNode["MinReplicas"].isNull())
|
||||
appScalingRule_.metric.minReplicas = std::stoi(metricNode["MinReplicas"].asString());
|
||||
auto allMetricsNode = metricNode["Metrics"]["Metric"];
|
||||
for (auto metricNodeMetricsMetric : allMetricsNode)
|
||||
{
|
||||
AppScalingRule::Metric::Metric1 metric1Object;
|
||||
if(!metricNodeMetricsMetric["MetricType"].isNull())
|
||||
metric1Object.metricType = metricNodeMetricsMetric["MetricType"].asString();
|
||||
if(!metricNodeMetricsMetric["MetricTargetAverageUtilization"].isNull())
|
||||
metric1Object.metricTargetAverageUtilization = std::stoi(metricNodeMetricsMetric["MetricTargetAverageUtilization"].asString());
|
||||
appScalingRule_.metric.metrics.push_back(metric1Object);
|
||||
}
|
||||
auto triggerNode = appScalingRuleNode["Trigger"];
|
||||
if(!triggerNode["MaxReplicas"].isNull())
|
||||
appScalingRule_.trigger.maxReplicas = std::stoi(triggerNode["MaxReplicas"].asString());
|
||||
if(!triggerNode["MinReplicas"].isNull())
|
||||
appScalingRule_.trigger.minReplicas = std::stoi(triggerNode["MinReplicas"].asString());
|
||||
auto allTriggersNode = triggerNode["Triggers"]["Trigger"];
|
||||
for (auto triggerNodeTriggersTrigger : allTriggersNode)
|
||||
{
|
||||
AppScalingRule::Trigger::Trigger2 trigger2Object;
|
||||
if(!triggerNodeTriggersTrigger["Type"].isNull())
|
||||
trigger2Object.type = triggerNodeTriggersTrigger["Type"].asString();
|
||||
if(!triggerNodeTriggersTrigger["Name"].isNull())
|
||||
trigger2Object.name = triggerNodeTriggersTrigger["Name"].asString();
|
||||
if(!triggerNodeTriggersTrigger["MetaData"].isNull())
|
||||
trigger2Object.metaData = triggerNodeTriggersTrigger["MetaData"].asString();
|
||||
appScalingRule_.trigger.triggers.push_back(trigger2Object);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateApplicationScalingRuleResult::AppScalingRule CreateApplicationScalingRuleResult::getAppScalingRule()const
|
||||
{
|
||||
return appScalingRule_;
|
||||
}
|
||||
|
||||
int CreateApplicationScalingRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/CreateEnvAppGroupRequest.cc
Normal file
52
edas/src/model/CreateEnvAppGroupRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateEnvAppGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateEnvAppGroupRequest;
|
||||
|
||||
CreateEnvAppGroupRequest::CreateEnvAppGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env_app_groups");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvAppGroupRequest::~CreateEnvAppGroupRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEnvAppGroupRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void CreateEnvAppGroupRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setBodyParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
std::string CreateEnvAppGroupRequest::getScopes()const
|
||||
{
|
||||
return scopes_;
|
||||
}
|
||||
|
||||
void CreateEnvAppGroupRequest::setScopes(const std::string& scopes)
|
||||
{
|
||||
scopes_ = scopes;
|
||||
setBodyParameter("Scopes", scopes);
|
||||
}
|
||||
|
||||
58
edas/src/model/CreateEnvAppGroupResult.cc
Normal file
58
edas/src/model/CreateEnvAppGroupResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateEnvAppGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateEnvAppGroupResult::CreateEnvAppGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvAppGroupResult::CreateEnvAppGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvAppGroupResult::~CreateEnvAppGroupResult()
|
||||
{}
|
||||
|
||||
void CreateEnvAppGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvAppGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateEnvAppGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
129
edas/src/model/CreateEnvHsfTrafficControlRequest.cc
Normal file
129
edas/src/model/CreateEnvHsfTrafficControlRequest.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/edas/model/CreateEnvHsfTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateEnvHsfTrafficControlRequest;
|
||||
|
||||
CreateEnvHsfTrafficControlRequest::CreateEnvHsfTrafficControlRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env_hsf_traffic_control");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvHsfTrafficControlRequest::~CreateEnvHsfTrafficControlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getParamTypes()const
|
||||
{
|
||||
return paramTypes_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setParamTypes(const std::string& paramTypes)
|
||||
{
|
||||
paramTypes_ = paramTypes;
|
||||
setBodyParameter("ParamTypes", paramTypes);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getCondition()const
|
||||
{
|
||||
return condition_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setCondition(const std::string& condition)
|
||||
{
|
||||
condition_ = condition;
|
||||
setBodyParameter("Condition", condition);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setBodyParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getLabelAdviceName()const
|
||||
{
|
||||
return labelAdviceName_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setLabelAdviceName(const std::string& labelAdviceName)
|
||||
{
|
||||
labelAdviceName_ = labelAdviceName;
|
||||
setBodyParameter("LabelAdviceName", labelAdviceName);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setBodyParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setBodyParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getTriggerPolicy()const
|
||||
{
|
||||
return triggerPolicy_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setTriggerPolicy(const std::string& triggerPolicy)
|
||||
{
|
||||
triggerPolicy_ = triggerPolicy;
|
||||
setBodyParameter("TriggerPolicy", triggerPolicy);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setBodyParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlRequest::getMethodName()const
|
||||
{
|
||||
return methodName_;
|
||||
}
|
||||
|
||||
void CreateEnvHsfTrafficControlRequest::setMethodName(const std::string& methodName)
|
||||
{
|
||||
methodName_ = methodName;
|
||||
setBodyParameter("MethodName", methodName);
|
||||
}
|
||||
|
||||
136
edas/src/model/CreateEnvHsfTrafficControlResult.cc
Normal file
136
edas/src/model/CreateEnvHsfTrafficControlResult.cc
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* 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/edas/model/CreateEnvHsfTrafficControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateEnvHsfTrafficControlResult::CreateEnvHsfTrafficControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvHsfTrafficControlResult::CreateEnvHsfTrafficControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvHsfTrafficControlResult::~CreateEnvHsfTrafficControlResult()
|
||||
{}
|
||||
|
||||
void CreateEnvHsfTrafficControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["LabelAdviceId"].isNull())
|
||||
data_.labelAdviceId = std::stol(dataNode["LabelAdviceId"].asString());
|
||||
if(!dataNode["Kind"].isNull())
|
||||
data_.kind = dataNode["Kind"].asString();
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["PointcutId"].isNull())
|
||||
data_.pointcutId = std::stol(dataNode["PointcutId"].asString());
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
auto metadataNode = dataNode["Metadata"];
|
||||
if(!metadataNode["Name"].isNull())
|
||||
data_.metadata.name = metadataNode["Name"].asString();
|
||||
if(!metadataNode["Namespace"].isNull())
|
||||
data_.metadata._namespace = metadataNode["Namespace"].asString();
|
||||
if(!metadataNode["Labels"].isNull())
|
||||
data_.metadata.labels = metadataNode["Labels"].asString();
|
||||
auto specNode = metadataNode["Spec"];
|
||||
if(!specNode["ConditionType"].isNull())
|
||||
data_.metadata.spec.conditionType = specNode["ConditionType"].asString();
|
||||
if(!specNode["Enable"].isNull())
|
||||
data_.metadata.spec.enable = specNode["Enable"].asString() == "true";
|
||||
if(!specNode["Group"].isNull())
|
||||
data_.metadata.spec.group = specNode["Group"].asString();
|
||||
if(!specNode["MethodName"].isNull())
|
||||
data_.metadata.spec.methodName = specNode["MethodName"].asString();
|
||||
if(!specNode["Order"].isNull())
|
||||
data_.metadata.spec.order = std::stol(specNode["Order"].asString());
|
||||
if(!specNode["Percent"].isNull())
|
||||
data_.metadata.spec.percent = std::stoi(specNode["Percent"].asString());
|
||||
if(!specNode["ServiceName"].isNull())
|
||||
data_.metadata.spec.serviceName = specNode["ServiceName"].asString();
|
||||
if(!specNode["TriggerPolicy"].isNull())
|
||||
data_.metadata.spec.triggerPolicy = specNode["TriggerPolicy"].asString();
|
||||
if(!specNode["Type"].isNull())
|
||||
data_.metadata.spec.type = specNode["Type"].asString();
|
||||
if(!specNode["Selector"].isNull())
|
||||
data_.metadata.spec.selector = specNode["Selector"].asString();
|
||||
auto allPurposesNode = specNode["Purposes"]["PurposesItem"];
|
||||
for (auto specNodePurposesPurposesItem : allPurposesNode)
|
||||
{
|
||||
Data::Metadata::Spec::PurposesItem purposesItemObject;
|
||||
if(!specNodePurposesPurposesItem["Type"].isNull())
|
||||
purposesItemObject.type = specNodePurposesPurposesItem["Type"].asString();
|
||||
data_.metadata.spec.purposes.push_back(purposesItemObject);
|
||||
}
|
||||
auto allConditionsNode = specNode["Conditions"]["ConditionsItem"];
|
||||
for (auto specNodeConditionsConditionsItem : allConditionsNode)
|
||||
{
|
||||
Data::Metadata::Spec::ConditionsItem conditionsItemObject;
|
||||
if(!specNodeConditionsConditionsItem["Id"].isNull())
|
||||
conditionsItemObject.id = std::stol(specNodeConditionsConditionsItem["Id"].asString());
|
||||
if(!specNodeConditionsConditionsItem["Strategy"].isNull())
|
||||
conditionsItemObject.strategy = specNodeConditionsConditionsItem["Strategy"].asString();
|
||||
if(!specNodeConditionsConditionsItem["Type"].isNull())
|
||||
conditionsItemObject.type = specNodeConditionsConditionsItem["Type"].asString();
|
||||
if(!specNodeConditionsConditionsItem["Index"].isNull())
|
||||
conditionsItemObject.index = std::stoi(specNodeConditionsConditionsItem["Index"].asString());
|
||||
if(!specNodeConditionsConditionsItem["Key"].isNull())
|
||||
conditionsItemObject.key = specNodeConditionsConditionsItem["Key"].asString();
|
||||
if(!specNodeConditionsConditionsItem["Operator"].isNull())
|
||||
conditionsItemObject._operator = specNodeConditionsConditionsItem["Operator"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
conditionsItemObject.values.push_back(value.asString());
|
||||
data_.metadata.spec.conditions.push_back(conditionsItemObject);
|
||||
}
|
||||
auto allParamTypes = specNode["ParamTypes"]["ParamTypes"];
|
||||
for (auto value : allParamTypes)
|
||||
data_.metadata.spec.paramTypes.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvHsfTrafficControlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateEnvHsfTrafficControlResult::Data CreateEnvHsfTrafficControlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateEnvHsfTrafficControlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
96
edas/src/model/CreateEnvHttpTrafficControlRequest.cc
Normal file
96
edas/src/model/CreateEnvHttpTrafficControlRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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/edas/model/CreateEnvHttpTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateEnvHttpTrafficControlRequest;
|
||||
|
||||
CreateEnvHttpTrafficControlRequest::CreateEnvHttpTrafficControlRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env_http_traffic_control");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEnvHttpTrafficControlRequest::~CreateEnvHttpTrafficControlRequest()
|
||||
{}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlRequest::getCondition()const
|
||||
{
|
||||
return condition_;
|
||||
}
|
||||
|
||||
void CreateEnvHttpTrafficControlRequest::setCondition(const std::string& condition)
|
||||
{
|
||||
condition_ = condition;
|
||||
setBodyParameter("Condition", condition);
|
||||
}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlRequest::getUrlPath()const
|
||||
{
|
||||
return urlPath_;
|
||||
}
|
||||
|
||||
void CreateEnvHttpTrafficControlRequest::setUrlPath(const std::string& urlPath)
|
||||
{
|
||||
urlPath_ = urlPath;
|
||||
setBodyParameter("UrlPath", urlPath);
|
||||
}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateEnvHttpTrafficControlRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setBodyParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlRequest::getLabelAdviceName()const
|
||||
{
|
||||
return labelAdviceName_;
|
||||
}
|
||||
|
||||
void CreateEnvHttpTrafficControlRequest::setLabelAdviceName(const std::string& labelAdviceName)
|
||||
{
|
||||
labelAdviceName_ = labelAdviceName;
|
||||
setBodyParameter("LabelAdviceName", labelAdviceName);
|
||||
}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void CreateEnvHttpTrafficControlRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setBodyParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlRequest::getTriggerPolicy()const
|
||||
{
|
||||
return triggerPolicy_;
|
||||
}
|
||||
|
||||
void CreateEnvHttpTrafficControlRequest::setTriggerPolicy(const std::string& triggerPolicy)
|
||||
{
|
||||
triggerPolicy_ = triggerPolicy;
|
||||
setBodyParameter("TriggerPolicy", triggerPolicy);
|
||||
}
|
||||
|
||||
141
edas/src/model/CreateEnvHttpTrafficControlResult.cc
Normal file
141
edas/src/model/CreateEnvHttpTrafficControlResult.cc
Normal file
@@ -0,0 +1,141 @@
|
||||
/*
|
||||
* 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/edas/model/CreateEnvHttpTrafficControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateEnvHttpTrafficControlResult::CreateEnvHttpTrafficControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEnvHttpTrafficControlResult::CreateEnvHttpTrafficControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEnvHttpTrafficControlResult::~CreateEnvHttpTrafficControlResult()
|
||||
{}
|
||||
|
||||
void CreateEnvHttpTrafficControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccountId"].isNull())
|
||||
data_.accountId = dataNode["AccountId"].asString();
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["EnvName"].isNull())
|
||||
data_.envName = dataNode["EnvName"].asString();
|
||||
if(!dataNode["LabelAdviceId"].isNull())
|
||||
data_.labelAdviceId = std::stol(dataNode["LabelAdviceId"].asString());
|
||||
if(!dataNode["LabelType"].isNull())
|
||||
data_.labelType = dataNode["LabelType"].asString();
|
||||
if(!dataNode["PointcutId"].isNull())
|
||||
data_.pointcutId = std::stol(dataNode["PointcutId"].asString());
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["TenantId"].isNull())
|
||||
data_.tenantId = dataNode["TenantId"].asString();
|
||||
auto specNode = dataNode["Spec"];
|
||||
if(!specNode["ConditionType"].isNull())
|
||||
data_.spec.conditionType = specNode["ConditionType"].asString();
|
||||
if(!specNode["Order"].isNull())
|
||||
data_.spec.order = std::stol(specNode["Order"].asString());
|
||||
if(!specNode["Percent"].isNull())
|
||||
data_.spec.percent = std::stoi(specNode["Percent"].asString());
|
||||
if(!specNode["TriggerPolicy"].isNull())
|
||||
data_.spec.triggerPolicy = specNode["TriggerPolicy"].asString();
|
||||
if(!specNode["Type"].isNull())
|
||||
data_.spec.type = specNode["Type"].asString();
|
||||
if(!specNode["Url"].isNull())
|
||||
data_.spec.url = specNode["Url"].asString();
|
||||
if(!specNode["Selector"].isNull())
|
||||
data_.spec.selector = specNode["Selector"].asString();
|
||||
if(!specNode["ServiceName"].isNull())
|
||||
data_.spec.serviceName = specNode["ServiceName"].asString();
|
||||
if(!specNode["Group"].isNull())
|
||||
data_.spec.group = specNode["Group"].asString();
|
||||
if(!specNode["Version"].isNull())
|
||||
data_.spec.version = specNode["Version"].asString();
|
||||
if(!specNode["MethodName"].isNull())
|
||||
data_.spec.methodName = specNode["MethodName"].asString();
|
||||
if(!specNode["ClassName"].isNull())
|
||||
data_.spec.className = specNode["ClassName"].asString();
|
||||
if(!specNode["TransmitSwitch"].isNull())
|
||||
data_.spec.transmitSwitch = specNode["TransmitSwitch"].asString() == "true";
|
||||
if(!specNode["TransmitLevel"].isNull())
|
||||
data_.spec.transmitLevel = std::stoi(specNode["TransmitLevel"].asString());
|
||||
auto allConditionsNode = specNode["Conditions"]["conditionsItem"];
|
||||
for (auto specNodeConditionsconditionsItem : allConditionsNode)
|
||||
{
|
||||
Data::Spec::ConditionsItem conditionsItemObject;
|
||||
if(!specNodeConditionsconditionsItem["Id"].isNull())
|
||||
conditionsItemObject.id = std::stol(specNodeConditionsconditionsItem["Id"].asString());
|
||||
if(!specNodeConditionsconditionsItem["Strategy"].isNull())
|
||||
conditionsItemObject.strategy = specNodeConditionsconditionsItem["Strategy"].asString();
|
||||
if(!specNodeConditionsconditionsItem["Type"].isNull())
|
||||
conditionsItemObject.type = specNodeConditionsconditionsItem["Type"].asString();
|
||||
if(!specNodeConditionsconditionsItem["Index"].isNull())
|
||||
conditionsItemObject.index = std::stoi(specNodeConditionsconditionsItem["Index"].asString());
|
||||
if(!specNodeConditionsconditionsItem["Key"].isNull())
|
||||
conditionsItemObject.key = specNodeConditionsconditionsItem["Key"].asString();
|
||||
if(!specNodeConditionsconditionsItem["Operator"].isNull())
|
||||
conditionsItemObject._operator = specNodeConditionsconditionsItem["Operator"].asString();
|
||||
auto allValues = value["Values"]["Values"];
|
||||
for (auto value : allValues)
|
||||
conditionsItemObject.values.push_back(value.asString());
|
||||
data_.spec.conditions.push_back(conditionsItemObject);
|
||||
}
|
||||
auto allPurposesNode = specNode["Purposes"]["PurposesItem"];
|
||||
for (auto specNodePurposesPurposesItem : allPurposesNode)
|
||||
{
|
||||
Data::Spec::PurposesItem purposesItemObject;
|
||||
if(!specNodePurposesPurposesItem["Type"].isNull())
|
||||
purposesItemObject.type = specNodePurposesPurposesItem["Type"].asString();
|
||||
data_.spec.purposes.push_back(purposesItemObject);
|
||||
}
|
||||
auto allParamTypes = specNode["ParamTypes"]["paramTypes"];
|
||||
for (auto value : allParamTypes)
|
||||
data_.spec.paramTypes.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEnvHttpTrafficControlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateEnvHttpTrafficControlResult::Data CreateEnvHttpTrafficControlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateEnvHttpTrafficControlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
74
edas/src/model/CreateGrayEnvironmentRequest.cc
Normal file
74
edas/src/model/CreateGrayEnvironmentRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateGrayEnvironmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateGrayEnvironmentRequest;
|
||||
|
||||
CreateGrayEnvironmentRequest::CreateGrayEnvironmentRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateGrayEnvironmentRequest::~CreateGrayEnvironmentRequest()
|
||||
{}
|
||||
|
||||
std::string CreateGrayEnvironmentRequest::getShowName()const
|
||||
{
|
||||
return showName_;
|
||||
}
|
||||
|
||||
void CreateGrayEnvironmentRequest::setShowName(const std::string& showName)
|
||||
{
|
||||
showName_ = showName;
|
||||
setBodyParameter("ShowName", showName);
|
||||
}
|
||||
|
||||
std::string CreateGrayEnvironmentRequest::getLogicalRegionId()const
|
||||
{
|
||||
return logicalRegionId_;
|
||||
}
|
||||
|
||||
void CreateGrayEnvironmentRequest::setLogicalRegionId(const std::string& logicalRegionId)
|
||||
{
|
||||
logicalRegionId_ = logicalRegionId;
|
||||
setBodyParameter("LogicalRegionId", logicalRegionId);
|
||||
}
|
||||
|
||||
std::string CreateGrayEnvironmentRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateGrayEnvironmentRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setBodyParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateGrayEnvironmentRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void CreateGrayEnvironmentRequest::setTag(const std::string& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
setBodyParameter("Tag", tag);
|
||||
}
|
||||
|
||||
81
edas/src/model/CreateGrayEnvironmentResult.cc
Normal file
81
edas/src/model/CreateGrayEnvironmentResult.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/edas/model/CreateGrayEnvironmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateGrayEnvironmentResult::CreateGrayEnvironmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateGrayEnvironmentResult::CreateGrayEnvironmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateGrayEnvironmentResult::~CreateGrayEnvironmentResult()
|
||||
{}
|
||||
|
||||
void CreateGrayEnvironmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccountId"].isNull())
|
||||
data_.accountId = dataNode["AccountId"].asString();
|
||||
if(!dataNode["PointcutId"].isNull())
|
||||
data_.pointcutId = std::stol(dataNode["PointcutId"].asString());
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["TenantId"].isNull())
|
||||
data_.tenantId = dataNode["TenantId"].asString();
|
||||
auto metadataNode = dataNode["Metadata"];
|
||||
if(!metadataNode["Labels"].isNull())
|
||||
data_.metadata.labels = metadataNode["Labels"].asString();
|
||||
if(!metadataNode["Name"].isNull())
|
||||
data_.metadata.name = metadataNode["Name"].asString();
|
||||
if(!metadataNode["Namespace"].isNull())
|
||||
data_.metadata._namespace = metadataNode["Namespace"].asString();
|
||||
if(!metadataNode["Annotations"].isNull())
|
||||
data_.metadata.annotations = metadataNode["Annotations"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateGrayEnvironmentResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateGrayEnvironmentResult::Data CreateGrayEnvironmentResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateGrayEnvironmentResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/CreateIDCImportCommandRequest.cc
Normal file
41
edas/src/model/CreateIDCImportCommandRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateIDCImportCommandRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateIDCImportCommandRequest;
|
||||
|
||||
CreateIDCImportCommandRequest::CreateIDCImportCommandRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/create_idc_import_command");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIDCImportCommandRequest::~CreateIDCImportCommandRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIDCImportCommandRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateIDCImportCommandRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
65
edas/src/model/CreateIDCImportCommandResult.cc
Normal file
65
edas/src/model/CreateIDCImportCommandResult.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/edas/model/CreateIDCImportCommandResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateIDCImportCommandResult::CreateIDCImportCommandResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIDCImportCommandResult::CreateIDCImportCommandResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIDCImportCommandResult::~CreateIDCImportCommandResult()
|
||||
{}
|
||||
|
||||
void CreateIDCImportCommandResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIDCImportCommandResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateIDCImportCommandResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateIDCImportCommandResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
74
edas/src/model/CreateK8sConfigMapRequest.cc
Normal file
74
edas/src/model/CreateK8sConfigMapRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateK8sConfigMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateK8sConfigMapRequest;
|
||||
|
||||
CreateK8sConfigMapRequest::CreateK8sConfigMapRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_config_map");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateK8sConfigMapRequest::~CreateK8sConfigMapRequest()
|
||||
{}
|
||||
|
||||
std::string CreateK8sConfigMapRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateK8sConfigMapRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setBodyParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string CreateK8sConfigMapRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateK8sConfigMapRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setBodyParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string CreateK8sConfigMapRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateK8sConfigMapRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateK8sConfigMapRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateK8sConfigMapRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
edas/src/model/CreateK8sConfigMapResult.cc
Normal file
58
edas/src/model/CreateK8sConfigMapResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateK8sConfigMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateK8sConfigMapResult::CreateK8sConfigMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateK8sConfigMapResult::CreateK8sConfigMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateK8sConfigMapResult::~CreateK8sConfigMapResult()
|
||||
{}
|
||||
|
||||
void CreateK8sConfigMapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateK8sConfigMapResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateK8sConfigMapResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
74
edas/src/model/CreateK8sIngressRuleRequest.cc
Normal file
74
edas/src/model/CreateK8sIngressRuleRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateK8sIngressRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateK8sIngressRuleRequest;
|
||||
|
||||
CreateK8sIngressRuleRequest::CreateK8sIngressRuleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_ingress");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateK8sIngressRuleRequest::~CreateK8sIngressRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateK8sIngressRuleRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateK8sIngressRuleRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string CreateK8sIngressRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateK8sIngressRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateK8sIngressRuleRequest::getIngressConf()const
|
||||
{
|
||||
return ingressConf_;
|
||||
}
|
||||
|
||||
void CreateK8sIngressRuleRequest::setIngressConf(const std::string& ingressConf)
|
||||
{
|
||||
ingressConf_ = ingressConf;
|
||||
setParameter("IngressConf", ingressConf);
|
||||
}
|
||||
|
||||
std::string CreateK8sIngressRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateK8sIngressRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
edas/src/model/CreateK8sIngressRuleResult.cc
Normal file
58
edas/src/model/CreateK8sIngressRuleResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateK8sIngressRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateK8sIngressRuleResult::CreateK8sIngressRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateK8sIngressRuleResult::CreateK8sIngressRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateK8sIngressRuleResult::~CreateK8sIngressRuleResult()
|
||||
{}
|
||||
|
||||
void CreateK8sIngressRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateK8sIngressRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateK8sIngressRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
107
edas/src/model/CreateK8sSecretRequest.cc
Normal file
107
edas/src/model/CreateK8sSecretRequest.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/edas/model/CreateK8sSecretRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateK8sSecretRequest;
|
||||
|
||||
CreateK8sSecretRequest::CreateK8sSecretRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_secret");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateK8sSecretRequest::~CreateK8sSecretRequest()
|
||||
{}
|
||||
|
||||
std::string CreateK8sSecretRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setBodyParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setBodyParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setBodyParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretRequest::getCertId()const
|
||||
{
|
||||
return certId_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::setCertId(const std::string& certId)
|
||||
{
|
||||
certId_ = certId;
|
||||
setBodyParameter("CertId", certId);
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setBodyParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretRequest::getCertRegionId()const
|
||||
{
|
||||
return certRegionId_;
|
||||
}
|
||||
|
||||
void CreateK8sSecretRequest::setCertRegionId(const std::string& certRegionId)
|
||||
{
|
||||
certRegionId_ = certRegionId;
|
||||
setBodyParameter("CertRegionId", certRegionId);
|
||||
}
|
||||
|
||||
58
edas/src/model/CreateK8sSecretResult.cc
Normal file
58
edas/src/model/CreateK8sSecretResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateK8sSecretResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateK8sSecretResult::CreateK8sSecretResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateK8sSecretResult::CreateK8sSecretResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateK8sSecretResult::~CreateK8sSecretResult()
|
||||
{}
|
||||
|
||||
void CreateK8sSecretResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateK8sSecretResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateK8sSecretResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
74
edas/src/model/CreateK8sServiceRequest.cc
Normal file
74
edas/src/model/CreateK8sServiceRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/CreateK8sServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::CreateK8sServiceRequest;
|
||||
|
||||
CreateK8sServiceRequest::CreateK8sServiceRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_service");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateK8sServiceRequest::~CreateK8sServiceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateK8sServiceRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void CreateK8sServiceRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string CreateK8sServiceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateK8sServiceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateK8sServiceRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateK8sServiceRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateK8sServiceRequest::getServicePorts()const
|
||||
{
|
||||
return servicePorts_;
|
||||
}
|
||||
|
||||
void CreateK8sServiceRequest::setServicePorts(const std::string& servicePorts)
|
||||
{
|
||||
servicePorts_ = servicePorts;
|
||||
setParameter("ServicePorts", servicePorts);
|
||||
}
|
||||
|
||||
65
edas/src/model/CreateK8sServiceResult.cc
Normal file
65
edas/src/model/CreateK8sServiceResult.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/edas/model/CreateK8sServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
CreateK8sServiceResult::CreateK8sServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateK8sServiceResult::CreateK8sServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateK8sServiceResult::~CreateK8sServiceResult()
|
||||
{}
|
||||
|
||||
void CreateK8sServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateK8sServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateK8sServiceResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int CreateK8sServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DelegateAdminRoleRequest.cc
Normal file
41
edas/src/model/DelegateAdminRoleRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DelegateAdminRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DelegateAdminRoleRequest;
|
||||
|
||||
DelegateAdminRoleRequest::DelegateAdminRoleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/account/delegate_admin_role");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DelegateAdminRoleRequest::~DelegateAdminRoleRequest()
|
||||
{}
|
||||
|
||||
std::string DelegateAdminRoleRequest::getTargetUserId()const
|
||||
{
|
||||
return targetUserId_;
|
||||
}
|
||||
|
||||
void DelegateAdminRoleRequest::setTargetUserId(const std::string& targetUserId)
|
||||
{
|
||||
targetUserId_ = targetUserId;
|
||||
setParameter("TargetUserId", targetUserId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DelegateAdminRoleResult.cc
Normal file
58
edas/src/model/DelegateAdminRoleResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DelegateAdminRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DelegateAdminRoleResult::DelegateAdminRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DelegateAdminRoleResult::DelegateAdminRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DelegateAdminRoleResult::~DelegateAdminRoleResult()
|
||||
{}
|
||||
|
||||
void DelegateAdminRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DelegateAdminRoleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DelegateAdminRoleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteApplicationRequest.cc
Normal file
41
edas/src/model/DeleteApplicationRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteApplicationRequest;
|
||||
|
||||
DeleteApplicationRequest::DeleteApplicationRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/changeorder/co_delete_app");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteApplicationRequest::~DeleteApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteApplicationResult.cc
Normal file
65
edas/src/model/DeleteApplicationResult.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/edas/model/DeleteApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteApplicationResult::DeleteApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteApplicationResult::~DeleteApplicationResult()
|
||||
{}
|
||||
|
||||
void DeleteApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteApplicationResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int DeleteApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteApplicationScalingRuleRequest.cc
Normal file
52
edas/src/model/DeleteApplicationScalingRuleRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteApplicationScalingRuleRequest;
|
||||
|
||||
DeleteApplicationScalingRuleRequest::DeleteApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v1/eam/scale/application_scaling_rule");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteApplicationScalingRuleRequest::~DeleteApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
void DeleteApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
}
|
||||
|
||||
std::string DeleteApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
44
edas/src/model/DeleteApplicationScalingRuleResult.cc
Normal file
44
edas/src/model/DeleteApplicationScalingRuleResult.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/edas/model/DeleteApplicationScalingRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteApplicationScalingRuleResult::DeleteApplicationScalingRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteApplicationScalingRuleResult::DeleteApplicationScalingRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteApplicationScalingRuleResult::~DeleteApplicationScalingRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteApplicationScalingRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteClusterMemberRequest.cc
Normal file
52
edas/src/model/DeleteClusterMemberRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteClusterMemberRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteClusterMemberRequest;
|
||||
|
||||
DeleteClusterMemberRequest::DeleteClusterMemberRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/resource/cluster_member");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteClusterMemberRequest::~DeleteClusterMemberRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteClusterMemberRequest::getClusterMemberId()const
|
||||
{
|
||||
return clusterMemberId_;
|
||||
}
|
||||
|
||||
void DeleteClusterMemberRequest::setClusterMemberId(const std::string& clusterMemberId)
|
||||
{
|
||||
clusterMemberId_ = clusterMemberId;
|
||||
setParameter("ClusterMemberId", clusterMemberId);
|
||||
}
|
||||
|
||||
std::string DeleteClusterMemberRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterMemberRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteClusterMemberResult.cc
Normal file
65
edas/src/model/DeleteClusterMemberResult.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/edas/model/DeleteClusterMemberResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteClusterMemberResult::DeleteClusterMemberResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClusterMemberResult::DeleteClusterMemberResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClusterMemberResult::~DeleteClusterMemberResult()
|
||||
{}
|
||||
|
||||
void DeleteClusterMemberResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteClusterMemberResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DeleteClusterMemberResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteClusterMemberResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteClusterRequest.cc
Normal file
52
edas/src/model/DeleteClusterRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteClusterRequest;
|
||||
|
||||
DeleteClusterRequest::DeleteClusterRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/resource/cluster");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteClusterRequest::~DeleteClusterRequest()
|
||||
{}
|
||||
|
||||
int DeleteClusterRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void DeleteClusterRequest::setMode(int mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setParameter("Mode", std::to_string(mode));
|
||||
}
|
||||
|
||||
std::string DeleteClusterRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteClusterResult.cc
Normal file
65
edas/src/model/DeleteClusterResult.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/edas/model/DeleteClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteClusterResult::DeleteClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClusterResult::DeleteClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClusterResult::~DeleteClusterResult()
|
||||
{}
|
||||
|
||||
void DeleteClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteClusterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool DeleteClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteClusterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
edas/src/model/DeleteConfigCenterRequest.cc
Normal file
63
edas/src/model/DeleteConfigCenterRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteConfigCenterRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteConfigCenterRequest;
|
||||
|
||||
DeleteConfigCenterRequest::DeleteConfigCenterRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/configCenter");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigCenterRequest::~DeleteConfigCenterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConfigCenterRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteConfigCenterRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigCenterRequest::getLogicalRegionId()const
|
||||
{
|
||||
return logicalRegionId_;
|
||||
}
|
||||
|
||||
void DeleteConfigCenterRequest::setLogicalRegionId(const std::string& logicalRegionId)
|
||||
{
|
||||
logicalRegionId_ = logicalRegionId;
|
||||
setParameter("LogicalRegionId", logicalRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteConfigCenterRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteConfigCenterRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setParameter("Group", group);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteConfigCenterResult.cc
Normal file
58
edas/src/model/DeleteConfigCenterResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteConfigCenterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteConfigCenterResult::DeleteConfigCenterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigCenterResult::DeleteConfigCenterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigCenterResult::~DeleteConfigCenterResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigCenterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigCenterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteConfigCenterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteDegradeControlRequest.cc
Normal file
52
edas/src/model/DeleteDegradeControlRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteDegradeControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteDegradeControlRequest;
|
||||
|
||||
DeleteDegradeControlRequest::DeleteDegradeControlRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/degradeControl");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteDegradeControlRequest::~DeleteDegradeControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDegradeControlRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteDegradeControlRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteDegradeControlRequest::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DeleteDegradeControlRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteDegradeControlResult.cc
Normal file
58
edas/src/model/DeleteDegradeControlResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteDegradeControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteDegradeControlResult::DeleteDegradeControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDegradeControlResult::DeleteDegradeControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDegradeControlResult::~DeleteDegradeControlResult()
|
||||
{}
|
||||
|
||||
void DeleteDegradeControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDegradeControlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteDegradeControlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteDeployGroupRequest.cc
Normal file
52
edas/src/model/DeleteDeployGroupRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteDeployGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteDeployGroupRequest;
|
||||
|
||||
DeleteDeployGroupRequest::DeleteDeployGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/deploy_group");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteDeployGroupRequest::~DeleteDeployGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDeployGroupRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteDeployGroupRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteDeployGroupRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void DeleteDeployGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteDeployGroupResult.cc
Normal file
65
edas/src/model/DeleteDeployGroupResult.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/edas/model/DeleteDeployGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteDeployGroupResult::DeleteDeployGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDeployGroupResult::DeleteDeployGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDeployGroupResult::~DeleteDeployGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteDeployGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDeployGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteDeployGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteDeployGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteEcuRequest.cc
Normal file
41
edas/src/model/DeleteEcuRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEcuRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteEcuRequest;
|
||||
|
||||
DeleteEcuRequest::DeleteEcuRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/resource/delete_ecu");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEcuRequest::~DeleteEcuRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEcuRequest::getEcuId()const
|
||||
{
|
||||
return ecuId_;
|
||||
}
|
||||
|
||||
void DeleteEcuRequest::setEcuId(const std::string& ecuId)
|
||||
{
|
||||
ecuId_ = ecuId;
|
||||
setParameter("EcuId", ecuId);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteEcuResult.cc
Normal file
65
edas/src/model/DeleteEcuResult.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/edas/model/DeleteEcuResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteEcuResult::DeleteEcuResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEcuResult::DeleteEcuResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEcuResult::~DeleteEcuResult()
|
||||
{}
|
||||
|
||||
void DeleteEcuResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEcuResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEcuResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteEcuResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteEnvAppGroupRequest.cc
Normal file
52
edas/src/model/DeleteEnvAppGroupRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEnvAppGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteEnvAppGroupRequest;
|
||||
|
||||
DeleteEnvAppGroupRequest::DeleteEnvAppGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/EnvAppGroups");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteEnvAppGroupRequest::~DeleteEnvAppGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEnvAppGroupRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void DeleteEnvAppGroupRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
std::string DeleteEnvAppGroupRequest::getScopes()const
|
||||
{
|
||||
return scopes_;
|
||||
}
|
||||
|
||||
void DeleteEnvAppGroupRequest::setScopes(const std::string& scopes)
|
||||
{
|
||||
scopes_ = scopes;
|
||||
setParameter("Scopes", scopes);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteEnvAppGroupResult.cc
Normal file
58
edas/src/model/DeleteEnvAppGroupResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEnvAppGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteEnvAppGroupResult::DeleteEnvAppGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvAppGroupResult::DeleteEnvAppGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvAppGroupResult::~DeleteEnvAppGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvAppGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvAppGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteEnvAppGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteEnvHsfTrafficControlRequest.cc
Normal file
52
edas/src/model/DeleteEnvHsfTrafficControlRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEnvHsfTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteEnvHsfTrafficControlRequest;
|
||||
|
||||
DeleteEnvHsfTrafficControlRequest::DeleteEnvHsfTrafficControlRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env_hsf_traffic_control");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteEnvHsfTrafficControlRequest::~DeleteEnvHsfTrafficControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEnvHsfTrafficControlRequest::getLabelAdviceName()const
|
||||
{
|
||||
return labelAdviceName_;
|
||||
}
|
||||
|
||||
void DeleteEnvHsfTrafficControlRequest::setLabelAdviceName(const std::string& labelAdviceName)
|
||||
{
|
||||
labelAdviceName_ = labelAdviceName;
|
||||
setParameter("LabelAdviceName", labelAdviceName);
|
||||
}
|
||||
|
||||
std::string DeleteEnvHsfTrafficControlRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void DeleteEnvHsfTrafficControlRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteEnvHsfTrafficControlResult.cc
Normal file
58
edas/src/model/DeleteEnvHsfTrafficControlResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEnvHsfTrafficControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteEnvHsfTrafficControlResult::DeleteEnvHsfTrafficControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvHsfTrafficControlResult::DeleteEnvHsfTrafficControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvHsfTrafficControlResult::~DeleteEnvHsfTrafficControlResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvHsfTrafficControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvHsfTrafficControlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteEnvHsfTrafficControlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteEnvHttpTrafficControlRequest.cc
Normal file
52
edas/src/model/DeleteEnvHttpTrafficControlRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEnvHttpTrafficControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteEnvHttpTrafficControlRequest;
|
||||
|
||||
DeleteEnvHttpTrafficControlRequest::DeleteEnvHttpTrafficControlRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env_http_traffic_control");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteEnvHttpTrafficControlRequest::~DeleteEnvHttpTrafficControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteEnvHttpTrafficControlRequest::getLabelAdviceName()const
|
||||
{
|
||||
return labelAdviceName_;
|
||||
}
|
||||
|
||||
void DeleteEnvHttpTrafficControlRequest::setLabelAdviceName(const std::string& labelAdviceName)
|
||||
{
|
||||
labelAdviceName_ = labelAdviceName;
|
||||
setParameter("LabelAdviceName", labelAdviceName);
|
||||
}
|
||||
|
||||
std::string DeleteEnvHttpTrafficControlRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void DeleteEnvHttpTrafficControlRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteEnvHttpTrafficControlResult.cc
Normal file
58
edas/src/model/DeleteEnvHttpTrafficControlResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteEnvHttpTrafficControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteEnvHttpTrafficControlResult::DeleteEnvHttpTrafficControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEnvHttpTrafficControlResult::DeleteEnvHttpTrafficControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEnvHttpTrafficControlResult::~DeleteEnvHttpTrafficControlResult()
|
||||
{}
|
||||
|
||||
void DeleteEnvHttpTrafficControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEnvHttpTrafficControlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteEnvHttpTrafficControlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteFlowControlRequest.cc
Normal file
52
edas/src/model/DeleteFlowControlRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteFlowControlRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteFlowControlRequest;
|
||||
|
||||
DeleteFlowControlRequest::DeleteFlowControlRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/flowControl");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteFlowControlRequest::~DeleteFlowControlRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFlowControlRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteFlowControlRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteFlowControlRequest::getRuleId()const
|
||||
{
|
||||
return ruleId_;
|
||||
}
|
||||
|
||||
void DeleteFlowControlRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteFlowControlResult.cc
Normal file
58
edas/src/model/DeleteFlowControlResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteFlowControlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteFlowControlResult::DeleteFlowControlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFlowControlResult::DeleteFlowControlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFlowControlResult::~DeleteFlowControlResult()
|
||||
{}
|
||||
|
||||
void DeleteFlowControlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteFlowControlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteFlowControlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteGrayEnvironmentRequest.cc
Normal file
52
edas/src/model/DeleteGrayEnvironmentRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteGrayEnvironmentRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteGrayEnvironmentRequest;
|
||||
|
||||
DeleteGrayEnvironmentRequest::DeleteGrayEnvironmentRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/gray/env");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteGrayEnvironmentRequest::~DeleteGrayEnvironmentRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteGrayEnvironmentRequest::getLogicalRegionId()const
|
||||
{
|
||||
return logicalRegionId_;
|
||||
}
|
||||
|
||||
void DeleteGrayEnvironmentRequest::setLogicalRegionId(const std::string& logicalRegionId)
|
||||
{
|
||||
logicalRegionId_ = logicalRegionId;
|
||||
setParameter("LogicalRegionId", logicalRegionId);
|
||||
}
|
||||
|
||||
std::string DeleteGrayEnvironmentRequest::getPointcutName()const
|
||||
{
|
||||
return pointcutName_;
|
||||
}
|
||||
|
||||
void DeleteGrayEnvironmentRequest::setPointcutName(const std::string& pointcutName)
|
||||
{
|
||||
pointcutName_ = pointcutName;
|
||||
setParameter("PointcutName", pointcutName);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteGrayEnvironmentResult.cc
Normal file
58
edas/src/model/DeleteGrayEnvironmentResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteGrayEnvironmentResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteGrayEnvironmentResult::DeleteGrayEnvironmentResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGrayEnvironmentResult::DeleteGrayEnvironmentResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGrayEnvironmentResult::~DeleteGrayEnvironmentResult()
|
||||
{}
|
||||
|
||||
void DeleteGrayEnvironmentResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGrayEnvironmentResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGrayEnvironmentResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteK8sApplicationRequest.cc
Normal file
41
edas/src/model/DeleteK8sApplicationRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteK8sApplicationRequest;
|
||||
|
||||
DeleteK8sApplicationRequest::DeleteK8sApplicationRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_apps");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteK8sApplicationRequest::~DeleteK8sApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteK8sApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteK8sApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteK8sApplicationResult.cc
Normal file
65
edas/src/model/DeleteK8sApplicationResult.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/edas/model/DeleteK8sApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteK8sApplicationResult::DeleteK8sApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteK8sApplicationResult::DeleteK8sApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteK8sApplicationResult::~DeleteK8sApplicationResult()
|
||||
{}
|
||||
|
||||
void DeleteK8sApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteK8sApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteK8sApplicationResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int DeleteK8sApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
edas/src/model/DeleteK8sConfigMapRequest.cc
Normal file
63
edas/src/model/DeleteK8sConfigMapRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sConfigMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteK8sConfigMapRequest;
|
||||
|
||||
DeleteK8sConfigMapRequest::DeleteK8sConfigMapRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_config_map");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteK8sConfigMapRequest::~DeleteK8sConfigMapRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteK8sConfigMapRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DeleteK8sConfigMapRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string DeleteK8sConfigMapRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteK8sConfigMapRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DeleteK8sConfigMapRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteK8sConfigMapRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteK8sConfigMapResult.cc
Normal file
58
edas/src/model/DeleteK8sConfigMapResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sConfigMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteK8sConfigMapResult::DeleteK8sConfigMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteK8sConfigMapResult::DeleteK8sConfigMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteK8sConfigMapResult::~DeleteK8sConfigMapResult()
|
||||
{}
|
||||
|
||||
void DeleteK8sConfigMapResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteK8sConfigMapResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteK8sConfigMapResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
edas/src/model/DeleteK8sIngressRuleRequest.cc
Normal file
63
edas/src/model/DeleteK8sIngressRuleRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sIngressRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteK8sIngressRuleRequest;
|
||||
|
||||
DeleteK8sIngressRuleRequest::DeleteK8sIngressRuleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_ingress");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteK8sIngressRuleRequest::~DeleteK8sIngressRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteK8sIngressRuleRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DeleteK8sIngressRuleRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string DeleteK8sIngressRuleRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteK8sIngressRuleRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DeleteK8sIngressRuleRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteK8sIngressRuleRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteK8sIngressRuleResult.cc
Normal file
58
edas/src/model/DeleteK8sIngressRuleResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sIngressRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteK8sIngressRuleResult::DeleteK8sIngressRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteK8sIngressRuleResult::DeleteK8sIngressRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteK8sIngressRuleResult::~DeleteK8sIngressRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteK8sIngressRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteK8sIngressRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteK8sIngressRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
63
edas/src/model/DeleteK8sSecretRequest.cc
Normal file
63
edas/src/model/DeleteK8sSecretRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sSecretRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteK8sSecretRequest;
|
||||
|
||||
DeleteK8sSecretRequest::DeleteK8sSecretRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_secret");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteK8sSecretRequest::~DeleteK8sSecretRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteK8sSecretRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteK8sSecretRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string DeleteK8sSecretRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DeleteK8sSecretRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
std::string DeleteK8sSecretRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteK8sSecretRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteK8sSecretResult.cc
Normal file
58
edas/src/model/DeleteK8sSecretResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sSecretResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteK8sSecretResult::DeleteK8sSecretResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteK8sSecretResult::DeleteK8sSecretResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteK8sSecretResult::~DeleteK8sSecretResult()
|
||||
{}
|
||||
|
||||
void DeleteK8sSecretResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteK8sSecretResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteK8sSecretResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteK8sServiceRequest.cc
Normal file
52
edas/src/model/DeleteK8sServiceRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteK8sServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteK8sServiceRequest;
|
||||
|
||||
DeleteK8sServiceRequest::DeleteK8sServiceRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/k8s/acs/k8s_service");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteK8sServiceRequest::~DeleteK8sServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteK8sServiceRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteK8sServiceRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeleteK8sServiceRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteK8sServiceRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteK8sServiceResult.cc
Normal file
65
edas/src/model/DeleteK8sServiceResult.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/edas/model/DeleteK8sServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteK8sServiceResult::DeleteK8sServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteK8sServiceResult::DeleteK8sServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteK8sServiceResult::~DeleteK8sServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteK8sServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ChangeOrderId"].isNull())
|
||||
changeOrderId_ = value["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteK8sServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteK8sServiceResult::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
int DeleteK8sServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteLogPathRequest.cc
Normal file
52
edas/src/model/DeleteLogPathRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteLogPathRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteLogPathRequest;
|
||||
|
||||
DeleteLogPathRequest::DeleteLogPathRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/log/popListLogDirs");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteLogPathRequest::~DeleteLogPathRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLogPathRequest::getPath()const
|
||||
{
|
||||
return path_;
|
||||
}
|
||||
|
||||
void DeleteLogPathRequest::setPath(const std::string& path)
|
||||
{
|
||||
path_ = path;
|
||||
setParameter("Path", path);
|
||||
}
|
||||
|
||||
std::string DeleteLogPathRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteLogPathRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteLogPathResult.cc
Normal file
58
edas/src/model/DeleteLogPathResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteLogPathResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteLogPathResult::DeleteLogPathResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLogPathResult::DeleteLogPathResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLogPathResult::~DeleteLogPathResult()
|
||||
{}
|
||||
|
||||
void DeleteLogPathResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteLogPathResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteLogPathResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteRoleRequest.cc
Normal file
41
edas/src/model/DeleteRoleRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteRoleRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteRoleRequest;
|
||||
|
||||
DeleteRoleRequest::DeleteRoleRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/account/delete_role");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRoleRequest::~DeleteRoleRequest()
|
||||
{}
|
||||
|
||||
int DeleteRoleRequest::getRoleId()const
|
||||
{
|
||||
return roleId_;
|
||||
}
|
||||
|
||||
void DeleteRoleRequest::setRoleId(int roleId)
|
||||
{
|
||||
roleId_ = roleId;
|
||||
setParameter("RoleId", std::to_string(roleId));
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteRoleResult.cc
Normal file
58
edas/src/model/DeleteRoleResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteRoleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteRoleResult::DeleteRoleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteRoleResult::DeleteRoleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteRoleResult::~DeleteRoleResult()
|
||||
{}
|
||||
|
||||
void DeleteRoleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteRoleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteRoleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteServiceGroupRequest.cc
Normal file
41
edas/src/model/DeleteServiceGroupRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteServiceGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteServiceGroupRequest;
|
||||
|
||||
DeleteServiceGroupRequest::DeleteServiceGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/service/serviceGroups");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteServiceGroupRequest::~DeleteServiceGroupRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteServiceGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteServiceGroupRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
58
edas/src/model/DeleteServiceGroupResult.cc
Normal file
58
edas/src/model/DeleteServiceGroupResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteServiceGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteServiceGroupResult::DeleteServiceGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceGroupResult::DeleteServiceGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceGroupResult::~DeleteServiceGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteServiceGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteServiceTimeConfigRequest.cc
Normal file
41
edas/src/model/DeleteServiceTimeConfigRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteServiceTimeConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteServiceTimeConfigRequest;
|
||||
|
||||
DeleteServiceTimeConfigRequest::DeleteServiceTimeConfigRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/sp/api/timeout/remove");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteServiceTimeConfigRequest::~DeleteServiceTimeConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteServiceTimeConfigRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteServiceTimeConfigRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
81
edas/src/model/DeleteServiceTimeConfigResult.cc
Normal file
81
edas/src/model/DeleteServiceTimeConfigResult.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/edas/model/DeleteServiceTimeConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteServiceTimeConfigResult::DeleteServiceTimeConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceTimeConfigResult::DeleteServiceTimeConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceTimeConfigResult::~DeleteServiceTimeConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceTimeConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Timeout"].isNull())
|
||||
data_.timeout = dataNode["Timeout"].asString();
|
||||
if(!dataNode["ConsumerAppName"].isNull())
|
||||
data_.consumerAppName = dataNode["ConsumerAppName"].asString();
|
||||
if(!dataNode["ConsumerAppId"].isNull())
|
||||
data_.consumerAppId = dataNode["ConsumerAppId"].asString();
|
||||
if(!dataNode["Path"].isNull())
|
||||
data_.path = dataNode["Path"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceTimeConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteServiceTimeConfigResult::Data DeleteServiceTimeConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteServiceTimeConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteServiceTimeConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteSwimmingLaneGroupRequest.cc
Normal file
41
edas/src/model/DeleteSwimmingLaneGroupRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteSwimmingLaneGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteSwimmingLaneGroupRequest;
|
||||
|
||||
DeleteSwimmingLaneGroupRequest::DeleteSwimmingLaneGroupRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/trafficmgnt/swimming_lane_groups");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneGroupRequest::~DeleteSwimmingLaneGroupRequest()
|
||||
{}
|
||||
|
||||
long DeleteSwimmingLaneGroupRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DeleteSwimmingLaneGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteSwimmingLaneGroupResult.cc
Normal file
65
edas/src/model/DeleteSwimmingLaneGroupResult.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/edas/model/DeleteSwimmingLaneGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteSwimmingLaneGroupResult::DeleteSwimmingLaneGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSwimmingLaneGroupResult::DeleteSwimmingLaneGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneGroupResult::~DeleteSwimmingLaneGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteSwimmingLaneGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stoi(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSwimmingLaneGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSwimmingLaneGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteSwimmingLaneGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
41
edas/src/model/DeleteSwimmingLaneRequest.cc
Normal file
41
edas/src/model/DeleteSwimmingLaneRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteSwimmingLaneRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteSwimmingLaneRequest;
|
||||
|
||||
DeleteSwimmingLaneRequest::DeleteSwimmingLaneRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/trafficmgnt/swimming_lanes");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneRequest::~DeleteSwimmingLaneRequest()
|
||||
{}
|
||||
|
||||
long DeleteSwimmingLaneRequest::getLaneId()const
|
||||
{
|
||||
return laneId_;
|
||||
}
|
||||
|
||||
void DeleteSwimmingLaneRequest::setLaneId(long laneId)
|
||||
{
|
||||
laneId_ = laneId;
|
||||
setParameter("LaneId", std::to_string(laneId));
|
||||
}
|
||||
|
||||
65
edas/src/model/DeleteSwimmingLaneResult.cc
Normal file
65
edas/src/model/DeleteSwimmingLaneResult.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/edas/model/DeleteSwimmingLaneResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Edas;
|
||||
using namespace AlibabaCloud::Edas::Model;
|
||||
|
||||
DeleteSwimmingLaneResult::DeleteSwimmingLaneResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSwimmingLaneResult::DeleteSwimmingLaneResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSwimmingLaneResult::~DeleteSwimmingLaneResult()
|
||||
{}
|
||||
|
||||
void DeleteSwimmingLaneResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = std::stoi(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSwimmingLaneResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSwimmingLaneResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteSwimmingLaneResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
52
edas/src/model/DeleteUserDefineRegionRequest.cc
Normal file
52
edas/src/model/DeleteUserDefineRegionRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/edas/model/DeleteUserDefineRegionRequest.h>
|
||||
|
||||
using AlibabaCloud::Edas::Model::DeleteUserDefineRegionRequest;
|
||||
|
||||
DeleteUserDefineRegionRequest::DeleteUserDefineRegionRequest() :
|
||||
RoaServiceRequest("edas", "2017-08-01")
|
||||
{
|
||||
setResourcePath("/pop/v5/user_region_def");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteUserDefineRegionRequest::~DeleteUserDefineRegionRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteUserDefineRegionRequest::getRegionTag()const
|
||||
{
|
||||
return regionTag_;
|
||||
}
|
||||
|
||||
void DeleteUserDefineRegionRequest::setRegionTag(const std::string& regionTag)
|
||||
{
|
||||
regionTag_ = regionTag;
|
||||
setParameter("RegionTag", regionTag);
|
||||
}
|
||||
|
||||
long DeleteUserDefineRegionRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteUserDefineRegionRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user