Add ListDashboardUrl api.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -79,6 +79,15 @@ void AddGatewayRouteRequest::setRouteOrder(int routeOrder) {
|
||||
setParameter(std::string("RouteOrder"), std::to_string(routeOrder));
|
||||
}
|
||||
|
||||
bool AddGatewayRouteRequest::getEnableWaf() const {
|
||||
return enableWaf_;
|
||||
}
|
||||
|
||||
void AddGatewayRouteRequest::setEnableWaf(bool enableWaf) {
|
||||
enableWaf_ = enableWaf;
|
||||
setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<AddGatewayRouteRequest::Services> AddGatewayRouteRequest::getServices() const {
|
||||
return services_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::AddSSLCertRequest;
|
||||
|
||||
AddSSLCertRequest::AddSSLCertRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddSSLCert") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddSSLCertRequest::~AddSSLCertRequest() {}
|
||||
|
||||
99
mse/src/model/AddSeataServerRequest.cc
Normal file
99
mse/src/model/AddSeataServerRequest.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/AddSeataServerRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddSeataServerRequest;
|
||||
|
||||
AddSeataServerRequest::AddSeataServerRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddSeataServer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddSeataServerRequest::~AddSeataServerRequest() {}
|
||||
|
||||
int AddSeataServerRequest::getReplica() const {
|
||||
return replica_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setReplica(int replica) {
|
||||
replica_ = replica;
|
||||
setParameter(std::string("Replica"), std::to_string(replica));
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getPrimaryUser() const {
|
||||
return primaryUser_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setPrimaryUser(const std::string &primaryUser) {
|
||||
primaryUser_ = primaryUser;
|
||||
setParameter(std::string("PrimaryUser"), primaryUser);
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getVpc() const {
|
||||
return vpc_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setVpc(const std::string &vpc) {
|
||||
vpc_ = vpc;
|
||||
setParameter(std::string("Vpc"), vpc);
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getVswitch() const {
|
||||
return vswitch_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setVswitch(const std::string &vswitch) {
|
||||
vswitch_ = vswitch;
|
||||
setParameter(std::string("Vswitch"), vswitch);
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setZoneId(const std::string &zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("ZoneId"), zoneId);
|
||||
}
|
||||
|
||||
std::string AddSeataServerRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void AddSeataServerRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddSeataServerResult.cc
Normal file
79
mse/src/model/AddSeataServerResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/AddSeataServerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddSeataServerResult::AddSeataServerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddSeataServerResult::AddSeataServerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddSeataServerResult::~AddSeataServerResult()
|
||||
{}
|
||||
|
||||
void AddSeataServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddSeataServerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddSeataServerResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddSeataServerResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddSeataServerResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddSeataServerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
mse/src/model/AddSecurityGroupRuleRequest.cc
Normal file
72
mse/src/model/AddSecurityGroupRuleRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/AddSecurityGroupRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddSecurityGroupRuleRequest;
|
||||
|
||||
AddSecurityGroupRuleRequest::AddSecurityGroupRuleRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddSecurityGroupRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddSecurityGroupRuleRequest::~AddSecurityGroupRuleRequest() {}
|
||||
|
||||
std::string AddSecurityGroupRuleRequest::getPortRange() const {
|
||||
return portRange_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRuleRequest::setPortRange(const std::string &portRange) {
|
||||
portRange_ = portRange;
|
||||
setParameter(std::string("PortRange"), portRange);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRuleRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRuleRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRuleRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRuleRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRuleRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRuleRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddSecurityGroupRuleResult.cc
Normal file
79
mse/src/model/AddSecurityGroupRuleResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/AddSecurityGroupRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddSecurityGroupRuleResult::AddSecurityGroupRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddSecurityGroupRuleResult::AddSecurityGroupRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddSecurityGroupRuleResult::~AddSecurityGroupRuleResult()
|
||||
{}
|
||||
|
||||
void AddSecurityGroupRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddSecurityGroupRuleResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddSecurityGroupRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddSecurityGroupRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddSecurityGroupRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -25,6 +25,17 @@ AddServiceSourceRequest::AddServiceSourceRequest()
|
||||
|
||||
AddServiceSourceRequest::~AddServiceSourceRequest() {}
|
||||
|
||||
AddServiceSourceRequest::IngressOptionsRequest AddServiceSourceRequest::getIngressOptionsRequest() const {
|
||||
return ingressOptionsRequest_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setIngressOptionsRequest(const AddServiceSourceRequest::IngressOptionsRequest &ingressOptionsRequest) {
|
||||
ingressOptionsRequest_ = ingressOptionsRequest;
|
||||
setParameter(std::string("IngressOptionsRequest") + ".EnableIngress", ingressOptionsRequest.enableIngress ? "true" : "false");
|
||||
setParameter(std::string("IngressOptionsRequest") + ".WatchNamespace", ingressOptionsRequest.watchNamespace);
|
||||
setParameter(std::string("IngressOptionsRequest") + ".IngressClass", ingressOptionsRequest.ingressClass);
|
||||
}
|
||||
|
||||
std::string AddServiceSourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
72
mse/src/model/AddTestRequest.cc
Normal file
72
mse/src/model/AddTestRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/AddTestRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddTestRequest;
|
||||
|
||||
AddTestRequest::AddTestRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddTest") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddTestRequest::~AddTestRequest() {}
|
||||
|
||||
int AddTestRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void AddTestRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string AddTestRequest::getOrderItem() const {
|
||||
return orderItem_;
|
||||
}
|
||||
|
||||
void AddTestRequest::setOrderItem(const std::string &orderItem) {
|
||||
orderItem_ = orderItem;
|
||||
setParameter(std::string("OrderItem"), orderItem);
|
||||
}
|
||||
|
||||
int AddTestRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void AddTestRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string AddTestRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddTestRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
bool AddTestRequest::getDescSort() const {
|
||||
return descSort_;
|
||||
}
|
||||
|
||||
void AddTestRequest::setDescSort(bool descSort) {
|
||||
descSort_ = descSort;
|
||||
setParameter(std::string("DescSort"), descSort ? "true" : "false");
|
||||
}
|
||||
|
||||
182
mse/src/model/AddTestResult.cc
Normal file
182
mse/src/model/AddTestResult.cc
Normal file
@@ -0,0 +1,182 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/AddTestResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddTestResult::AddTestResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddTestResult::AddTestResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddTestResult::~AddTestResult()
|
||||
{}
|
||||
|
||||
void AddTestResult::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["TotalSize"].isNull())
|
||||
data_.totalSize = std::stol(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allResultNode = dataNode["Result"]["Gateways"];
|
||||
for (auto dataNodeResultGateways : allResultNode)
|
||||
{
|
||||
Data::Gateways gatewaysObject;
|
||||
if(!dataNodeResultGateways["Id"].isNull())
|
||||
gatewaysObject.id = std::stol(dataNodeResultGateways["Id"].asString());
|
||||
if(!dataNodeResultGateways["Name"].isNull())
|
||||
gatewaysObject.name = dataNodeResultGateways["Name"].asString();
|
||||
if(!dataNodeResultGateways["GatewayUniqueId"].isNull())
|
||||
gatewaysObject.gatewayUniqueId = dataNodeResultGateways["GatewayUniqueId"].asString();
|
||||
if(!dataNodeResultGateways["GatewayType"].isNull())
|
||||
gatewaysObject.gatewayType = dataNodeResultGateways["GatewayType"].asString();
|
||||
if(!dataNodeResultGateways["Region"].isNull())
|
||||
gatewaysObject.region = dataNodeResultGateways["Region"].asString();
|
||||
if(!dataNodeResultGateways["PrimaryUser"].isNull())
|
||||
gatewaysObject.primaryUser = dataNodeResultGateways["PrimaryUser"].asString();
|
||||
if(!dataNodeResultGateways["Status"].isNull())
|
||||
gatewaysObject.status = std::stoi(dataNodeResultGateways["Status"].asString());
|
||||
if(!dataNodeResultGateways["AhasOn"].isNull())
|
||||
gatewaysObject.ahasOn = dataNodeResultGateways["AhasOn"].asString() == "true";
|
||||
if(!dataNodeResultGateways["ArmsOn"].isNull())
|
||||
gatewaysObject.armsOn = dataNodeResultGateways["ArmsOn"].asString() == "true";
|
||||
if(!dataNodeResultGateways["Spec"].isNull())
|
||||
gatewaysObject.spec = dataNodeResultGateways["Spec"].asString();
|
||||
if(!dataNodeResultGateways["Replica"].isNull())
|
||||
gatewaysObject.replica = std::stoi(dataNodeResultGateways["Replica"].asString());
|
||||
if(!dataNodeResultGateways["GmtCreate"].isNull())
|
||||
gatewaysObject.gmtCreate = dataNodeResultGateways["GmtCreate"].asString();
|
||||
if(!dataNodeResultGateways["GmtModified"].isNull())
|
||||
gatewaysObject.gmtModified = dataNodeResultGateways["GmtModified"].asString();
|
||||
if(!dataNodeResultGateways["StatusDesc"].isNull())
|
||||
gatewaysObject.statusDesc = dataNodeResultGateways["StatusDesc"].asString();
|
||||
if(!dataNodeResultGateways["Upgrade"].isNull())
|
||||
gatewaysObject.upgrade = dataNodeResultGateways["Upgrade"].asString() == "true";
|
||||
if(!dataNodeResultGateways["MustUpgrade"].isNull())
|
||||
gatewaysObject.mustUpgrade = dataNodeResultGateways["MustUpgrade"].asString() == "true";
|
||||
if(!dataNodeResultGateways["CurrentVersion"].isNull())
|
||||
gatewaysObject.currentVersion = dataNodeResultGateways["CurrentVersion"].asString();
|
||||
if(!dataNodeResultGateways["LatestVersion"].isNull())
|
||||
gatewaysObject.latestVersion = dataNodeResultGateways["LatestVersion"].asString();
|
||||
if(!dataNodeResultGateways["Vswitch2"].isNull())
|
||||
gatewaysObject.vswitch2 = dataNodeResultGateways["Vswitch2"].asString();
|
||||
if(!dataNodeResultGateways["InstanceId"].isNull())
|
||||
gatewaysObject.instanceId = dataNodeResultGateways["InstanceId"].asString();
|
||||
if(!dataNodeResultGateways["ChargeType"].isNull())
|
||||
gatewaysObject.chargeType = dataNodeResultGateways["ChargeType"].asString();
|
||||
if(!dataNodeResultGateways["EndDate"].isNull())
|
||||
gatewaysObject.endDate = dataNodeResultGateways["EndDate"].asString();
|
||||
if(!dataNodeResultGateways["Tag"].isNull())
|
||||
gatewaysObject.tag = dataNodeResultGateways["Tag"].asString();
|
||||
auto allSlbNode = dataNodeResultGateways["Slb"]["slbItem"];
|
||||
for (auto dataNodeResultGatewaysSlbslbItem : allSlbNode)
|
||||
{
|
||||
Data::Gateways::SlbItem slbObject;
|
||||
if(!dataNodeResultGatewaysSlbslbItem["SlbIp"].isNull())
|
||||
slbObject.slbIp = dataNodeResultGatewaysSlbslbItem["SlbIp"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["SlbPort"].isNull())
|
||||
slbObject.slbPort = dataNodeResultGatewaysSlbslbItem["SlbPort"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["SlbSpec"].isNull())
|
||||
slbObject.slbSpec = dataNodeResultGatewaysSlbslbItem["SlbSpec"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["Type"].isNull())
|
||||
slbObject.type = dataNodeResultGatewaysSlbslbItem["Type"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["GatewaySlbStatus"].isNull())
|
||||
slbObject.gatewaySlbStatus = dataNodeResultGatewaysSlbslbItem["GatewaySlbStatus"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["StatusDesc"].isNull())
|
||||
slbObject.statusDesc = dataNodeResultGatewaysSlbslbItem["StatusDesc"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["GatewaySlbMode"].isNull())
|
||||
slbObject.gatewaySlbMode = dataNodeResultGatewaysSlbslbItem["GatewaySlbMode"].asString();
|
||||
if(!dataNodeResultGatewaysSlbslbItem["SlbId"].isNull())
|
||||
slbObject.slbId = dataNodeResultGatewaysSlbslbItem["SlbId"].asString();
|
||||
gatewaysObject.slb.push_back(slbObject);
|
||||
}
|
||||
auto allInternetSlbNode = dataNodeResultGateways["InternetSlb"]["internetSlbItem"];
|
||||
for (auto dataNodeResultGatewaysInternetSlbinternetSlbItem : allInternetSlbNode)
|
||||
{
|
||||
Data::Gateways::InternetSlbItem internetSlbObject;
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbIp"].isNull())
|
||||
internetSlbObject.slbIp = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbIp"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbPort"].isNull())
|
||||
internetSlbObject.slbPort = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbPort"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbSpec"].isNull())
|
||||
internetSlbObject.slbSpec = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbSpec"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["Type"].isNull())
|
||||
internetSlbObject.type = dataNodeResultGatewaysInternetSlbinternetSlbItem["Type"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["InternetNetworkFlow"].isNull())
|
||||
internetSlbObject.internetNetworkFlow = dataNodeResultGatewaysInternetSlbinternetSlbItem["InternetNetworkFlow"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbStatus"].isNull())
|
||||
internetSlbObject.gatewaySlbStatus = dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbStatus"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["StatusDesc"].isNull())
|
||||
internetSlbObject.statusDesc = dataNodeResultGatewaysInternetSlbinternetSlbItem["StatusDesc"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbMode"].isNull())
|
||||
internetSlbObject.gatewaySlbMode = dataNodeResultGatewaysInternetSlbinternetSlbItem["GatewaySlbMode"].asString();
|
||||
if(!dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].isNull())
|
||||
internetSlbObject.slbId = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].asString();
|
||||
gatewaysObject.internetSlb.push_back(internetSlbObject);
|
||||
}
|
||||
data_.result.push_back(gatewaysObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddTestResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddTestResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
AddTestResult::Data AddTestResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddTestResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddTestResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ApplyGatewayRouteRequest;
|
||||
|
||||
ApplyGatewayRouteRequest::ApplyGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ApplyGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApplyGatewayRouteRequest::~ApplyGatewayRouteRequest() {}
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/CreateAlarmRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateAlarmRuleRequest;
|
||||
|
||||
CreateAlarmRuleRequest::CreateAlarmRuleRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateAlarmRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlarmRuleRequest::~CreateAlarmRuleRequest() {}
|
||||
|
||||
int CreateAlarmRuleRequest::getNValue() const {
|
||||
return nValue_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setNValue(int nValue) {
|
||||
nValue_ = nValue;
|
||||
setParameter(std::string("NValue"), std::to_string(nValue));
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getAlarmItem() const {
|
||||
return alarmItem_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setAlarmItem(const std::string &alarmItem) {
|
||||
alarmItem_ = alarmItem;
|
||||
setParameter(std::string("AlarmItem"), alarmItem);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::get_Operator() const {
|
||||
return _operator_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::set_Operator(const std::string &_operator) {
|
||||
_operator_ = _operator;
|
||||
setParameter(std::string("Operator"), _operator);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getAlarmAliasName() const {
|
||||
return alarmAliasName_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setAlarmAliasName(const std::string &alarmAliasName) {
|
||||
alarmAliasName_ = alarmAliasName;
|
||||
setParameter(std::string("AlarmAliasName"), alarmAliasName);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getContactGroupIds() const {
|
||||
return contactGroupIds_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setContactGroupIds(const std::string &contactGroupIds) {
|
||||
contactGroupIds_ = contactGroupIds;
|
||||
setParameter(std::string("ContactGroupIds"), contactGroupIds);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getAlertWay() const {
|
||||
return alertWay_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setAlertWay(const std::string &alertWay) {
|
||||
alertWay_ = alertWay;
|
||||
setParameter(std::string("AlertWay"), alertWay);
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleRequest::getAggregates() const {
|
||||
return aggregates_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setAggregates(const std::string &aggregates) {
|
||||
aggregates_ = aggregates;
|
||||
setParameter(std::string("Aggregates"), aggregates);
|
||||
}
|
||||
|
||||
float CreateAlarmRuleRequest::getValue() const {
|
||||
return value_;
|
||||
}
|
||||
|
||||
void CreateAlarmRuleRequest::setValue(float value) {
|
||||
value_ = value;
|
||||
setParameter(std::string("Value"), std::to_string(value));
|
||||
}
|
||||
|
||||
@@ -61,6 +61,15 @@ void CreateApplicationRequest::setAppName(const std::string &appName) {
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSwitchEnable() const {
|
||||
return switchEnable_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSwitchEnable(const std::string &switchEnable) {
|
||||
switchEnable_ = switchEnable;
|
||||
setParameter(std::string("SwitchEnable"), switchEnable);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
@@ -70,6 +79,15 @@ void CreateApplicationRequest::setAcceptLanguage(const std::string &acceptLangua
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSentinelEnable() const {
|
||||
return sentinelEnable_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSentinelEnable(const std::string &sentinelEnable) {
|
||||
sentinelEnable_ = sentinelEnable;
|
||||
setParameter(std::string("SentinelEnable"), sentinelEnable);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
@@ -70,6 +70,15 @@ void CreateEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLa
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getDesc() const {
|
||||
return desc_;
|
||||
}
|
||||
|
||||
72
mse/src/model/CreateVGroupRequest.cc
Normal file
72
mse/src/model/CreateVGroupRequest.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/CreateVGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateVGroupRequest;
|
||||
|
||||
CreateVGroupRequest::CreateVGroupRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateVGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVGroupRequest::~CreateVGroupRequest() {}
|
||||
|
||||
std::string CreateVGroupRequest::getPrimaryUser() const {
|
||||
return primaryUser_;
|
||||
}
|
||||
|
||||
void CreateVGroupRequest::setPrimaryUser(const std::string &primaryUser) {
|
||||
primaryUser_ = primaryUser;
|
||||
setParameter(std::string("PrimaryUser"), primaryUser);
|
||||
}
|
||||
|
||||
std::string CreateVGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateVGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateVGroupRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateVGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateVGroupRequest::getSeataServerUniqueId() const {
|
||||
return seataServerUniqueId_;
|
||||
}
|
||||
|
||||
void CreateVGroupRequest::setSeataServerUniqueId(const std::string &seataServerUniqueId) {
|
||||
seataServerUniqueId_ = seataServerUniqueId;
|
||||
setParameter(std::string("SeataServerUniqueId"), seataServerUniqueId);
|
||||
}
|
||||
|
||||
std::string CreateVGroupRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateVGroupRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
@@ -14,51 +14,65 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/ScalingClusterResult.h>
|
||||
#include <alibabacloud/mse/model/CreateVGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ScalingClusterResult::ScalingClusterResult() :
|
||||
CreateVGroupResult::CreateVGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ScalingClusterResult::ScalingClusterResult(const std::string &payload) :
|
||||
CreateVGroupResult::CreateVGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ScalingClusterResult::~ScalingClusterResult()
|
||||
CreateVGroupResult::~CreateVGroupResult()
|
||||
{}
|
||||
|
||||
void ScalingClusterResult::parse(const std::string &payload)
|
||||
void CreateVGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ScalingClusterResult::getMessage()const
|
||||
std::string CreateVGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ScalingClusterResult::getErrorCode()const
|
||||
int CreateVGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool ScalingClusterResult::getSuccess()const
|
||||
std::string CreateVGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateVGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateVGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/DeleteAlarmRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteAlarmRuleRequest;
|
||||
|
||||
DeleteAlarmRuleRequest::DeleteAlarmRuleRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteAlarmRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlarmRuleRequest::~DeleteAlarmRuleRequest() {}
|
||||
|
||||
std::string DeleteAlarmRuleRequest::getAlarmRuleId() const {
|
||||
return alarmRuleId_;
|
||||
}
|
||||
|
||||
void DeleteAlarmRuleRequest::setAlarmRuleId(const std::string &alarmRuleId) {
|
||||
alarmRuleId_ = alarmRuleId;
|
||||
setParameter(std::string("AlarmRuleId"), alarmRuleId);
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void DeleteAlarmRuleRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteAlarmRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteAuthResourceRequest;
|
||||
|
||||
DeleteAuthResourceRequest::DeleteAuthResourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteAuthResource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAuthResourceRequest::~DeleteAuthResourceRequest() {}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewayDomainRequest;
|
||||
|
||||
DeleteGatewayDomainRequest::DeleteGatewayDomainRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayDomain") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGatewayDomainRequest::~DeleteGatewayDomainRequest() {}
|
||||
|
||||
@@ -53,7 +53,7 @@ void DeleteGatewayDomainResult::parse(const std::string &payload)
|
||||
if(!dataNode["MustHttps"].isNull())
|
||||
data_.mustHttps = dataNode["MustHttps"].asString() == "true";
|
||||
if(!dataNode["CertIdentifier"].isNull())
|
||||
data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString());
|
||||
data_.certIdentifier = dataNode["CertIdentifier"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewayRequest;
|
||||
|
||||
DeleteGatewayRequest::DeleteGatewayRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGateway") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGatewayRequest::~DeleteGatewayRequest() {}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewayRouteRequest;
|
||||
|
||||
DeleteGatewayRouteRequest::DeleteGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGatewayRouteRequest::~DeleteGatewayRouteRequest() {}
|
||||
|
||||
63
mse/src/model/DeleteGatewayServiceRequest.cc
Normal file
63
mse/src/model/DeleteGatewayServiceRequest.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/mse/model/DeleteGatewayServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteGatewayServiceRequest;
|
||||
|
||||
DeleteGatewayServiceRequest::DeleteGatewayServiceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGatewayServiceRequest::~DeleteGatewayServiceRequest() {}
|
||||
|
||||
std::string DeleteGatewayServiceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayServiceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayServiceRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceRequest::setServiceId(const std::string &serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), serviceId);
|
||||
}
|
||||
|
||||
long DeleteGatewayServiceRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
105
mse/src/model/DeleteGatewayServiceResult.cc
Normal file
105
mse/src/model/DeleteGatewayServiceResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/DeleteGatewayServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteGatewayServiceResult::DeleteGatewayServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGatewayServiceResult::DeleteGatewayServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGatewayServiceResult::~DeleteGatewayServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteGatewayServiceResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["SourceType"].isNull())
|
||||
data_.sourceType = dataNode["SourceType"].asString();
|
||||
if(!dataNode["Namespace"].isNull())
|
||||
data_._namespace = dataNode["Namespace"].asString();
|
||||
if(!dataNode["GroupName"].isNull())
|
||||
data_.groupName = dataNode["GroupName"].asString();
|
||||
if(!dataNode["SourceId"].isNull())
|
||||
data_.sourceId = std::stol(dataNode["SourceId"].asString());
|
||||
if(!dataNode["ServiceNameInRegistry"].isNull())
|
||||
data_.serviceNameInRegistry = dataNode["ServiceNameInRegistry"].asString();
|
||||
if(!dataNode["MetaInfo"].isNull())
|
||||
data_.metaInfo = dataNode["MetaInfo"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
auto allIps = dataNode["Ips"]["Ips"];
|
||||
for (auto value : allIps)
|
||||
data_.ips.push_back(value.asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGatewayServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGatewayServiceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
DeleteGatewayServiceResult::Data DeleteGatewayServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGatewayServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGatewayServiceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteGatewaySlbRequest;
|
||||
|
||||
DeleteGatewaySlbRequest::DeleteGatewaySlbRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewaySlb") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGatewaySlbRequest::~DeleteGatewaySlbRequest() {}
|
||||
|
||||
45
mse/src/model/DeleteSeataServerRequest.cc
Normal file
45
mse/src/model/DeleteSeataServerRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/DeleteSeataServerRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteSeataServerRequest;
|
||||
|
||||
DeleteSeataServerRequest::DeleteSeataServerRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteSeataServer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSeataServerRequest::~DeleteSeataServerRequest() {}
|
||||
|
||||
std::string DeleteSeataServerRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteSeataServerRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteSeataServerRequest::getSeataServerUniqueId() const {
|
||||
return seataServerUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteSeataServerRequest::setSeataServerUniqueId(const std::string &seataServerUniqueId) {
|
||||
seataServerUniqueId_ = seataServerUniqueId;
|
||||
setParameter(std::string("SeataServerUniqueId"), seataServerUniqueId);
|
||||
}
|
||||
|
||||
79
mse/src/model/DeleteSeataServerResult.cc
Normal file
79
mse/src/model/DeleteSeataServerResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/DeleteSeataServerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteSeataServerResult::DeleteSeataServerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSeataServerResult::DeleteSeataServerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSeataServerResult::~DeleteSeataServerResult()
|
||||
{}
|
||||
|
||||
void DeleteSeataServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSeataServerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSeataServerResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteSeataServerResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteSeataServerResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSeataServerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteSecurityGroupRuleRequest.cc
Normal file
54
mse/src/model/DeleteSecurityGroupRuleRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/DeleteSecurityGroupRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteSecurityGroupRuleRequest;
|
||||
|
||||
DeleteSecurityGroupRuleRequest::DeleteSecurityGroupRuleRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteSecurityGroupRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteSecurityGroupRuleRequest::~DeleteSecurityGroupRuleRequest() {}
|
||||
|
||||
std::string DeleteSecurityGroupRuleRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteSecurityGroupRuleRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long DeleteSecurityGroupRuleRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteSecurityGroupRuleRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
96
mse/src/model/DeleteSecurityGroupRuleResult.cc
Normal file
96
mse/src/model/DeleteSecurityGroupRuleResult.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/mse/model/DeleteSecurityGroupRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteSecurityGroupRuleResult::DeleteSecurityGroupRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteSecurityGroupRuleResult::DeleteSecurityGroupRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteSecurityGroupRuleResult::~DeleteSecurityGroupRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteSecurityGroupRuleResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["SecurityGroupId"].isNull())
|
||||
data_.securityGroupId = dataNode["SecurityGroupId"].asString();
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["PortRange"].isNull())
|
||||
data_.portRange = dataNode["PortRange"].asString();
|
||||
if(!dataNode["IpProtocol"].isNull())
|
||||
data_.ipProtocol = dataNode["IpProtocol"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteSecurityGroupRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteSecurityGroupRuleResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
DeleteSecurityGroupRuleResult::Data DeleteSecurityGroupRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteSecurityGroupRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteSecurityGroupRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::DeleteServiceSourceRequest;
|
||||
|
||||
DeleteServiceSourceRequest::DeleteServiceSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteServiceSource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteServiceSourceRequest::~DeleteServiceSourceRequest() {}
|
||||
|
||||
@@ -14,31 +14,31 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/ListAlarmItemsRequest.h>
|
||||
#include <alibabacloud/mse/model/DeleteVGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListAlarmItemsRequest;
|
||||
using AlibabaCloud::Mse::Model::DeleteVGroupRequest;
|
||||
|
||||
ListAlarmItemsRequest::ListAlarmItemsRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListAlarmItems") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
DeleteVGroupRequest::DeleteVGroupRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteVGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListAlarmItemsRequest::~ListAlarmItemsRequest() {}
|
||||
DeleteVGroupRequest::~DeleteVGroupRequest() {}
|
||||
|
||||
std::string ListAlarmItemsRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
std::string DeleteVGroupRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ListAlarmItemsRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
void DeleteVGroupRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string ListAlarmItemsRequest::getAcceptLanguage() const {
|
||||
std::string DeleteVGroupRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListAlarmItemsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
void DeleteVGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
@@ -14,51 +14,65 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/CreateAlarmRuleResult.h>
|
||||
#include <alibabacloud/mse/model/DeleteVGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateAlarmRuleResult::CreateAlarmRuleResult() :
|
||||
DeleteVGroupResult::DeleteVGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAlarmRuleResult::CreateAlarmRuleResult(const std::string &payload) :
|
||||
DeleteVGroupResult::DeleteVGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAlarmRuleResult::~CreateAlarmRuleResult()
|
||||
DeleteVGroupResult::~DeleteVGroupResult()
|
||||
{}
|
||||
|
||||
void CreateAlarmRuleResult::parse(const std::string &payload)
|
||||
void DeleteVGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleResult::getMessage()const
|
||||
std::string DeleteVGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleResult::getErrorCode()const
|
||||
int DeleteVGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool CreateAlarmRuleResult::getSuccess()const
|
||||
std::string DeleteVGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteVGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteVGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
54
mse/src/model/GetAppMessageQueueRouteRequest.cc
Normal file
54
mse/src/model/GetAppMessageQueueRouteRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/GetAppMessageQueueRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetAppMessageQueueRouteRequest;
|
||||
|
||||
GetAppMessageQueueRouteRequest::GetAppMessageQueueRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetAppMessageQueueRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetAppMessageQueueRouteRequest::~GetAppMessageQueueRouteRequest() {}
|
||||
|
||||
std::string GetAppMessageQueueRouteRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void GetAppMessageQueueRouteRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string GetAppMessageQueueRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetAppMessageQueueRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetAppMessageQueueRouteRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetAppMessageQueueRouteRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
87
mse/src/model/GetAppMessageQueueRouteResult.cc
Normal file
87
mse/src/model/GetAppMessageQueueRouteResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/GetAppMessageQueueRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetAppMessageQueueRouteResult::GetAppMessageQueueRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetAppMessageQueueRouteResult::GetAppMessageQueueRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetAppMessageQueueRouteResult::~GetAppMessageQueueRouteResult()
|
||||
{}
|
||||
|
||||
void GetAppMessageQueueRouteResult::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["Region"].isNull())
|
||||
data_.region = dataNode["Region"].asString();
|
||||
if(!dataNode["Enable"].isNull())
|
||||
data_.enable = dataNode["Enable"].asString() == "true";
|
||||
auto allTags = dataNode["Tags"]["tag"];
|
||||
for (auto value : allTags)
|
||||
data_.tags.push_back(value.asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetAppMessageQueueRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetAppMessageQueueRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetAppMessageQueueRouteResult::Data GetAppMessageQueueRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetAppMessageQueueRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetAppMessageQueueRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
117
mse/src/model/GetApplicationListRequest.cc
Normal file
117
mse/src/model/GetApplicationListRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/GetApplicationListRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetApplicationListRequest;
|
||||
|
||||
GetApplicationListRequest::GetApplicationListRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetApplicationList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetApplicationListRequest::~GetApplicationListRequest() {}
|
||||
|
||||
std::string GetApplicationListRequest::getLanguage() const {
|
||||
return language_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setLanguage(const std::string &language) {
|
||||
language_ = language;
|
||||
setParameter(std::string("Language"), language);
|
||||
}
|
||||
|
||||
std::string GetApplicationListRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
int GetApplicationListRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string GetApplicationListRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
int GetApplicationListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
bool GetApplicationListRequest::getSwitchEnable() const {
|
||||
return switchEnable_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setSwitchEnable(bool switchEnable) {
|
||||
switchEnable_ = switchEnable;
|
||||
setParameter(std::string("SwitchEnable"), switchEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetApplicationListRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string GetApplicationListRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
bool GetApplicationListRequest::getSentinelEnable() const {
|
||||
return sentinelEnable_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setSentinelEnable(bool sentinelEnable) {
|
||||
sentinelEnable_ = sentinelEnable;
|
||||
setParameter(std::string("SentinelEnable"), sentinelEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetApplicationListRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetApplicationListRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
110
mse/src/model/GetApplicationListResult.cc
Normal file
110
mse/src/model/GetApplicationListResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/GetApplicationListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetApplicationListResult::GetApplicationListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetApplicationListResult::GetApplicationListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetApplicationListResult::~GetApplicationListResult()
|
||||
{}
|
||||
|
||||
void GetApplicationListResult::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["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allResultNode = dataNode["Result"]["ApplicationList"];
|
||||
for (auto dataNodeResultApplicationList : allResultNode)
|
||||
{
|
||||
Data::ApplicationList applicationListObject;
|
||||
if(!dataNodeResultApplicationList["Status"].isNull())
|
||||
applicationListObject.status = std::stol(dataNodeResultApplicationList["Status"].asString());
|
||||
if(!dataNodeResultApplicationList["ExtraInfo"].isNull())
|
||||
applicationListObject.extraInfo = dataNodeResultApplicationList["ExtraInfo"].asString();
|
||||
if(!dataNodeResultApplicationList["AppName"].isNull())
|
||||
applicationListObject.appName = dataNodeResultApplicationList["AppName"].asString();
|
||||
if(!dataNodeResultApplicationList["LicenseKey"].isNull())
|
||||
applicationListObject.licenseKey = dataNodeResultApplicationList["LicenseKey"].asString();
|
||||
if(!dataNodeResultApplicationList["AppId"].isNull())
|
||||
applicationListObject.appId = dataNodeResultApplicationList["AppId"].asString();
|
||||
if(!dataNodeResultApplicationList["UserId"].isNull())
|
||||
applicationListObject.userId = dataNodeResultApplicationList["UserId"].asString();
|
||||
if(!dataNodeResultApplicationList["InstancesNumber"].isNull())
|
||||
applicationListObject.instancesNumber = std::stoi(dataNodeResultApplicationList["InstancesNumber"].asString());
|
||||
if(!dataNodeResultApplicationList["Source"].isNull())
|
||||
applicationListObject.source = dataNodeResultApplicationList["Source"].asString();
|
||||
if(!dataNodeResultApplicationList["Language"].isNull())
|
||||
applicationListObject.language = dataNodeResultApplicationList["Language"].asString();
|
||||
if(!dataNodeResultApplicationList["RegionId"].isNull())
|
||||
applicationListObject.regionId = dataNodeResultApplicationList["RegionId"].asString();
|
||||
data_.result.push_back(applicationListObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetApplicationListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetApplicationListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetApplicationListResult::Data GetApplicationListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetApplicationListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetApplicationListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetBlackWhiteListRequest;
|
||||
|
||||
GetBlackWhiteListRequest::GetBlackWhiteListRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetBlackWhiteList") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetBlackWhiteListRequest::~GetBlackWhiteListRequest() {}
|
||||
|
||||
63
mse/src/model/GetDashBoardUrlRequest.cc
Normal file
63
mse/src/model/GetDashBoardUrlRequest.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/mse/model/GetDashBoardUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetDashBoardUrlRequest;
|
||||
|
||||
GetDashBoardUrlRequest::GetDashBoardUrlRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetDashBoardUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDashBoardUrlRequest::~GetDashBoardUrlRequest() {}
|
||||
|
||||
std::string GetDashBoardUrlRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetDashBoardUrlRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string GetDashBoardUrlRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetDashBoardUrlRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetDashBoardUrlRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void GetDashBoardUrlRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
std::string GetDashBoardUrlRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetDashBoardUrlRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
@@ -14,58 +14,68 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/DeleteAlarmRuleResult.h>
|
||||
#include <alibabacloud/mse/model/GetDashBoardUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteAlarmRuleResult::DeleteAlarmRuleResult() :
|
||||
GetDashBoardUrlResult::GetDashBoardUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlarmRuleResult::DeleteAlarmRuleResult(const std::string &payload) :
|
||||
GetDashBoardUrlResult::GetDashBoardUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlarmRuleResult::~DeleteAlarmRuleResult()
|
||||
GetDashBoardUrlResult::~GetDashBoardUrlResult()
|
||||
{}
|
||||
|
||||
void DeleteAlarmRuleResult::parse(const std::string &payload)
|
||||
void GetDashBoardUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["UrlMap"].isNull())
|
||||
data_.urlMap = dataNode["UrlMap"].asString();
|
||||
if(!dataNode["Message"].isNull())
|
||||
data_.message = dataNode["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleResult::getHttpCode()const
|
||||
std::string GetDashBoardUrlResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleResult::getMessage()const
|
||||
std::string GetDashBoardUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleResult::getErrorCode()const
|
||||
GetDashBoardUrlResult::Data GetDashBoardUrlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetDashBoardUrlResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DeleteAlarmRuleResult::getSuccess()const
|
||||
bool GetDashBoardUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayDomainDetailRequest;
|
||||
|
||||
GetGatewayDomainDetailRequest::GetGatewayDomainDetailRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayDomainDetail") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGatewayDomainDetailRequest::~GetGatewayDomainDetailRequest() {}
|
||||
|
||||
@@ -53,7 +53,7 @@ void GetGatewayDomainDetailResult::parse(const std::string &payload)
|
||||
if(!dataNode["MustHttps"].isNull())
|
||||
data_.mustHttps = dataNode["MustHttps"].asString() == "true";
|
||||
if(!dataNode["CertIdentifier"].isNull())
|
||||
data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString());
|
||||
data_.certIdentifier = dataNode["CertIdentifier"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
|
||||
@@ -44,6 +44,8 @@ void GetGatewayOptionResult::parse(const std::string &payload)
|
||||
data_.enableHardwareAcceleration = dataNode["EnableHardwareAcceleration"].asString() == "true";
|
||||
if(!dataNode["DisableHttp2Alpn"].isNull())
|
||||
data_.disableHttp2Alpn = dataNode["DisableHttp2Alpn"].asString() == "true";
|
||||
if(!dataNode["EnableWaf"].isNull())
|
||||
data_.enableWaf = dataNode["EnableWaf"].asString() == "true";
|
||||
auto traceDetailsNode = dataNode["TraceDetails"];
|
||||
if(!traceDetailsNode["TraceEnabled"].isNull())
|
||||
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayRequest;
|
||||
|
||||
GetGatewayRequest::GetGatewayRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGateway") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGatewayRequest::~GetGatewayRequest() {}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayRouteDetailRequest;
|
||||
|
||||
GetGatewayRouteDetailRequest::GetGatewayRouteDetailRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayRouteDetail") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGatewayRouteDetailRequest::~GetGatewayRouteDetailRequest() {}
|
||||
|
||||
@@ -70,6 +70,8 @@ void GetGatewayRouteDetailResult::parse(const std::string &payload)
|
||||
data_.services = dataNode["Services"].asString();
|
||||
if(!dataNode["DestinationType"].isNull())
|
||||
data_.destinationType = dataNode["DestinationType"].asString();
|
||||
if(!dataNode["EnableWaf"].isNull())
|
||||
data_.enableWaf = dataNode["EnableWaf"].asString() == "true";
|
||||
auto allRouteServicesNode = dataNode["RouteServices"]["RouteServicesItem"];
|
||||
for (auto dataNodeRouteServicesRouteServicesItem : allRouteServicesNode)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetGatewayServiceDetailRequest;
|
||||
|
||||
GetGatewayServiceDetailRequest::GetGatewayServiceDetailRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayServiceDetail") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGatewayServiceDetailRequest::~GetGatewayServiceDetailRequest() {}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::GetKubernetesSourceRequest;
|
||||
|
||||
GetKubernetesSourceRequest::GetKubernetesSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetKubernetesSource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetKubernetesSourceRequest::~GetKubernetesSourceRequest() {}
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmContactGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListAlarmContactGroupsRequest;
|
||||
|
||||
ListAlarmContactGroupsRequest::ListAlarmContactGroupsRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListAlarmContactGroups") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAlarmContactGroupsRequest::~ListAlarmContactGroupsRequest() {}
|
||||
|
||||
int ListAlarmContactGroupsRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListAlarmContactGroupsRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListAlarmContactGroupsRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void ListAlarmContactGroupsRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
int ListAlarmContactGroupsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAlarmContactGroupsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAlarmContactGroupsRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListAlarmContactGroupsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmContactGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListAlarmContactGroupsResult::ListAlarmContactGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlarmContactGroupsResult::ListAlarmContactGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlarmContactGroupsResult::~ListAlarmContactGroupsResult()
|
||||
{}
|
||||
|
||||
void ListAlarmContactGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["AlarmContactGroupModel"];
|
||||
for (auto valueDataAlarmContactGroupModel : allDataNode)
|
||||
{
|
||||
AlarmContactGroupModel dataObject;
|
||||
if(!valueDataAlarmContactGroupModel["ContactGroupName"].isNull())
|
||||
dataObject.contactGroupName = valueDataAlarmContactGroupModel["ContactGroupName"].asString();
|
||||
if(!valueDataAlarmContactGroupModel["ContactGroupId"].isNull())
|
||||
dataObject.contactGroupId = valueDataAlarmContactGroupModel["ContactGroupId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAlarmContactGroupsResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
int ListAlarmContactGroupsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAlarmContactGroupsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListAlarmContactGroupsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAlarmContactGroupsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAlarmContactGroupsResult::AlarmContactGroupModel> ListAlarmContactGroupsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAlarmContactGroupsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListAlarmContactGroupsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,99 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmHistoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListAlarmHistoriesRequest;
|
||||
|
||||
ListAlarmHistoriesRequest::ListAlarmHistoriesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListAlarmHistories") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAlarmHistoriesRequest::~ListAlarmHistoriesRequest() {}
|
||||
|
||||
long ListAlarmHistoriesRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setEndTime(long endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesRequest::getAlarmMseType() const {
|
||||
return alarmMseType_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setAlarmMseType(const std::string &alarmMseType) {
|
||||
alarmMseType_ = alarmMseType;
|
||||
setParameter(std::string("AlarmMseType"), alarmMseType);
|
||||
}
|
||||
|
||||
long ListAlarmHistoriesRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setStartTime(long startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), std::to_string(startTime));
|
||||
}
|
||||
|
||||
int ListAlarmHistoriesRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
int ListAlarmHistoriesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesRequest::getAlarmName() const {
|
||||
return alarmName_;
|
||||
}
|
||||
|
||||
void ListAlarmHistoriesRequest::setAlarmName(const std::string &alarmName) {
|
||||
alarmName_ = alarmName;
|
||||
setParameter(std::string("AlarmName"), alarmName);
|
||||
}
|
||||
|
||||
@@ -1,116 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmHistoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListAlarmHistoriesResult::ListAlarmHistoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlarmHistoriesResult::ListAlarmHistoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlarmHistoriesResult::~ListAlarmHistoriesResult()
|
||||
{}
|
||||
|
||||
void ListAlarmHistoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["AlarmHistoryModel"];
|
||||
for (auto valueDataAlarmHistoryModel : allDataNode)
|
||||
{
|
||||
AlarmHistoryModel dataObject;
|
||||
if(!valueDataAlarmHistoryModel["AlarmTime"].isNull())
|
||||
dataObject.alarmTime = valueDataAlarmHistoryModel["AlarmTime"].asString();
|
||||
if(!valueDataAlarmHistoryModel["AlarmEmail"].isNull())
|
||||
dataObject.alarmEmail = valueDataAlarmHistoryModel["AlarmEmail"].asString();
|
||||
if(!valueDataAlarmHistoryModel["AlarmDingDing"].isNull())
|
||||
dataObject.alarmDingDing = valueDataAlarmHistoryModel["AlarmDingDing"].asString();
|
||||
if(!valueDataAlarmHistoryModel["AlarmPhone"].isNull())
|
||||
dataObject.alarmPhone = valueDataAlarmHistoryModel["AlarmPhone"].asString();
|
||||
if(!valueDataAlarmHistoryModel["AlarmName"].isNull())
|
||||
dataObject.alarmName = valueDataAlarmHistoryModel["AlarmName"].asString();
|
||||
if(!valueDataAlarmHistoryModel["AlarmContent"].isNull())
|
||||
dataObject.alarmContent = valueDataAlarmHistoryModel["AlarmContent"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
int ListAlarmHistoriesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListAlarmHistoriesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAlarmHistoriesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAlarmHistoriesResult::AlarmHistoryModel> ListAlarmHistoriesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAlarmHistoriesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListAlarmHistoriesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmItemsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListAlarmItemsResult::ListAlarmItemsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlarmItemsResult::ListAlarmItemsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlarmItemsResult::~ListAlarmItemsResult()
|
||||
{}
|
||||
|
||||
void ListAlarmItemsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["AlarmItem"];
|
||||
for (auto valueDataAlarmItem : allDataNode)
|
||||
{
|
||||
AlarmItem dataObject;
|
||||
if(!valueDataAlarmItem["AlarmDesc"].isNull())
|
||||
dataObject.alarmDesc = valueDataAlarmItem["AlarmDesc"].asString();
|
||||
if(!valueDataAlarmItem["ClusterType"].isNull())
|
||||
dataObject.clusterType = valueDataAlarmItem["ClusterType"].asString();
|
||||
if(!valueDataAlarmItem["AlarmCode"].isNull())
|
||||
dataObject.alarmCode = valueDataAlarmItem["AlarmCode"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAlarmItemsResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
int ListAlarmItemsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAlarmItemsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListAlarmItemsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAlarmItemsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAlarmItemsResult::AlarmItem> ListAlarmItemsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAlarmItemsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListAlarmItemsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListAlarmRulesRequest;
|
||||
|
||||
ListAlarmRulesRequest::ListAlarmRulesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListAlarmRules") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAlarmRulesRequest::~ListAlarmRulesRequest() {}
|
||||
|
||||
std::string ListAlarmRulesRequest::getAlarmMseType() const {
|
||||
return alarmMseType_;
|
||||
}
|
||||
|
||||
void ListAlarmRulesRequest::setAlarmMseType(const std::string &alarmMseType) {
|
||||
alarmMseType_ = alarmMseType;
|
||||
setParameter(std::string("AlarmMseType"), alarmMseType);
|
||||
}
|
||||
|
||||
int ListAlarmRulesRequest::getPageNum() const {
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void ListAlarmRulesRequest::setPageNum(int pageNum) {
|
||||
pageNum_ = pageNum;
|
||||
setParameter(std::string("PageNum"), std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string ListAlarmRulesRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void ListAlarmRulesRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
int ListAlarmRulesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAlarmRulesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAlarmRulesRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListAlarmRulesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListAlarmRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListAlarmRulesResult::ListAlarmRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAlarmRulesResult::ListAlarmRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAlarmRulesResult::~ListAlarmRulesResult()
|
||||
{}
|
||||
|
||||
void ListAlarmRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["AlarmRuleModel"];
|
||||
for (auto valueDataAlarmRuleModel : allDataNode)
|
||||
{
|
||||
AlarmRuleModel dataObject;
|
||||
if(!valueDataAlarmRuleModel["AlarmStatus"].isNull())
|
||||
dataObject.alarmStatus = valueDataAlarmRuleModel["AlarmStatus"].asString();
|
||||
if(!valueDataAlarmRuleModel["AlarmRuleId"].isNull())
|
||||
dataObject.alarmRuleId = valueDataAlarmRuleModel["AlarmRuleId"].asString();
|
||||
if(!valueDataAlarmRuleModel["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataAlarmRuleModel["CreateTime"].asString();
|
||||
if(!valueDataAlarmRuleModel["AlarmRuleDetail"].isNull())
|
||||
dataObject.alarmRuleDetail = valueDataAlarmRuleModel["AlarmRuleDetail"].asString();
|
||||
if(!valueDataAlarmRuleModel["AlarmName"].isNull())
|
||||
dataObject.alarmName = valueDataAlarmRuleModel["AlarmName"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListAlarmRulesResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
int ListAlarmRulesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string ListAlarmRulesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListAlarmRulesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAlarmRulesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<ListAlarmRulesResult::AlarmRuleModel> ListAlarmRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAlarmRulesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListAlarmRulesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/ListClusterDetailFeatureRequest.cc
Normal file
63
mse/src/model/ListClusterDetailFeatureRequest.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/mse/model/ListClusterDetailFeatureRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListClusterDetailFeatureRequest;
|
||||
|
||||
ListClusterDetailFeatureRequest::ListClusterDetailFeatureRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListClusterDetailFeature") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListClusterDetailFeatureRequest::~ListClusterDetailFeatureRequest() {}
|
||||
|
||||
std::string ListClusterDetailFeatureRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ListClusterDetailFeatureRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ListClusterDetailFeatureRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListClusterDetailFeatureRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string ListClusterDetailFeatureRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void ListClusterDetailFeatureRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
std::string ListClusterDetailFeatureRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListClusterDetailFeatureRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
93
mse/src/model/ListClusterDetailFeatureResult.cc
Normal file
93
mse/src/model/ListClusterDetailFeatureResult.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListClusterDetailFeatureResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListClusterDetailFeatureResult::ListClusterDetailFeatureResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListClusterDetailFeatureResult::ListClusterDetailFeatureResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListClusterDetailFeatureResult::~ListClusterDetailFeatureResult()
|
||||
{}
|
||||
|
||||
void ListClusterDetailFeatureResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["dataItem"];
|
||||
for (auto valueDatadataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDatadataItem["FeatureId"].isNull())
|
||||
dataObject.featureId = valueDatadataItem["FeatureId"].asString();
|
||||
if(!valueDatadataItem["Status"].isNull())
|
||||
dataObject.status = valueDatadataItem["Status"].asString();
|
||||
if(!valueDatadataItem["Message"].isNull())
|
||||
dataObject.message = valueDatadataItem["Message"].asString();
|
||||
if(!valueDatadataItem["Extend"].isNull())
|
||||
dataObject.extend = valueDatadataItem["Extend"].asString();
|
||||
if(!valueDatadataItem["OrderNum"].isNull())
|
||||
dataObject.orderNum = valueDatadataItem["OrderNum"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListClusterDetailFeatureResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string ListClusterDetailFeatureResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListClusterDetailFeatureResult::DataItem> ListClusterDetailFeatureResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListClusterDetailFeatureResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool ListClusterDetailFeatureResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -77,6 +77,8 @@ void ListClustersResult::parse(const std::string &payload)
|
||||
dataObject.instanceCount = std::stol(valueDataClusterForListModel["InstanceCount"].asString());
|
||||
if(!valueDataClusterForListModel["ClusterName"].isNull())
|
||||
dataObject.clusterName = valueDataClusterForListModel["ClusterName"].asString();
|
||||
if(!valueDataClusterForListModel["MseVersion"].isNull())
|
||||
dataObject.mseVersion = valueDataClusterForListModel["MseVersion"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpCode"].isNull())
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListGatewayDomainRequest;
|
||||
|
||||
ListGatewayDomainRequest::ListGatewayDomainRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListGatewayDomain") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListGatewayDomainRequest::~ListGatewayDomainRequest() {}
|
||||
@@ -34,6 +34,15 @@ void ListGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniq
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string ListGatewayDomainRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void ListGatewayDomainRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string ListGatewayDomainRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
@@ -61,6 +61,13 @@ void ListGatewayDomainResult::parse(const std::string &payload)
|
||||
dataObject.gmtCreate = valueDataDomains["GmtCreate"].asString();
|
||||
if(!valueDataDomains["GmtModified"].isNull())
|
||||
dataObject.gmtModified = valueDataDomains["GmtModified"].asString();
|
||||
if(!valueDataDomains["Status"].isNull())
|
||||
dataObject.status = std::stoi(valueDataDomains["Status"].asString());
|
||||
if(!valueDataDomains["Type"].isNull())
|
||||
dataObject.type = valueDataDomains["Type"].asString();
|
||||
auto commentNode = value["Comment"];
|
||||
if(!commentNode["Status"].isNull())
|
||||
dataObject.comment.status = commentNode["Status"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -82,8 +82,12 @@ void ListGatewayResult::parse(const std::string &payload)
|
||||
gatewaysObject.upgrade = dataNodeResultGateways["Upgrade"].asString() == "true";
|
||||
if(!dataNodeResultGateways["MustUpgrade"].isNull())
|
||||
gatewaysObject.mustUpgrade = dataNodeResultGateways["MustUpgrade"].asString() == "true";
|
||||
if(!dataNodeResultGateways["SupportWasm"].isNull())
|
||||
gatewaysObject.supportWasm = dataNodeResultGateways["SupportWasm"].asString() == "true";
|
||||
if(!dataNodeResultGateways["CurrentVersion"].isNull())
|
||||
gatewaysObject.currentVersion = dataNodeResultGateways["CurrentVersion"].asString();
|
||||
if(!dataNodeResultGateways["AppVersion"].isNull())
|
||||
gatewaysObject.appVersion = dataNodeResultGateways["AppVersion"].asString();
|
||||
if(!dataNodeResultGateways["LatestVersion"].isNull())
|
||||
gatewaysObject.latestVersion = dataNodeResultGateways["LatestVersion"].asString();
|
||||
if(!dataNodeResultGateways["Vswitch2"].isNull())
|
||||
@@ -142,6 +146,11 @@ void ListGatewayResult::parse(const std::string &payload)
|
||||
internetSlbObject.slbId = dataNodeResultGatewaysInternetSlbinternetSlbItem["SlbId"].asString();
|
||||
gatewaysObject.internetSlb.push_back(internetSlbObject);
|
||||
}
|
||||
auto initConfigNode = value["InitConfig"];
|
||||
if(!initConfigNode["EnableWaf"].isNull())
|
||||
gatewaysObject.initConfig.enableWaf = initConfigNode["EnableWaf"].asString() == "true";
|
||||
if(!initConfigNode["SupportWaf"].isNull())
|
||||
gatewaysObject.initConfig.supportWaf = initConfigNode["SupportWaf"].asString() == "true";
|
||||
data_.result.push_back(gatewaysObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -71,6 +71,7 @@ void ListGatewayRouteRequest::setFilterParams(const ListGatewayRouteRequest::Fil
|
||||
setParameter(std::string("FilterParams") + ".RouteOrder", std::to_string(filterParams.routeOrder));
|
||||
setParameter(std::string("FilterParams") + ".GatewayUniqueId", filterParams.gatewayUniqueId);
|
||||
setParameter(std::string("FilterParams") + ".Name", filterParams.name);
|
||||
setParameter(std::string("FilterParams") + ".DomainName", filterParams.domainName);
|
||||
setParameter(std::string("FilterParams") + ".GatewayId", std::to_string(filterParams.gatewayId));
|
||||
setParameter(std::string("FilterParams") + ".DomainId", std::to_string(filterParams.domainId));
|
||||
setParameter(std::string("FilterParams") + ".Status", std::to_string(filterParams.status));
|
||||
|
||||
@@ -80,6 +80,10 @@ void ListGatewayRouteResult::parse(const std::string &payload)
|
||||
routesObject.domainName = dataNodeResultRoutes["DomainName"].asString();
|
||||
if(!dataNodeResultRoutes["DestinationType"].isNull())
|
||||
routesObject.destinationType = dataNodeResultRoutes["DestinationType"].asString();
|
||||
if(!dataNodeResultRoutes["Type"].isNull())
|
||||
routesObject.type = dataNodeResultRoutes["Type"].asString();
|
||||
if(!dataNodeResultRoutes["EnableWaf"].isNull())
|
||||
routesObject.enableWaf = dataNodeResultRoutes["EnableWaf"].asString();
|
||||
auto allRouteServicesNode = dataNodeResultRoutes["RouteServices"]["RouteServicesItem"];
|
||||
for (auto dataNodeResultRoutesRouteServicesRouteServicesItem : allRouteServicesNode)
|
||||
{
|
||||
@@ -149,6 +153,9 @@ void ListGatewayRouteResult::parse(const std::string &payload)
|
||||
routesObject.redirect.host = redirectNode["Host"].asString();
|
||||
if(!redirectNode["Path"].isNull())
|
||||
routesObject.redirect.path = redirectNode["Path"].asString();
|
||||
auto commentNode = value["Comment"];
|
||||
if(!commentNode["Status"].isNull())
|
||||
routesObject.comment.status = commentNode["Status"].asString();
|
||||
auto allDomainIdList = value["DomainIdList"]["DomainIdList"];
|
||||
for (auto value : allDomainIdList)
|
||||
routesObject.domainIdList.push_back(value.asString());
|
||||
|
||||
@@ -78,6 +78,8 @@ void ListGatewayServiceResult::parse(const std::string &payload)
|
||||
servicesObject.serviceProtocol = dataNodeResultServices["ServiceProtocol"].asString();
|
||||
if(!dataNodeResultServices["ServicePort"].isNull())
|
||||
servicesObject.servicePort = std::stol(dataNodeResultServices["ServicePort"].asString());
|
||||
if(!dataNodeResultServices["HealehStatus"].isNull())
|
||||
servicesObject.healehStatus = dataNodeResultServices["HealehStatus"].asString();
|
||||
auto allVersionsNode = dataNodeResultServices["Versions"]["VersionsItem"];
|
||||
for (auto dataNodeResultServicesVersionsVersionsItem : allVersionsNode)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListGatewaySlbRequest;
|
||||
|
||||
ListGatewaySlbRequest::ListGatewaySlbRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListGatewaySlb") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListGatewaySlbRequest::~ListGatewaySlbRequest() {}
|
||||
|
||||
54
mse/src/model/ListInstancesRequest.cc
Normal file
54
mse/src/model/ListInstancesRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/ListInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListInstancesRequest;
|
||||
|
||||
ListInstancesRequest::ListInstancesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListInstances") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListInstancesRequest::~ListInstancesRequest() {}
|
||||
|
||||
std::string ListInstancesRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string ListInstancesRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ListInstancesRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void ListInstancesRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
145
mse/src/model/ListInstancesResult.cc
Normal file
145
mse/src/model/ListInstancesResult.cc
Normal file
@@ -0,0 +1,145 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListInstancesResult::ListInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListInstancesResult::ListInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListInstancesResult::~ListInstancesResult()
|
||||
{}
|
||||
|
||||
void ListInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["instance"];
|
||||
for (auto valueDatainstance : allDataNode)
|
||||
{
|
||||
Instance dataObject;
|
||||
if(!valueDatainstance["AppClusterId"].isNull())
|
||||
dataObject.appClusterId = valueDatainstance["AppClusterId"].asString();
|
||||
if(!valueDatainstance["AppVersion"].isNull())
|
||||
dataObject.appVersion = valueDatainstance["AppVersion"].asString();
|
||||
if(!valueDatainstance["DbPassword"].isNull())
|
||||
dataObject.dbPassword = valueDatainstance["DbPassword"].asString();
|
||||
if(!valueDatainstance["DbUrl"].isNull())
|
||||
dataObject.dbUrl = valueDatainstance["DbUrl"].asString();
|
||||
if(!valueDatainstance["DbUserName"].isNull())
|
||||
dataObject.dbUserName = valueDatainstance["DbUserName"].asString();
|
||||
if(!valueDatainstance["EndDate"].isNull())
|
||||
dataObject.endDate = std::stol(valueDatainstance["EndDate"].asString());
|
||||
if(!valueDatainstance["EnvironmentId"].isNull())
|
||||
dataObject.environmentId = std::stol(valueDatainstance["EnvironmentId"].asString());
|
||||
if(!valueDatainstance["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = valueDatainstance["GmtCreate"].asString();
|
||||
if(!valueDatainstance["GmtModified"].isNull())
|
||||
dataObject.gmtModified = valueDatainstance["GmtModified"].asString();
|
||||
if(!valueDatainstance["Id"].isNull())
|
||||
dataObject.id = std::stol(valueDatainstance["Id"].asString());
|
||||
if(!valueDatainstance["ImageVersion"].isNull())
|
||||
dataObject.imageVersion = valueDatainstance["ImageVersion"].asString();
|
||||
if(!valueDatainstance["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDatainstance["InstanceId"].asString();
|
||||
if(!valueDatainstance["IsCreatedRedis"].isNull())
|
||||
dataObject.isCreatedRedis = valueDatainstance["IsCreatedRedis"].asString() == "true";
|
||||
if(!valueDatainstance["K8sResourceId"].isNull())
|
||||
dataObject.k8sResourceId = std::stol(valueDatainstance["K8sResourceId"].asString());
|
||||
if(!valueDatainstance["Name"].isNull())
|
||||
dataObject.name = valueDatainstance["Name"].asString();
|
||||
if(!valueDatainstance["NameServer"].isNull())
|
||||
dataObject.nameServer = valueDatainstance["NameServer"].asString();
|
||||
if(!valueDatainstance["OrderId"].isNull())
|
||||
dataObject.orderId = valueDatainstance["OrderId"].asString();
|
||||
if(!valueDatainstance["PodCidr"].isNull())
|
||||
dataObject.podCidr = valueDatainstance["PodCidr"].asString();
|
||||
if(!valueDatainstance["PrimaryUser"].isNull())
|
||||
dataObject.primaryUser = valueDatainstance["PrimaryUser"].asString();
|
||||
if(!valueDatainstance["Region"].isNull())
|
||||
dataObject.region = valueDatainstance["Region"].asString();
|
||||
if(!valueDatainstance["Replica"].isNull())
|
||||
dataObject.replica = std::stol(valueDatainstance["Replica"].asString());
|
||||
if(!valueDatainstance["SeataServerUniqueId"].isNull())
|
||||
dataObject.seataServerUniqueId = valueDatainstance["SeataServerUniqueId"].asString();
|
||||
if(!valueDatainstance["SecurityGroup"].isNull())
|
||||
dataObject.securityGroup = valueDatainstance["SecurityGroup"].asString();
|
||||
if(!valueDatainstance["Spec"].isNull())
|
||||
dataObject.spec = valueDatainstance["Spec"].asString();
|
||||
if(!valueDatainstance["StartDate"].isNull())
|
||||
dataObject.startDate = valueDatainstance["StartDate"].asString();
|
||||
if(!valueDatainstance["Status"].isNull())
|
||||
dataObject.status = std::stol(valueDatainstance["Status"].asString());
|
||||
if(!valueDatainstance["StatusDesc"].isNull())
|
||||
dataObject.statusDesc = valueDatainstance["StatusDesc"].asString();
|
||||
if(!valueDatainstance["StoreMode"].isNull())
|
||||
dataObject.storeMode = valueDatainstance["StoreMode"].asString();
|
||||
if(!valueDatainstance["Vpc"].isNull())
|
||||
dataObject.vpc = valueDatainstance["Vpc"].asString();
|
||||
if(!valueDatainstance["Vswitch"].isNull())
|
||||
dataObject.vswitch = valueDatainstance["Vswitch"].asString();
|
||||
if(!valueDatainstance["ZoneId"].isNull())
|
||||
dataObject.zoneId = valueDatainstance["ZoneId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListInstancesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListInstancesResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListInstancesResult::Instance> ListInstancesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListInstancesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListInstancesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ void ListListenersByConfigResult::parse(const std::string &payload)
|
||||
listenersObject.ip = valueListenersListener["Ip"].asString();
|
||||
if(!valueListenersListener["Md5"].isNull())
|
||||
listenersObject.md5 = valueListenersListener["Md5"].asString();
|
||||
if(!valueListenersListener["Status"].isNull())
|
||||
listenersObject.status = valueListenersListener["Status"].asString();
|
||||
listeners_.push_back(listenersObject);
|
||||
}
|
||||
if(!value["HttpCode"].isNull())
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListSSLCertRequest;
|
||||
|
||||
ListSSLCertRequest::ListSSLCertRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListSSLCert") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSSLCertRequest::~ListSSLCertRequest() {}
|
||||
|
||||
45
mse/src/model/ListSecurityGroupRequest.cc
Normal file
45
mse/src/model/ListSecurityGroupRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/ListSecurityGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListSecurityGroupRequest;
|
||||
|
||||
ListSecurityGroupRequest::ListSecurityGroupRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListSecurityGroup") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListSecurityGroupRequest::~ListSecurityGroupRequest() {}
|
||||
|
||||
std::string ListSecurityGroupRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void ListSecurityGroupRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string ListSecurityGroupRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListSecurityGroupRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
91
mse/src/model/ListSecurityGroupResult.cc
Normal file
91
mse/src/model/ListSecurityGroupResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ListSecurityGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListSecurityGroupResult::ListSecurityGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSecurityGroupResult::ListSecurityGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSecurityGroupResult::~ListSecurityGroupResult()
|
||||
{}
|
||||
|
||||
void ListSecurityGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Sgs"];
|
||||
for (auto valueDataSgs : allDataNode)
|
||||
{
|
||||
Sgs dataObject;
|
||||
if(!valueDataSgs["SecurityGroupId"].isNull())
|
||||
dataObject.securityGroupId = valueDataSgs["SecurityGroupId"].asString();
|
||||
if(!valueDataSgs["SecurityGroupName"].isNull())
|
||||
dataObject.securityGroupName = valueDataSgs["SecurityGroupName"].asString();
|
||||
if(!valueDataSgs["VpcId"].isNull())
|
||||
dataObject.vpcId = valueDataSgs["VpcId"].asString();
|
||||
if(!valueDataSgs["SecurityGroupType"].isNull())
|
||||
dataObject.securityGroupType = valueDataSgs["SecurityGroupType"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListSecurityGroupResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListSecurityGroupResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSecurityGroupResult::Sgs> ListSecurityGroupResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListSecurityGroupResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSecurityGroupResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
mse/src/model/ListSecurityGroupRuleRequest.cc
Normal file
45
mse/src/model/ListSecurityGroupRuleRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/ListSecurityGroupRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ListSecurityGroupRuleRequest;
|
||||
|
||||
ListSecurityGroupRuleRequest::ListSecurityGroupRuleRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListSecurityGroupRule") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListSecurityGroupRuleRequest::~ListSecurityGroupRuleRequest() {}
|
||||
|
||||
std::string ListSecurityGroupRuleRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void ListSecurityGroupRuleRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string ListSecurityGroupRuleRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ListSecurityGroupRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
101
mse/src/model/ListSecurityGroupRuleResult.cc
Normal file
101
mse/src/model/ListSecurityGroupRuleResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/ListSecurityGroupRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ListSecurityGroupRuleResult::ListSecurityGroupRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListSecurityGroupRuleResult::ListSecurityGroupRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListSecurityGroupRuleResult::~ListSecurityGroupRuleResult()
|
||||
{}
|
||||
|
||||
void ListSecurityGroupRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Rules"];
|
||||
for (auto valueDataRules : allDataNode)
|
||||
{
|
||||
Rules dataObject;
|
||||
if(!valueDataRules["Id"].isNull())
|
||||
dataObject.id = valueDataRules["Id"].asString();
|
||||
if(!valueDataRules["SecurityGroupId"].isNull())
|
||||
dataObject.securityGroupId = valueDataRules["SecurityGroupId"].asString();
|
||||
if(!valueDataRules["PortRange"].isNull())
|
||||
dataObject.portRange = valueDataRules["PortRange"].asString();
|
||||
if(!valueDataRules["IpProtocol"].isNull())
|
||||
dataObject.ipProtocol = valueDataRules["IpProtocol"].asString();
|
||||
if(!valueDataRules["GatewayId"].isNull())
|
||||
dataObject.gatewayId = std::stol(valueDataRules["GatewayId"].asString());
|
||||
if(!valueDataRules["GatewayUniqueId"].isNull())
|
||||
dataObject.gatewayUniqueId = valueDataRules["GatewayUniqueId"].asString();
|
||||
if(!valueDataRules["GmtCreate"].isNull())
|
||||
dataObject.gmtCreate = valueDataRules["GmtCreate"].asString();
|
||||
if(!valueDataRules["GmtModified"].isNull())
|
||||
dataObject.gmtModified = valueDataRules["GmtModified"].asString();
|
||||
if(!valueDataRules["Description"].isNull())
|
||||
dataObject.description = valueDataRules["Description"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListSecurityGroupRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ListSecurityGroupRuleResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<ListSecurityGroupRuleResult::Rules> ListSecurityGroupRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ListSecurityGroupRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListSecurityGroupRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::ListServiceSourceRequest;
|
||||
|
||||
ListServiceSourceRequest::ListServiceSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ListServiceSource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListServiceSourceRequest::~ListServiceSourceRequest() {}
|
||||
|
||||
@@ -63,6 +63,13 @@ void ListServiceSourceResult::parse(const std::string &payload)
|
||||
dataObject.gmtModified = valueDataSources["GmtModified"].asString();
|
||||
if(!valueDataSources["SourceUniqueId"].isNull())
|
||||
dataObject.sourceUniqueId = valueDataSources["SourceUniqueId"].asString();
|
||||
auto ingressOptionsNode = value["IngressOptions"];
|
||||
if(!ingressOptionsNode["EnableIngress"].isNull())
|
||||
dataObject.ingressOptions.enableIngress = ingressOptionsNode["EnableIngress"].asString() == "true";
|
||||
if(!ingressOptionsNode["IngressClass"].isNull())
|
||||
dataObject.ingressOptions.ingressClass = ingressOptionsNode["IngressClass"].asString();
|
||||
if(!ingressOptionsNode["WatchNamespace"].isNull())
|
||||
dataObject.ingressOptions.watchNamespace = ingressOptionsNode["WatchNamespace"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::OfflineGatewayRouteRequest;
|
||||
|
||||
OfflineGatewayRouteRequest::OfflineGatewayRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "OfflineGatewayRoute") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OfflineGatewayRouteRequest::~OfflineGatewayRouteRequest() {}
|
||||
|
||||
@@ -20,20 +20,11 @@ using AlibabaCloud::Mse::Model::PullServicesRequest;
|
||||
|
||||
PullServicesRequest::PullServicesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "PullServices") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
PullServicesRequest::~PullServicesRequest() {}
|
||||
|
||||
std::string PullServicesRequest::getSourceId() const {
|
||||
return sourceId_;
|
||||
}
|
||||
|
||||
void PullServicesRequest::setSourceId(const std::string &sourceId) {
|
||||
sourceId_ = sourceId;
|
||||
setParameter(std::string("SourceId"), sourceId);
|
||||
}
|
||||
|
||||
std::string PullServicesRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ void PullServicesResult::parse(const std::string &payload)
|
||||
dataObject._namespace = valueDataPullServices["Namespace"].asString();
|
||||
if(!valueDataPullServices["GroupName"].isNull())
|
||||
dataObject.groupName = valueDataPullServices["GroupName"].asString();
|
||||
if(!valueDataPullServices["NamespaceShowName"].isNull())
|
||||
dataObject.namespaceShowName = valueDataPullServices["NamespaceShowName"].asString();
|
||||
auto allServicesNode = valueDataPullServices["Services"]["ServicesItem"];
|
||||
for (auto valueDataPullServicesServicesServicesItem : allServicesNode)
|
||||
{
|
||||
|
||||
@@ -25,6 +25,15 @@ QueryClusterDetailRequest::QueryClusterDetailRequest()
|
||||
|
||||
QueryClusterDetailRequest::~QueryClusterDetailRequest() {}
|
||||
|
||||
bool QueryClusterDetailRequest::getAclSwitch() const {
|
||||
return aclSwitch_;
|
||||
}
|
||||
|
||||
void QueryClusterDetailRequest::setAclSwitch(bool aclSwitch) {
|
||||
aclSwitch_ = aclSwitch;
|
||||
setParameter(std::string("AclSwitch"), aclSwitch ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryClusterDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -126,6 +126,8 @@ void QueryClusterDetailResult::parse(const std::string &payload)
|
||||
instanceModelObject.healthStatus = dataNodeInstanceModelsInstanceModel["HealthStatus"].asString();
|
||||
if(!dataNodeInstanceModelsInstanceModel["CreationTimestamp"].isNull())
|
||||
instanceModelObject.creationTimestamp = dataNodeInstanceModelsInstanceModel["CreationTimestamp"].asString();
|
||||
if(!dataNodeInstanceModelsInstanceModel["Zone"].isNull())
|
||||
instanceModelObject.zone = dataNodeInstanceModelsInstanceModel["Zone"].asString();
|
||||
data_.instanceModels.push_back(instanceModelObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::QueryGatewayRegionRequest;
|
||||
|
||||
QueryGatewayRegionRequest::QueryGatewayRegionRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "QueryGatewayRegion") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryGatewayRegionRequest::~QueryGatewayRegionRequest() {}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::QueryGatewayTypeRequest;
|
||||
|
||||
QueryGatewayTypeRequest::QueryGatewayTypeRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "QueryGatewayType") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryGatewayTypeRequest::~QueryGatewayTypeRequest() {}
|
||||
|
||||
54
mse/src/model/QueryUserVpcRequest.cc
Normal file
54
mse/src/model/QueryUserVpcRequest.cc
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/QueryUserVpcRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::QueryUserVpcRequest;
|
||||
|
||||
QueryUserVpcRequest::QueryUserVpcRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "QueryUserVpc") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
QueryUserVpcRequest::~QueryUserVpcRequest() {}
|
||||
|
||||
std::string QueryUserVpcRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void QueryUserVpcRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string QueryUserVpcRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void QueryUserVpcRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string QueryUserVpcRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void QueryUserVpcRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
99
mse/src/model/QueryUserVpcResult.cc
Normal file
99
mse/src/model/QueryUserVpcResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/QueryUserVpcResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
QueryUserVpcResult::QueryUserVpcResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryUserVpcResult::QueryUserVpcResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryUserVpcResult::~QueryUserVpcResult()
|
||||
{}
|
||||
|
||||
void QueryUserVpcResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["Vpcs"];
|
||||
for (auto valueDataVpcs : allDataNode)
|
||||
{
|
||||
Vpcs dataObject;
|
||||
if(!valueDataVpcs["VpcId"].isNull())
|
||||
dataObject.vpcId = valueDataVpcs["VpcId"].asString();
|
||||
if(!valueDataVpcs["VpcName"].isNull())
|
||||
dataObject.vpcName = valueDataVpcs["VpcName"].asString();
|
||||
auto allVSwitchListNode = valueDataVpcs["VSwitchList"]["VSwitchListItem"];
|
||||
for (auto valueDataVpcsVSwitchListVSwitchListItem : allVSwitchListNode)
|
||||
{
|
||||
Vpcs::VSwitchListItem vSwitchListObject;
|
||||
if(!valueDataVpcsVSwitchListVSwitchListItem["VswitchId"].isNull())
|
||||
vSwitchListObject.vswitchId = valueDataVpcsVSwitchListVSwitchListItem["VswitchId"].asString();
|
||||
if(!valueDataVpcsVSwitchListVSwitchListItem["VswitchName"].isNull())
|
||||
vSwitchListObject.vswitchName = valueDataVpcsVSwitchListVSwitchListItem["VswitchName"].asString();
|
||||
if(!valueDataVpcsVSwitchListVSwitchListItem["ZoneId"].isNull())
|
||||
vSwitchListObject.zoneId = valueDataVpcsVSwitchListVSwitchListItem["ZoneId"].asString();
|
||||
dataObject.vSwitchList.push_back(vSwitchListObject);
|
||||
}
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string QueryUserVpcResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int QueryUserVpcResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<QueryUserVpcResult::Vpcs> QueryUserVpcResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int QueryUserVpcResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryUserVpcResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,15 @@ void QueryZnodeDetailRequest::setPath(const std::string &path) {
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
std::string QueryZnodeDetailRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void QueryZnodeDetailRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string QueryZnodeDetailRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
45
mse/src/model/RestartSeataServerRequest.cc
Normal file
45
mse/src/model/RestartSeataServerRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/RestartSeataServerRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::RestartSeataServerRequest;
|
||||
|
||||
RestartSeataServerRequest::RestartSeataServerRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "RestartSeataServer") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RestartSeataServerRequest::~RestartSeataServerRequest() {}
|
||||
|
||||
std::string RestartSeataServerRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void RestartSeataServerRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string RestartSeataServerRequest::getSeataServerUniqueId() const {
|
||||
return seataServerUniqueId_;
|
||||
}
|
||||
|
||||
void RestartSeataServerRequest::setSeataServerUniqueId(const std::string &seataServerUniqueId) {
|
||||
seataServerUniqueId_ = seataServerUniqueId;
|
||||
setParameter(std::string("SeataServerUniqueId"), seataServerUniqueId);
|
||||
}
|
||||
|
||||
79
mse/src/model/RestartSeataServerResult.cc
Normal file
79
mse/src/model/RestartSeataServerResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/RestartSeataServerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
RestartSeataServerResult::RestartSeataServerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartSeataServerResult::RestartSeataServerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartSeataServerResult::~RestartSeataServerResult()
|
||||
{}
|
||||
|
||||
void RestartSeataServerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RestartSeataServerResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int RestartSeataServerResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string RestartSeataServerResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RestartSeataServerResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RestartSeataServerResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,90 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/ScalingClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ScalingClusterRequest;
|
||||
|
||||
ScalingClusterRequest::ScalingClusterRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ScalingCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ScalingClusterRequest::~ScalingClusterRequest() {}
|
||||
|
||||
std::string ScalingClusterRequest::getClusterSpecification() const {
|
||||
return clusterSpecification_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setClusterSpecification(const std::string &clusterSpecification) {
|
||||
clusterSpecification_ = clusterSpecification;
|
||||
setParameter(std::string("ClusterSpecification"), clusterSpecification);
|
||||
}
|
||||
|
||||
int ScalingClusterRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setCpu(int cpu) {
|
||||
cpu_ = cpu;
|
||||
setParameter(std::string("Cpu"), std::to_string(cpu));
|
||||
}
|
||||
|
||||
std::string ScalingClusterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string ScalingClusterRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
long ScalingClusterRequest::getMemoryCapacity() const {
|
||||
return memoryCapacity_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setMemoryCapacity(long memoryCapacity) {
|
||||
memoryCapacity_ = memoryCapacity;
|
||||
setParameter(std::string("MemoryCapacity"), std::to_string(memoryCapacity));
|
||||
}
|
||||
|
||||
int ScalingClusterRequest::getInstanceCount() const {
|
||||
return instanceCount_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setInstanceCount(int instanceCount) {
|
||||
instanceCount_ = instanceCount;
|
||||
setParameter(std::string("InstanceCount"), std::to_string(instanceCount));
|
||||
}
|
||||
|
||||
std::string ScalingClusterRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ScalingClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::UpdateGatewayNameRequest;
|
||||
|
||||
UpdateGatewayNameRequest::UpdateGatewayNameRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayName") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayNameRequest::~UpdateGatewayNameRequest() {}
|
||||
|
||||
@@ -40,6 +40,7 @@ UpdateGatewayOptionRequest::GatewayOption UpdateGatewayOptionRequest::getGateway
|
||||
|
||||
void UpdateGatewayOptionRequest::setGatewayOption(const UpdateGatewayOptionRequest::GatewayOption &gatewayOption) {
|
||||
gatewayOption_ = gatewayOption;
|
||||
setParameter(std::string("GatewayOption") + ".EnableWaf", gatewayOption.enableWaf ? "true" : "false");
|
||||
setParameter(std::string("GatewayOption") + ".EnableHardwareAcceleration", gatewayOption.enableHardwareAcceleration ? "true" : "false");
|
||||
setParameter(std::string("GatewayOption") + ".DisableHttp2Alpn", gatewayOption.disableHttp2Alpn ? "true" : "false");
|
||||
setParameter(std::string("GatewayOption") + ".LogConfigDetails.ProjectName", gatewayOption.logConfigDetails.projectName);
|
||||
|
||||
@@ -44,6 +44,8 @@ void UpdateGatewayOptionResult::parse(const std::string &payload)
|
||||
data_.enableHardwareAcceleration = dataNode["EnableHardwareAcceleration"].asString() == "true";
|
||||
if(!dataNode["DisableHttp2Alpn"].isNull())
|
||||
data_.disableHttp2Alpn = dataNode["DisableHttp2Alpn"].asString() == "true";
|
||||
if(!dataNode["EnableWaf"].isNull())
|
||||
data_.enableWaf = dataNode["EnableWaf"].asString() == "true";
|
||||
auto traceDetailsNode = dataNode["TraceDetails"];
|
||||
if(!traceDetailsNode["TraceEnabled"].isNull())
|
||||
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
||||
|
||||
@@ -79,6 +79,15 @@ void UpdateGatewayRouteRequest::setRouteOrder(int routeOrder) {
|
||||
setParameter(std::string("RouteOrder"), std::to_string(routeOrder));
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteRequest::getEnableWaf() const {
|
||||
return enableWaf_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteRequest::setEnableWaf(bool enableWaf) {
|
||||
enableWaf_ = enableWaf;
|
||||
setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<UpdateGatewayRouteRequest::Services> UpdateGatewayRouteRequest::getServices() const {
|
||||
return services_;
|
||||
}
|
||||
|
||||
63
mse/src/model/UpdateGatewayRouteWafStatusRequest.cc
Normal file
63
mse/src/model/UpdateGatewayRouteWafStatusRequest.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/mse/model/UpdateGatewayRouteWafStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayRouteWafStatusRequest;
|
||||
|
||||
UpdateGatewayRouteWafStatusRequest::UpdateGatewayRouteWafStatusRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayRouteWafStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteWafStatusRequest::~UpdateGatewayRouteWafStatusRequest() {}
|
||||
|
||||
bool UpdateGatewayRouteWafStatusRequest::getEnableWaf() const {
|
||||
return enableWaf_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteWafStatusRequest::setEnableWaf(bool enableWaf) {
|
||||
enableWaf_ = enableWaf;
|
||||
setParameter(std::string("EnableWaf"), enableWaf ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteWafStatusRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteWafStatusRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
long UpdateGatewayRouteWafStatusRequest::getRouteId() const {
|
||||
return routeId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteWafStatusRequest::setRouteId(long routeId) {
|
||||
routeId_ = routeId;
|
||||
setParameter(std::string("RouteId"), std::to_string(routeId));
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteWafStatusRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayRouteWafStatusRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
250
mse/src/model/UpdateGatewayRouteWafStatusResult.cc
Normal file
250
mse/src/model/UpdateGatewayRouteWafStatusResult.cc
Normal file
@@ -0,0 +1,250 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/UpdateGatewayRouteWafStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayRouteWafStatusResult::UpdateGatewayRouteWafStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayRouteWafStatusResult::UpdateGatewayRouteWafStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayRouteWafStatusResult::~UpdateGatewayRouteWafStatusResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayRouteWafStatusResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["DefaultServiceId"].isNull())
|
||||
data_.defaultServiceId = std::stol(dataNode["DefaultServiceId"].asString());
|
||||
if(!dataNode["DefaultServiceName"].isNull())
|
||||
data_.defaultServiceName = dataNode["DefaultServiceName"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["RouteOrder"].isNull())
|
||||
data_.routeOrder = std::stoi(dataNode["RouteOrder"].asString());
|
||||
if(!dataNode["Predicates"].isNull())
|
||||
data_.predicates = dataNode["Predicates"].asString();
|
||||
if(!dataNode["DomainId"].isNull())
|
||||
data_.domainId = std::stol(dataNode["DomainId"].asString());
|
||||
if(!dataNode["DomainName"].isNull())
|
||||
data_.domainName = dataNode["DomainName"].asString();
|
||||
if(!dataNode["Services"].isNull())
|
||||
data_.services = dataNode["Services"].asString();
|
||||
if(!dataNode["DestinationType"].isNull())
|
||||
data_.destinationType = dataNode["DestinationType"].asString();
|
||||
if(!dataNode["EnableWaf"].isNull())
|
||||
data_.enableWaf = dataNode["EnableWaf"].asString() == "true";
|
||||
auto allRouteServicesNode = dataNode["RouteServices"]["RouteServicesItem"];
|
||||
for (auto dataNodeRouteServicesRouteServicesItem : allRouteServicesNode)
|
||||
{
|
||||
Data::RouteServicesItem routeServicesItemObject;
|
||||
if(!dataNodeRouteServicesRouteServicesItem["ServiceId"].isNull())
|
||||
routeServicesItemObject.serviceId = std::stol(dataNodeRouteServicesRouteServicesItem["ServiceId"].asString());
|
||||
if(!dataNodeRouteServicesRouteServicesItem["ServiceName"].isNull())
|
||||
routeServicesItemObject.serviceName = dataNodeRouteServicesRouteServicesItem["ServiceName"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Percent"].isNull())
|
||||
routeServicesItemObject.percent = std::stoi(dataNodeRouteServicesRouteServicesItem["Percent"].asString());
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Version"].isNull())
|
||||
routeServicesItemObject.version = dataNodeRouteServicesRouteServicesItem["Version"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Name"].isNull())
|
||||
routeServicesItemObject.name = dataNodeRouteServicesRouteServicesItem["Name"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["SourceType"].isNull())
|
||||
routeServicesItemObject.sourceType = dataNodeRouteServicesRouteServicesItem["SourceType"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["Namespace"].isNull())
|
||||
routeServicesItemObject._namespace = dataNodeRouteServicesRouteServicesItem["Namespace"].asString();
|
||||
if(!dataNodeRouteServicesRouteServicesItem["GroupName"].isNull())
|
||||
routeServicesItemObject.groupName = dataNodeRouteServicesRouteServicesItem["GroupName"].asString();
|
||||
data_.routeServices.push_back(routeServicesItemObject);
|
||||
}
|
||||
auto routePredicatesNode = dataNode["RoutePredicates"];
|
||||
auto allHeaderPredicatesNode = routePredicatesNode["HeaderPredicates"]["HeaderPredicatesItem"];
|
||||
for (auto routePredicatesNodeHeaderPredicatesHeaderPredicatesItem : allHeaderPredicatesNode)
|
||||
{
|
||||
Data::RoutePredicates::HeaderPredicatesItem headerPredicatesItemObject;
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].isNull())
|
||||
headerPredicatesItemObject.key = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Key"].asString();
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].isNull())
|
||||
headerPredicatesItemObject.value = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Value"].asString();
|
||||
if(!routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].isNull())
|
||||
headerPredicatesItemObject.type = routePredicatesNodeHeaderPredicatesHeaderPredicatesItem["Type"].asString();
|
||||
data_.routePredicates.headerPredicates.push_back(headerPredicatesItemObject);
|
||||
}
|
||||
auto allQueryPredicatesNode = routePredicatesNode["QueryPredicates"]["QueryPredicatesItem"];
|
||||
for (auto routePredicatesNodeQueryPredicatesQueryPredicatesItem : allQueryPredicatesNode)
|
||||
{
|
||||
Data::RoutePredicates::QueryPredicatesItem queryPredicatesItemObject;
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].isNull())
|
||||
queryPredicatesItemObject.key = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Key"].asString();
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].isNull())
|
||||
queryPredicatesItemObject.value = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Value"].asString();
|
||||
if(!routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].isNull())
|
||||
queryPredicatesItemObject.type = routePredicatesNodeQueryPredicatesQueryPredicatesItem["Type"].asString();
|
||||
data_.routePredicates.queryPredicates.push_back(queryPredicatesItemObject);
|
||||
}
|
||||
auto pathPredicatesNode = routePredicatesNode["PathPredicates"];
|
||||
if(!pathPredicatesNode["Path"].isNull())
|
||||
data_.routePredicates.pathPredicates.path = pathPredicatesNode["Path"].asString();
|
||||
if(!pathPredicatesNode["Type"].isNull())
|
||||
data_.routePredicates.pathPredicates.type = pathPredicatesNode["Type"].asString();
|
||||
if(!pathPredicatesNode["IgnoreCase"].isNull())
|
||||
data_.routePredicates.pathPredicates.ignoreCase = pathPredicatesNode["IgnoreCase"].asString() == "true";
|
||||
auto allMethodPredicates = routePredicatesNode["MethodPredicates"]["MethodPredicates"];
|
||||
for (auto value : allMethodPredicates)
|
||||
data_.routePredicates.methodPredicates.push_back(value.asString());
|
||||
auto hTTPRewriteNode = dataNode["HTTPRewrite"];
|
||||
if(!hTTPRewriteNode["Status"].isNull())
|
||||
data_.hTTPRewrite.status = hTTPRewriteNode["Status"].asString();
|
||||
if(!hTTPRewriteNode["Path"].isNull())
|
||||
data_.hTTPRewrite.path = hTTPRewriteNode["Path"].asString();
|
||||
if(!hTTPRewriteNode["Host"].isNull())
|
||||
data_.hTTPRewrite.host = hTTPRewriteNode["Host"].asString();
|
||||
if(!hTTPRewriteNode["PathType"].isNull())
|
||||
data_.hTTPRewrite.pathType = hTTPRewriteNode["PathType"].asString();
|
||||
if(!hTTPRewriteNode["Pattern"].isNull())
|
||||
data_.hTTPRewrite.pattern = hTTPRewriteNode["Pattern"].asString();
|
||||
if(!hTTPRewriteNode["Substitution"].isNull())
|
||||
data_.hTTPRewrite.substitution = hTTPRewriteNode["Substitution"].asString();
|
||||
auto headerOpNode = dataNode["HeaderOp"];
|
||||
if(!headerOpNode["Status"].isNull())
|
||||
data_.headerOp.status = headerOpNode["Status"].asString();
|
||||
auto allHeaderOpItemsNode = headerOpNode["HeaderOpItems"]["HeaderOpItemsItem"];
|
||||
for (auto headerOpNodeHeaderOpItemsHeaderOpItemsItem : allHeaderOpItemsNode)
|
||||
{
|
||||
Data::HeaderOp::HeaderOpItemsItem headerOpItemsItemObject;
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["DirectionType"].isNull())
|
||||
headerOpItemsItemObject.directionType = headerOpNodeHeaderOpItemsHeaderOpItemsItem["DirectionType"].asString();
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["OpType"].isNull())
|
||||
headerOpItemsItemObject.opType = headerOpNodeHeaderOpItemsHeaderOpItemsItem["OpType"].asString();
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["Key"].isNull())
|
||||
headerOpItemsItemObject.key = headerOpNodeHeaderOpItemsHeaderOpItemsItem["Key"].asString();
|
||||
if(!headerOpNodeHeaderOpItemsHeaderOpItemsItem["Value"].isNull())
|
||||
headerOpItemsItemObject.value = headerOpNodeHeaderOpItemsHeaderOpItemsItem["Value"].asString();
|
||||
data_.headerOp.headerOpItems.push_back(headerOpItemsItemObject);
|
||||
}
|
||||
auto directResponseNode = dataNode["DirectResponse"];
|
||||
if(!directResponseNode["Code"].isNull())
|
||||
data_.directResponse.code = std::stoi(directResponseNode["Code"].asString());
|
||||
if(!directResponseNode["Body"].isNull())
|
||||
data_.directResponse.body = directResponseNode["Body"].asString();
|
||||
auto corsNode = dataNode["Cors"];
|
||||
if(!corsNode["Status"].isNull())
|
||||
data_.cors.status = corsNode["Status"].asString();
|
||||
if(!corsNode["AllowOrigins"].isNull())
|
||||
data_.cors.allowOrigins = corsNode["AllowOrigins"].asString();
|
||||
if(!corsNode["AllowMethods"].isNull())
|
||||
data_.cors.allowMethods = corsNode["AllowMethods"].asString();
|
||||
if(!corsNode["AllowHeaders"].isNull())
|
||||
data_.cors.allowHeaders = corsNode["AllowHeaders"].asString();
|
||||
if(!corsNode["ExposeHeaders"].isNull())
|
||||
data_.cors.exposeHeaders = corsNode["ExposeHeaders"].asString();
|
||||
if(!corsNode["TimeUnit"].isNull())
|
||||
data_.cors.timeUnit = corsNode["TimeUnit"].asString();
|
||||
if(!corsNode["UnitNum"].isNull())
|
||||
data_.cors.unitNum = std::stol(corsNode["UnitNum"].asString());
|
||||
if(!corsNode["AllowCredentials"].isNull())
|
||||
data_.cors.allowCredentials = corsNode["AllowCredentials"].asString() == "true";
|
||||
auto timeoutNode = dataNode["Timeout"];
|
||||
if(!timeoutNode["UnitNum"].isNull())
|
||||
data_.timeout.unitNum = std::stoi(timeoutNode["UnitNum"].asString());
|
||||
if(!timeoutNode["TimeUnit"].isNull())
|
||||
data_.timeout.timeUnit = timeoutNode["TimeUnit"].asString();
|
||||
if(!timeoutNode["Status"].isNull())
|
||||
data_.timeout.status = timeoutNode["Status"].asString();
|
||||
auto retryNode = dataNode["Retry"];
|
||||
if(!retryNode["Attempts"].isNull())
|
||||
data_.retry.attempts = std::stoi(retryNode["Attempts"].asString());
|
||||
if(!retryNode["Status"].isNull())
|
||||
data_.retry.status = retryNode["Status"].asString();
|
||||
auto allRetryOn = retryNode["RetryOn"]["retryOn"];
|
||||
for (auto value : allRetryOn)
|
||||
data_.retry.retryOn.push_back(value.asString());
|
||||
auto allHttpCodes = retryNode["HttpCodes"]["httpCodes"];
|
||||
for (auto value : allHttpCodes)
|
||||
data_.retry.httpCodes.push_back(value.asString());
|
||||
auto redirectNode = dataNode["Redirect"];
|
||||
if(!redirectNode["Code"].isNull())
|
||||
data_.redirect.code = std::stoi(redirectNode["Code"].asString());
|
||||
if(!redirectNode["Host"].isNull())
|
||||
data_.redirect.host = redirectNode["Host"].asString();
|
||||
if(!redirectNode["Path"].isNull())
|
||||
data_.redirect.path = redirectNode["Path"].asString();
|
||||
auto allDomainIdList = dataNode["DomainIdList"]["DomainIdList"];
|
||||
for (auto value : allDomainIdList)
|
||||
data_.domainIdList.push_back(value.asString());
|
||||
auto allDomainNameList = dataNode["DomainNameList"]["DomainNameList"];
|
||||
for (auto value : allDomainNameList)
|
||||
data_.domainNameList.push_back(value.asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayRouteWafStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteWafStatusResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
UpdateGatewayRouteWafStatusResult::Data UpdateGatewayRouteWafStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayRouteWafStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayRouteWafStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/UpdateGatewayServiceTrafficPolicyRequest.cc
Normal file
81
mse/src/model/UpdateGatewayServiceTrafficPolicyRequest.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/mse/model/UpdateGatewayServiceTrafficPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateGatewayServiceTrafficPolicyRequest;
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyRequest::UpdateGatewayServiceTrafficPolicyRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateGatewayServiceTrafficPolicy") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyRequest::~UpdateGatewayServiceTrafficPolicyRequest() {}
|
||||
|
||||
std::string UpdateGatewayServiceTrafficPolicyRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayServiceTrafficPolicyRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyRequest::GatewayTrafficPolicy UpdateGatewayServiceTrafficPolicyRequest::getGatewayTrafficPolicy() const {
|
||||
return gatewayTrafficPolicy_;
|
||||
}
|
||||
|
||||
void UpdateGatewayServiceTrafficPolicyRequest::setGatewayTrafficPolicy(const UpdateGatewayServiceTrafficPolicyRequest::GatewayTrafficPolicy &gatewayTrafficPolicy) {
|
||||
gatewayTrafficPolicy_ = gatewayTrafficPolicy;
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.TlsMode", gatewayTrafficPolicy.tlsSetting.tlsMode);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.CaCertContent", gatewayTrafficPolicy.tlsSetting.caCertContent);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.CertId", gatewayTrafficPolicy.tlsSetting.certId);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".TlsSetting.Sni", gatewayTrafficPolicy.tlsSetting.sni);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.LoadbalancerType", gatewayTrafficPolicy.loadBalancerSettings.loadbalancerType);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.HttpCookie.Path", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.path);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.HttpCookie.Name", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.name);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.HttpCookie.TTL", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.tTL);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.ParameterName", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.parameterName);
|
||||
setParameter(std::string("GatewayTrafficPolicy") + ".LoadBalancerSettings.ConsistentHashLBConfig.ConsistentHashLBType", gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.consistentHashLBType);
|
||||
}
|
||||
|
||||
std::string UpdateGatewayServiceTrafficPolicyRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateGatewayServiceTrafficPolicyRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long UpdateGatewayServiceTrafficPolicyRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayServiceTrafficPolicyRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
long UpdateGatewayServiceTrafficPolicyRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void UpdateGatewayServiceTrafficPolicyRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
117
mse/src/model/UpdateGatewayServiceTrafficPolicyResult.cc
Normal file
117
mse/src/model/UpdateGatewayServiceTrafficPolicyResult.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/UpdateGatewayServiceTrafficPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyResult::UpdateGatewayServiceTrafficPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyResult::UpdateGatewayServiceTrafficPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyResult::~UpdateGatewayServiceTrafficPolicyResult()
|
||||
{}
|
||||
|
||||
void UpdateGatewayServiceTrafficPolicyResult::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["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["SourceType"].isNull())
|
||||
data_.sourceType = dataNode["SourceType"].asString();
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["MetaInfo"].isNull())
|
||||
data_.metaInfo = dataNode["MetaInfo"].asString();
|
||||
if(!dataNode["Namespace"].isNull())
|
||||
data_._namespace = dataNode["Namespace"].asString();
|
||||
if(!dataNode["GroupName"].isNull())
|
||||
data_.groupName = dataNode["GroupName"].asString();
|
||||
auto gatewayTrafficPolicyNode = dataNode["GatewayTrafficPolicy"];
|
||||
auto tlsSettingNode = gatewayTrafficPolicyNode["TlsSetting"];
|
||||
if(!tlsSettingNode["TlsMode"].isNull())
|
||||
data_.gatewayTrafficPolicy.tlsSetting.tlsMode = tlsSettingNode["TlsMode"].asString();
|
||||
if(!tlsSettingNode["CertId"].isNull())
|
||||
data_.gatewayTrafficPolicy.tlsSetting.certId = tlsSettingNode["CertId"].asString();
|
||||
if(!tlsSettingNode["CaCertContent"].isNull())
|
||||
data_.gatewayTrafficPolicy.tlsSetting.caCertContent = tlsSettingNode["CaCertContent"].asString();
|
||||
if(!tlsSettingNode["Sni"].isNull())
|
||||
data_.gatewayTrafficPolicy.tlsSetting.sni = tlsSettingNode["Sni"].asString();
|
||||
auto loadBalancerSettingsNode = gatewayTrafficPolicyNode["LoadBalancerSettings"];
|
||||
if(!loadBalancerSettingsNode["LoadbalancerType"].isNull())
|
||||
data_.gatewayTrafficPolicy.loadBalancerSettings.loadbalancerType = loadBalancerSettingsNode["LoadbalancerType"].asString();
|
||||
auto consistentHashLBConfigNode = loadBalancerSettingsNode["ConsistentHashLBConfig"];
|
||||
if(!consistentHashLBConfigNode["ParameterName"].isNull())
|
||||
data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.parameterName = consistentHashLBConfigNode["ParameterName"].asString();
|
||||
if(!consistentHashLBConfigNode["ConsistentHashLBType"].isNull())
|
||||
data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.consistentHashLBType = consistentHashLBConfigNode["ConsistentHashLBType"].asString();
|
||||
auto httpCookieNode = consistentHashLBConfigNode["HttpCookie"];
|
||||
if(!httpCookieNode["Name"].isNull())
|
||||
data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.name = httpCookieNode["Name"].asString();
|
||||
if(!httpCookieNode["Path"].isNull())
|
||||
data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.path = httpCookieNode["Path"].asString();
|
||||
if(!httpCookieNode["TTL"].isNull())
|
||||
data_.gatewayTrafficPolicy.loadBalancerSettings.consistentHashLBConfig.httpCookie.tTL = httpCookieNode["TTL"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateGatewayServiceTrafficPolicyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateGatewayServiceTrafficPolicyResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
UpdateGatewayServiceTrafficPolicyResult::Data UpdateGatewayServiceTrafficPolicyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateGatewayServiceTrafficPolicyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateGatewayServiceTrafficPolicyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
74
mse/src/model/UpdateMessageQueueRouteRequest.cc
Normal file
74
mse/src/model/UpdateMessageQueueRouteRequest.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/mse/model/UpdateMessageQueueRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::UpdateMessageQueueRouteRequest;
|
||||
|
||||
UpdateMessageQueueRouteRequest::UpdateMessageQueueRouteRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateMessageQueueRoute") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateMessageQueueRouteRequest::~UpdateMessageQueueRouteRequest() {}
|
||||
|
||||
std::vector<UpdateMessageQueueRouteRequest::std::string> UpdateMessageQueueRouteRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void UpdateMessageQueueRouteRequest::setTags(const std::vector<UpdateMessageQueueRouteRequest::std::string> &tags) {
|
||||
tags_ = tags;
|
||||
for(int dep1 = 0; dep1 != tags.size(); dep1++) {
|
||||
setParameter(std::string("Tags") + "." + std::to_string(dep1 + 1), tags[dep1]);
|
||||
}
|
||||
}
|
||||
|
||||
bool UpdateMessageQueueRouteRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void UpdateMessageQueueRouteRequest::setEnable(bool enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateMessageQueueRouteRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void UpdateMessageQueueRouteRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string UpdateMessageQueueRouteRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void UpdateMessageQueueRouteRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string UpdateMessageQueueRouteRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void UpdateMessageQueueRouteRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
79
mse/src/model/UpdateMessageQueueRouteResult.cc
Normal file
79
mse/src/model/UpdateMessageQueueRouteResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES 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/mse/model/UpdateMessageQueueRouteResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
UpdateMessageQueueRouteResult::UpdateMessageQueueRouteResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateMessageQueueRouteResult::UpdateMessageQueueRouteResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateMessageQueueRouteResult::~UpdateMessageQueueRouteResult()
|
||||
{}
|
||||
|
||||
void UpdateMessageQueueRouteResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateMessageQueueRouteResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateMessageQueueRouteResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string UpdateMessageQueueRouteResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateMessageQueueRouteResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UpdateMessageQueueRouteResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ using AlibabaCloud::Mse::Model::UpdateSSLCertRequest;
|
||||
|
||||
UpdateSSLCertRequest::UpdateSSLCertRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "UpdateSSLCert") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateSSLCertRequest::~UpdateSSLCertRequest() {}
|
||||
|
||||
Reference in New Issue
Block a user