ReportOneAgentInfo.
This commit is contained in:
4013
mse/src/MseClient.cc
Normal file
4013
mse/src/MseClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
72
mse/src/model/AddAuthResourceRequest.cc
Normal file
72
mse/src/model/AddAuthResourceRequest.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/AddAuthResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddAuthResourceRequest;
|
||||
|
||||
AddAuthResourceRequest::AddAuthResourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddAuthResource") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddAuthResourceRequest::~AddAuthResourceRequest() {}
|
||||
|
||||
std::string AddAuthResourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddAuthResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
long AddAuthResourceRequest::getAuthId() const {
|
||||
return authId_;
|
||||
}
|
||||
|
||||
void AddAuthResourceRequest::setAuthId(long authId) {
|
||||
authId_ = authId;
|
||||
setParameter(std::string("AuthId"), std::to_string(authId));
|
||||
}
|
||||
|
||||
long AddAuthResourceRequest::getDomainId() const {
|
||||
return domainId_;
|
||||
}
|
||||
|
||||
void AddAuthResourceRequest::setDomainId(long domainId) {
|
||||
domainId_ = domainId;
|
||||
setParameter(std::string("DomainId"), std::to_string(domainId));
|
||||
}
|
||||
|
||||
std::string AddAuthResourceRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
void AddAuthResourceRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
std::string AddAuthResourceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddAuthResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddAuthResourceResult.cc
Normal file
79
mse/src/model/AddAuthResourceResult.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/AddAuthResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddAuthResourceResult::AddAuthResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddAuthResourceResult::AddAuthResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddAuthResourceResult::~AddAuthResourceResult()
|
||||
{}
|
||||
|
||||
void AddAuthResourceResult::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_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddAuthResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddAuthResourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long AddAuthResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddAuthResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddAuthResourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
mse/src/model/AddBlackWhiteListRequest.cc
Normal file
90
mse/src/model/AddBlackWhiteListRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/AddBlackWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddBlackWhiteListRequest;
|
||||
|
||||
AddBlackWhiteListRequest::AddBlackWhiteListRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddBlackWhiteList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddBlackWhiteListRequest::~AddBlackWhiteListRequest() {}
|
||||
|
||||
std::string AddBlackWhiteListRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddBlackWhiteListRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string AddBlackWhiteListRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
bool AddBlackWhiteListRequest::getIsWhite() const {
|
||||
return isWhite_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setIsWhite(bool isWhite) {
|
||||
isWhite_ = isWhite;
|
||||
setParameter(std::string("IsWhite"), isWhite ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddBlackWhiteListRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string AddBlackWhiteListRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string AddBlackWhiteListRequest::getStatus() const {
|
||||
return status_;
|
||||
}
|
||||
|
||||
void AddBlackWhiteListRequest::setStatus(const std::string &status) {
|
||||
status_ = status;
|
||||
setParameter(std::string("Status"), status);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddBlackWhiteListResult.cc
Normal file
79
mse/src/model/AddBlackWhiteListResult.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/AddBlackWhiteListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddBlackWhiteListResult::AddBlackWhiteListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddBlackWhiteListResult::AddBlackWhiteListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddBlackWhiteListResult::~AddBlackWhiteListResult()
|
||||
{}
|
||||
|
||||
void AddBlackWhiteListResult::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_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddBlackWhiteListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddBlackWhiteListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long AddBlackWhiteListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddBlackWhiteListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddBlackWhiteListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/AddGatewayDomainRequest.cc
Normal file
81
mse/src/model/AddGatewayDomainRequest.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/AddGatewayDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddGatewayDomainRequest;
|
||||
|
||||
AddGatewayDomainRequest::AddGatewayDomainRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddGatewayDomain") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGatewayDomainRequest::~AddGatewayDomainRequest() {}
|
||||
|
||||
std::string AddGatewayDomainRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddGatewayDomainRequest::getProtocol() const {
|
||||
return protocol_;
|
||||
}
|
||||
|
||||
void AddGatewayDomainRequest::setProtocol(const std::string &protocol) {
|
||||
protocol_ = protocol;
|
||||
setParameter(std::string("Protocol"), protocol);
|
||||
}
|
||||
|
||||
bool AddGatewayDomainRequest::getMustHttps() const {
|
||||
return mustHttps_;
|
||||
}
|
||||
|
||||
void AddGatewayDomainRequest::setMustHttps(bool mustHttps) {
|
||||
mustHttps_ = mustHttps;
|
||||
setParameter(std::string("MustHttps"), mustHttps ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddGatewayDomainRequest::getCertIdentifier() const {
|
||||
return certIdentifier_;
|
||||
}
|
||||
|
||||
void AddGatewayDomainRequest::setCertIdentifier(const std::string &certIdentifier) {
|
||||
certIdentifier_ = certIdentifier;
|
||||
setParameter(std::string("CertIdentifier"), certIdentifier);
|
||||
}
|
||||
|
||||
std::string AddGatewayDomainRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddGatewayDomainRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddGatewayDomainRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddGatewayDomainResult.cc
Normal file
79
mse/src/model/AddGatewayDomainResult.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/AddGatewayDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddGatewayDomainResult::AddGatewayDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGatewayDomainResult::AddGatewayDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGatewayDomainResult::~AddGatewayDomainResult()
|
||||
{}
|
||||
|
||||
void AddGatewayDomainResult::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_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddGatewayDomainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddGatewayDomainResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long AddGatewayDomainResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddGatewayDomainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddGatewayDomainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
mse/src/model/AddGatewayRequest.cc
Normal file
126
mse/src/model/AddGatewayRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/AddGatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddGatewayRequest;
|
||||
|
||||
AddGatewayRequest::AddGatewayRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddGateway") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGatewayRequest::~AddGatewayRequest() {}
|
||||
|
||||
std::string AddGatewayRequest::getInternetSlbSpec() const {
|
||||
return internetSlbSpec_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setInternetSlbSpec(const std::string &internetSlbSpec) {
|
||||
internetSlbSpec_ = internetSlbSpec;
|
||||
setParameter(std::string("InternetSlbSpec"), internetSlbSpec);
|
||||
}
|
||||
|
||||
int AddGatewayRequest::getReplica() const {
|
||||
return replica_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setReplica(int replica) {
|
||||
replica_ = replica;
|
||||
setParameter(std::string("Replica"), std::to_string(replica));
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getVSwitchId2() const {
|
||||
return vSwitchId2_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setVSwitchId2(const std::string &vSwitchId2) {
|
||||
vSwitchId2_ = vSwitchId2;
|
||||
setParameter(std::string("VSwitchId2"), vSwitchId2);
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getSpec() const {
|
||||
return spec_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setSpec(const std::string &spec) {
|
||||
spec_ = spec;
|
||||
setParameter(std::string("Spec"), spec);
|
||||
}
|
||||
|
||||
bool AddGatewayRequest::getEnterpriseSecurityGroup() const {
|
||||
return enterpriseSecurityGroup_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setEnterpriseSecurityGroup(bool enterpriseSecurityGroup) {
|
||||
enterpriseSecurityGroup_ = enterpriseSecurityGroup;
|
||||
setParameter(std::string("EnterpriseSecurityGroup"), enterpriseSecurityGroup ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getVpc() const {
|
||||
return vpc_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setVpc(const std::string &vpc) {
|
||||
vpc_ = vpc;
|
||||
setParameter(std::string("Vpc"), vpc);
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getSlbSpec() const {
|
||||
return slbSpec_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setSlbSpec(const std::string &slbSpec) {
|
||||
slbSpec_ = slbSpec;
|
||||
setParameter(std::string("SlbSpec"), slbSpec);
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string AddGatewayRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void AddGatewayRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
80
mse/src/model/AddGatewayResult.cc
Normal file
80
mse/src/model/AddGatewayResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/AddGatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddGatewayResult::AddGatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGatewayResult::AddGatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGatewayResult::~AddGatewayResult()
|
||||
{}
|
||||
|
||||
void AddGatewayResult::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["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].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 AddGatewayResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddGatewayResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
AddGatewayResult::Data AddGatewayResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddGatewayResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddGatewayResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/AddGatewayServiceVersionRequest.cc
Normal file
63
mse/src/model/AddGatewayServiceVersionRequest.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/AddGatewayServiceVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddGatewayServiceVersionRequest;
|
||||
|
||||
AddGatewayServiceVersionRequest::AddGatewayServiceVersionRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddGatewayServiceVersion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGatewayServiceVersionRequest::~AddGatewayServiceVersionRequest() {}
|
||||
|
||||
std::string AddGatewayServiceVersionRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddGatewayServiceVersionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddGatewayServiceVersionRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void AddGatewayServiceVersionRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::string AddGatewayServiceVersionRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddGatewayServiceVersionRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long AddGatewayServiceVersionRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void AddGatewayServiceVersionRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
79
mse/src/model/AddGatewayServiceVersionResult.cc
Normal file
79
mse/src/model/AddGatewayServiceVersionResult.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/AddGatewayServiceVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddGatewayServiceVersionResult::AddGatewayServiceVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGatewayServiceVersionResult::AddGatewayServiceVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGatewayServiceVersionResult::~AddGatewayServiceVersionResult()
|
||||
{}
|
||||
|
||||
void AddGatewayServiceVersionResult::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_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddGatewayServiceVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddGatewayServiceVersionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long AddGatewayServiceVersionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddGatewayServiceVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddGatewayServiceVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/AddGatewaySlbRequest.cc
Normal file
63
mse/src/model/AddGatewaySlbRequest.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/AddGatewaySlbRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddGatewaySlbRequest;
|
||||
|
||||
AddGatewaySlbRequest::AddGatewaySlbRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddGatewaySlb") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddGatewaySlbRequest::~AddGatewaySlbRequest() {}
|
||||
|
||||
std::string AddGatewaySlbRequest::getSlbId() const {
|
||||
return slbId_;
|
||||
}
|
||||
|
||||
void AddGatewaySlbRequest::setSlbId(const std::string &slbId) {
|
||||
slbId_ = slbId;
|
||||
setParameter(std::string("SlbId"), slbId);
|
||||
}
|
||||
|
||||
std::string AddGatewaySlbRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddGatewaySlbRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddGatewaySlbRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void AddGatewaySlbRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string AddGatewaySlbRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddGatewaySlbRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddGatewaySlbResult.cc
Normal file
79
mse/src/model/AddGatewaySlbResult.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/AddGatewaySlbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddGatewaySlbResult::AddGatewaySlbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddGatewaySlbResult::AddGatewaySlbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddGatewaySlbResult::~AddGatewaySlbResult()
|
||||
{}
|
||||
|
||||
void AddGatewaySlbResult::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 AddGatewaySlbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddGatewaySlbResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string AddGatewaySlbResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddGatewaySlbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddGatewaySlbResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
135
mse/src/model/AddMockRuleRequest.cc
Normal file
135
mse/src/model/AddMockRuleRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/AddMockRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddMockRuleRequest;
|
||||
|
||||
AddMockRuleRequest::AddMockRuleRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddMockRule") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddMockRuleRequest::~AddMockRuleRequest() {}
|
||||
|
||||
std::string AddMockRuleRequest::getExtraJson() const {
|
||||
return extraJson_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setExtraJson(const std::string &extraJson) {
|
||||
extraJson_ = extraJson;
|
||||
setParameter(std::string("ExtraJson"), extraJson);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getProviderAppId() const {
|
||||
return providerAppId_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setProviderAppId(const std::string &providerAppId) {
|
||||
providerAppId_ = providerAppId;
|
||||
setParameter(std::string("ProviderAppId"), providerAppId);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
bool AddMockRuleRequest::getEnable() const {
|
||||
return enable_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setEnable(bool enable) {
|
||||
enable_ = enable;
|
||||
setParameter(std::string("Enable"), enable ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getScMockItems() const {
|
||||
return scMockItems_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setScMockItems(const std::string &scMockItems) {
|
||||
scMockItems_ = scMockItems;
|
||||
setParameter(std::string("ScMockItems"), scMockItems);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getProviderAppName() const {
|
||||
return providerAppName_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setProviderAppName(const std::string &providerAppName) {
|
||||
providerAppName_ = providerAppName;
|
||||
setParameter(std::string("ProviderAppName"), providerAppName);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getConsumerAppIds() const {
|
||||
return consumerAppIds_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setConsumerAppIds(const std::string &consumerAppIds) {
|
||||
consumerAppIds_ = consumerAppIds;
|
||||
setParameter(std::string("ConsumerAppIds"), consumerAppIds);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getDubboMockItems() const {
|
||||
return dubboMockItems_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setDubboMockItems(const std::string &dubboMockItems) {
|
||||
dubboMockItems_ = dubboMockItems;
|
||||
setParameter(std::string("DubboMockItems"), dubboMockItems);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long AddMockRuleRequest::getMockType() const {
|
||||
return mockType_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setMockType(long mockType) {
|
||||
mockType_ = mockType;
|
||||
setParameter(std::string("MockType"), std::to_string(mockType));
|
||||
}
|
||||
|
||||
std::string AddMockRuleRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void AddMockRuleRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
106
mse/src/model/AddMockRuleResult.cc
Normal file
106
mse/src/model/AddMockRuleResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/AddMockRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddMockRuleResult::AddMockRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddMockRuleResult::AddMockRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddMockRuleResult::~AddMockRuleResult()
|
||||
{}
|
||||
|
||||
void AddMockRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["ScMockItemJson"].isNull())
|
||||
data_.scMockItemJson = dataNode["ScMockItemJson"].asString();
|
||||
if(!dataNode["ConsumerAppName"].isNull())
|
||||
data_.consumerAppName = dataNode["ConsumerAppName"].asString();
|
||||
if(!dataNode["ConsumerAppId"].isNull())
|
||||
data_.consumerAppId = dataNode["ConsumerAppId"].asString();
|
||||
if(!dataNode["AccountId"].isNull())
|
||||
data_.accountId = dataNode["AccountId"].asString();
|
||||
if(!dataNode["ExtraJson"].isNull())
|
||||
data_.extraJson = dataNode["ExtraJson"].asString();
|
||||
if(!dataNode["Source"].isNull())
|
||||
data_.source = dataNode["Source"].asString();
|
||||
if(!dataNode["Region"].isNull())
|
||||
data_.region = dataNode["Region"].asString();
|
||||
if(!dataNode["ProviderAppId"].isNull())
|
||||
data_.providerAppId = dataNode["ProviderAppId"].asString();
|
||||
if(!dataNode["ProviderAppName"].isNull())
|
||||
data_.providerAppName = dataNode["ProviderAppName"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Enable"].isNull())
|
||||
data_.enable = dataNode["Enable"].asString() == "true";
|
||||
if(!dataNode["MockType"].isNull())
|
||||
data_.mockType = std::stol(dataNode["MockType"].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 AddMockRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddMockRuleResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
AddMockRuleResult::Data AddMockRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddMockRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddMockRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/AddSSLCertRequest.cc
Normal file
63
mse/src/model/AddSSLCertRequest.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/AddSSLCertRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddSSLCertRequest;
|
||||
|
||||
AddSSLCertRequest::AddSSLCertRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddSSLCert") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
AddSSLCertRequest::~AddSSLCertRequest() {}
|
||||
|
||||
std::string AddSSLCertRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddSSLCertRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
long AddSSLCertRequest::getDomainId() const {
|
||||
return domainId_;
|
||||
}
|
||||
|
||||
void AddSSLCertRequest::setDomainId(long domainId) {
|
||||
domainId_ = domainId;
|
||||
setParameter(std::string("DomainId"), std::to_string(domainId));
|
||||
}
|
||||
|
||||
std::string AddSSLCertRequest::getCertIdentifier() const {
|
||||
return certIdentifier_;
|
||||
}
|
||||
|
||||
void AddSSLCertRequest::setCertIdentifier(const std::string &certIdentifier) {
|
||||
certIdentifier_ = certIdentifier;
|
||||
setParameter(std::string("CertIdentifier"), certIdentifier);
|
||||
}
|
||||
|
||||
std::string AddSSLCertRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddSSLCertRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddSSLCertResult.cc
Normal file
79
mse/src/model/AddSSLCertResult.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/AddSSLCertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddSSLCertResult::AddSSLCertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddSSLCertResult::AddSSLCertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddSSLCertResult::~AddSSLCertResult()
|
||||
{}
|
||||
|
||||
void AddSSLCertResult::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() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string AddSSLCertResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddSSLCertResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
bool AddSSLCertResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddSSLCertResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddSSLCertResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/AddServiceSourceRequest.cc
Normal file
81
mse/src/model/AddServiceSourceRequest.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/AddServiceSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::AddServiceSourceRequest;
|
||||
|
||||
AddServiceSourceRequest::AddServiceSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "AddServiceSource") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddServiceSourceRequest::~AddServiceSourceRequest() {}
|
||||
|
||||
std::string AddServiceSourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string AddServiceSourceRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string AddServiceSourceRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string AddServiceSourceRequest::getAddress() const {
|
||||
return address_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setAddress(const std::string &address) {
|
||||
address_ = address;
|
||||
setParameter(std::string("Address"), address);
|
||||
}
|
||||
|
||||
std::string AddServiceSourceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string AddServiceSourceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void AddServiceSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/AddServiceSourceResult.cc
Normal file
79
mse/src/model/AddServiceSourceResult.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/AddServiceSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
AddServiceSourceResult::AddServiceSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddServiceSourceResult::AddServiceSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddServiceSourceResult::~AddServiceSourceResult()
|
||||
{}
|
||||
|
||||
void AddServiceSourceResult::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_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string AddServiceSourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int AddServiceSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long AddServiceSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int AddServiceSourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AddServiceSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/CloneNacosConfigRequest.cc
Normal file
81
mse/src/model/CloneNacosConfigRequest.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/CloneNacosConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CloneNacosConfigRequest;
|
||||
|
||||
CloneNacosConfigRequest::CloneNacosConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CloneNacosConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloneNacosConfigRequest::~CloneNacosConfigRequest() {}
|
||||
|
||||
std::string CloneNacosConfigRequest::getTargetNamespaceId() const {
|
||||
return targetNamespaceId_;
|
||||
}
|
||||
|
||||
void CloneNacosConfigRequest::setTargetNamespaceId(const std::string &targetNamespaceId) {
|
||||
targetNamespaceId_ = targetNamespaceId;
|
||||
setParameter(std::string("TargetNamespaceId"), targetNamespaceId);
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CloneNacosConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CloneNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigRequest::getIds() const {
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void CloneNacosConfigRequest::setIds(const std::string &ids) {
|
||||
ids_ = ids;
|
||||
setParameter(std::string("Ids"), ids);
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigRequest::getOriginNamespaceId() const {
|
||||
return originNamespaceId_;
|
||||
}
|
||||
|
||||
void CloneNacosConfigRequest::setOriginNamespaceId(const std::string &originNamespaceId) {
|
||||
originNamespaceId_ = originNamespaceId;
|
||||
setParameter(std::string("OriginNamespaceId"), originNamespaceId);
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void CloneNacosConfigRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
116
mse/src/model/CloneNacosConfigResult.cc
Normal file
116
mse/src/model/CloneNacosConfigResult.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/CloneNacosConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CloneNacosConfigResult::CloneNacosConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CloneNacosConfigResult::CloneNacosConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CloneNacosConfigResult::~CloneNacosConfigResult()
|
||||
{}
|
||||
|
||||
void CloneNacosConfigResult::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["SuccCount"].isNull())
|
||||
data_.succCount = std::stoi(dataNode["SuccCount"].asString());
|
||||
if(!dataNode["SkipCount"].isNull())
|
||||
data_.skipCount = std::stoi(dataNode["SkipCount"].asString());
|
||||
auto allSkipDataNode = dataNode["SkipData"]["SkipDataItem"];
|
||||
for (auto dataNodeSkipDataSkipDataItem : allSkipDataNode)
|
||||
{
|
||||
Data::SkipDataItem skipDataItemObject;
|
||||
if(!dataNodeSkipDataSkipDataItem["DataId"].isNull())
|
||||
skipDataItemObject.dataId = dataNodeSkipDataSkipDataItem["DataId"].asString();
|
||||
if(!dataNodeSkipDataSkipDataItem["Group"].isNull())
|
||||
skipDataItemObject.group = dataNodeSkipDataSkipDataItem["Group"].asString();
|
||||
data_.skipData.push_back(skipDataItemObject);
|
||||
}
|
||||
auto allFailDataNode = dataNode["FailData"]["FailDataItem"];
|
||||
for (auto dataNodeFailDataFailDataItem : allFailDataNode)
|
||||
{
|
||||
Data::FailDataItem failDataItemObject;
|
||||
if(!dataNodeFailDataFailDataItem["DataId"].isNull())
|
||||
failDataItemObject.dataId = dataNodeFailDataFailDataItem["DataId"].asString();
|
||||
if(!dataNodeFailDataFailDataItem["Group"].isNull())
|
||||
failDataItemObject.group = dataNodeFailDataFailDataItem["Group"].asString();
|
||||
data_.failData.push_back(failDataItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CloneNacosConfigResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CloneNacosConfigResult::Data CloneNacosConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CloneNacosConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
int CloneNacosConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CloneNacosConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
mse/src/model/CreateAlarmRuleRequest.cc
Normal file
126
mse/src/model/CreateAlarmRuleRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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));
|
||||
}
|
||||
|
||||
65
mse/src/model/CreateAlarmRuleResult.cc
Normal file
65
mse/src/model/CreateAlarmRuleResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/CreateAlarmRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateAlarmRuleResult::CreateAlarmRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateAlarmRuleResult::CreateAlarmRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateAlarmRuleResult::~CreateAlarmRuleResult()
|
||||
{}
|
||||
|
||||
void CreateAlarmRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateAlarmRuleResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateAlarmRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/CreateApplicationRequest.cc
Normal file
81
mse/src/model/CreateApplicationRequest.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/CreateApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateApplicationRequest;
|
||||
|
||||
CreateApplicationRequest::CreateApplicationRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateApplication") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationRequest::~CreateApplicationRequest() {}
|
||||
|
||||
std::string CreateApplicationRequest::getLanguage() const {
|
||||
return language_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setLanguage(const std::string &language) {
|
||||
language_ = language;
|
||||
setParameter(std::string("Language"), language);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSource() const {
|
||||
return source_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSource(const std::string &source) {
|
||||
source_ = source;
|
||||
setParameter(std::string("Source"), source);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getExtraInfo() const {
|
||||
return extraInfo_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setExtraInfo(const std::string &extraInfo) {
|
||||
extraInfo_ = extraInfo;
|
||||
setParameter(std::string("ExtraInfo"), extraInfo);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
100
mse/src/model/CreateApplicationResult.cc
Normal file
100
mse/src/model/CreateApplicationResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/CreateApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateApplicationResult::CreateApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateApplicationResult::CreateApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateApplicationResult::~CreateApplicationResult()
|
||||
{}
|
||||
|
||||
void CreateApplicationResult::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["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["ExtraInfo"].isNull())
|
||||
data_.extraInfo = dataNode["ExtraInfo"].asString();
|
||||
if(!dataNode["AppName"].isNull())
|
||||
data_.appName = dataNode["AppName"].asString();
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = std::stol(dataNode["UpdateTime"].asString());
|
||||
if(!dataNode["LicenseKey"].isNull())
|
||||
data_.licenseKey = dataNode["LicenseKey"].asString();
|
||||
if(!dataNode["CreateTime"].isNull())
|
||||
data_.createTime = std::stol(dataNode["CreateTime"].asString());
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["Source"].isNull())
|
||||
data_.source = dataNode["Source"].asString();
|
||||
if(!dataNode["Language"].isNull())
|
||||
data_.language = dataNode["Language"].asString();
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].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();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string CreateApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateApplicationResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
CreateApplicationResult::Data CreateApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
180
mse/src/model/CreateClusterRequest.cc
Normal file
180
mse/src/model/CreateClusterRequest.cc
Normal file
@@ -0,0 +1,180 @@
|
||||
/*
|
||||
* 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/CreateClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateClusterRequest;
|
||||
|
||||
CreateClusterRequest::CreateClusterRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateClusterRequest::~CreateClusterRequest() {}
|
||||
|
||||
std::string CreateClusterRequest::getClusterSpecification() const {
|
||||
return clusterSpecification_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setClusterSpecification(const std::string &clusterSpecification) {
|
||||
clusterSpecification_ = clusterSpecification;
|
||||
setParameter(std::string("ClusterSpecification"), clusterSpecification);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPubSlbSpecification() const {
|
||||
return pubSlbSpecification_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPubSlbSpecification(const std::string &pubSlbSpecification) {
|
||||
pubSlbSpecification_ = pubSlbSpecification;
|
||||
setParameter(std::string("PubSlbSpecification"), pubSlbSpecification);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPrivateSlbSpecification() const {
|
||||
return privateSlbSpecification_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPrivateSlbSpecification(const std::string &privateSlbSpecification) {
|
||||
privateSlbSpecification_ = privateSlbSpecification;
|
||||
setParameter(std::string("PrivateSlbSpecification"), privateSlbSpecification);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getInstanceCount() const {
|
||||
return instanceCount_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setInstanceCount(int instanceCount) {
|
||||
instanceCount_ = instanceCount;
|
||||
setParameter(std::string("InstanceCount"), std::to_string(instanceCount));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getConnectionType() const {
|
||||
return connectionType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setConnectionType(const std::string &connectionType) {
|
||||
connectionType_ = connectionType;
|
||||
setParameter(std::string("ConnectionType"), connectionType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getClusterVersion() const {
|
||||
return clusterVersion_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setClusterVersion(const std::string &clusterVersion) {
|
||||
clusterVersion_ = clusterVersion;
|
||||
setParameter(std::string("ClusterVersion"), clusterVersion);
|
||||
}
|
||||
|
||||
int CreateClusterRequest::getDiskCapacity() const {
|
||||
return diskCapacity_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDiskCapacity(int diskCapacity) {
|
||||
diskCapacity_ = diskCapacity;
|
||||
setParameter(std::string("DiskCapacity"), std::to_string(diskCapacity));
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getDiskType() const {
|
||||
return diskType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setDiskType(const std::string &diskType) {
|
||||
diskType_ = diskType;
|
||||
setParameter(std::string("DiskType"), diskType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getClusterType() const {
|
||||
return clusterType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setClusterType(const std::string &clusterType) {
|
||||
clusterType_ = clusterType;
|
||||
setParameter(std::string("ClusterType"), clusterType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getPubNetworkFlow() const {
|
||||
return pubNetworkFlow_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setPubNetworkFlow(const std::string &pubNetworkFlow) {
|
||||
pubNetworkFlow_ = pubNetworkFlow;
|
||||
setParameter(std::string("PubNetworkFlow"), pubNetworkFlow);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getNetType() const {
|
||||
return netType_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setNetType(const std::string &netType) {
|
||||
netType_ = netType;
|
||||
setParameter(std::string("NetType"), netType);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getMseVersion() const {
|
||||
return mseVersion_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setMseVersion(const std::string &mseVersion) {
|
||||
mseVersion_ = mseVersion;
|
||||
setParameter(std::string("MseVersion"), mseVersion);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateClusterRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void CreateClusterRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
79
mse/src/model/CreateClusterResult.cc
Normal file
79
mse/src/model/CreateClusterResult.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/CreateClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateClusterResult::CreateClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateClusterResult::CreateClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateClusterResult::~CreateClusterResult()
|
||||
{}
|
||||
|
||||
void CreateClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateClusterResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
bool CreateClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/CreateEngineNamespaceRequest.cc
Normal file
81
mse/src/model/CreateEngineNamespaceRequest.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/CreateEngineNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateEngineNamespaceRequest;
|
||||
|
||||
CreateEngineNamespaceRequest::CreateEngineNamespaceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateEngineNamespace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateEngineNamespaceRequest::~CreateEngineNamespaceRequest() {}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
int CreateEngineNamespaceRequest::getServiceCount() const {
|
||||
return serviceCount_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setServiceCount(int serviceCount) {
|
||||
serviceCount_ = serviceCount;
|
||||
setParameter(std::string("ServiceCount"), std::to_string(serviceCount));
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceRequest::getDesc() const {
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateEngineNamespaceRequest::setDesc(const std::string &desc) {
|
||||
desc_ = desc;
|
||||
setParameter(std::string("Desc"), desc);
|
||||
}
|
||||
|
||||
92
mse/src/model/CreateEngineNamespaceResult.cc
Normal file
92
mse/src/model/CreateEngineNamespaceResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/CreateEngineNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateEngineNamespaceResult::CreateEngineNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateEngineNamespaceResult::CreateEngineNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateEngineNamespaceResult::~CreateEngineNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateEngineNamespaceResult::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["Type"].isNull())
|
||||
data_.type = std::stoi(dataNode["Type"].asString());
|
||||
if(!dataNode["NamespaceShowName"].isNull())
|
||||
data_.namespaceShowName = dataNode["NamespaceShowName"].asString();
|
||||
if(!dataNode["Quota"].isNull())
|
||||
data_.quota = std::stoi(dataNode["Quota"].asString());
|
||||
if(!dataNode["Namespace"].isNull())
|
||||
data_._namespace = dataNode["Namespace"].asString();
|
||||
if(!dataNode["NamespaceDesc"].isNull())
|
||||
data_.namespaceDesc = dataNode["NamespaceDesc"].asString();
|
||||
if(!dataNode["ConfigCount"].isNull())
|
||||
data_.configCount = std::stoi(dataNode["ConfigCount"].asString());
|
||||
if(!dataNode["ServiceCount"].isNull())
|
||||
data_.serviceCount = std::stoi(dataNode["ServiceCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ClusterId"].isNull())
|
||||
clusterId_ = value["ClusterId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceResult::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
CreateEngineNamespaceResult::Data CreateEngineNamespaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateEngineNamespaceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateEngineNamespaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
126
mse/src/model/CreateNacosConfigRequest.cc
Normal file
126
mse/src/model/CreateNacosConfigRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/CreateNacosConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateNacosConfigRequest;
|
||||
|
||||
CreateNacosConfigRequest::CreateNacosConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateNacosConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNacosConfigRequest::~CreateNacosConfigRequest() {}
|
||||
|
||||
std::string CreateNacosConfigRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getContent() const {
|
||||
return content_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setContent(const std::string &content) {
|
||||
content_ = content;
|
||||
setParameter(std::string("Content"), content);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getBetaIps() const {
|
||||
return betaIps_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setBetaIps(const std::string &betaIps) {
|
||||
betaIps_ = betaIps;
|
||||
setParameter(std::string("BetaIps"), betaIps);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getDataId() const {
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setDataId(const std::string &dataId) {
|
||||
dataId_ = dataId;
|
||||
setParameter(std::string("DataId"), dataId);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getGroup() const {
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setGroup(const std::string &group) {
|
||||
group_ = group;
|
||||
setParameter(std::string("Group"), group);
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigRequest::getDesc() const {
|
||||
return desc_;
|
||||
}
|
||||
|
||||
void CreateNacosConfigRequest::setDesc(const std::string &desc) {
|
||||
desc_ = desc;
|
||||
setParameter(std::string("Desc"), desc);
|
||||
}
|
||||
|
||||
79
mse/src/model/CreateNacosConfigResult.cc
Normal file
79
mse/src/model/CreateNacosConfigResult.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/CreateNacosConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateNacosConfigResult::CreateNacosConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNacosConfigResult::CreateNacosConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNacosConfigResult::~CreateNacosConfigResult()
|
||||
{}
|
||||
|
||||
void CreateNacosConfigResult::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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateNacosConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateNacosConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
135
mse/src/model/CreateNacosInstanceRequest.cc
Normal file
135
mse/src/model/CreateNacosInstanceRequest.cc
Normal file
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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/CreateNacosInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateNacosInstanceRequest;
|
||||
|
||||
CreateNacosInstanceRequest::CreateNacosInstanceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateNacosInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNacosInstanceRequest::~CreateNacosInstanceRequest() {}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getMetadata() const {
|
||||
return metadata_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setMetadata(const std::string &metadata) {
|
||||
metadata_ = metadata;
|
||||
setBodyParameter(std::string("Metadata"), metadata);
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
bool CreateNacosInstanceRequest::getEphemeral() const {
|
||||
return ephemeral_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setEphemeral(bool ephemeral) {
|
||||
ephemeral_ = ephemeral;
|
||||
setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateNacosInstanceRequest::getEnabled() const {
|
||||
return enabled_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setEnabled(bool enabled) {
|
||||
enabled_ = enabled;
|
||||
setParameter(std::string("Enabled"), enabled ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getIp() const {
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setIp(const std::string &ip) {
|
||||
ip_ = ip;
|
||||
setParameter(std::string("Ip"), ip);
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getWeight() const {
|
||||
return weight_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setWeight(const std::string &weight) {
|
||||
weight_ = weight;
|
||||
setParameter(std::string("Weight"), weight);
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
int CreateNacosInstanceRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateNacosInstanceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
79
mse/src/model/CreateNacosInstanceResult.cc
Normal file
79
mse/src/model/CreateNacosInstanceResult.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/CreateNacosInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateNacosInstanceResult::CreateNacosInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNacosInstanceResult::CreateNacosInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNacosInstanceResult::~CreateNacosInstanceResult()
|
||||
{}
|
||||
|
||||
void CreateNacosInstanceResult::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 CreateNacosInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateNacosInstanceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateNacosInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateNacosInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateNacosInstanceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
99
mse/src/model/CreateNacosServiceRequest.cc
Normal file
99
mse/src/model/CreateNacosServiceRequest.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/CreateNacosServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateNacosServiceRequest;
|
||||
|
||||
CreateNacosServiceRequest::CreateNacosServiceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateNacosService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNacosServiceRequest::~CreateNacosServiceRequest() {}
|
||||
|
||||
bool CreateNacosServiceRequest::getEphemeral() const {
|
||||
return ephemeral_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setEphemeral(bool ephemeral) {
|
||||
ephemeral_ = ephemeral;
|
||||
setParameter(std::string("Ephemeral"), ephemeral ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceRequest::getProtectThreshold() const {
|
||||
return protectThreshold_;
|
||||
}
|
||||
|
||||
void CreateNacosServiceRequest::setProtectThreshold(const std::string &protectThreshold) {
|
||||
protectThreshold_ = protectThreshold;
|
||||
setParameter(std::string("ProtectThreshold"), protectThreshold);
|
||||
}
|
||||
|
||||
79
mse/src/model/CreateNacosServiceResult.cc
Normal file
79
mse/src/model/CreateNacosServiceResult.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/CreateNacosServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateNacosServiceResult::CreateNacosServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNacosServiceResult::CreateNacosServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNacosServiceResult::~CreateNacosServiceResult()
|
||||
{}
|
||||
|
||||
void CreateNacosServiceResult::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["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";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CreateNacosServiceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string CreateNacosServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateNacosServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateNacosServiceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/CreateZnodeRequest.cc
Normal file
63
mse/src/model/CreateZnodeRequest.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/CreateZnodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::CreateZnodeRequest;
|
||||
|
||||
CreateZnodeRequest::CreateZnodeRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "CreateZnode") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateZnodeRequest::~CreateZnodeRequest() {}
|
||||
|
||||
std::string CreateZnodeRequest::getData() const {
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateZnodeRequest::setData(const std::string &data) {
|
||||
data_ = data;
|
||||
setParameter(std::string("Data"), data);
|
||||
}
|
||||
|
||||
std::string CreateZnodeRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void CreateZnodeRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string CreateZnodeRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
void CreateZnodeRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
std::string CreateZnodeRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void CreateZnodeRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
86
mse/src/model/CreateZnodeResult.cc
Normal file
86
mse/src/model/CreateZnodeResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/CreateZnodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
CreateZnodeResult::CreateZnodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateZnodeResult::CreateZnodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateZnodeResult::~CreateZnodeResult()
|
||||
{}
|
||||
|
||||
void CreateZnodeResult::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["Data"].isNull())
|
||||
data_.data = dataNode["Data"].asString();
|
||||
if(!dataNode["Path"].isNull())
|
||||
data_.path = dataNode["Path"].asString();
|
||||
if(!dataNode["Dir"].isNull())
|
||||
data_.dir = dataNode["Dir"].asString() == "true";
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateZnodeResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string CreateZnodeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateZnodeResult::Data CreateZnodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateZnodeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool CreateZnodeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteAlarmRuleRequest.cc
Normal file
54
mse/src/model/DeleteAlarmRuleRequest.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/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);
|
||||
}
|
||||
|
||||
72
mse/src/model/DeleteAlarmRuleResult.cc
Normal file
72
mse/src/model/DeleteAlarmRuleResult.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/DeleteAlarmRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteAlarmRuleResult::DeleteAlarmRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlarmRuleResult::DeleteAlarmRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlarmRuleResult::~DeleteAlarmRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteAlarmRuleResult::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();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteAlarmRuleResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DeleteAlarmRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteAuthResourceRequest.cc
Normal file
54
mse/src/model/DeleteAuthResourceRequest.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/DeleteAuthResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteAuthResourceRequest;
|
||||
|
||||
DeleteAuthResourceRequest::DeleteAuthResourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteAuthResource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteAuthResourceRequest::~DeleteAuthResourceRequest() {}
|
||||
|
||||
std::string DeleteAuthResourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteAuthResourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteAuthResourceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteAuthResourceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long DeleteAuthResourceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteAuthResourceRequest::setId(long id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), std::to_string(id));
|
||||
}
|
||||
|
||||
98
mse/src/model/DeleteAuthResourceResult.cc
Normal file
98
mse/src/model/DeleteAuthResourceResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/DeleteAuthResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteAuthResourceResult::DeleteAuthResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAuthResourceResult::DeleteAuthResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAuthResourceResult::~DeleteAuthResourceResult()
|
||||
{}
|
||||
|
||||
void DeleteAuthResourceResult::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["AuthId"].isNull())
|
||||
data_.authId = std::stol(dataNode["AuthId"].asString());
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["DomainId"].isNull())
|
||||
data_.domainId = std::stol(dataNode["DomainId"].asString());
|
||||
if(!dataNode["DomainName"].isNull())
|
||||
data_.domainName = dataNode["DomainName"].asString();
|
||||
if(!dataNode["Path"].isNull())
|
||||
data_.path = dataNode["Path"].asString();
|
||||
if(!dataNode["IsWhite"].isNull())
|
||||
data_.isWhite = dataNode["IsWhite"].asString() == "true";
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].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 DeleteAuthResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteAuthResourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
DeleteAuthResourceResult::Data DeleteAuthResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteAuthResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteAuthResourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteClusterRequest.cc
Normal file
54
mse/src/model/DeleteClusterRequest.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/DeleteClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteClusterRequest;
|
||||
|
||||
DeleteClusterRequest::DeleteClusterRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteClusterRequest::~DeleteClusterRequest() {}
|
||||
|
||||
std::string DeleteClusterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteClusterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteClusterRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteClusterRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteClusterRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
72
mse/src/model/DeleteClusterResult.cc
Normal file
72
mse/src/model/DeleteClusterResult.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/DeleteClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteClusterResult::DeleteClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteClusterResult::DeleteClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteClusterResult::~DeleteClusterResult()
|
||||
{}
|
||||
|
||||
void DeleteClusterResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteClusterResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteClusterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteClusterResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DeleteClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/DeleteEngineNamespaceRequest.cc
Normal file
63
mse/src/model/DeleteEngineNamespaceRequest.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/DeleteEngineNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteEngineNamespaceRequest;
|
||||
|
||||
DeleteEngineNamespaceRequest::DeleteEngineNamespaceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteEngineNamespace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEngineNamespaceRequest::~DeleteEngineNamespaceRequest() {}
|
||||
|
||||
std::string DeleteEngineNamespaceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteEngineNamespaceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteEngineNamespaceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteEngineNamespaceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteEngineNamespaceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteEngineNamespaceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteEngineNamespaceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteEngineNamespaceRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
72
mse/src/model/DeleteEngineNamespaceResult.cc
Normal file
72
mse/src/model/DeleteEngineNamespaceResult.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/DeleteEngineNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteEngineNamespaceResult::DeleteEngineNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteEngineNamespaceResult::DeleteEngineNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteEngineNamespaceResult::~DeleteEngineNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteEngineNamespaceResult::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();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteEngineNamespaceResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteEngineNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteEngineNamespaceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DeleteEngineNamespaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteGatewayDomainRequest.cc
Normal file
54
mse/src/model/DeleteGatewayDomainRequest.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/DeleteGatewayDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteGatewayDomainRequest;
|
||||
|
||||
DeleteGatewayDomainRequest::DeleteGatewayDomainRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayDomain") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteGatewayDomainRequest::~DeleteGatewayDomainRequest() {}
|
||||
|
||||
std::string DeleteGatewayDomainRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayDomainRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayDomainRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteGatewayDomainRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayDomainRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteGatewayDomainRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
96
mse/src/model/DeleteGatewayDomainResult.cc
Normal file
96
mse/src/model/DeleteGatewayDomainResult.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/DeleteGatewayDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteGatewayDomainResult::DeleteGatewayDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGatewayDomainResult::DeleteGatewayDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGatewayDomainResult::~DeleteGatewayDomainResult()
|
||||
{}
|
||||
|
||||
void DeleteGatewayDomainResult::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["Protocol"].isNull())
|
||||
data_.protocol = dataNode["Protocol"].asString();
|
||||
if(!dataNode["MustHttps"].isNull())
|
||||
data_.mustHttps = dataNode["MustHttps"].asString() == "true";
|
||||
if(!dataNode["CertIdentifier"].isNull())
|
||||
data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].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 DeleteGatewayDomainResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGatewayDomainResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
DeleteGatewayDomainResult::Data DeleteGatewayDomainResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGatewayDomainResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGatewayDomainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteGatewayRequest.cc
Normal file
54
mse/src/model/DeleteGatewayRequest.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/DeleteGatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteGatewayRequest;
|
||||
|
||||
DeleteGatewayRequest::DeleteGatewayRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGateway") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteGatewayRequest::~DeleteGatewayRequest() {}
|
||||
|
||||
bool DeleteGatewayRequest::getDeleteSlb() const {
|
||||
return deleteSlb_;
|
||||
}
|
||||
|
||||
void DeleteGatewayRequest::setDeleteSlb(bool deleteSlb) {
|
||||
deleteSlb_ = deleteSlb;
|
||||
setParameter(std::string("DeleteSlb"), deleteSlb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteGatewayRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
104
mse/src/model/DeleteGatewayResult.cc
Normal file
104
mse/src/model/DeleteGatewayResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/DeleteGatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteGatewayResult::DeleteGatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGatewayResult::DeleteGatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGatewayResult::~DeleteGatewayResult()
|
||||
{}
|
||||
|
||||
void DeleteGatewayResult::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["Region"].isNull())
|
||||
data_.region = dataNode["Region"].asString();
|
||||
if(!dataNode["PrimaryUser"].isNull())
|
||||
data_.primaryUser = dataNode["PrimaryUser"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["Vpc"].isNull())
|
||||
data_.vpc = dataNode["Vpc"].asString();
|
||||
if(!dataNode["Vswitch"].isNull())
|
||||
data_.vswitch = dataNode["Vswitch"].asString();
|
||||
if(!dataNode["SecurityGroup"].isNull())
|
||||
data_.securityGroup = dataNode["SecurityGroup"].asString();
|
||||
if(!dataNode["Spec"].isNull())
|
||||
data_.spec = dataNode["Spec"].asString();
|
||||
if(!dataNode["Replica"].isNull())
|
||||
data_.replica = std::stoi(dataNode["Replica"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].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 DeleteGatewayResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGatewayResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
DeleteGatewayResult::Data DeleteGatewayResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGatewayResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGatewayResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/DeleteGatewayServiceVersionRequest.cc
Normal file
63
mse/src/model/DeleteGatewayServiceVersionRequest.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/DeleteGatewayServiceVersionRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteGatewayServiceVersionRequest;
|
||||
|
||||
DeleteGatewayServiceVersionRequest::DeleteGatewayServiceVersionRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewayServiceVersion") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteGatewayServiceVersionRequest::~DeleteGatewayServiceVersionRequest() {}
|
||||
|
||||
std::string DeleteGatewayServiceVersionRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceVersionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayServiceVersionRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceVersionRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
std::string DeleteGatewayServiceVersionRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceVersionRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long DeleteGatewayServiceVersionRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DeleteGatewayServiceVersionRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
79
mse/src/model/DeleteGatewayServiceVersionResult.cc
Normal file
79
mse/src/model/DeleteGatewayServiceVersionResult.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/DeleteGatewayServiceVersionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteGatewayServiceVersionResult::DeleteGatewayServiceVersionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGatewayServiceVersionResult::DeleteGatewayServiceVersionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGatewayServiceVersionResult::~DeleteGatewayServiceVersionResult()
|
||||
{}
|
||||
|
||||
void DeleteGatewayServiceVersionResult::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_ = std::stol(value["Data"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteGatewayServiceVersionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGatewayServiceVersionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
long DeleteGatewayServiceVersionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGatewayServiceVersionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGatewayServiceVersionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/DeleteGatewaySlbRequest.cc
Normal file
63
mse/src/model/DeleteGatewaySlbRequest.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/DeleteGatewaySlbRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteGatewaySlbRequest;
|
||||
|
||||
DeleteGatewaySlbRequest::DeleteGatewaySlbRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteGatewaySlb") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteGatewaySlbRequest::~DeleteGatewaySlbRequest() {}
|
||||
|
||||
bool DeleteGatewaySlbRequest::getDeleteSlb() const {
|
||||
return deleteSlb_;
|
||||
}
|
||||
|
||||
void DeleteGatewaySlbRequest::setDeleteSlb(bool deleteSlb) {
|
||||
deleteSlb_ = deleteSlb;
|
||||
setParameter(std::string("DeleteSlb"), deleteSlb ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteGatewaySlbRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteGatewaySlbRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteGatewaySlbRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteGatewaySlbRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteGatewaySlbRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteGatewaySlbRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
79
mse/src/model/DeleteGatewaySlbResult.cc
Normal file
79
mse/src/model/DeleteGatewaySlbResult.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/DeleteGatewaySlbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteGatewaySlbResult::DeleteGatewaySlbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteGatewaySlbResult::DeleteGatewaySlbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteGatewaySlbResult::~DeleteGatewaySlbResult()
|
||||
{}
|
||||
|
||||
void DeleteGatewaySlbResult::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 DeleteGatewaySlbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteGatewaySlbResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteGatewaySlbResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteGatewaySlbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteGatewaySlbResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/DeleteNacosConfigRequest.cc
Normal file
81
mse/src/model/DeleteNacosConfigRequest.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/DeleteNacosConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteNacosConfigRequest;
|
||||
|
||||
DeleteNacosConfigRequest::DeleteNacosConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteNacosConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNacosConfigRequest::~DeleteNacosConfigRequest() {}
|
||||
|
||||
std::string DeleteNacosConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigRequest::getDataId() const {
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigRequest::setDataId(const std::string &dataId) {
|
||||
dataId_ = dataId;
|
||||
setParameter(std::string("DataId"), dataId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
bool DeleteNacosConfigRequest::getBeta() const {
|
||||
return beta_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigRequest::setBeta(bool beta) {
|
||||
beta_ = beta;
|
||||
setParameter(std::string("Beta"), beta ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigRequest::getGroup() const {
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigRequest::setGroup(const std::string &group) {
|
||||
group_ = group;
|
||||
setParameter(std::string("Group"), group);
|
||||
}
|
||||
|
||||
79
mse/src/model/DeleteNacosConfigResult.cc
Normal file
79
mse/src/model/DeleteNacosConfigResult.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/DeleteNacosConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteNacosConfigResult::DeleteNacosConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNacosConfigResult::DeleteNacosConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNacosConfigResult::~DeleteNacosConfigResult()
|
||||
{}
|
||||
|
||||
void DeleteNacosConfigResult::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();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteNacosConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/DeleteNacosConfigsRequest.cc
Normal file
63
mse/src/model/DeleteNacosConfigsRequest.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/DeleteNacosConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteNacosConfigsRequest;
|
||||
|
||||
DeleteNacosConfigsRequest::DeleteNacosConfigsRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteNacosConfigs") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNacosConfigsRequest::~DeleteNacosConfigsRequest() {}
|
||||
|
||||
std::string DeleteNacosConfigsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigsRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigsRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigsRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigsRequest::getIds() const {
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void DeleteNacosConfigsRequest::setIds(const std::string &ids) {
|
||||
ids_ = ids;
|
||||
setParameter(std::string("Ids"), ids);
|
||||
}
|
||||
|
||||
79
mse/src/model/DeleteNacosConfigsResult.cc
Normal file
79
mse/src/model/DeleteNacosConfigsResult.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/DeleteNacosConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteNacosConfigsResult::DeleteNacosConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNacosConfigsResult::DeleteNacosConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNacosConfigsResult::~DeleteNacosConfigsResult()
|
||||
{}
|
||||
|
||||
void DeleteNacosConfigsResult::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();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigsResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosConfigsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
int DeleteNacosConfigsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteNacosConfigsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
mse/src/model/DeleteNacosServiceRequest.cc
Normal file
72
mse/src/model/DeleteNacosServiceRequest.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/DeleteNacosServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteNacosServiceRequest;
|
||||
|
||||
DeleteNacosServiceRequest::DeleteNacosServiceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteNacosService") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteNacosServiceRequest::~DeleteNacosServiceRequest() {}
|
||||
|
||||
std::string DeleteNacosServiceRequest::getGroupName() const {
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void DeleteNacosServiceRequest::setGroupName(const std::string &groupName) {
|
||||
groupName_ = groupName;
|
||||
setParameter(std::string("GroupName"), groupName);
|
||||
}
|
||||
|
||||
std::string DeleteNacosServiceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosServiceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosServiceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNacosServiceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string DeleteNacosServiceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteNacosServiceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string DeleteNacosServiceRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteNacosServiceRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
79
mse/src/model/DeleteNacosServiceResult.cc
Normal file
79
mse/src/model/DeleteNacosServiceResult.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/DeleteNacosServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteNacosServiceResult::DeleteNacosServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNacosServiceResult::DeleteNacosServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNacosServiceResult::~DeleteNacosServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteNacosServiceResult::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 DeleteNacosServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteNacosServiceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNacosServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int DeleteNacosServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteNacosServiceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/DeleteServiceSourceRequest.cc
Normal file
54
mse/src/model/DeleteServiceSourceRequest.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/DeleteServiceSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteServiceSourceRequest;
|
||||
|
||||
DeleteServiceSourceRequest::DeleteServiceSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteServiceSource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DeleteServiceSourceRequest::~DeleteServiceSourceRequest() {}
|
||||
|
||||
long DeleteServiceSourceRequest::getSourceId() const {
|
||||
return sourceId_;
|
||||
}
|
||||
|
||||
void DeleteServiceSourceRequest::setSourceId(long sourceId) {
|
||||
sourceId_ = sourceId;
|
||||
setParameter(std::string("SourceId"), std::to_string(sourceId));
|
||||
}
|
||||
|
||||
std::string DeleteServiceSourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void DeleteServiceSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string DeleteServiceSourceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteServiceSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
72
mse/src/model/DeleteServiceSourceResult.cc
Normal file
72
mse/src/model/DeleteServiceSourceResult.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/DeleteServiceSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteServiceSourceResult::DeleteServiceSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceSourceResult::DeleteServiceSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceSourceResult::~DeleteServiceSourceResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceSourceResult::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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceSourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteServiceSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
int DeleteServiceSourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteServiceSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/DeleteZnodeRequest.cc
Normal file
63
mse/src/model/DeleteZnodeRequest.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/DeleteZnodeRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::DeleteZnodeRequest;
|
||||
|
||||
DeleteZnodeRequest::DeleteZnodeRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "DeleteZnode") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteZnodeRequest::~DeleteZnodeRequest() {}
|
||||
|
||||
std::string DeleteZnodeRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DeleteZnodeRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string DeleteZnodeRequest::getPath() const {
|
||||
return path_;
|
||||
}
|
||||
|
||||
void DeleteZnodeRequest::setPath(const std::string &path) {
|
||||
path_ = path;
|
||||
setParameter(std::string("Path"), path);
|
||||
}
|
||||
|
||||
std::string DeleteZnodeRequest::getRequestPars() const {
|
||||
return requestPars_;
|
||||
}
|
||||
|
||||
void DeleteZnodeRequest::setRequestPars(const std::string &requestPars) {
|
||||
requestPars_ = requestPars;
|
||||
setParameter(std::string("RequestPars"), requestPars);
|
||||
}
|
||||
|
||||
std::string DeleteZnodeRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void DeleteZnodeRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
86
mse/src/model/DeleteZnodeResult.cc
Normal file
86
mse/src/model/DeleteZnodeResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/DeleteZnodeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
DeleteZnodeResult::DeleteZnodeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteZnodeResult::DeleteZnodeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteZnodeResult::~DeleteZnodeResult()
|
||||
{}
|
||||
|
||||
void DeleteZnodeResult::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["Data"].isNull())
|
||||
data_.data = dataNode["Data"].asString();
|
||||
if(!dataNode["Path"].isNull())
|
||||
data_.path = dataNode["Path"].asString();
|
||||
if(!dataNode["Dir"].isNull())
|
||||
data_.dir = dataNode["Dir"].asString() == "true";
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!value["HttpCode"].isNull())
|
||||
httpCode_ = value["HttpCode"].asString();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteZnodeResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string DeleteZnodeResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteZnodeResult::Data DeleteZnodeResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteZnodeResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool DeleteZnodeResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
90
mse/src/model/ExportNacosConfigRequest.cc
Normal file
90
mse/src/model/ExportNacosConfigRequest.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/ExportNacosConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ExportNacosConfigRequest;
|
||||
|
||||
ExportNacosConfigRequest::ExportNacosConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ExportNacosConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExportNacosConfigRequest::~ExportNacosConfigRequest() {}
|
||||
|
||||
std::string ExportNacosConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigRequest::getDataId() const {
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setDataId(const std::string &dataId) {
|
||||
dataId_ = dataId;
|
||||
setParameter(std::string("DataId"), dataId);
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigRequest::getIds() const {
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setIds(const std::string &ids) {
|
||||
ids_ = ids;
|
||||
setParameter(std::string("Ids"), ids);
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigRequest::getGroup() const {
|
||||
return group_;
|
||||
}
|
||||
|
||||
void ExportNacosConfigRequest::setGroup(const std::string &group) {
|
||||
group_ = group;
|
||||
setParameter(std::string("Group"), group);
|
||||
}
|
||||
|
||||
94
mse/src/model/ExportNacosConfigResult.cc
Normal file
94
mse/src/model/ExportNacosConfigResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/ExportNacosConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ExportNacosConfigResult::ExportNacosConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ExportNacosConfigResult::ExportNacosConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ExportNacosConfigResult::~ExportNacosConfigResult()
|
||||
{}
|
||||
|
||||
void ExportNacosConfigResult::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["Url"].isNull())
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ExportNacosConfigResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ExportNacosConfigResult::Data ExportNacosConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ExportNacosConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
int ExportNacosConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ExportNacosConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/GetBlackWhiteListRequest.cc
Normal file
63
mse/src/model/GetBlackWhiteListRequest.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/GetBlackWhiteListRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetBlackWhiteListRequest;
|
||||
|
||||
GetBlackWhiteListRequest::GetBlackWhiteListRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetBlackWhiteList") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetBlackWhiteListRequest::~GetBlackWhiteListRequest() {}
|
||||
|
||||
std::string GetBlackWhiteListRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetBlackWhiteListRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetBlackWhiteListRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void GetBlackWhiteListRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
std::string GetBlackWhiteListRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void GetBlackWhiteListRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
std::string GetBlackWhiteListRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetBlackWhiteListRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
100
mse/src/model/GetBlackWhiteListResult.cc
Normal file
100
mse/src/model/GetBlackWhiteListResult.cc
Normal file
@@ -0,0 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/GetBlackWhiteListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetBlackWhiteListResult::GetBlackWhiteListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBlackWhiteListResult::GetBlackWhiteListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBlackWhiteListResult::~GetBlackWhiteListResult()
|
||||
{}
|
||||
|
||||
void GetBlackWhiteListResult::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["ResourceId"].isNull())
|
||||
data_.resourceId = std::stol(dataNode["ResourceId"].asString());
|
||||
if(!dataNode["ResourceType"].isNull())
|
||||
data_.resourceType = dataNode["ResourceType"].asString();
|
||||
if(!dataNode["Content"].isNull())
|
||||
data_.content = dataNode["Content"].asString();
|
||||
if(!dataNode["Type"].isNull())
|
||||
data_.type = dataNode["Type"].asString();
|
||||
if(!dataNode["IsWhite"].isNull())
|
||||
data_.isWhite = dataNode["IsWhite"].asString() == "true";
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = dataNode["Status"].asString();
|
||||
if(!dataNode["GatewayId"].isNull())
|
||||
data_.gatewayId = std::stol(dataNode["GatewayId"].asString());
|
||||
if(!dataNode["GatewayUniqueId"].isNull())
|
||||
data_.gatewayUniqueId = dataNode["GatewayUniqueId"].asString();
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].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 GetBlackWhiteListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetBlackWhiteListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetBlackWhiteListResult::Data GetBlackWhiteListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetBlackWhiteListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetBlackWhiteListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/GetEngineNamepaceRequest.cc
Normal file
63
mse/src/model/GetEngineNamepaceRequest.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/GetEngineNamepaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetEngineNamepaceRequest;
|
||||
|
||||
GetEngineNamepaceRequest::GetEngineNamepaceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetEngineNamepace") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEngineNamepaceRequest::~GetEngineNamepaceRequest() {}
|
||||
|
||||
std::string GetEngineNamepaceRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetEngineNamepaceRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetEngineNamepaceRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetEngineNamepaceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetEngineNamepaceRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
114
mse/src/model/GetEngineNamepaceResult.cc
Normal file
114
mse/src/model/GetEngineNamepaceResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/GetEngineNamepaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetEngineNamepaceResult::GetEngineNamepaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetEngineNamepaceResult::GetEngineNamepaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetEngineNamepaceResult::~GetEngineNamepaceResult()
|
||||
{}
|
||||
|
||||
void GetEngineNamepaceResult::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();
|
||||
if(!value["Type"].isNull())
|
||||
type_ = value["Type"].asString();
|
||||
if(!value["Quota"].isNull())
|
||||
quota_ = value["Quota"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ConfigCount"].isNull())
|
||||
configCount_ = value["ConfigCount"].asString();
|
||||
if(!value["NamespaceShowName"].isNull())
|
||||
namespaceShowName_ = value["NamespaceShowName"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["NamespaceDesc"].isNull())
|
||||
namespaceDesc_ = value["NamespaceDesc"].asString();
|
||||
if(!value["Namespace"].isNull())
|
||||
_namespace_ = value["Namespace"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getQuota()const
|
||||
{
|
||||
return quota_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getConfigCount()const
|
||||
{
|
||||
return configCount_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getNamespaceShowName()const
|
||||
{
|
||||
return namespaceShowName_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetEngineNamepaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GetEngineNamepaceResult::getNamespaceDesc()const
|
||||
{
|
||||
return namespaceDesc_;
|
||||
}
|
||||
|
||||
54
mse/src/model/GetGatewayDomainDetailRequest.cc
Normal file
54
mse/src/model/GetGatewayDomainDetailRequest.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/GetGatewayDomainDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGatewayDomainDetailRequest;
|
||||
|
||||
GetGatewayDomainDetailRequest::GetGatewayDomainDetailRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayDomainDetail") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetGatewayDomainDetailRequest::~GetGatewayDomainDetailRequest() {}
|
||||
|
||||
std::string GetGatewayDomainDetailRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetGatewayDomainDetailRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetGatewayDomainDetailRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGatewayDomainDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetGatewayDomainDetailRequest::getId() const {
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetGatewayDomainDetailRequest::setId(const std::string &id) {
|
||||
id_ = id;
|
||||
setParameter(std::string("Id"), id);
|
||||
}
|
||||
|
||||
114
mse/src/model/GetGatewayDomainDetailResult.cc
Normal file
114
mse/src/model/GetGatewayDomainDetailResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/GetGatewayDomainDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGatewayDomainDetailResult::GetGatewayDomainDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGatewayDomainDetailResult::GetGatewayDomainDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGatewayDomainDetailResult::~GetGatewayDomainDetailResult()
|
||||
{}
|
||||
|
||||
void GetGatewayDomainDetailResult::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["Protocol"].isNull())
|
||||
data_.protocol = dataNode["Protocol"].asString();
|
||||
if(!dataNode["MustHttps"].isNull())
|
||||
data_.mustHttps = dataNode["MustHttps"].asString() == "true";
|
||||
if(!dataNode["CertIdentifier"].isNull())
|
||||
data_.certIdentifier = std::stoi(dataNode["CertIdentifier"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["CertName"].isNull())
|
||||
data_.certName = dataNode["CertName"].asString();
|
||||
if(!dataNode["CommonName"].isNull())
|
||||
data_.commonName = dataNode["CommonName"].asString();
|
||||
if(!dataNode["Sans"].isNull())
|
||||
data_.sans = dataNode["Sans"].asString();
|
||||
if(!dataNode["BeforeDate"].isNull())
|
||||
data_.beforeDate = std::stol(dataNode["BeforeDate"].asString());
|
||||
if(!dataNode["AfterDate"].isNull())
|
||||
data_.afterDate = std::stol(dataNode["AfterDate"].asString());
|
||||
if(!dataNode["Algorithm"].isNull())
|
||||
data_.algorithm = dataNode["Algorithm"].asString();
|
||||
if(!dataNode["Issuer"].isNull())
|
||||
data_.issuer = dataNode["Issuer"].asString();
|
||||
if(!dataNode["GmtBefore"].isNull())
|
||||
data_.gmtBefore = dataNode["GmtBefore"].asString();
|
||||
if(!dataNode["GmtAfter"].isNull())
|
||||
data_.gmtAfter = dataNode["GmtAfter"].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 GetGatewayDomainDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGatewayDomainDetailResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGatewayDomainDetailResult::Data GetGatewayDomainDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGatewayDomainDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGatewayDomainDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/GetGatewayOptionRequest.cc
Normal file
54
mse/src/model/GetGatewayOptionRequest.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/GetGatewayOptionRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGatewayOptionRequest;
|
||||
|
||||
GetGatewayOptionRequest::GetGatewayOptionRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayOption") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGatewayOptionRequest::~GetGatewayOptionRequest() {}
|
||||
|
||||
std::string GetGatewayOptionRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetGatewayOptionRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetGatewayOptionRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGatewayOptionRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long GetGatewayOptionRequest::getGatewayId() const {
|
||||
return gatewayId_;
|
||||
}
|
||||
|
||||
void GetGatewayOptionRequest::setGatewayId(long gatewayId) {
|
||||
gatewayId_ = gatewayId;
|
||||
setParameter(std::string("GatewayId"), std::to_string(gatewayId));
|
||||
}
|
||||
|
||||
90
mse/src/model/GetGatewayOptionResult.cc
Normal file
90
mse/src/model/GetGatewayOptionResult.cc
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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/GetGatewayOptionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGatewayOptionResult::GetGatewayOptionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGatewayOptionResult::GetGatewayOptionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGatewayOptionResult::~GetGatewayOptionResult()
|
||||
{}
|
||||
|
||||
void GetGatewayOptionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto traceDetailsNode = dataNode["TraceDetails"];
|
||||
if(!traceDetailsNode["TraceEnabled"].isNull())
|
||||
data_.traceDetails.traceEnabled = traceDetailsNode["TraceEnabled"].asString() == "true";
|
||||
if(!traceDetailsNode["Sample"].isNull())
|
||||
data_.traceDetails.sample = std::stol(traceDetailsNode["Sample"].asString());
|
||||
auto logConfigDetailsNode = dataNode["LogConfigDetails"];
|
||||
if(!logConfigDetailsNode["LogEnabled"].isNull())
|
||||
data_.logConfigDetails.logEnabled = logConfigDetailsNode["LogEnabled"].asString() == "true";
|
||||
if(!logConfigDetailsNode["ProjectName"].isNull())
|
||||
data_.logConfigDetails.projectName = logConfigDetailsNode["ProjectName"].asString();
|
||||
if(!logConfigDetailsNode["LogStoreName"].isNull())
|
||||
data_.logConfigDetails.logStoreName = logConfigDetailsNode["LogStoreName"].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 GetGatewayOptionResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGatewayOptionResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGatewayOptionResult::Data GetGatewayOptionResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGatewayOptionResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGatewayOptionResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
mse/src/model/GetGatewayRequest.cc
Normal file
45
mse/src/model/GetGatewayRequest.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/GetGatewayRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGatewayRequest;
|
||||
|
||||
GetGatewayRequest::GetGatewayRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGateway") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetGatewayRequest::~GetGatewayRequest() {}
|
||||
|
||||
std::string GetGatewayRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetGatewayRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetGatewayRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGatewayRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
124
mse/src/model/GetGatewayResult.cc
Normal file
124
mse/src/model/GetGatewayResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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/GetGatewayResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGatewayResult::GetGatewayResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGatewayResult::GetGatewayResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGatewayResult::~GetGatewayResult()
|
||||
{}
|
||||
|
||||
void GetGatewayResult::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["Region"].isNull())
|
||||
data_.region = dataNode["Region"].asString();
|
||||
if(!dataNode["PrimaryUser"].isNull())
|
||||
data_.primaryUser = dataNode["PrimaryUser"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["Vpc"].isNull())
|
||||
data_.vpc = dataNode["Vpc"].asString();
|
||||
if(!dataNode["Vswitch"].isNull())
|
||||
data_.vswitch = dataNode["Vswitch"].asString();
|
||||
if(!dataNode["SecurityGroup"].isNull())
|
||||
data_.securityGroup = dataNode["SecurityGroup"].asString();
|
||||
if(!dataNode["Spec"].isNull())
|
||||
data_.spec = dataNode["Spec"].asString();
|
||||
if(!dataNode["Replica"].isNull())
|
||||
data_.replica = std::stoi(dataNode["Replica"].asString());
|
||||
if(!dataNode["GmtCreate"].isNull())
|
||||
data_.gmtCreate = dataNode["GmtCreate"].asString();
|
||||
if(!dataNode["GmtModified"].isNull())
|
||||
data_.gmtModified = dataNode["GmtModified"].asString();
|
||||
if(!dataNode["Vswitch2"].isNull())
|
||||
data_.vswitch2 = dataNode["Vswitch2"].asString();
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = dataNode["InstanceId"].asString();
|
||||
if(!dataNode["ChargeType"].isNull())
|
||||
data_.chargeType = dataNode["ChargeType"].asString();
|
||||
if(!dataNode["EndDate"].isNull())
|
||||
data_.endDate = dataNode["EndDate"].asString();
|
||||
auto xtraceDetailsNode = dataNode["XtraceDetails"];
|
||||
if(!xtraceDetailsNode["Sample"].isNull())
|
||||
data_.xtraceDetails.sample = std::stoi(xtraceDetailsNode["Sample"].asString());
|
||||
if(!xtraceDetailsNode["TraceOn"].isNull())
|
||||
data_.xtraceDetails.traceOn = xtraceDetailsNode["TraceOn"].asString() == "true";
|
||||
auto logConfigDetailsNode = dataNode["LogConfigDetails"];
|
||||
if(!logConfigDetailsNode["LogEnabled"].isNull())
|
||||
data_.logConfigDetails.logEnabled = logConfigDetailsNode["LogEnabled"].asString() == "true";
|
||||
if(!logConfigDetailsNode["ProjectName"].isNull())
|
||||
data_.logConfigDetails.projectName = logConfigDetailsNode["ProjectName"].asString();
|
||||
if(!logConfigDetailsNode["LogStoreName"].isNull())
|
||||
data_.logConfigDetails.logStoreName = logConfigDetailsNode["LogStoreName"].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 GetGatewayResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGatewayResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGatewayResult::Data GetGatewayResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGatewayResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGatewayResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/GetGatewayServiceDetailRequest.cc
Normal file
54
mse/src/model/GetGatewayServiceDetailRequest.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/GetGatewayServiceDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGatewayServiceDetailRequest;
|
||||
|
||||
GetGatewayServiceDetailRequest::GetGatewayServiceDetailRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGatewayServiceDetail") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetGatewayServiceDetailRequest::~GetGatewayServiceDetailRequest() {}
|
||||
|
||||
std::string GetGatewayServiceDetailRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetGatewayServiceDetailRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetGatewayServiceDetailRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGatewayServiceDetailRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
long GetGatewayServiceDetailRequest::getServiceId() const {
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void GetGatewayServiceDetailRequest::setServiceId(long serviceId) {
|
||||
serviceId_ = serviceId;
|
||||
setParameter(std::string("ServiceId"), std::to_string(serviceId));
|
||||
}
|
||||
|
||||
176
mse/src/model/GetGatewayServiceDetailResult.cc
Normal file
176
mse/src/model/GetGatewayServiceDetailResult.cc
Normal file
@@ -0,0 +1,176 @@
|
||||
/*
|
||||
* 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/GetGatewayServiceDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGatewayServiceDetailResult::GetGatewayServiceDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGatewayServiceDetailResult::GetGatewayServiceDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGatewayServiceDetailResult::~GetGatewayServiceDetailResult()
|
||||
{}
|
||||
|
||||
void GetGatewayServiceDetailResult::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 allVersionsNode = dataNode["Versions"]["VersionsItem"];
|
||||
for (auto dataNodeVersionsVersionsItem : allVersionsNode)
|
||||
{
|
||||
Data::VersionsItem versionsItemObject;
|
||||
if(!dataNodeVersionsVersionsItem["Label"].isNull())
|
||||
versionsItemObject.label = dataNodeVersionsVersionsItem["Label"].asString();
|
||||
if(!dataNodeVersionsVersionsItem["Value"].isNull())
|
||||
versionsItemObject.value = dataNodeVersionsVersionsItem["Value"].asString();
|
||||
if(!dataNodeVersionsVersionsItem["Type"].isNull())
|
||||
versionsItemObject.type = dataNodeVersionsVersionsItem["Type"].asString();
|
||||
data_.versions.push_back(versionsItemObject);
|
||||
}
|
||||
auto allLabelDetailsNode = dataNode["LabelDetails"]["LabelDetailsItem"];
|
||||
for (auto dataNodeLabelDetailsLabelDetailsItem : allLabelDetailsNode)
|
||||
{
|
||||
Data::LabelDetailsItem labelDetailsItemObject;
|
||||
if(!dataNodeLabelDetailsLabelDetailsItem["Key"].isNull())
|
||||
labelDetailsItemObject.key = dataNodeLabelDetailsLabelDetailsItem["Key"].asString();
|
||||
auto allValues = value["Values"]["values"];
|
||||
for (auto value : allValues)
|
||||
labelDetailsItemObject.values.push_back(value.asString());
|
||||
data_.labelDetails.push_back(labelDetailsItemObject);
|
||||
}
|
||||
auto allVersionDetailsNode = dataNode["VersionDetails"]["VersionDetailsItem"];
|
||||
for (auto dataNodeVersionDetailsVersionDetailsItem : allVersionDetailsNode)
|
||||
{
|
||||
Data::VersionDetailsItem versionDetailsItemObject;
|
||||
if(!dataNodeVersionDetailsVersionDetailsItem["EndpointNum"].isNull())
|
||||
versionDetailsItemObject.endpointNum = std::stoi(dataNodeVersionDetailsVersionDetailsItem["EndpointNum"].asString());
|
||||
if(!dataNodeVersionDetailsVersionDetailsItem["EndpointNumPercent"].isNull())
|
||||
versionDetailsItemObject.endpointNumPercent = dataNodeVersionDetailsVersionDetailsItem["EndpointNumPercent"].asString();
|
||||
auto serviceVersionNode = value["ServiceVersion"];
|
||||
if(!serviceVersionNode["Name"].isNull())
|
||||
versionDetailsItemObject.serviceVersion.name = serviceVersionNode["Name"].asString();
|
||||
auto allLabelsNode = serviceVersionNode["Labels"]["LabelsItem"];
|
||||
for (auto serviceVersionNodeLabelsLabelsItem : allLabelsNode)
|
||||
{
|
||||
Data::VersionDetailsItem::ServiceVersion::LabelsItem labelsItemObject;
|
||||
if(!serviceVersionNodeLabelsLabelsItem["Key"].isNull())
|
||||
labelsItemObject.key = serviceVersionNodeLabelsLabelsItem["Key"].asString();
|
||||
if(!serviceVersionNodeLabelsLabelsItem["Value"].isNull())
|
||||
labelsItemObject.value = serviceVersionNodeLabelsLabelsItem["Value"].asString();
|
||||
versionDetailsItemObject.serviceVersion.labels.push_back(labelsItemObject);
|
||||
}
|
||||
data_.versionDetails.push_back(versionDetailsItemObject);
|
||||
}
|
||||
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();
|
||||
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 GetGatewayServiceDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGatewayServiceDetailResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGatewayServiceDetailResult::Data GetGatewayServiceDetailResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGatewayServiceDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGatewayServiceDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
mse/src/model/GetGovernanceKubernetesClusterListRequest.cc
Normal file
72
mse/src/model/GetGovernanceKubernetesClusterListRequest.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/GetGovernanceKubernetesClusterListRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGovernanceKubernetesClusterListRequest;
|
||||
|
||||
GetGovernanceKubernetesClusterListRequest::GetGovernanceKubernetesClusterListRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGovernanceKubernetesClusterList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGovernanceKubernetesClusterListRequest::~GetGovernanceKubernetesClusterListRequest() {}
|
||||
|
||||
std::string GetGovernanceKubernetesClusterListRequest::getClusterName() const {
|
||||
return clusterName_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterListRequest::setClusterName(const std::string &clusterName) {
|
||||
clusterName_ = clusterName;
|
||||
setParameter(std::string("ClusterName"), clusterName);
|
||||
}
|
||||
|
||||
std::string GetGovernanceKubernetesClusterListRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterListRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
int GetGovernanceKubernetesClusterListRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterListRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int GetGovernanceKubernetesClusterListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterListRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string GetGovernanceKubernetesClusterListRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterListRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
102
mse/src/model/GetGovernanceKubernetesClusterListResult.cc
Normal file
102
mse/src/model/GetGovernanceKubernetesClusterListResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/GetGovernanceKubernetesClusterListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGovernanceKubernetesClusterListResult::GetGovernanceKubernetesClusterListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGovernanceKubernetesClusterListResult::GetGovernanceKubernetesClusterListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGovernanceKubernetesClusterListResult::~GetGovernanceKubernetesClusterListResult()
|
||||
{}
|
||||
|
||||
void GetGovernanceKubernetesClusterListResult::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"]["ClusterList"];
|
||||
for (auto dataNodeResultClusterList : allResultNode)
|
||||
{
|
||||
Data::ClusterList clusterListObject;
|
||||
if(!dataNodeResultClusterList["ClusterName"].isNull())
|
||||
clusterListObject.clusterName = dataNodeResultClusterList["ClusterName"].asString();
|
||||
if(!dataNodeResultClusterList["ClusterId"].isNull())
|
||||
clusterListObject.clusterId = dataNodeResultClusterList["ClusterId"].asString();
|
||||
if(!dataNodeResultClusterList["Region"].isNull())
|
||||
clusterListObject.region = dataNodeResultClusterList["Region"].asString();
|
||||
if(!dataNodeResultClusterList["K8sVersion"].isNull())
|
||||
clusterListObject.k8sVersion = dataNodeResultClusterList["K8sVersion"].asString();
|
||||
if(!dataNodeResultClusterList["NamespaceInfos"].isNull())
|
||||
clusterListObject.namespaceInfos = dataNodeResultClusterList["NamespaceInfos"].asString();
|
||||
if(!dataNodeResultClusterList["PilotStartTime"].isNull())
|
||||
clusterListObject.pilotStartTime = dataNodeResultClusterList["PilotStartTime"].asString();
|
||||
data_.result.push_back(clusterListObject);
|
||||
}
|
||||
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 GetGovernanceKubernetesClusterListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGovernanceKubernetesClusterListResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGovernanceKubernetesClusterListResult::Data GetGovernanceKubernetesClusterListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGovernanceKubernetesClusterListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGovernanceKubernetesClusterListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/GetGovernanceKubernetesClusterRequest.cc
Normal file
54
mse/src/model/GetGovernanceKubernetesClusterRequest.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/GetGovernanceKubernetesClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetGovernanceKubernetesClusterRequest;
|
||||
|
||||
GetGovernanceKubernetesClusterRequest::GetGovernanceKubernetesClusterRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetGovernanceKubernetesCluster") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetGovernanceKubernetesClusterRequest::~GetGovernanceKubernetesClusterRequest() {}
|
||||
|
||||
std::string GetGovernanceKubernetesClusterRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterRequest::setClusterId(const std::string &clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), clusterId);
|
||||
}
|
||||
|
||||
std::string GetGovernanceKubernetesClusterRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
std::string GetGovernanceKubernetesClusterRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetGovernanceKubernetesClusterRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
102
mse/src/model/GetGovernanceKubernetesClusterResult.cc
Normal file
102
mse/src/model/GetGovernanceKubernetesClusterResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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/GetGovernanceKubernetesClusterResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetGovernanceKubernetesClusterResult::GetGovernanceKubernetesClusterResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetGovernanceKubernetesClusterResult::GetGovernanceKubernetesClusterResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetGovernanceKubernetesClusterResult::~GetGovernanceKubernetesClusterResult()
|
||||
{}
|
||||
|
||||
void GetGovernanceKubernetesClusterResult::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["ClusterId"].isNull())
|
||||
data_.clusterId = dataNode["ClusterId"].asString();
|
||||
if(!dataNode["ClusterName"].isNull())
|
||||
data_.clusterName = dataNode["ClusterName"].asString();
|
||||
if(!dataNode["Region"].isNull())
|
||||
data_.region = dataNode["Region"].asString();
|
||||
if(!dataNode["K8sVersion"].isNull())
|
||||
data_.k8sVersion = dataNode["K8sVersion"].asString();
|
||||
if(!dataNode["NamespaceInfos"].isNull())
|
||||
data_.namespaceInfos = dataNode["NamespaceInfos"].asString();
|
||||
if(!dataNode["PilotStartTime"].isNull())
|
||||
data_.pilotStartTime = dataNode["PilotStartTime"].asString();
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = dataNode["UpdateTime"].asString();
|
||||
auto allNamespacesNode = dataNode["Namespaces"]["KubernetesNamespace"];
|
||||
for (auto dataNodeNamespacesKubernetesNamespace : allNamespacesNode)
|
||||
{
|
||||
Data::KubernetesNamespace kubernetesNamespaceObject;
|
||||
if(!dataNodeNamespacesKubernetesNamespace["Name"].isNull())
|
||||
kubernetesNamespaceObject.name = dataNodeNamespacesKubernetesNamespace["Name"].asString();
|
||||
if(!dataNodeNamespacesKubernetesNamespace["Tags"].isNull())
|
||||
kubernetesNamespaceObject.tags = dataNodeNamespacesKubernetesNamespace["Tags"].asString();
|
||||
data_.namespaces.push_back(kubernetesNamespaceObject);
|
||||
}
|
||||
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 GetGovernanceKubernetesClusterResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetGovernanceKubernetesClusterResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetGovernanceKubernetesClusterResult::Data GetGovernanceKubernetesClusterResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetGovernanceKubernetesClusterResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetGovernanceKubernetesClusterResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
mse/src/model/GetImageRequest.cc
Normal file
45
mse/src/model/GetImageRequest.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/GetImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetImageRequest;
|
||||
|
||||
GetImageRequest::GetImageRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetImage") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImageRequest::~GetImageRequest() {}
|
||||
|
||||
std::string GetImageRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetImageRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetImageRequest::getVersionCode() const {
|
||||
return versionCode_;
|
||||
}
|
||||
|
||||
void GetImageRequest::setVersionCode(const std::string &versionCode) {
|
||||
versionCode_ = versionCode;
|
||||
setParameter(std::string("VersionCode"), versionCode);
|
||||
}
|
||||
|
||||
86
mse/src/model/GetImageResult.cc
Normal file
86
mse/src/model/GetImageResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/mse/model/GetImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetImageResult::GetImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImageResult::GetImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImageResult::~GetImageResult()
|
||||
{}
|
||||
|
||||
void GetImageResult::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["CurrentVersionFullShowName"].isNull())
|
||||
data_.currentVersionFullShowName = dataNode["CurrentVersionFullShowName"].asString();
|
||||
if(!dataNode["MaxVersionCode"].isNull())
|
||||
data_.maxVersionCode = dataNode["MaxVersionCode"].asString();
|
||||
if(!dataNode["MaxVersionFullShowName"].isNull())
|
||||
data_.maxVersionFullShowName = dataNode["MaxVersionFullShowName"].asString();
|
||||
if(!dataNode["MaxVersionChangelogUrl"].isNull())
|
||||
data_.maxVersionChangelogUrl = dataNode["MaxVersionChangelogUrl"].asString();
|
||||
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 GetImageResult::getHttpCode()const
|
||||
{
|
||||
return httpCode_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetImageResult::Data GetImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetImageResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetImageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
mse/src/model/GetImportFileUrlRequest.cc
Normal file
63
mse/src/model/GetImportFileUrlRequest.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/GetImportFileUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetImportFileUrlRequest;
|
||||
|
||||
GetImportFileUrlRequest::GetImportFileUrlRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetImportFileUrl") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetImportFileUrlRequest::~GetImportFileUrlRequest() {}
|
||||
|
||||
std::string GetImportFileUrlRequest::getContentType() const {
|
||||
return contentType_;
|
||||
}
|
||||
|
||||
void GetImportFileUrlRequest::setContentType(const std::string &contentType) {
|
||||
contentType_ = contentType;
|
||||
setParameter(std::string("ContentType"), contentType);
|
||||
}
|
||||
|
||||
std::string GetImportFileUrlRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetImportFileUrlRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string GetImportFileUrlRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void GetImportFileUrlRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string GetImportFileUrlRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetImportFileUrlRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
94
mse/src/model/GetImportFileUrlResult.cc
Normal file
94
mse/src/model/GetImportFileUrlResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* 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/GetImportFileUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetImportFileUrlResult::GetImportFileUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetImportFileUrlResult::GetImportFileUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetImportFileUrlResult::~GetImportFileUrlResult()
|
||||
{}
|
||||
|
||||
void GetImportFileUrlResult::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["Url"].isNull())
|
||||
data_.url = dataNode["Url"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetImportFileUrlResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetImportFileUrlResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
GetImportFileUrlResult::Data GetImportFileUrlResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetImportFileUrlResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string GetImportFileUrlResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
int GetImportFileUrlResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetImportFileUrlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
45
mse/src/model/GetKubernetesSourceRequest.cc
Normal file
45
mse/src/model/GetKubernetesSourceRequest.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/GetKubernetesSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetKubernetesSourceRequest;
|
||||
|
||||
GetKubernetesSourceRequest::GetKubernetesSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetKubernetesSource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetKubernetesSourceRequest::~GetKubernetesSourceRequest() {}
|
||||
|
||||
std::string GetKubernetesSourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetKubernetesSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetKubernetesSourceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetKubernetesSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
87
mse/src/model/GetKubernetesSourceResult.cc
Normal file
87
mse/src/model/GetKubernetesSourceResult.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/GetKubernetesSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetKubernetesSourceResult::GetKubernetesSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetKubernetesSourceResult::GetKubernetesSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetKubernetesSourceResult::~GetKubernetesSourceResult()
|
||||
{}
|
||||
|
||||
void GetKubernetesSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["K8sSources"];
|
||||
for (auto valueDataK8sSources : allDataNode)
|
||||
{
|
||||
K8sSources dataObject;
|
||||
if(!valueDataK8sSources["Name"].isNull())
|
||||
dataObject.name = valueDataK8sSources["Name"].asString();
|
||||
if(!valueDataK8sSources["Cluster"].isNull())
|
||||
dataObject.cluster = valueDataK8sSources["Cluster"].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 GetKubernetesSourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetKubernetesSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<GetKubernetesSourceResult::K8sSources> GetKubernetesSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetKubernetesSourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetKubernetesSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
36
mse/src/model/GetMseFeatureSwitchRequest.cc
Normal file
36
mse/src/model/GetMseFeatureSwitchRequest.cc
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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/GetMseFeatureSwitchRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetMseFeatureSwitchRequest;
|
||||
|
||||
GetMseFeatureSwitchRequest::GetMseFeatureSwitchRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetMseFeatureSwitch") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMseFeatureSwitchRequest::~GetMseFeatureSwitchRequest() {}
|
||||
|
||||
std::string GetMseFeatureSwitchRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetMseFeatureSwitchRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
72
mse/src/model/GetMseFeatureSwitchResult.cc
Normal file
72
mse/src/model/GetMseFeatureSwitchResult.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/GetMseFeatureSwitchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetMseFeatureSwitchResult::GetMseFeatureSwitchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMseFeatureSwitchResult::GetMseFeatureSwitchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMseFeatureSwitchResult::~GetMseFeatureSwitchResult()
|
||||
{}
|
||||
|
||||
void GetMseFeatureSwitchResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetMseFeatureSwitchResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetMseFeatureSwitchResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetMseFeatureSwitchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GetMseFeatureSwitchResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
45
mse/src/model/GetMseSourceRequest.cc
Normal file
45
mse/src/model/GetMseSourceRequest.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/GetMseSourceRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetMseSourceRequest;
|
||||
|
||||
GetMseSourceRequest::GetMseSourceRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetMseSource") {
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetMseSourceRequest::~GetMseSourceRequest() {}
|
||||
|
||||
std::string GetMseSourceRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void GetMseSourceRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::string GetMseSourceRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetMseSourceRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
93
mse/src/model/GetMseSourceResult.cc
Normal file
93
mse/src/model/GetMseSourceResult.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/GetMseSourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetMseSourceResult::GetMseSourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMseSourceResult::GetMseSourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMseSourceResult::~GetMseSourceResult()
|
||||
{}
|
||||
|
||||
void GetMseSourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["MseSources"];
|
||||
for (auto valueDataMseSources : allDataNode)
|
||||
{
|
||||
MseSources dataObject;
|
||||
if(!valueDataMseSources["InstanceId"].isNull())
|
||||
dataObject.instanceId = valueDataMseSources["InstanceId"].asString();
|
||||
if(!valueDataMseSources["Address"].isNull())
|
||||
dataObject.address = valueDataMseSources["Address"].asString();
|
||||
if(!valueDataMseSources["Type"].isNull())
|
||||
dataObject.type = valueDataMseSources["Type"].asString();
|
||||
if(!valueDataMseSources["Name"].isNull())
|
||||
dataObject.name = valueDataMseSources["Name"].asString();
|
||||
if(!valueDataMseSources["ClusterId"].isNull())
|
||||
dataObject.clusterId = valueDataMseSources["ClusterId"].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 GetMseSourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetMseSourceResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::vector<GetMseSourceResult::MseSources> GetMseSourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetMseSourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetMseSourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/GetNacosConfigRequest.cc
Normal file
81
mse/src/model/GetNacosConfigRequest.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/GetNacosConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetNacosConfigRequest;
|
||||
|
||||
GetNacosConfigRequest::GetNacosConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetNacosConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNacosConfigRequest::~GetNacosConfigRequest() {}
|
||||
|
||||
std::string GetNacosConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetNacosConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string GetNacosConfigRequest::getDataId() const {
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void GetNacosConfigRequest::setDataId(const std::string &dataId) {
|
||||
dataId_ = dataId;
|
||||
setParameter(std::string("DataId"), dataId);
|
||||
}
|
||||
|
||||
std::string GetNacosConfigRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void GetNacosConfigRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string GetNacosConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
bool GetNacosConfigRequest::getBeta() const {
|
||||
return beta_;
|
||||
}
|
||||
|
||||
void GetNacosConfigRequest::setBeta(bool beta) {
|
||||
beta_ = beta;
|
||||
setParameter(std::string("Beta"), beta ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string GetNacosConfigRequest::getGroup() const {
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetNacosConfigRequest::setGroup(const std::string &group) {
|
||||
group_ = group;
|
||||
setParameter(std::string("Group"), group);
|
||||
}
|
||||
|
||||
91
mse/src/model/GetNacosConfigResult.cc
Normal file
91
mse/src/model/GetNacosConfigResult.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/GetNacosConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetNacosConfigResult::GetNacosConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNacosConfigResult::GetNacosConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNacosConfigResult::~GetNacosConfigResult()
|
||||
{}
|
||||
|
||||
void GetNacosConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["Type"].isNull())
|
||||
configuration_.type = configurationNode["Type"].asString();
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Tags"].isNull())
|
||||
configuration_.tags = configurationNode["Tags"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["Desc"].isNull())
|
||||
configuration_.desc = configurationNode["Desc"].asString();
|
||||
if(!configurationNode["EncryptedDataKey"].isNull())
|
||||
configuration_.encryptedDataKey = configurationNode["EncryptedDataKey"].asString();
|
||||
if(!configurationNode["BetaIps"].isNull())
|
||||
configuration_.betaIps = configurationNode["BetaIps"].asString();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
GetNacosConfigResult::Configuration GetNacosConfigResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string GetNacosConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetNacosConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetNacosConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/GetNacosHistoryConfigRequest.cc
Normal file
81
mse/src/model/GetNacosHistoryConfigRequest.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/GetNacosHistoryConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetNacosHistoryConfigRequest;
|
||||
|
||||
GetNacosHistoryConfigRequest::GetNacosHistoryConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetNacosHistoryConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetNacosHistoryConfigRequest::~GetNacosHistoryConfigRequest() {}
|
||||
|
||||
std::string GetNacosHistoryConfigRequest::getNid() const {
|
||||
return nid_;
|
||||
}
|
||||
|
||||
void GetNacosHistoryConfigRequest::setNid(const std::string &nid) {
|
||||
nid_ = nid;
|
||||
setParameter(std::string("Nid"), nid);
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetNacosHistoryConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigRequest::getDataId() const {
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void GetNacosHistoryConfigRequest::setDataId(const std::string &dataId) {
|
||||
dataId_ = dataId;
|
||||
setParameter(std::string("DataId"), dataId);
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void GetNacosHistoryConfigRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetNacosHistoryConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigRequest::getGroup() const {
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetNacosHistoryConfigRequest::setGroup(const std::string &group) {
|
||||
group_ = group;
|
||||
setParameter(std::string("Group"), group);
|
||||
}
|
||||
|
||||
85
mse/src/model/GetNacosHistoryConfigResult.cc
Normal file
85
mse/src/model/GetNacosHistoryConfigResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* 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/GetNacosHistoryConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetNacosHistoryConfigResult::GetNacosHistoryConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNacosHistoryConfigResult::GetNacosHistoryConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNacosHistoryConfigResult::~GetNacosHistoryConfigResult()
|
||||
{}
|
||||
|
||||
void GetNacosHistoryConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto configurationNode = value["Configuration"];
|
||||
if(!configurationNode["AppName"].isNull())
|
||||
configuration_.appName = configurationNode["AppName"].asString();
|
||||
if(!configurationNode["Md5"].isNull())
|
||||
configuration_.md5 = configurationNode["Md5"].asString();
|
||||
if(!configurationNode["DataId"].isNull())
|
||||
configuration_.dataId = configurationNode["DataId"].asString();
|
||||
if(!configurationNode["Content"].isNull())
|
||||
configuration_.content = configurationNode["Content"].asString();
|
||||
if(!configurationNode["Group"].isNull())
|
||||
configuration_.group = configurationNode["Group"].asString();
|
||||
if(!configurationNode["OpType"].isNull())
|
||||
configuration_.opType = configurationNode["OpType"].asString();
|
||||
if(!configurationNode["EncryptedDataKey"].isNull())
|
||||
configuration_.encryptedDataKey = configurationNode["EncryptedDataKey"].asString();
|
||||
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";
|
||||
|
||||
}
|
||||
|
||||
GetNacosHistoryConfigResult::Configuration GetNacosHistoryConfigResult::getConfiguration()const
|
||||
{
|
||||
return configuration_;
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetNacosHistoryConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
bool GetNacosHistoryConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
54
mse/src/model/GetOverviewRequest.cc
Normal file
54
mse/src/model/GetOverviewRequest.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/GetOverviewRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::GetOverviewRequest;
|
||||
|
||||
GetOverviewRequest::GetOverviewRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "GetOverview") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOverviewRequest::~GetOverviewRequest() {}
|
||||
|
||||
int GetOverviewRequest::getPeriod() const {
|
||||
return period_;
|
||||
}
|
||||
|
||||
void GetOverviewRequest::setPeriod(int period) {
|
||||
period_ = period;
|
||||
setParameter(std::string("Period"), std::to_string(period));
|
||||
}
|
||||
|
||||
std::string GetOverviewRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void GetOverviewRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string GetOverviewRequest::getRegion() const {
|
||||
return region_;
|
||||
}
|
||||
|
||||
void GetOverviewRequest::setRegion(const std::string ®ion) {
|
||||
region_ = region;
|
||||
setParameter(std::string("Region"), region);
|
||||
}
|
||||
|
||||
79
mse/src/model/GetOverviewResult.cc
Normal file
79
mse/src/model/GetOverviewResult.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/GetOverviewResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
GetOverviewResult::GetOverviewResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOverviewResult::GetOverviewResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOverviewResult::~GetOverviewResult()
|
||||
{}
|
||||
|
||||
void GetOverviewResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string GetOverviewResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int GetOverviewResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
std::string GetOverviewResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetOverviewResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetOverviewResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
72
mse/src/model/ImportNacosConfigRequest.cc
Normal file
72
mse/src/model/ImportNacosConfigRequest.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/ImportNacosConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ImportNacosConfigRequest;
|
||||
|
||||
ImportNacosConfigRequest::ImportNacosConfigRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ImportNacosConfig") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportNacosConfigRequest::~ImportNacosConfigRequest() {}
|
||||
|
||||
std::string ImportNacosConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ImportNacosConfigRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ImportNacosConfigRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ImportNacosConfigRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigRequest::getFileUrl() const {
|
||||
return fileUrl_;
|
||||
}
|
||||
|
||||
void ImportNacosConfigRequest::setFileUrl(const std::string &fileUrl) {
|
||||
fileUrl_ = fileUrl;
|
||||
setParameter(std::string("FileUrl"), fileUrl);
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigRequest::getPolicy() const {
|
||||
return policy_;
|
||||
}
|
||||
|
||||
void ImportNacosConfigRequest::setPolicy(const std::string &policy) {
|
||||
policy_ = policy;
|
||||
setParameter(std::string("Policy"), policy);
|
||||
}
|
||||
|
||||
116
mse/src/model/ImportNacosConfigResult.cc
Normal file
116
mse/src/model/ImportNacosConfigResult.cc
Normal file
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* 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/ImportNacosConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Mse;
|
||||
using namespace AlibabaCloud::Mse::Model;
|
||||
|
||||
ImportNacosConfigResult::ImportNacosConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportNacosConfigResult::ImportNacosConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportNacosConfigResult::~ImportNacosConfigResult()
|
||||
{}
|
||||
|
||||
void ImportNacosConfigResult::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["SuccCount"].isNull())
|
||||
data_.succCount = std::stoi(dataNode["SuccCount"].asString());
|
||||
if(!dataNode["SkipCount"].isNull())
|
||||
data_.skipCount = std::stoi(dataNode["SkipCount"].asString());
|
||||
auto allSkipDataNode = dataNode["SkipData"]["SkipDataItem"];
|
||||
for (auto dataNodeSkipDataSkipDataItem : allSkipDataNode)
|
||||
{
|
||||
Data::SkipDataItem skipDataItemObject;
|
||||
if(!dataNodeSkipDataSkipDataItem["DataId"].isNull())
|
||||
skipDataItemObject.dataId = dataNodeSkipDataSkipDataItem["DataId"].asString();
|
||||
if(!dataNodeSkipDataSkipDataItem["Group"].isNull())
|
||||
skipDataItemObject.group = dataNodeSkipDataSkipDataItem["Group"].asString();
|
||||
data_.skipData.push_back(skipDataItemObject);
|
||||
}
|
||||
auto allFailDataNode = dataNode["FailData"]["FailDataItem"];
|
||||
for (auto dataNodeFailDataFailDataItem : allFailDataNode)
|
||||
{
|
||||
Data::FailDataItem failDataItemObject;
|
||||
if(!dataNodeFailDataFailDataItem["DataId"].isNull())
|
||||
failDataItemObject.dataId = dataNodeFailDataFailDataItem["DataId"].asString();
|
||||
if(!dataNodeFailDataFailDataItem["Group"].isNull())
|
||||
failDataItemObject.group = dataNodeFailDataFailDataItem["Group"].asString();
|
||||
data_.failData.push_back(failDataItemObject);
|
||||
}
|
||||
if(!value["HttpStatusCode"].isNull())
|
||||
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["DynamicMessage"].isNull())
|
||||
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ImportNacosConfigResult::getHttpStatusCode()const
|
||||
{
|
||||
return httpStatusCode_;
|
||||
}
|
||||
|
||||
ImportNacosConfigResult::Data ImportNacosConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ImportNacosConfigResult::getDynamicMessage()const
|
||||
{
|
||||
return dynamicMessage_;
|
||||
}
|
||||
|
||||
int ImportNacosConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ImportNacosConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
81
mse/src/model/ImportServicesRequest.cc
Normal file
81
mse/src/model/ImportServicesRequest.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/ImportServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Mse::Model::ImportServicesRequest;
|
||||
|
||||
ImportServicesRequest::ImportServicesRequest()
|
||||
: RpcServiceRequest("mse", "2019-05-31", "ImportServices") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportServicesRequest::~ImportServicesRequest() {}
|
||||
|
||||
std::string ImportServicesRequest::getSourceId() const {
|
||||
return sourceId_;
|
||||
}
|
||||
|
||||
void ImportServicesRequest::setSourceId(const std::string &sourceId) {
|
||||
sourceId_ = sourceId;
|
||||
setParameter(std::string("SourceId"), sourceId);
|
||||
}
|
||||
|
||||
std::string ImportServicesRequest::getGatewayUniqueId() const {
|
||||
return gatewayUniqueId_;
|
||||
}
|
||||
|
||||
void ImportServicesRequest::setGatewayUniqueId(const std::string &gatewayUniqueId) {
|
||||
gatewayUniqueId_ = gatewayUniqueId;
|
||||
setParameter(std::string("GatewayUniqueId"), gatewayUniqueId);
|
||||
}
|
||||
|
||||
std::vector<ImportServicesRequest::ServiceList> ImportServicesRequest::getServiceList() const {
|
||||
return serviceList_;
|
||||
}
|
||||
|
||||
void ImportServicesRequest::setServiceList(const std::vector<ImportServicesRequest::ServiceList> &serviceList) {
|
||||
serviceList_ = serviceList;
|
||||
for(int dep1 = 0; dep1 != serviceList.size(); dep1++) {
|
||||
setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".ServiceProtocol", serviceList[dep1].serviceProtocol);
|
||||
setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".Name", serviceList[dep1].name);
|
||||
setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".Namespace", serviceList[dep1]._namespace);
|
||||
setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".GroupName", serviceList[dep1].groupName);
|
||||
for(int dep2 = 0; dep2 != serviceList[dep1].ips.size(); dep2++) {
|
||||
setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".Ips." + std::to_string(dep2 + 1), serviceList[dep1].ips[dep2]);
|
||||
}
|
||||
setParameter(std::string("ServiceList") + "." + std::to_string(dep1 + 1) + ".ServicePort", std::to_string(serviceList[dep1].servicePort));
|
||||
}
|
||||
}
|
||||
|
||||
std::string ImportServicesRequest::getAcceptLanguage() const {
|
||||
return acceptLanguage_;
|
||||
}
|
||||
|
||||
void ImportServicesRequest::setAcceptLanguage(const std::string &acceptLanguage) {
|
||||
acceptLanguage_ = acceptLanguage;
|
||||
setParameter(std::string("AcceptLanguage"), acceptLanguage);
|
||||
}
|
||||
|
||||
std::string ImportServicesRequest::getSourceType() const {
|
||||
return sourceType_;
|
||||
}
|
||||
|
||||
void ImportServicesRequest::setSourceType(const std::string &sourceType) {
|
||||
sourceType_ = sourceType;
|
||||
setParameter(std::string("SourceType"), sourceType);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user