Generated 2018-03-13 for retailcloud.

This commit is contained in:
sdk-team
2020-04-09 16:22:52 +08:00
parent 093332279d
commit abfdc41f3b
290 changed files with 23782 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/AddClusterNodeRequest.h>
using AlibabaCloud::Retailcloud::Model::AddClusterNodeRequest;
AddClusterNodeRequest::AddClusterNodeRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "AddClusterNode")
{
setMethod(HttpRequest::Method::Post);
}
AddClusterNodeRequest::~AddClusterNodeRequest()
{}
std::vector<std::string> AddClusterNodeRequest::getEcsInstanceIdList()const
{
return ecsInstanceIdList_;
}
void AddClusterNodeRequest::setEcsInstanceIdList(const std::vector<std::string>& ecsInstanceIdList)
{
ecsInstanceIdList_ = ecsInstanceIdList;
for(int dep1 = 0; dep1!= ecsInstanceIdList.size(); dep1++) {
setParameter("EcsInstanceIdList."+ std::to_string(dep1), ecsInstanceIdList.at(dep1));
}
}
std::string AddClusterNodeRequest::getClusterInstanceId()const
{
return clusterInstanceId_;
}
void AddClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId)
{
clusterInstanceId_ = clusterInstanceId;
setParameter("ClusterInstanceId", clusterInstanceId);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/AddClusterNodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
AddClusterNodeResult::AddClusterNodeResult() :
ServiceResult()
{}
AddClusterNodeResult::AddClusterNodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddClusterNodeResult::~AddClusterNodeResult()
{}
void AddClusterNodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Nonsense"].isNull())
result_.nonsense = std::stoi(resultNode["Nonsense"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string AddClusterNodeResult::getErrMsg()const
{
return errMsg_;
}
int AddClusterNodeResult::getCode()const
{
return code_;
}
bool AddClusterNodeResult::getSuccess()const
{
return success_;
}
AddClusterNodeResult::Result AddClusterNodeResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/BatchAddServersRequest.h>
using AlibabaCloud::Retailcloud::Model::BatchAddServersRequest;
BatchAddServersRequest::BatchAddServersRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "BatchAddServers")
{
setMethod(HttpRequest::Method::Post);
}
BatchAddServersRequest::~BatchAddServersRequest()
{}
std::string BatchAddServersRequest::getInstanceId()const
{
return instanceId_;
}
void BatchAddServersRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string BatchAddServersRequest::getRegionId()const
{
return regionId_;
}
void BatchAddServersRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string BatchAddServersRequest::getVpcId()const
{
return vpcId_;
}
void BatchAddServersRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string BatchAddServersRequest::getSign()const
{
return sign_;
}
void BatchAddServersRequest::setSign(const std::string& sign)
{
sign_ = sign;
setParameter("Sign", sign);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/BatchAddServersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
BatchAddServersResult::BatchAddServersResult() :
ServiceResult()
{}
BatchAddServersResult::BatchAddServersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchAddServersResult::~BatchAddServersResult()
{}
void BatchAddServersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Success"].isNull())
result_.success = resultNode["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string BatchAddServersResult::getErrMsg()const
{
return errMsg_;
}
int BatchAddServersResult::getCode()const
{
return code_;
}
BatchAddServersResult::Result BatchAddServersResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/BindNodeLabelRequest.h>
using AlibabaCloud::Retailcloud::Model::BindNodeLabelRequest;
BindNodeLabelRequest::BindNodeLabelRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "BindNodeLabel")
{
setMethod(HttpRequest::Method::Post);
}
BindNodeLabelRequest::~BindNodeLabelRequest()
{}
std::string BindNodeLabelRequest::getInstanceId()const
{
return instanceId_;
}
void BindNodeLabelRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string BindNodeLabelRequest::getLabelKey()const
{
return labelKey_;
}
void BindNodeLabelRequest::setLabelKey(const std::string& labelKey)
{
labelKey_ = labelKey;
setParameter("LabelKey", labelKey);
}
std::string BindNodeLabelRequest::getLabelValue()const
{
return labelValue_;
}
void BindNodeLabelRequest::setLabelValue(const std::string& labelValue)
{
labelValue_ = labelValue;
setParameter("LabelValue", labelValue);
}
std::string BindNodeLabelRequest::getClusterId()const
{
return clusterId_;
}
void BindNodeLabelRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}

View 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/retailcloud/model/BindNodeLabelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
BindNodeLabelResult::BindNodeLabelResult() :
ServiceResult()
{}
BindNodeLabelResult::BindNodeLabelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindNodeLabelResult::~BindNodeLabelResult()
{}
void BindNodeLabelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string BindNodeLabelResult::getErrMsg()const
{
return errMsg_;
}
int BindNodeLabelResult::getCode()const
{
return code_;
}
bool BindNodeLabelResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CloseDeployOrderRequest.h>
using AlibabaCloud::Retailcloud::Model::CloseDeployOrderRequest;
CloseDeployOrderRequest::CloseDeployOrderRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CloseDeployOrder")
{
setMethod(HttpRequest::Method::Post);
}
CloseDeployOrderRequest::~CloseDeployOrderRequest()
{}
long CloseDeployOrderRequest::getDeployOrderId()const
{
return deployOrderId_;
}
void CloseDeployOrderRequest::setDeployOrderId(long deployOrderId)
{
deployOrderId_ = deployOrderId;
setParameter("DeployOrderId", std::to_string(deployOrderId));
}

View 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/retailcloud/model/CloseDeployOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CloseDeployOrderResult::CloseDeployOrderResult() :
ServiceResult()
{}
CloseDeployOrderResult::CloseDeployOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CloseDeployOrderResult::~CloseDeployOrderResult()
{}
void CloseDeployOrderResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CloseDeployOrderResult::getErrMsg()const
{
return errMsg_;
}
int CloseDeployOrderResult::getCode()const
{
return code_;
}
bool CloseDeployOrderResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,158 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateAppRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateAppRequest;
CreateAppRequest::CreateAppRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateApp")
{
setMethod(HttpRequest::Method::Post);
}
CreateAppRequest::~CreateAppRequest()
{}
std::string CreateAppRequest::getBizTitle()const
{
return bizTitle_;
}
void CreateAppRequest::setBizTitle(const std::string& bizTitle)
{
bizTitle_ = bizTitle;
setBodyParameter("BizTitle", bizTitle);
}
std::string CreateAppRequest::getOperatingSystem()const
{
return operatingSystem_;
}
void CreateAppRequest::setOperatingSystem(const std::string& operatingSystem)
{
operatingSystem_ = operatingSystem;
setBodyParameter("OperatingSystem", operatingSystem);
}
std::string CreateAppRequest::getDescription()const
{
return description_;
}
void CreateAppRequest::setDescription(const std::string& description)
{
description_ = description;
setBodyParameter("Description", description);
}
std::string CreateAppRequest::getLanguage()const
{
return language_;
}
void CreateAppRequest::setLanguage(const std::string& language)
{
language_ = language;
setBodyParameter("Language", language);
}
std::string CreateAppRequest::getTitle()const
{
return title_;
}
void CreateAppRequest::setTitle(const std::string& title)
{
title_ = title;
setBodyParameter("Title", title);
}
std::vector<int> CreateAppRequest::getMiddleWareIdList()const
{
return middleWareIdList_;
}
void CreateAppRequest::setMiddleWareIdList(const std::vector<int>& middleWareIdList)
{
middleWareIdList_ = middleWareIdList;
for(int dep1 = 0; dep1!= middleWareIdList.size(); dep1++) {
setBodyParameter("MiddleWareIdList."+ std::to_string(dep1), std::to_string(middleWareIdList.at(dep1)));
}
}
int CreateAppRequest::getStateType()const
{
return stateType_;
}
void CreateAppRequest::setStateType(int stateType)
{
stateType_ = stateType;
setBodyParameter("StateType", std::to_string(stateType));
}
std::string CreateAppRequest::getServiceType()const
{
return serviceType_;
}
void CreateAppRequest::setServiceType(const std::string& serviceType)
{
serviceType_ = serviceType;
setBodyParameter("ServiceType", serviceType);
}
std::vector<CreateAppRequest::UserRoles> CreateAppRequest::getUserRoles()const
{
return userRoles_;
}
void CreateAppRequest::setUserRoles(const std::vector<UserRoles>& userRoles)
{
userRoles_ = userRoles;
for(int dep1 = 0; dep1!= userRoles.size(); dep1++) {
auto userRolesObj = userRoles.at(dep1);
std::string userRolesObjStr = "UserRoles." + std::to_string(dep1 + 1);
setParameter(userRolesObjStr + ".RoleName", userRolesObj.roleName);
setParameter(userRolesObjStr + ".UserType", userRolesObj.userType);
setParameter(userRolesObjStr + ".UserId", userRolesObj.userId);
}
}
std::string CreateAppRequest::getBizCode()const
{
return bizCode_;
}
void CreateAppRequest::setBizCode(const std::string& bizCode)
{
bizCode_ = bizCode;
setBodyParameter("BizCode", bizCode);
}
std::string CreateAppRequest::get_Namespace()const
{
return _namespace_;
}
void CreateAppRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setBodyParameter("_Namespace", _namespace);
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateAppResourceAllocRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateAppResourceAllocRequest;
CreateAppResourceAllocRequest::CreateAppResourceAllocRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateAppResourceAlloc")
{
setMethod(HttpRequest::Method::Post);
}
CreateAppResourceAllocRequest::~CreateAppResourceAllocRequest()
{}
long CreateAppResourceAllocRequest::getAppId()const
{
return appId_;
}
void CreateAppResourceAllocRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
long CreateAppResourceAllocRequest::getAppEnvId()const
{
return appEnvId_;
}
void CreateAppResourceAllocRequest::setAppEnvId(long appEnvId)
{
appEnvId_ = appEnvId;
setParameter("AppEnvId", std::to_string(appEnvId));
}
std::string CreateAppResourceAllocRequest::getClusterId()const
{
return clusterId_;
}
void CreateAppResourceAllocRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}

View 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/retailcloud/model/CreateAppResourceAllocResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateAppResourceAllocResult::CreateAppResourceAllocResult() :
ServiceResult()
{}
CreateAppResourceAllocResult::CreateAppResourceAllocResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAppResourceAllocResult::~CreateAppResourceAllocResult()
{}
void CreateAppResourceAllocResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppEnvId"].isNull())
result_.appEnvId = std::stol(resultNode["AppEnvId"].asString());
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["ClusterId"].isNull())
result_.clusterId = resultNode["ClusterId"].asString();
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["ResourceDef"].isNull())
result_.resourceDef = resultNode["ResourceDef"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateAppResourceAllocResult::getErrMsg()const
{
return errMsg_;
}
int CreateAppResourceAllocResult::getCode()const
{
return code_;
}
bool CreateAppResourceAllocResult::getSuccess()const
{
return success_;
}
CreateAppResourceAllocResult::Result CreateAppResourceAllocResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateAppResult::CreateAppResult() :
ServiceResult()
{}
CreateAppResult::CreateAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAppResult::~CreateAppResult()
{}
void CreateAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string CreateAppResult::getErrMsg()const
{
return errMsg_;
}
int CreateAppResult::getCode()const
{
return code_;
}
CreateAppResult::Result CreateAppResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,251 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateClusterRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateClusterRequest;
CreateClusterRequest::CreateClusterRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateCluster")
{
setMethod(HttpRequest::Method::Post);
}
CreateClusterRequest::~CreateClusterRequest()
{}
std::string CreateClusterRequest::getBusinessCode()const
{
return businessCode_;
}
void CreateClusterRequest::setBusinessCode(const std::string& businessCode)
{
businessCode_ = businessCode;
setParameter("BusinessCode", businessCode);
}
bool CreateClusterRequest::getCreateWithLogIntegration()const
{
return createWithLogIntegration_;
}
void CreateClusterRequest::setCreateWithLogIntegration(bool createWithLogIntegration)
{
createWithLogIntegration_ = createWithLogIntegration;
setParameter("CreateWithLogIntegration", createWithLogIntegration ? "true" : "false");
}
std::vector<std::string> CreateClusterRequest::getVswitchids()const
{
return vswitchids_;
}
void CreateClusterRequest::setVswitchids(const std::vector<std::string>& vswitchids)
{
vswitchids_ = vswitchids;
for(int dep1 = 0; dep1!= vswitchids.size(); dep1++) {
setParameter("Vswitchids."+ std::to_string(dep1), vswitchids.at(dep1));
}
}
int CreateClusterRequest::getCloudMonitorFlags()const
{
return cloudMonitorFlags_;
}
void CreateClusterRequest::setCloudMonitorFlags(int cloudMonitorFlags)
{
cloudMonitorFlags_ = cloudMonitorFlags;
setParameter("CloudMonitorFlags", std::to_string(cloudMonitorFlags));
}
std::string CreateClusterRequest::getClusterEnvType()const
{
return clusterEnvType_;
}
void CreateClusterRequest::setClusterEnvType(const std::string& clusterEnvType)
{
clusterEnvType_ = clusterEnvType;
setParameter("ClusterEnvType", clusterEnvType);
}
bool CreateClusterRequest::getCreateWithArmsIntegration()const
{
return createWithArmsIntegration_;
}
void CreateClusterRequest::setCreateWithArmsIntegration(bool createWithArmsIntegration)
{
createWithArmsIntegration_ = createWithArmsIntegration;
setParameter("CreateWithArmsIntegration", createWithArmsIntegration ? "true" : "false");
}
std::string CreateClusterRequest::getKeyPair()const
{
return keyPair_;
}
void CreateClusterRequest::setKeyPair(const std::string& keyPair)
{
keyPair_ = keyPair;
setParameter("KeyPair", keyPair);
}
std::string CreateClusterRequest::getClusterTitle()const
{
return clusterTitle_;
}
void CreateClusterRequest::setClusterTitle(const std::string& clusterTitle)
{
clusterTitle_ = clusterTitle;
setParameter("ClusterTitle", clusterTitle);
}
std::string CreateClusterRequest::getPodCIDR()const
{
return podCIDR_;
}
void CreateClusterRequest::setPodCIDR(const std::string& podCIDR)
{
podCIDR_ = podCIDR;
setParameter("PodCIDR", podCIDR);
}
long CreateClusterRequest::getClusterId()const
{
return clusterId_;
}
void CreateClusterRequest::setClusterId(long clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", std::to_string(clusterId));
}
std::string CreateClusterRequest::getClusterType()const
{
return clusterType_;
}
void CreateClusterRequest::setClusterType(const std::string& clusterType)
{
clusterType_ = clusterType;
setParameter("ClusterType", clusterType);
}
std::string CreateClusterRequest::getPassword()const
{
return password_;
}
void CreateClusterRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
int CreateClusterRequest::getSnatEntry()const
{
return snatEntry_;
}
void CreateClusterRequest::setSnatEntry(int snatEntry)
{
snatEntry_ = snatEntry;
setParameter("SnatEntry", std::to_string(snatEntry));
}
std::string CreateClusterRequest::getNetPlug()const
{
return netPlug_;
}
void CreateClusterRequest::setNetPlug(const std::string& netPlug)
{
netPlug_ = netPlug;
setParameter("NetPlug", netPlug);
}
std::string CreateClusterRequest::getRegionId()const
{
return regionId_;
}
void CreateClusterRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateClusterRequest::getVpcId()const
{
return vpcId_;
}
void CreateClusterRequest::setVpcId(const std::string& vpcId)
{
vpcId_ = vpcId;
setParameter("VpcId", vpcId);
}
std::string CreateClusterRequest::getRegionName()const
{
return regionName_;
}
void CreateClusterRequest::setRegionName(const std::string& regionName)
{
regionName_ = regionName;
setParameter("RegionName", regionName);
}
bool CreateClusterRequest::getPrivateZone()const
{
return privateZone_;
}
void CreateClusterRequest::setPrivateZone(bool privateZone)
{
privateZone_ = privateZone;
setParameter("PrivateZone", privateZone ? "true" : "false");
}
std::string CreateClusterRequest::getServiceCIDR()const
{
return serviceCIDR_;
}
void CreateClusterRequest::setServiceCIDR(const std::string& serviceCIDR)
{
serviceCIDR_ = serviceCIDR;
setParameter("ServiceCIDR", serviceCIDR);
}
int CreateClusterRequest::getPublicSlb()const
{
return publicSlb_;
}
void CreateClusterRequest::setPublicSlb(int publicSlb)
{
publicSlb_ = publicSlb;
setParameter("PublicSlb", std::to_string(publicSlb));
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::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());
auto resultNode = value["Result"];
if(!resultNode["ClusterInstanceId"].isNull())
result_.clusterInstanceId = resultNode["ClusterInstanceId"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateClusterResult::getErrMsg()const
{
return errMsg_;
}
int CreateClusterResult::getCode()const
{
return code_;
}
bool CreateClusterResult::getSuccess()const
{
return success_;
}
CreateClusterResult::Result CreateClusterResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateDbRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateDbRequest;
CreateDbRequest::CreateDbRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateDb")
{
setMethod(HttpRequest::Method::Post);
}
CreateDbRequest::~CreateDbRequest()
{}
std::string CreateDbRequest::getDbName()const
{
return dbName_;
}
void CreateDbRequest::setDbName(const std::string& dbName)
{
dbName_ = dbName;
setBodyParameter("DbName", dbName);
}
std::string CreateDbRequest::getDbInstanceId()const
{
return dbInstanceId_;
}
void CreateDbRequest::setDbInstanceId(const std::string& dbInstanceId)
{
dbInstanceId_ = dbInstanceId;
setBodyParameter("DbInstanceId", dbInstanceId);
}
std::string CreateDbRequest::getDbDescription()const
{
return dbDescription_;
}
void CreateDbRequest::setDbDescription(const std::string& dbDescription)
{
dbDescription_ = dbDescription;
setBodyParameter("DbDescription", dbDescription);
}
std::string CreateDbRequest::getCharacterSetName()const
{
return characterSetName_;
}
void CreateDbRequest::setCharacterSetName(const std::string& characterSetName)
{
characterSetName_ = characterSetName;
setBodyParameter("CharacterSetName", characterSetName);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateDbResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateDbResult::CreateDbResult() :
ServiceResult()
{}
CreateDbResult::CreateDbResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDbResult::~CreateDbResult()
{}
void CreateDbResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string CreateDbResult::getErrMsg()const
{
return errMsg_;
}
int CreateDbResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,132 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateDeployConfigRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateDeployConfigRequest;
CreateDeployConfigRequest::CreateDeployConfigRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateDeployConfig")
{
setMethod(HttpRequest::Method::Post);
}
CreateDeployConfigRequest::~CreateDeployConfigRequest()
{}
std::string CreateDeployConfigRequest::getCodePath()const
{
return codePath_;
}
void CreateDeployConfigRequest::setCodePath(const std::string& codePath)
{
codePath_ = codePath;
setParameter("CodePath", codePath);
}
std::vector<std::string> CreateDeployConfigRequest::getConfigMapList()const
{
return configMapList_;
}
void CreateDeployConfigRequest::setConfigMapList(const std::vector<std::string>& configMapList)
{
configMapList_ = configMapList;
for(int dep1 = 0; dep1!= configMapList.size(); dep1++) {
setParameter("ConfigMapList."+ std::to_string(dep1), configMapList.at(dep1));
}
}
long CreateDeployConfigRequest::getAppId()const
{
return appId_;
}
void CreateDeployConfigRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string CreateDeployConfigRequest::getConfigMap()const
{
return configMap_;
}
void CreateDeployConfigRequest::setConfigMap(const std::string& configMap)
{
configMap_ = configMap;
setParameter("ConfigMap", configMap);
}
std::string CreateDeployConfigRequest::getStatefulSet()const
{
return statefulSet_;
}
void CreateDeployConfigRequest::setStatefulSet(const std::string& statefulSet)
{
statefulSet_ = statefulSet;
setParameter("StatefulSet", statefulSet);
}
std::string CreateDeployConfigRequest::getEnvType()const
{
return envType_;
}
void CreateDeployConfigRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setParameter("EnvType", envType);
}
std::string CreateDeployConfigRequest::getName()const
{
return name_;
}
void CreateDeployConfigRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::vector<std::string> CreateDeployConfigRequest::getSecretList()const
{
return secretList_;
}
void CreateDeployConfigRequest::setSecretList(const std::vector<std::string>& secretList)
{
secretList_ = secretList;
for(int dep1 = 0; dep1!= secretList.size(); dep1++) {
setParameter("SecretList."+ std::to_string(dep1), secretList.at(dep1));
}
}
std::string CreateDeployConfigRequest::getDeployment()const
{
return deployment_;
}
void CreateDeployConfigRequest::setDeployment(const std::string& deployment)
{
deployment_ = deployment;
setParameter("Deployment", deployment);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateDeployConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateDeployConfigResult::CreateDeployConfigResult() :
ServiceResult()
{}
CreateDeployConfigResult::CreateDeployConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDeployConfigResult::~CreateDeployConfigResult()
{}
void CreateDeployConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["SchemaId"].isNull())
result_.schemaId = std::stol(resultNode["SchemaId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
}
std::string CreateDeployConfigResult::getErrMessage()const
{
return errMessage_;
}
int CreateDeployConfigResult::getCode()const
{
return code_;
}
CreateDeployConfigResult::Result CreateDeployConfigResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateEnvironmentRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateEnvironmentRequest;
CreateEnvironmentRequest::CreateEnvironmentRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateEnvironment")
{
setMethod(HttpRequest::Method::Post);
}
CreateEnvironmentRequest::~CreateEnvironmentRequest()
{}
std::string CreateEnvironmentRequest::getEnvName()const
{
return envName_;
}
void CreateEnvironmentRequest::setEnvName(const std::string& envName)
{
envName_ = envName;
setParameter("EnvName", envName);
}
int CreateEnvironmentRequest::getReplicas()const
{
return replicas_;
}
void CreateEnvironmentRequest::setReplicas(int replicas)
{
replicas_ = replicas;
setParameter("Replicas", std::to_string(replicas));
}
long CreateEnvironmentRequest::getAppId()const
{
return appId_;
}
void CreateEnvironmentRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
int CreateEnvironmentRequest::getEnvType()const
{
return envType_;
}
void CreateEnvironmentRequest::setEnvType(int envType)
{
envType_ = envType;
setParameter("EnvType", std::to_string(envType));
}
long CreateEnvironmentRequest::getAppSchemaId()const
{
return appSchemaId_;
}
void CreateEnvironmentRequest::setAppSchemaId(long appSchemaId)
{
appSchemaId_ = appSchemaId;
setParameter("AppSchemaId", std::to_string(appSchemaId));
}
std::string CreateEnvironmentRequest::getRegion()const
{
return region_;
}
void CreateEnvironmentRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateEnvironmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateEnvironmentResult::CreateEnvironmentResult() :
ServiceResult()
{}
CreateEnvironmentResult::CreateEnvironmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateEnvironmentResult::~CreateEnvironmentResult()
{}
void CreateEnvironmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppEnvId"].isNull())
result_.appEnvId = std::stol(resultNode["AppEnvId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string CreateEnvironmentResult::getErrMsg()const
{
return errMsg_;
}
int CreateEnvironmentResult::getCode()const
{
return code_;
}
CreateEnvironmentResult::Result CreateEnvironmentResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateNodeLabelRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateNodeLabelRequest;
CreateNodeLabelRequest::CreateNodeLabelRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateNodeLabel")
{
setMethod(HttpRequest::Method::Post);
}
CreateNodeLabelRequest::~CreateNodeLabelRequest()
{}
std::string CreateNodeLabelRequest::getLabelKey()const
{
return labelKey_;
}
void CreateNodeLabelRequest::setLabelKey(const std::string& labelKey)
{
labelKey_ = labelKey;
setParameter("LabelKey", labelKey);
}
std::string CreateNodeLabelRequest::getLabelValue()const
{
return labelValue_;
}
void CreateNodeLabelRequest::setLabelValue(const std::string& labelValue)
{
labelValue_ = labelValue;
setParameter("LabelValue", labelValue);
}
std::string CreateNodeLabelRequest::getClusterId()const
{
return clusterId_;
}
void CreateNodeLabelRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}

View 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/retailcloud/model/CreateNodeLabelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateNodeLabelResult::CreateNodeLabelResult() :
ServiceResult()
{}
CreateNodeLabelResult::CreateNodeLabelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNodeLabelResult::~CreateNodeLabelResult()
{}
void CreateNodeLabelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["ClusterId"].isNull())
result_.clusterId = resultNode["ClusterId"].asString();
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["LabelKey"].isNull())
result_.labelKey = resultNode["LabelKey"].asString();
if(!resultNode["LabelValue"].isNull())
result_.labelValue = resultNode["LabelValue"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateNodeLabelResult::getErrMsg()const
{
return errMsg_;
}
int CreateNodeLabelResult::getCode()const
{
return code_;
}
bool CreateNodeLabelResult::getSuccess()const
{
return success_;
}
CreateNodeLabelResult::Result CreateNodeLabelResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreatePersistentVolumeClaimRequest.h>
using AlibabaCloud::Retailcloud::Model::CreatePersistentVolumeClaimRequest;
CreatePersistentVolumeClaimRequest::CreatePersistentVolumeClaimRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreatePersistentVolumeClaim")
{
setMethod(HttpRequest::Method::Post);
}
CreatePersistentVolumeClaimRequest::~CreatePersistentVolumeClaimRequest()
{}
std::string CreatePersistentVolumeClaimRequest::getAccessModes()const
{
return accessModes_;
}
void CreatePersistentVolumeClaimRequest::setAccessModes(const std::string& accessModes)
{
accessModes_ = accessModes;
setParameter("AccessModes", accessModes);
}
long CreatePersistentVolumeClaimRequest::getAppId()const
{
return appId_;
}
void CreatePersistentVolumeClaimRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string CreatePersistentVolumeClaimRequest::getName()const
{
return name_;
}
void CreatePersistentVolumeClaimRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long CreatePersistentVolumeClaimRequest::getEnvId()const
{
return envId_;
}
void CreatePersistentVolumeClaimRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}
std::string CreatePersistentVolumeClaimRequest::getStorageClass()const
{
return storageClass_;
}
void CreatePersistentVolumeClaimRequest::setStorageClass(const std::string& storageClass)
{
storageClass_ = storageClass;
setParameter("StorageClass", storageClass);
}
std::string CreatePersistentVolumeClaimRequest::getCapacity()const
{
return capacity_;
}
void CreatePersistentVolumeClaimRequest::setCapacity(const std::string& capacity)
{
capacity_ = capacity;
setParameter("Capacity", capacity);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreatePersistentVolumeClaimResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreatePersistentVolumeClaimResult::CreatePersistentVolumeClaimResult() :
ServiceResult()
{}
CreatePersistentVolumeClaimResult::CreatePersistentVolumeClaimResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePersistentVolumeClaimResult::~CreatePersistentVolumeClaimResult()
{}
void CreatePersistentVolumeClaimResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["PersistentVolumeClaimId"].isNull())
result_.persistentVolumeClaimId = std::stol(resultNode["PersistentVolumeClaimId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string CreatePersistentVolumeClaimResult::getErrMsg()const
{
return errMsg_;
}
int CreatePersistentVolumeClaimResult::getCode()const
{
return code_;
}
CreatePersistentVolumeClaimResult::Result CreatePersistentVolumeClaimResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreatePersistentVolumeRequest.h>
using AlibabaCloud::Retailcloud::Model::CreatePersistentVolumeRequest;
CreatePersistentVolumeRequest::CreatePersistentVolumeRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreatePersistentVolume")
{
setMethod(HttpRequest::Method::Post);
}
CreatePersistentVolumeRequest::~CreatePersistentVolumeRequest()
{}
std::string CreatePersistentVolumeRequest::getReclaimPolicy()const
{
return reclaimPolicy_;
}
void CreatePersistentVolumeRequest::setReclaimPolicy(const std::string& reclaimPolicy)
{
reclaimPolicy_ = reclaimPolicy;
setBodyParameter("ReclaimPolicy", reclaimPolicy);
}
std::string CreatePersistentVolumeRequest::getNFSVersion()const
{
return nFSVersion_;
}
void CreatePersistentVolumeRequest::setNFSVersion(const std::string& nFSVersion)
{
nFSVersion_ = nFSVersion;
setBodyParameter("NFSVersion", nFSVersion);
}
std::string CreatePersistentVolumeRequest::getAccessModes()const
{
return accessModes_;
}
void CreatePersistentVolumeRequest::setAccessModes(const std::string& accessModes)
{
accessModes_ = accessModes;
setBodyParameter("AccessModes", accessModes);
}
std::string CreatePersistentVolumeRequest::getName()const
{
return name_;
}
void CreatePersistentVolumeRequest::setName(const std::string& name)
{
name_ = name;
setBodyParameter("Name", name);
}
std::string CreatePersistentVolumeRequest::getMountTargetDomain()const
{
return mountTargetDomain_;
}
void CreatePersistentVolumeRequest::setMountTargetDomain(const std::string& mountTargetDomain)
{
mountTargetDomain_ = mountTargetDomain;
setBodyParameter("MountTargetDomain", mountTargetDomain);
}
std::string CreatePersistentVolumeRequest::getMountDir()const
{
return mountDir_;
}
void CreatePersistentVolumeRequest::setMountDir(const std::string& mountDir)
{
mountDir_ = mountDir;
setBodyParameter("MountDir", mountDir);
}
std::string CreatePersistentVolumeRequest::getClusterInstanceId()const
{
return clusterInstanceId_;
}
void CreatePersistentVolumeRequest::setClusterInstanceId(const std::string& clusterInstanceId)
{
clusterInstanceId_ = clusterInstanceId;
setBodyParameter("ClusterInstanceId", clusterInstanceId);
}
std::string CreatePersistentVolumeRequest::getCapacity()const
{
return capacity_;
}
void CreatePersistentVolumeRequest::setCapacity(const std::string& capacity)
{
capacity_ = capacity;
setBodyParameter("Capacity", capacity);
}
std::string CreatePersistentVolumeRequest::getStorageClass()const
{
return storageClass_;
}
void CreatePersistentVolumeRequest::setStorageClass(const std::string& storageClass)
{
storageClass_ = storageClass;
setBodyParameter("StorageClass", storageClass);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreatePersistentVolumeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreatePersistentVolumeResult::CreatePersistentVolumeResult() :
ServiceResult()
{}
CreatePersistentVolumeResult::CreatePersistentVolumeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreatePersistentVolumeResult::~CreatePersistentVolumeResult()
{}
void CreatePersistentVolumeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["PersistentVolumeId"].isNull())
result_.persistentVolumeId = std::stol(resultNode["PersistentVolumeId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string CreatePersistentVolumeResult::getErrMsg()const
{
return errMsg_;
}
int CreatePersistentVolumeResult::getCode()const
{
return code_;
}
CreatePersistentVolumeResult::Result CreatePersistentVolumeResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,103 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateServiceRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateServiceRequest;
CreateServiceRequest::CreateServiceRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateService")
{
setMethod(HttpRequest::Method::Post);
}
CreateServiceRequest::~CreateServiceRequest()
{}
bool CreateServiceRequest::getHeadless()const
{
return headless_;
}
void CreateServiceRequest::setHeadless(bool headless)
{
headless_ = headless;
setParameter("Headless", headless ? "true" : "false");
}
std::string CreateServiceRequest::getServiceType()const
{
return serviceType_;
}
void CreateServiceRequest::setServiceType(const std::string& serviceType)
{
serviceType_ = serviceType;
setParameter("ServiceType", serviceType);
}
std::string CreateServiceRequest::getK8sServiceId()const
{
return k8sServiceId_;
}
void CreateServiceRequest::setK8sServiceId(const std::string& k8sServiceId)
{
k8sServiceId_ = k8sServiceId;
setParameter("K8sServiceId", k8sServiceId);
}
std::string CreateServiceRequest::getName()const
{
return name_;
}
void CreateServiceRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::vector<CreateServiceRequest::PortMappings> CreateServiceRequest::getPortMappings()const
{
return portMappings_;
}
void CreateServiceRequest::setPortMappings(const std::vector<PortMappings>& portMappings)
{
portMappings_ = portMappings;
for(int dep1 = 0; dep1!= portMappings.size(); dep1++) {
auto portMappingsObj = portMappings.at(dep1);
std::string portMappingsObjStr = "PortMappings." + std::to_string(dep1 + 1);
setParameter(portMappingsObjStr + ".Protocol", portMappingsObj.protocol);
setParameter(portMappingsObjStr + ".Port", std::to_string(portMappingsObj.port));
setParameter(portMappingsObjStr + ".Name", portMappingsObj.name);
setParameter(portMappingsObjStr + ".NodePort", std::to_string(portMappingsObj.nodePort));
setParameter(portMappingsObjStr + ".TargetPort", portMappingsObj.targetPort);
}
}
long CreateServiceRequest::getEnvId()const
{
return envId_;
}
void CreateServiceRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateServiceResult::CreateServiceResult() :
ServiceResult()
{}
CreateServiceResult::CreateServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateServiceResult::~CreateServiceResult()
{}
void CreateServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["ServiceId"].isNull())
result_.serviceId = std::stol(resultNode["ServiceId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateServiceResult::getErrMsg()const
{
return errMsg_;
}
int CreateServiceResult::getCode()const
{
return code_;
}
bool CreateServiceResult::getSuccess()const
{
return success_;
}
CreateServiceResult::Result CreateServiceResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,139 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateSlbAPRequest.h>
using AlibabaCloud::Retailcloud::Model::CreateSlbAPRequest;
CreateSlbAPRequest::CreateSlbAPRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "CreateSlbAP")
{
setMethod(HttpRequest::Method::Post);
}
CreateSlbAPRequest::~CreateSlbAPRequest()
{}
std::string CreateSlbAPRequest::getSslCertId()const
{
return sslCertId_;
}
void CreateSlbAPRequest::setSslCertId(const std::string& sslCertId)
{
sslCertId_ = sslCertId;
setParameter("SslCertId", sslCertId);
}
int CreateSlbAPRequest::getListenerPort()const
{
return listenerPort_;
}
void CreateSlbAPRequest::setListenerPort(int listenerPort)
{
listenerPort_ = listenerPort;
setParameter("ListenerPort", std::to_string(listenerPort));
}
std::string CreateSlbAPRequest::getProtocol()const
{
return protocol_;
}
void CreateSlbAPRequest::setProtocol(const std::string& protocol)
{
protocol_ = protocol;
setParameter("Protocol", protocol);
}
int CreateSlbAPRequest::getEstablishedTimeout()const
{
return establishedTimeout_;
}
void CreateSlbAPRequest::setEstablishedTimeout(int establishedTimeout)
{
establishedTimeout_ = establishedTimeout;
setParameter("EstablishedTimeout", std::to_string(establishedTimeout));
}
std::string CreateSlbAPRequest::getSlbId()const
{
return slbId_;
}
void CreateSlbAPRequest::setSlbId(const std::string& slbId)
{
slbId_ = slbId;
setParameter("SlbId", slbId);
}
int CreateSlbAPRequest::getRealServerPort()const
{
return realServerPort_;
}
void CreateSlbAPRequest::setRealServerPort(int realServerPort)
{
realServerPort_ = realServerPort;
setParameter("RealServerPort", std::to_string(realServerPort));
}
int CreateSlbAPRequest::getStickySession()const
{
return stickySession_;
}
void CreateSlbAPRequest::setStickySession(int stickySession)
{
stickySession_ = stickySession;
setParameter("StickySession", std::to_string(stickySession));
}
int CreateSlbAPRequest::getCookieTimeout()const
{
return cookieTimeout_;
}
void CreateSlbAPRequest::setCookieTimeout(int cookieTimeout)
{
cookieTimeout_ = cookieTimeout;
setParameter("CookieTimeout", std::to_string(cookieTimeout));
}
std::string CreateSlbAPRequest::getName()const
{
return name_;
}
void CreateSlbAPRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long CreateSlbAPRequest::getEnvId()const
{
return envId_;
}
void CreateSlbAPRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/CreateSlbAPResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
CreateSlbAPResult::CreateSlbAPResult() :
ServiceResult()
{}
CreateSlbAPResult::CreateSlbAPResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSlbAPResult::~CreateSlbAPResult()
{}
void CreateSlbAPResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["SlbAPId"].isNull())
result_.slbAPId = std::stol(resultNode["SlbAPId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateSlbAPResult::getErrMsg()const
{
return errMsg_;
}
int CreateSlbAPResult::getCode()const
{
return code_;
}
bool CreateSlbAPResult::getSuccess()const
{
return success_;
}
CreateSlbAPResult::Result CreateSlbAPResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteAppDetailRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteAppDetailRequest;
DeleteAppDetailRequest::DeleteAppDetailRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppDetail")
{
setMethod(HttpRequest::Method::Get);
}
DeleteAppDetailRequest::~DeleteAppDetailRequest()
{}
long DeleteAppDetailRequest::getAppId()const
{
return appId_;
}
void DeleteAppDetailRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
bool DeleteAppDetailRequest::getForce()const
{
return force_;
}
void DeleteAppDetailRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteAppDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteAppDetailResult::DeleteAppDetailResult() :
ServiceResult()
{}
DeleteAppDetailResult::DeleteAppDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAppDetailResult::~DeleteAppDetailResult()
{}
void DeleteAppDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Success"].isNull())
result_.success = resultNode["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DeleteAppDetailResult::getErrMsg()const
{
return errMsg_;
}
int DeleteAppDetailResult::getCode()const
{
return code_;
}
DeleteAppDetailResult::Result DeleteAppDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteAppEnvironmentRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteAppEnvironmentRequest;
DeleteAppEnvironmentRequest::DeleteAppEnvironmentRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppEnvironment")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAppEnvironmentRequest::~DeleteAppEnvironmentRequest()
{}
long DeleteAppEnvironmentRequest::getAppId()const
{
return appId_;
}
void DeleteAppEnvironmentRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
bool DeleteAppEnvironmentRequest::getForce()const
{
return force_;
}
void DeleteAppEnvironmentRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
}
long DeleteAppEnvironmentRequest::getEnvId()const
{
return envId_;
}
void DeleteAppEnvironmentRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteAppEnvironmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteAppEnvironmentResult::DeleteAppEnvironmentResult() :
ServiceResult()
{}
DeleteAppEnvironmentResult::DeleteAppEnvironmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAppEnvironmentResult::~DeleteAppEnvironmentResult()
{}
void DeleteAppEnvironmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Success"].isNull())
result_.success = resultNode["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DeleteAppEnvironmentResult::getErrMsg()const
{
return errMsg_;
}
int DeleteAppEnvironmentResult::getCode()const
{
return code_;
}
DeleteAppEnvironmentResult::Result DeleteAppEnvironmentResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteAppResourceAllocRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteAppResourceAllocRequest;
DeleteAppResourceAllocRequest::DeleteAppResourceAllocRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteAppResourceAlloc")
{
setMethod(HttpRequest::Method::Post);
}
DeleteAppResourceAllocRequest::~DeleteAppResourceAllocRequest()
{}
long DeleteAppResourceAllocRequest::getAppEnvId()const
{
return appEnvId_;
}
void DeleteAppResourceAllocRequest::setAppEnvId(long appEnvId)
{
appEnvId_ = appEnvId;
setParameter("AppEnvId", std::to_string(appEnvId));
}

View 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/retailcloud/model/DeleteAppResourceAllocResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteAppResourceAllocResult::DeleteAppResourceAllocResult() :
ServiceResult()
{}
DeleteAppResourceAllocResult::DeleteAppResourceAllocResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteAppResourceAllocResult::~DeleteAppResourceAllocResult()
{}
void DeleteAppResourceAllocResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteAppResourceAllocResult::getErrMsg()const
{
return errMsg_;
}
int DeleteAppResourceAllocResult::getCode()const
{
return code_;
}
bool DeleteAppResourceAllocResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteClusterRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteClusterRequest;
DeleteClusterRequest::DeleteClusterRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteCluster")
{
setMethod(HttpRequest::Method::Post);
}
DeleteClusterRequest::~DeleteClusterRequest()
{}
std::string DeleteClusterRequest::getClusterInstanceId()const
{
return clusterInstanceId_;
}
void DeleteClusterRequest::setClusterInstanceId(const std::string& clusterInstanceId)
{
clusterInstanceId_ = clusterInstanceId;
setParameter("ClusterInstanceId", clusterInstanceId);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::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());
auto resultNode = value["Result"];
if(!resultNode["Nonsense"].isNull())
result_.nonsense = std::stoi(resultNode["Nonsense"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteClusterResult::getErrMsg()const
{
return errMsg_;
}
int DeleteClusterResult::getCode()const
{
return code_;
}
bool DeleteClusterResult::getSuccess()const
{
return success_;
}
DeleteClusterResult::Result DeleteClusterResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteDatabaseRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteDatabaseRequest;
DeleteDatabaseRequest::DeleteDatabaseRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteDatabase")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDatabaseRequest::~DeleteDatabaseRequest()
{}
std::string DeleteDatabaseRequest::getDBName()const
{
return dBName_;
}
void DeleteDatabaseRequest::setDBName(const std::string& dBName)
{
dBName_ = dBName;
setBodyParameter("DBName", dBName);
}
std::string DeleteDatabaseRequest::getDBInstanceId()const
{
return dBInstanceId_;
}
void DeleteDatabaseRequest::setDBInstanceId(const std::string& dBInstanceId)
{
dBInstanceId_ = dBInstanceId;
setBodyParameter("DBInstanceId", dBInstanceId);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteDatabaseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteDatabaseResult::DeleteDatabaseResult() :
ServiceResult()
{}
DeleteDatabaseResult::DeleteDatabaseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDatabaseResult::~DeleteDatabaseResult()
{}
void DeleteDatabaseResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DeleteDatabaseResult::getErrMsg()const
{
return errMsg_;
}
int DeleteDatabaseResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteDeployConfigRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteDeployConfigRequest;
DeleteDeployConfigRequest::DeleteDeployConfigRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteDeployConfig")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDeployConfigRequest::~DeleteDeployConfigRequest()
{}
long DeleteDeployConfigRequest::getSchemaId()const
{
return schemaId_;
}
void DeleteDeployConfigRequest::setSchemaId(long schemaId)
{
schemaId_ = schemaId;
setParameter("SchemaId", std::to_string(schemaId));
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteDeployConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteDeployConfigResult::DeleteDeployConfigResult() :
ServiceResult()
{}
DeleteDeployConfigResult::DeleteDeployConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDeployConfigResult::~DeleteDeployConfigResult()
{}
void DeleteDeployConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Success"].isNull())
result_.success = resultNode["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DeleteDeployConfigResult::getErrMsg()const
{
return errMsg_;
}
int DeleteDeployConfigResult::getCode()const
{
return code_;
}
DeleteDeployConfigResult::Result DeleteDeployConfigResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteNodeLabelRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteNodeLabelRequest;
DeleteNodeLabelRequest::DeleteNodeLabelRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteNodeLabel")
{
setMethod(HttpRequest::Method::Post);
}
DeleteNodeLabelRequest::~DeleteNodeLabelRequest()
{}
std::string DeleteNodeLabelRequest::getLabelKey()const
{
return labelKey_;
}
void DeleteNodeLabelRequest::setLabelKey(const std::string& labelKey)
{
labelKey_ = labelKey;
setParameter("LabelKey", labelKey);
}
std::string DeleteNodeLabelRequest::getLabelValue()const
{
return labelValue_;
}
void DeleteNodeLabelRequest::setLabelValue(const std::string& labelValue)
{
labelValue_ = labelValue;
setParameter("LabelValue", labelValue);
}
bool DeleteNodeLabelRequest::getForce()const
{
return force_;
}
void DeleteNodeLabelRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", force ? "true" : "false");
}
std::string DeleteNodeLabelRequest::getClusterId()const
{
return clusterId_;
}
void DeleteNodeLabelRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}

View 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/retailcloud/model/DeleteNodeLabelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteNodeLabelResult::DeleteNodeLabelResult() :
ServiceResult()
{}
DeleteNodeLabelResult::DeleteNodeLabelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNodeLabelResult::~DeleteNodeLabelResult()
{}
void DeleteNodeLabelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteNodeLabelResult::getErrMsg()const
{
return errMsg_;
}
int DeleteNodeLabelResult::getCode()const
{
return code_;
}
bool DeleteNodeLabelResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeletePersistentVolumeClaimRequest.h>
using AlibabaCloud::Retailcloud::Model::DeletePersistentVolumeClaimRequest;
DeletePersistentVolumeClaimRequest::DeletePersistentVolumeClaimRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeletePersistentVolumeClaim")
{
setMethod(HttpRequest::Method::Post);
}
DeletePersistentVolumeClaimRequest::~DeletePersistentVolumeClaimRequest()
{}
std::string DeletePersistentVolumeClaimRequest::getPersistentVolumeClaimName()const
{
return persistentVolumeClaimName_;
}
void DeletePersistentVolumeClaimRequest::setPersistentVolumeClaimName(const std::string& persistentVolumeClaimName)
{
persistentVolumeClaimName_ = persistentVolumeClaimName;
setParameter("PersistentVolumeClaimName", persistentVolumeClaimName);
}
long DeletePersistentVolumeClaimRequest::getAppId()const
{
return appId_;
}
void DeletePersistentVolumeClaimRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
long DeletePersistentVolumeClaimRequest::getEnvId()const
{
return envId_;
}
void DeletePersistentVolumeClaimRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeletePersistentVolumeClaimResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeletePersistentVolumeClaimResult::DeletePersistentVolumeClaimResult() :
ServiceResult()
{}
DeletePersistentVolumeClaimResult::DeletePersistentVolumeClaimResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePersistentVolumeClaimResult::~DeletePersistentVolumeClaimResult()
{}
void DeletePersistentVolumeClaimResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Success"].isNull())
result_.success = resultNode["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DeletePersistentVolumeClaimResult::getErrMsg()const
{
return errMsg_;
}
int DeletePersistentVolumeClaimResult::getCode()const
{
return code_;
}
DeletePersistentVolumeClaimResult::Result DeletePersistentVolumeClaimResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeletePersistentVolumeRequest.h>
using AlibabaCloud::Retailcloud::Model::DeletePersistentVolumeRequest;
DeletePersistentVolumeRequest::DeletePersistentVolumeRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeletePersistentVolume")
{
setMethod(HttpRequest::Method::Post);
}
DeletePersistentVolumeRequest::~DeletePersistentVolumeRequest()
{}
std::string DeletePersistentVolumeRequest::getPersistentVolumeName()const
{
return persistentVolumeName_;
}
void DeletePersistentVolumeRequest::setPersistentVolumeName(const std::string& persistentVolumeName)
{
persistentVolumeName_ = persistentVolumeName;
setBodyParameter("PersistentVolumeName", persistentVolumeName);
}
std::string DeletePersistentVolumeRequest::getClusterInstanceId()const
{
return clusterInstanceId_;
}
void DeletePersistentVolumeRequest::setClusterInstanceId(const std::string& clusterInstanceId)
{
clusterInstanceId_ = clusterInstanceId;
setBodyParameter("ClusterInstanceId", clusterInstanceId);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeletePersistentVolumeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeletePersistentVolumeResult::DeletePersistentVolumeResult() :
ServiceResult()
{}
DeletePersistentVolumeResult::DeletePersistentVolumeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeletePersistentVolumeResult::~DeletePersistentVolumeResult()
{}
void DeletePersistentVolumeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Success"].isNull())
result_.success = resultNode["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DeletePersistentVolumeResult::getErrMsg()const
{
return errMsg_;
}
int DeletePersistentVolumeResult::getCode()const
{
return code_;
}
DeletePersistentVolumeResult::Result DeletePersistentVolumeResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteRdsAccountRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteRdsAccountRequest;
DeleteRdsAccountRequest::DeleteRdsAccountRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteRdsAccount")
{
setMethod(HttpRequest::Method::Post);
}
DeleteRdsAccountRequest::~DeleteRdsAccountRequest()
{}
std::string DeleteRdsAccountRequest::getAccountName()const
{
return accountName_;
}
void DeleteRdsAccountRequest::setAccountName(const std::string& accountName)
{
accountName_ = accountName;
setBodyParameter("AccountName", accountName);
}
std::string DeleteRdsAccountRequest::getDbInstanceId()const
{
return dbInstanceId_;
}
void DeleteRdsAccountRequest::setDbInstanceId(const std::string& dbInstanceId)
{
dbInstanceId_ = dbInstanceId;
setBodyParameter("DbInstanceId", dbInstanceId);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteRdsAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteRdsAccountResult::DeleteRdsAccountResult() :
ServiceResult()
{}
DeleteRdsAccountResult::DeleteRdsAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteRdsAccountResult::~DeleteRdsAccountResult()
{}
void DeleteRdsAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["RequestId"].isNull())
result_.requestId = resultNode["RequestId"].asString();
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
}
std::string DeleteRdsAccountResult::getErrMsg()const
{
return errMsg_;
}
int DeleteRdsAccountResult::getCode()const
{
return code_;
}
DeleteRdsAccountResult::Result DeleteRdsAccountResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteServiceRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteServiceRequest;
DeleteServiceRequest::DeleteServiceRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteService")
{
setMethod(HttpRequest::Method::Post);
}
DeleteServiceRequest::~DeleteServiceRequest()
{}
long DeleteServiceRequest::getServiceId()const
{
return serviceId_;
}
void DeleteServiceRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setParameter("ServiceId", std::to_string(serviceId));
}

View 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/retailcloud/model/DeleteServiceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteServiceResult::DeleteServiceResult() :
ServiceResult()
{}
DeleteServiceResult::DeleteServiceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteServiceResult::~DeleteServiceResult()
{}
void DeleteServiceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteServiceResult::getErrMsg()const
{
return errMsg_;
}
int DeleteServiceResult::getCode()const
{
return code_;
}
bool DeleteServiceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeleteSlbAPRequest.h>
using AlibabaCloud::Retailcloud::Model::DeleteSlbAPRequest;
DeleteSlbAPRequest::DeleteSlbAPRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeleteSlbAP")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSlbAPRequest::~DeleteSlbAPRequest()
{}
long DeleteSlbAPRequest::getSlbAPId()const
{
return slbAPId_;
}
void DeleteSlbAPRequest::setSlbAPId(long slbAPId)
{
slbAPId_ = slbAPId;
setParameter("SlbAPId", std::to_string(slbAPId));
}

View 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/retailcloud/model/DeleteSlbAPResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeleteSlbAPResult::DeleteSlbAPResult() :
ServiceResult()
{}
DeleteSlbAPResult::DeleteSlbAPResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSlbAPResult::~DeleteSlbAPResult()
{}
void DeleteSlbAPResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteSlbAPResult::getErrMsg()const
{
return errMsg_;
}
int DeleteSlbAPResult::getCode()const
{
return code_;
}
bool DeleteSlbAPResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,117 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeployAppRequest.h>
using AlibabaCloud::Retailcloud::Model::DeployAppRequest;
DeployAppRequest::DeployAppRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DeployApp")
{
setMethod(HttpRequest::Method::Post);
}
DeployAppRequest::~DeployAppRequest()
{}
long DeployAppRequest::getDeployPacketId()const
{
return deployPacketId_;
}
void DeployAppRequest::setDeployPacketId(long deployPacketId)
{
deployPacketId_ = deployPacketId;
setParameter("DeployPacketId", std::to_string(deployPacketId));
}
std::string DeployAppRequest::getDeployPacketUrl()const
{
return deployPacketUrl_;
}
void DeployAppRequest::setDeployPacketUrl(const std::string& deployPacketUrl)
{
deployPacketUrl_ = deployPacketUrl;
setParameter("DeployPacketUrl", deployPacketUrl);
}
int DeployAppRequest::getTotalPartitions()const
{
return totalPartitions_;
}
void DeployAppRequest::setTotalPartitions(int totalPartitions)
{
totalPartitions_ = totalPartitions;
setParameter("TotalPartitions", std::to_string(totalPartitions));
}
std::string DeployAppRequest::getName()const
{
return name_;
}
void DeployAppRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DeployAppRequest::getDescription()const
{
return description_;
}
void DeployAppRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long DeployAppRequest::getEnvId()const
{
return envId_;
}
void DeployAppRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}
std::string DeployAppRequest::getPauseType()const
{
return pauseType_;
}
void DeployAppRequest::setPauseType(const std::string& pauseType)
{
pauseType_ = pauseType;
setParameter("PauseType", pauseType);
}
bool DeployAppRequest::getArmsFlag()const
{
return armsFlag_;
}
void DeployAppRequest::setArmsFlag(bool armsFlag)
{
armsFlag_ = armsFlag;
setParameter("ArmsFlag", armsFlag ? "true" : "false");
}

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DeployAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DeployAppResult::DeployAppResult() :
ServiceResult()
{}
DeployAppResult::DeployAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeployAppResult::~DeployAppResult()
{}
void DeployAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["Admitted"].isNull())
result_.admitted = resultNode["Admitted"].asString() == "true";
if(!resultNode["BusinessCode"].isNull())
result_.businessCode = resultNode["BusinessCode"].asString();
if(!resultNode["DeployOrderId"].isNull())
result_.deployOrderId = std::stol(resultNode["DeployOrderId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeployAppResult::getErrMsg()const
{
return errMsg_;
}
int DeployAppResult::getCode()const
{
return code_;
}
bool DeployAppResult::getSuccess()const
{
return success_;
}
DeployAppResult::Result DeployAppResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeAppDetailRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeAppDetailRequest;
DescribeAppDetailRequest::DescribeAppDetailRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAppDetailRequest::~DescribeAppDetailRequest()
{}
long DescribeAppDetailRequest::getAppId()const
{
return appId_;
}
void DescribeAppDetailRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}

View File

@@ -0,0 +1,110 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeAppDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeAppDetailResult::DescribeAppDetailResult() :
ServiceResult()
{}
DescribeAppDetailResult::DescribeAppDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppDetailResult::~DescribeAppDetailResult()
{}
void DescribeAppDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["ServiceType"].isNull())
result_.serviceType = resultNode["ServiceType"].asString();
if(!resultNode["BizTitle"].isNull())
result_.bizTitle = resultNode["BizTitle"].asString();
if(!resultNode["BizName"].isNull())
result_.bizName = resultNode["BizName"].asString();
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["Language"].isNull())
result_.language = resultNode["Language"].asString();
if(!resultNode["Title"].isNull())
result_.title = resultNode["Title"].asString();
if(!resultNode["OperatingSystem"].isNull())
result_.operatingSystem = resultNode["OperatingSystem"].asString();
if(!resultNode["DeployType"].isNull())
result_.deployType = resultNode["DeployType"].asString();
if(!resultNode["Description"].isNull())
result_.description = resultNode["Description"].asString();
if(!resultNode["AppStateType"].isNull())
result_.appStateType = resultNode["AppStateType"].asString();
auto allUserRolesNode = resultNode["UserRoles"]["UserRole"];
for (auto resultNodeUserRolesUserRole : allUserRolesNode)
{
Result::UserRole userRoleObject;
if(!resultNodeUserRolesUserRole["UserId"].isNull())
userRoleObject.userId = resultNodeUserRolesUserRole["UserId"].asString();
if(!resultNodeUserRolesUserRole["UserType"].isNull())
userRoleObject.userType = resultNodeUserRolesUserRole["UserType"].asString();
if(!resultNodeUserRolesUserRole["RealName"].isNull())
userRoleObject.realName = resultNodeUserRolesUserRole["RealName"].asString();
if(!resultNodeUserRolesUserRole["RoleName"].isNull())
userRoleObject.roleName = resultNodeUserRolesUserRole["RoleName"].asString();
result_.userRoles.push_back(userRoleObject);
}
auto allMiddleWareInfoListNode = resultNode["MiddleWareInfoList"]["MiddleWareInfo"];
for (auto resultNodeMiddleWareInfoListMiddleWareInfo : allMiddleWareInfoListNode)
{
Result::MiddleWareInfo middleWareInfoObject;
if(!resultNodeMiddleWareInfoListMiddleWareInfo["AppId"].isNull())
middleWareInfoObject.appId = std::stol(resultNodeMiddleWareInfoListMiddleWareInfo["AppId"].asString());
if(!resultNodeMiddleWareInfoListMiddleWareInfo["Code"].isNull())
middleWareInfoObject.code = std::stoi(resultNodeMiddleWareInfoListMiddleWareInfo["Code"].asString());
if(!resultNodeMiddleWareInfoListMiddleWareInfo["Name"].isNull())
middleWareInfoObject.name = resultNodeMiddleWareInfoListMiddleWareInfo["Name"].asString();
result_.middleWareInfoList.push_back(middleWareInfoObject);
}
if(!value["Code"].isNull())
code_ = std::stol(value["Code"].asString());
if(!value["ErrMessage"].isNull())
errMessage_ = value["ErrMessage"].asString();
}
std::string DescribeAppDetailResult::getErrMessage()const
{
return errMessage_;
}
long DescribeAppDetailResult::getCode()const
{
return code_;
}
DescribeAppDetailResult::Result DescribeAppDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeAppEnvironmentDetailRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeAppEnvironmentDetailRequest;
DescribeAppEnvironmentDetailRequest::DescribeAppEnvironmentDetailRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppEnvironmentDetail")
{
setMethod(HttpRequest::Method::Get);
}
DescribeAppEnvironmentDetailRequest::~DescribeAppEnvironmentDetailRequest()
{}
long DescribeAppEnvironmentDetailRequest::getAppId()const
{
return appId_;
}
void DescribeAppEnvironmentDetailRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
long DescribeAppEnvironmentDetailRequest::getEnvId()const
{
return envId_;
}
void DescribeAppEnvironmentDetailRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}

View 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/retailcloud/model/DescribeAppEnvironmentDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeAppEnvironmentDetailResult::DescribeAppEnvironmentDetailResult() :
ServiceResult()
{}
DescribeAppEnvironmentDetailResult::DescribeAppEnvironmentDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppEnvironmentDetailResult::~DescribeAppEnvironmentDetailResult()
{}
void DescribeAppEnvironmentDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["EnvId"].isNull())
result_.envId = std::stol(resultNode["EnvId"].asString());
if(!resultNode["EnvName"].isNull())
result_.envName = resultNode["EnvName"].asString();
if(!resultNode["EnvType"].isNull())
result_.envType = std::stoi(resultNode["EnvType"].asString());
if(!resultNode["EnvTypeName"].isNull())
result_.envTypeName = resultNode["EnvTypeName"].asString();
if(!resultNode["AppSchemaId"].isNull())
result_.appSchemaId = std::stol(resultNode["AppSchemaId"].asString());
if(!resultNode["Region"].isNull())
result_.region = resultNode["Region"].asString();
if(!resultNode["Replicas"].isNull())
result_.replicas = std::stoi(resultNode["Replicas"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DescribeAppEnvironmentDetailResult::getErrMsg()const
{
return errMsg_;
}
int DescribeAppEnvironmentDetailResult::getCode()const
{
return code_;
}
DescribeAppEnvironmentDetailResult::Result DescribeAppEnvironmentDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeAppResourceAllocRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeAppResourceAllocRequest;
DescribeAppResourceAllocRequest::DescribeAppResourceAllocRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeAppResourceAlloc")
{
setMethod(HttpRequest::Method::Get);
}
DescribeAppResourceAllocRequest::~DescribeAppResourceAllocRequest()
{}
long DescribeAppResourceAllocRequest::getAppEnvId()const
{
return appEnvId_;
}
void DescribeAppResourceAllocRequest::setAppEnvId(long appEnvId)
{
appEnvId_ = appEnvId;
setParameter("AppEnvId", std::to_string(appEnvId));
}

View 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/retailcloud/model/DescribeAppResourceAllocResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeAppResourceAllocResult::DescribeAppResourceAllocResult() :
ServiceResult()
{}
DescribeAppResourceAllocResult::DescribeAppResourceAllocResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppResourceAllocResult::~DescribeAppResourceAllocResult()
{}
void DescribeAppResourceAllocResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppEnvId"].isNull())
result_.appEnvId = std::stol(resultNode["AppEnvId"].asString());
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["ClusterId"].isNull())
result_.clusterId = resultNode["ClusterId"].asString();
if(!resultNode["Id"].isNull())
result_.id = std::stol(resultNode["Id"].asString());
if(!resultNode["ResourceDef"].isNull())
result_.resourceDef = resultNode["ResourceDef"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeAppResourceAllocResult::getErrMsg()const
{
return errMsg_;
}
int DescribeAppResourceAllocResult::getCode()const
{
return code_;
}
bool DescribeAppResourceAllocResult::getSuccess()const
{
return success_;
}
DescribeAppResourceAllocResult::Result DescribeAppResourceAllocResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeDatabasesRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeDatabasesRequest;
DescribeDatabasesRequest::DescribeDatabasesRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeDatabases")
{
setMethod(HttpRequest::Method::Get);
}
DescribeDatabasesRequest::~DescribeDatabasesRequest()
{}
std::string DescribeDatabasesRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeDatabasesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}

View 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/retailcloud/model/DescribeDatabasesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeDatabasesResult::DescribeDatabasesResult() :
ServiceResult()
{}
DescribeDatabasesResult::DescribeDatabasesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDatabasesResult::~DescribeDatabasesResult()
{}
void DescribeDatabasesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
auto allDatabasesNode = resultNode["Databases"]["DatabasesItem"];
for (auto resultNodeDatabasesDatabasesItem : allDatabasesNode)
{
Result::DatabasesItem databasesItemObject;
if(!resultNodeDatabasesDatabasesItem["DBName"].isNull())
databasesItemObject.dBName = resultNodeDatabasesDatabasesItem["DBName"].asString();
if(!resultNodeDatabasesDatabasesItem["DBStatus"].isNull())
databasesItemObject.dBStatus = resultNodeDatabasesDatabasesItem["DBStatus"].asString();
if(!resultNodeDatabasesDatabasesItem["DBDescription"].isNull())
databasesItemObject.dBDescription = resultNodeDatabasesDatabasesItem["DBDescription"].asString();
if(!resultNodeDatabasesDatabasesItem["Engine"].isNull())
databasesItemObject.engine = resultNodeDatabasesDatabasesItem["Engine"].asString();
if(!resultNodeDatabasesDatabasesItem["CharacterSetName"].isNull())
databasesItemObject.characterSetName = resultNodeDatabasesDatabasesItem["CharacterSetName"].asString();
if(!resultNodeDatabasesDatabasesItem["DBInstanceId"].isNull())
databasesItemObject.dBInstanceId = resultNodeDatabasesDatabasesItem["DBInstanceId"].asString();
auto allAccountsNode = allDatabasesNode["Accounts"]["AccountsItem"];
for (auto allDatabasesNodeAccountsAccountsItem : allAccountsNode)
{
Result::DatabasesItem::AccountsItem accountsObject;
if(!allDatabasesNodeAccountsAccountsItem["AccountPrivilegeDetail"].isNull())
accountsObject.accountPrivilegeDetail = allDatabasesNodeAccountsAccountsItem["AccountPrivilegeDetail"].asString();
if(!allDatabasesNodeAccountsAccountsItem["AccountPrivilege"].isNull())
accountsObject.accountPrivilege = allDatabasesNodeAccountsAccountsItem["AccountPrivilege"].asString();
if(!allDatabasesNodeAccountsAccountsItem["Account"].isNull())
accountsObject.account = allDatabasesNodeAccountsAccountsItem["Account"].asString();
databasesItemObject.accounts.push_back(accountsObject);
}
result_.databases.push_back(databasesItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DescribeDatabasesResult::getErrMsg()const
{
return errMsg_;
}
int DescribeDatabasesResult::getCode()const
{
return code_;
}
DescribeDatabasesResult::Result DescribeDatabasesResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeDeployOrderDetailRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeDeployOrderDetailRequest;
DescribeDeployOrderDetailRequest::DescribeDeployOrderDetailRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeDeployOrderDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeDeployOrderDetailRequest::~DescribeDeployOrderDetailRequest()
{}
long DescribeDeployOrderDetailRequest::getDeployOrderId()const
{
return deployOrderId_;
}
void DescribeDeployOrderDetailRequest::setDeployOrderId(long deployOrderId)
{
deployOrderId_ = deployOrderId;
setParameter("DeployOrderId", std::to_string(deployOrderId));
}

View File

@@ -0,0 +1,125 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeDeployOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeDeployOrderDetailResult::DescribeDeployOrderDetailResult() :
ServiceResult()
{}
DescribeDeployOrderDetailResult::DescribeDeployOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDeployOrderDetailResult::~DescribeDeployOrderDetailResult()
{}
void DescribeDeployOrderDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppInstanceType"].isNull())
result_.appInstanceType = resultNode["AppInstanceType"].asString();
if(!resultNode["CurrentPartitionNum"].isNull())
result_.currentPartitionNum = std::stoi(resultNode["CurrentPartitionNum"].asString());
if(!resultNode["DeployOrderId"].isNull())
result_.deployOrderId = std::stol(resultNode["DeployOrderId"].asString());
if(!resultNode["DeployPauseType"].isNull())
result_.deployPauseType = resultNode["DeployPauseType"].asString();
if(!resultNode["DeployPauseTypeName"].isNull())
result_.deployPauseTypeName = resultNode["DeployPauseTypeName"].asString();
if(!resultNode["DeployType"].isNull())
result_.deployType = resultNode["DeployType"].asString();
if(!resultNode["DeployTypeName"].isNull())
result_.deployTypeName = resultNode["DeployTypeName"].asString();
if(!resultNode["Description"].isNull())
result_.description = resultNode["Description"].asString();
if(!resultNode["ElapsedTime"].isNull())
result_.elapsedTime = std::stoi(resultNode["ElapsedTime"].asString());
if(!resultNode["EndTime"].isNull())
result_.endTime = resultNode["EndTime"].asString();
if(!resultNode["EnvId"].isNull())
result_.envId = std::stol(resultNode["EnvId"].asString());
if(!resultNode["EnvType"].isNull())
result_.envType = resultNode["EnvType"].asString();
if(!resultNode["FailureRate"].isNull())
result_.failureRate = resultNode["FailureRate"].asString();
if(!resultNode["FinishAppInstanceCt"].isNull())
result_.finishAppInstanceCt = std::stoi(resultNode["FinishAppInstanceCt"].asString());
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["PartitionType"].isNull())
result_.partitionType = resultNode["PartitionType"].asString();
if(!resultNode["PartitionTypeName"].isNull())
result_.partitionTypeName = resultNode["PartitionTypeName"].asString();
if(!resultNode["Result"].isNull())
result_.result = std::stoi(resultNode["Result"].asString());
if(!resultNode["ResultName"].isNull())
result_.resultName = resultNode["ResultName"].asString();
if(!resultNode["SchemaId"].isNull())
result_.schemaId = std::stol(resultNode["SchemaId"].asString());
if(!resultNode["StartTime"].isNull())
result_.startTime = resultNode["StartTime"].asString();
if(!resultNode["Status"].isNull())
result_.status = std::stoi(resultNode["Status"].asString());
if(!resultNode["StatusName"].isNull())
result_.statusName = resultNode["StatusName"].asString();
if(!resultNode["TotalAppInstanceCt"].isNull())
result_.totalAppInstanceCt = std::stoi(resultNode["TotalAppInstanceCt"].asString());
if(!resultNode["TotalPartitions"].isNull())
result_.totalPartitions = std::stoi(resultNode["TotalPartitions"].asString());
if(!resultNode["UserId"].isNull())
result_.userId = resultNode["UserId"].asString();
if(!resultNode["UserNick"].isNull())
result_.userNick = resultNode["UserNick"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeDeployOrderDetailResult::getErrMsg()const
{
return errMsg_;
}
int DescribeDeployOrderDetailResult::getCode()const
{
return code_;
}
bool DescribeDeployOrderDetailResult::getSuccess()const
{
return success_;
}
DescribeDeployOrderDetailResult::Result DescribeDeployOrderDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribePodEventsRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribePodEventsRequest;
DescribePodEventsRequest::DescribePodEventsRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribePodEvents")
{
setMethod(HttpRequest::Method::Post);
}
DescribePodEventsRequest::~DescribePodEventsRequest()
{}
long DescribePodEventsRequest::getDeployOrderId()const
{
return deployOrderId_;
}
void DescribePodEventsRequest::setDeployOrderId(long deployOrderId)
{
deployOrderId_ = deployOrderId;
setParameter("DeployOrderId", std::to_string(deployOrderId));
}
std::string DescribePodEventsRequest::getAppInstId()const
{
return appInstId_;
}
void DescribePodEventsRequest::setAppInstId(const std::string& appInstId)
{
appInstId_ = appInstId;
setParameter("AppInstId", appInstId);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribePodEventsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribePodEventsResult::DescribePodEventsResult() :
ServiceResult()
{}
DescribePodEventsResult::DescribePodEventsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePodEventsResult::~DescribePodEventsResult()
{}
void DescribePodEventsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["DeployOrderName"].isNull())
result_.deployOrderName = resultNode["DeployOrderName"].asString();
auto allPodEventsNode = resultNode["PodEvents"]["PodEvent"];
for (auto resultNodePodEventsPodEvent : allPodEventsNode)
{
Result::PodEvent podEventObject;
if(!resultNodePodEventsPodEvent["Action"].isNull())
podEventObject.action = resultNodePodEventsPodEvent["Action"].asString();
if(!resultNodePodEventsPodEvent["Count"].isNull())
podEventObject.count = std::stoi(resultNodePodEventsPodEvent["Count"].asString());
if(!resultNodePodEventsPodEvent["EventTime"].isNull())
podEventObject.eventTime = resultNodePodEventsPodEvent["EventTime"].asString();
if(!resultNodePodEventsPodEvent["FirstTimestamp"].isNull())
podEventObject.firstTimestamp = resultNodePodEventsPodEvent["FirstTimestamp"].asString();
if(!resultNodePodEventsPodEvent["LastTimestamp"].isNull())
podEventObject.lastTimestamp = resultNodePodEventsPodEvent["LastTimestamp"].asString();
if(!resultNodePodEventsPodEvent["Message"].isNull())
podEventObject.message = resultNodePodEventsPodEvent["Message"].asString();
if(!resultNodePodEventsPodEvent["Reason"].isNull())
podEventObject.reason = resultNodePodEventsPodEvent["Reason"].asString();
if(!resultNodePodEventsPodEvent["Type"].isNull())
podEventObject.type = resultNodePodEventsPodEvent["Type"].asString();
result_.podEvents.push_back(podEventObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribePodEventsResult::getErrMsg()const
{
return errMsg_;
}
int DescribePodEventsResult::getCode()const
{
return code_;
}
bool DescribePodEventsResult::getSuccess()const
{
return success_;
}
DescribePodEventsResult::Result DescribePodEventsResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribePodLogRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribePodLogRequest;
DescribePodLogRequest::DescribePodLogRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribePodLog")
{
setMethod(HttpRequest::Method::Post);
}
DescribePodLogRequest::~DescribePodLogRequest()
{}
long DescribePodLogRequest::getDeployOrderId()const
{
return deployOrderId_;
}
void DescribePodLogRequest::setDeployOrderId(long deployOrderId)
{
deployOrderId_ = deployOrderId;
setBodyParameter("DeployOrderId", std::to_string(deployOrderId));
}
std::string DescribePodLogRequest::getAppInstId()const
{
return appInstId_;
}
void DescribePodLogRequest::setAppInstId(const std::string& appInstId)
{
appInstId_ = appInstId;
setBodyParameter("AppInstId", appInstId);
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribePodLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribePodLogResult::DescribePodLogResult() :
ServiceResult()
{}
DescribePodLogResult::DescribePodLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePodLogResult::~DescribePodLogResult()
{}
void DescribePodLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["DeployOrderName"].isNull())
result_.deployOrderName = resultNode["DeployOrderName"].asString();
if(!resultNode["EnvTypeName"].isNull())
result_.envTypeName = resultNode["EnvTypeName"].asString();
auto allDeployStepListNode = resultNode["DeployStepList"]["DeployLogStepRC"];
for (auto resultNodeDeployStepListDeployLogStepRC : allDeployStepListNode)
{
Result::DeployLogStepRC deployLogStepRCObject;
if(!resultNodeDeployStepListDeployLogStepRC["StepName"].isNull())
deployLogStepRCObject.stepName = resultNodeDeployStepListDeployLogStepRC["StepName"].asString();
if(!resultNodeDeployStepListDeployLogStepRC["StepCode"].isNull())
deployLogStepRCObject.stepCode = resultNodeDeployStepListDeployLogStepRC["StepCode"].asString();
if(!resultNodeDeployStepListDeployLogStepRC["StepLog"].isNull())
deployLogStepRCObject.stepLog = resultNodeDeployStepListDeployLogStepRC["StepLog"].asString();
if(!resultNodeDeployStepListDeployLogStepRC["Status"].isNull())
deployLogStepRCObject.status = resultNodeDeployStepListDeployLogStepRC["Status"].asString();
result_.deployStepList.push_back(deployLogStepRCObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribePodLogResult::getErrMsg()const
{
return errMsg_;
}
int DescribePodLogResult::getCode()const
{
return code_;
}
bool DescribePodLogResult::getSuccess()const
{
return success_;
}
DescribePodLogResult::Result DescribePodLogResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeRdsAccountsRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeRdsAccountsRequest;
DescribeRdsAccountsRequest::DescribeRdsAccountsRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeRdsAccounts")
{
setMethod(HttpRequest::Method::Get);
}
DescribeRdsAccountsRequest::~DescribeRdsAccountsRequest()
{}
std::string DescribeRdsAccountsRequest::getAccountName()const
{
return accountName_;
}
void DescribeRdsAccountsRequest::setAccountName(const std::string& accountName)
{
accountName_ = accountName;
setParameter("AccountName", accountName);
}
std::string DescribeRdsAccountsRequest::getDbInstanceId()const
{
return dbInstanceId_;
}
void DescribeRdsAccountsRequest::setDbInstanceId(const std::string& dbInstanceId)
{
dbInstanceId_ = dbInstanceId;
setParameter("DbInstanceId", dbInstanceId);
}

View 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/retailcloud/model/DescribeRdsAccountsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeRdsAccountsResult::DescribeRdsAccountsResult() :
ServiceResult()
{}
DescribeRdsAccountsResult::DescribeRdsAccountsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRdsAccountsResult::~DescribeRdsAccountsResult()
{}
void DescribeRdsAccountsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
auto allAccountsNode = resultNode["Accounts"]["AccountsItem"];
for (auto resultNodeAccountsAccountsItem : allAccountsNode)
{
Result::AccountsItem accountsItemObject;
if(!resultNodeAccountsAccountsItem["AccountStatus"].isNull())
accountsItemObject.accountStatus = resultNodeAccountsAccountsItem["AccountStatus"].asString();
if(!resultNodeAccountsAccountsItem["AccountDescription"].isNull())
accountsItemObject.accountDescription = resultNodeAccountsAccountsItem["AccountDescription"].asString();
if(!resultNodeAccountsAccountsItem["AccountName"].isNull())
accountsItemObject.accountName = resultNodeAccountsAccountsItem["AccountName"].asString();
if(!resultNodeAccountsAccountsItem["AccountType"].isNull())
accountsItemObject.accountType = resultNodeAccountsAccountsItem["AccountType"].asString();
if(!resultNodeAccountsAccountsItem["PrivExceeded"].isNull())
accountsItemObject.privExceeded = resultNodeAccountsAccountsItem["PrivExceeded"].asString();
if(!resultNodeAccountsAccountsItem["DBInstanceId"].isNull())
accountsItemObject.dBInstanceId = resultNodeAccountsAccountsItem["DBInstanceId"].asString();
auto allDatabasePrivilegesNode = allAccountsNode["DatabasePrivileges"]["DatabasePrivilegesItem"];
for (auto allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem : allDatabasePrivilegesNode)
{
Result::AccountsItem::DatabasePrivilegesItem databasePrivilegesObject;
if(!allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["DBName"].isNull())
databasePrivilegesObject.dBName = allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["DBName"].asString();
if(!allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilege"].isNull())
databasePrivilegesObject.accountPrivilege = allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilege"].asString();
if(!allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilegeDetail"].isNull())
databasePrivilegesObject.accountPrivilegeDetail = allAccountsNodeDatabasePrivilegesDatabasePrivilegesItem["AccountPrivilegeDetail"].asString();
accountsItemObject.databasePrivileges.push_back(databasePrivilegesObject);
}
result_.accounts.push_back(accountsItemObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string DescribeRdsAccountsResult::getErrMsg()const
{
return errMsg_;
}
int DescribeRdsAccountsResult::getCode()const
{
return code_;
}
DescribeRdsAccountsResult::Result DescribeRdsAccountsResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeServiceDetailRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeServiceDetailRequest;
DescribeServiceDetailRequest::DescribeServiceDetailRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeServiceDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeServiceDetailRequest::~DescribeServiceDetailRequest()
{}
long DescribeServiceDetailRequest::getServiceId()const
{
return serviceId_;
}
void DescribeServiceDetailRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setParameter("ServiceId", std::to_string(serviceId));
}

View File

@@ -0,0 +1,103 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeServiceDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeServiceDetailResult::DescribeServiceDetailResult() :
ServiceResult()
{}
DescribeServiceDetailResult::DescribeServiceDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeServiceDetailResult::~DescribeServiceDetailResult()
{}
void DescribeServiceDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["EnvId"].isNull())
result_.envId = std::stol(resultNode["EnvId"].asString());
if(!resultNode["Headless"].isNull())
result_.headless = resultNode["Headless"].asString() == "true";
if(!resultNode["K8sServiceId"].isNull())
result_.k8sServiceId = resultNode["K8sServiceId"].asString();
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["ServiceId"].isNull())
result_.serviceId = std::stol(resultNode["ServiceId"].asString());
if(!resultNode["ServiceType"].isNull())
result_.serviceType = resultNode["ServiceType"].asString();
if(!resultNode["ClusterIP"].isNull())
result_.clusterIP = resultNode["ClusterIP"].asString();
auto allPortMappingsNode = resultNode["PortMappings"]["ServicePortMapping"];
for (auto resultNodePortMappingsServicePortMapping : allPortMappingsNode)
{
Result::ServicePortMapping servicePortMappingObject;
if(!resultNodePortMappingsServicePortMapping["Name"].isNull())
servicePortMappingObject.name = resultNodePortMappingsServicePortMapping["Name"].asString();
if(!resultNodePortMappingsServicePortMapping["NodePort"].isNull())
servicePortMappingObject.nodePort = std::stoi(resultNodePortMappingsServicePortMapping["NodePort"].asString());
if(!resultNodePortMappingsServicePortMapping["Port"].isNull())
servicePortMappingObject.port = std::stoi(resultNodePortMappingsServicePortMapping["Port"].asString());
if(!resultNodePortMappingsServicePortMapping["Protocol"].isNull())
servicePortMappingObject.protocol = resultNodePortMappingsServicePortMapping["Protocol"].asString();
if(!resultNodePortMappingsServicePortMapping["TargetPort"].isNull())
servicePortMappingObject.targetPort = resultNodePortMappingsServicePortMapping["TargetPort"].asString();
result_.portMappings.push_back(servicePortMappingObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeServiceDetailResult::getErrMsg()const
{
return errMsg_;
}
int DescribeServiceDetailResult::getCode()const
{
return code_;
}
bool DescribeServiceDetailResult::getSuccess()const
{
return success_;
}
DescribeServiceDetailResult::Result DescribeServiceDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,40 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/DescribeSlbAPDetailRequest.h>
using AlibabaCloud::Retailcloud::Model::DescribeSlbAPDetailRequest;
DescribeSlbAPDetailRequest::DescribeSlbAPDetailRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "DescribeSlbAPDetail")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSlbAPDetailRequest::~DescribeSlbAPDetailRequest()
{}
long DescribeSlbAPDetailRequest::getSlbAPId()const
{
return slbAPId_;
}
void DescribeSlbAPDetailRequest::setSlbAPId(long slbAPId)
{
slbAPId_ = slbAPId;
setParameter("SlbAPId", std::to_string(slbAPId));
}

View 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/retailcloud/model/DescribeSlbAPDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
DescribeSlbAPDetailResult::DescribeSlbAPDetailResult() :
ServiceResult()
{}
DescribeSlbAPDetailResult::DescribeSlbAPDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSlbAPDetailResult::~DescribeSlbAPDetailResult()
{}
void DescribeSlbAPDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["AppId"].isNull())
result_.appId = std::stol(resultNode["AppId"].asString());
if(!resultNode["CookieTimeout"].isNull())
result_.cookieTimeout = std::stoi(resultNode["CookieTimeout"].asString());
if(!resultNode["EnvId"].isNull())
result_.envId = std::stol(resultNode["EnvId"].asString());
if(!resultNode["EstablishedTimeout"].isNull())
result_.establishedTimeout = std::stoi(resultNode["EstablishedTimeout"].asString());
if(!resultNode["ListenerPort"].isNull())
result_.listenerPort = std::stoi(resultNode["ListenerPort"].asString());
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["NetworkMode"].isNull())
result_.networkMode = resultNode["NetworkMode"].asString();
if(!resultNode["Protocol"].isNull())
result_.protocol = resultNode["Protocol"].asString();
if(!resultNode["RealServerPort"].isNull())
result_.realServerPort = std::stoi(resultNode["RealServerPort"].asString());
if(!resultNode["SlbAPId"].isNull())
result_.slbAPId = std::stol(resultNode["SlbAPId"].asString());
if(!resultNode["SlbId"].isNull())
result_.slbId = resultNode["SlbId"].asString();
if(!resultNode["SlbIp"].isNull())
result_.slbIp = resultNode["SlbIp"].asString();
if(!resultNode["SslCertId"].isNull())
result_.sslCertId = resultNode["SslCertId"].asString();
if(!resultNode["StickySession"].isNull())
result_.stickySession = std::stoi(resultNode["StickySession"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DescribeSlbAPDetailResult::getErrMsg()const
{
return errMsg_;
}
int DescribeSlbAPDetailResult::getCode()const
{
return code_;
}
bool DescribeSlbAPDetailResult::getSuccess()const
{
return success_;
}
DescribeSlbAPDetailResult::Result DescribeSlbAPDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/GetInstTransInfoRequest.h>
using AlibabaCloud::Retailcloud::Model::GetInstTransInfoRequest;
GetInstTransInfoRequest::GetInstTransInfoRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "GetInstTransInfo")
{
setMethod(HttpRequest::Method::Post);
}
GetInstTransInfoRequest::~GetInstTransInfoRequest()
{}
std::string GetInstTransInfoRequest::getAliyunUid()const
{
return aliyunUid_;
}
void GetInstTransInfoRequest::setAliyunUid(const std::string& aliyunUid)
{
aliyunUid_ = aliyunUid;
setBodyParameter("AliyunUid", aliyunUid);
}
std::string GetInstTransInfoRequest::getAliyunEquipId()const
{
return aliyunEquipId_;
}
void GetInstTransInfoRequest::setAliyunEquipId(const std::string& aliyunEquipId)
{
aliyunEquipId_ = aliyunEquipId;
setBodyParameter("AliyunEquipId", aliyunEquipId);
}
std::string GetInstTransInfoRequest::getAliyunCommodityCode()const
{
return aliyunCommodityCode_;
}
void GetInstTransInfoRequest::setAliyunCommodityCode(const std::string& aliyunCommodityCode)
{
aliyunCommodityCode_ = aliyunCommodityCode;
setBodyParameter("AliyunCommodityCode", aliyunCommodityCode);
}

View 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/retailcloud/model/GetInstTransInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
GetInstTransInfoResult::GetInstTransInfoResult() :
ServiceResult()
{}
GetInstTransInfoResult::GetInstTransInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetInstTransInfoResult::~GetInstTransInfoResult()
{}
void GetInstTransInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["instanceId"].isNull())
instanceId_ = value["instanceId"].asString();
if(!value["isAutoRenew"].isNull())
isAutoRenew_ = value["isAutoRenew"].asString() == "true";
if(!value["renewCycle"].isNull())
renewCycle_ = std::stoi(value["renewCycle"].asString());
if(!value["chargeType"].isNull())
chargeType_ = value["chargeType"].asString();
if(!value["endTime"].isNull())
endTime_ = std::stol(value["endTime"].asString());
if(!value["startTime"].isNull())
startTime_ = std::stol(value["startTime"].asString());
}
long GetInstTransInfoResult::getEndTime()const
{
return endTime_;
}
std::string GetInstTransInfoResult::getInstanceId()const
{
return instanceId_;
}
std::string GetInstTransInfoResult::getChargeType()const
{
return chargeType_;
}
long GetInstTransInfoResult::getStartTime()const
{
return startTime_;
}
bool GetInstTransInfoResult::getIsAutoRenew()const
{
return isAutoRenew_;
}
int GetInstTransInfoResult::getRenewCycle()const
{
return renewCycle_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/GetRdsBackUpRequest.h>
using AlibabaCloud::Retailcloud::Model::GetRdsBackUpRequest;
GetRdsBackUpRequest::GetRdsBackUpRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "GetRdsBackUp")
{
setMethod(HttpRequest::Method::Post);
}
GetRdsBackUpRequest::~GetRdsBackUpRequest()
{}
std::string GetRdsBackUpRequest::getBackupId()const
{
return backupId_;
}
void GetRdsBackUpRequest::setBackupId(const std::string& backupId)
{
backupId_ = backupId;
setBodyParameter("BackupId", backupId);
}
int GetRdsBackUpRequest::getPageSize()const
{
return pageSize_;
}
void GetRdsBackUpRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
std::string GetRdsBackUpRequest::getDbInstanceId()const
{
return dbInstanceId_;
}
void GetRdsBackUpRequest::setDbInstanceId(const std::string& dbInstanceId)
{
dbInstanceId_ = dbInstanceId;
setBodyParameter("DbInstanceId", dbInstanceId);
}
std::string GetRdsBackUpRequest::getBackupType()const
{
return backupType_;
}
void GetRdsBackUpRequest::setBackupType(const std::string& backupType)
{
backupType_ = backupType;
setBodyParameter("BackupType", backupType);
}
int GetRdsBackUpRequest::getPageNumber()const
{
return pageNumber_;
}
void GetRdsBackUpRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,112 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/GetRdsBackUpResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
GetRdsBackUpResult::GetRdsBackUpResult() :
ServiceResult()
{}
GetRdsBackUpResult::GetRdsBackUpResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetRdsBackUpResult::~GetRdsBackUpResult()
{}
void GetRdsBackUpResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["TotalRecordCount"].isNull())
result_.totalRecordCount = resultNode["TotalRecordCount"].asString();
if(!resultNode["PageNumber"].isNull())
result_.pageNumber = resultNode["PageNumber"].asString();
if(!resultNode["PageRecordCount"].isNull())
result_.pageRecordCount = resultNode["PageRecordCount"].asString();
if(!resultNode["TotalBackupSize"].isNull())
result_.totalBackupSize = std::stol(resultNode["TotalBackupSize"].asString());
auto allItemsNode = resultNode["Items"]["Backup"];
for (auto resultNodeItemsBackup : allItemsNode)
{
Result::Backup backupObject;
if(!resultNodeItemsBackup["BackupId"].isNull())
backupObject.backupId = resultNodeItemsBackup["BackupId"].asString();
if(!resultNodeItemsBackup["DBInstanceId"].isNull())
backupObject.dBInstanceId = resultNodeItemsBackup["DBInstanceId"].asString();
if(!resultNodeItemsBackup["BackupStatus"].isNull())
backupObject.backupStatus = resultNodeItemsBackup["BackupStatus"].asString();
if(!resultNodeItemsBackup["BackupStartTime"].isNull())
backupObject.backupStartTime = resultNodeItemsBackup["BackupStartTime"].asString();
if(!resultNodeItemsBackup["BackupEndTime"].isNull())
backupObject.backupEndTime = resultNodeItemsBackup["BackupEndTime"].asString();
if(!resultNodeItemsBackup["BackupType"].isNull())
backupObject.backupType = resultNodeItemsBackup["BackupType"].asString();
if(!resultNodeItemsBackup["BackupMode"].isNull())
backupObject.backupMode = resultNodeItemsBackup["BackupMode"].asString();
if(!resultNodeItemsBackup["BackupMethod"].isNull())
backupObject.backupMethod = resultNodeItemsBackup["BackupMethod"].asString();
if(!resultNodeItemsBackup["BackupLocation"].isNull())
backupObject.backupLocation = resultNodeItemsBackup["BackupLocation"].asString();
if(!resultNodeItemsBackup["BackupExtractionStatus"].isNull())
backupObject.backupExtractionStatus = resultNodeItemsBackup["BackupExtractionStatus"].asString();
if(!resultNodeItemsBackup["BackupScale"].isNull())
backupObject.backupScale = resultNodeItemsBackup["BackupScale"].asString();
if(!resultNodeItemsBackup["BackupDBNames"].isNull())
backupObject.backupDBNames = resultNodeItemsBackup["BackupDBNames"].asString();
if(!resultNodeItemsBackup["TotalBackupSize"].isNull())
backupObject.totalBackupSize = std::stol(resultNodeItemsBackup["TotalBackupSize"].asString());
if(!resultNodeItemsBackup["BackupSize"].isNull())
backupObject.backupSize = std::stol(resultNodeItemsBackup["BackupSize"].asString());
if(!resultNodeItemsBackup["HostInstanceID"].isNull())
backupObject.hostInstanceID = resultNodeItemsBackup["HostInstanceID"].asString();
if(!resultNodeItemsBackup["StoreStatus"].isNull())
backupObject.storeStatus = resultNodeItemsBackup["StoreStatus"].asString();
if(!resultNodeItemsBackup["MetaStatus"].isNull())
backupObject.metaStatus = resultNodeItemsBackup["MetaStatus"].asString();
result_.items.push_back(backupObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string GetRdsBackUpResult::getErrMsg()const
{
return errMsg_;
}
int GetRdsBackUpResult::getCode()const
{
return code_;
}
GetRdsBackUpResult::Result GetRdsBackUpResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/GrantDbToAccountRequest.h>
using AlibabaCloud::Retailcloud::Model::GrantDbToAccountRequest;
GrantDbToAccountRequest::GrantDbToAccountRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "GrantDbToAccount")
{
setMethod(HttpRequest::Method::Post);
}
GrantDbToAccountRequest::~GrantDbToAccountRequest()
{}
std::string GrantDbToAccountRequest::getAccountName()const
{
return accountName_;
}
void GrantDbToAccountRequest::setAccountName(const std::string& accountName)
{
accountName_ = accountName;
setBodyParameter("AccountName", accountName);
}
std::string GrantDbToAccountRequest::getDbName()const
{
return dbName_;
}
void GrantDbToAccountRequest::setDbName(const std::string& dbName)
{
dbName_ = dbName;
setBodyParameter("DbName", dbName);
}
std::string GrantDbToAccountRequest::getDbInstanceId()const
{
return dbInstanceId_;
}
void GrantDbToAccountRequest::setDbInstanceId(const std::string& dbInstanceId)
{
dbInstanceId_ = dbInstanceId;
setBodyParameter("DbInstanceId", dbInstanceId);
}
std::string GrantDbToAccountRequest::getAccountPrivilege()const
{
return accountPrivilege_;
}
void GrantDbToAccountRequest::setAccountPrivilege(const std::string& accountPrivilege)
{
accountPrivilege_ = accountPrivilege;
setBodyParameter("AccountPrivilege", accountPrivilege);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/GrantDbToAccountResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
GrantDbToAccountResult::GrantDbToAccountResult() :
ServiceResult()
{}
GrantDbToAccountResult::GrantDbToAccountResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GrantDbToAccountResult::~GrantDbToAccountResult()
{}
void GrantDbToAccountResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
std::string GrantDbToAccountResult::getErrMsg()const
{
return errMsg_;
}
int GrantDbToAccountResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppCmsGroupsRequest.h>
using AlibabaCloud::Retailcloud::Model::ListAppCmsGroupsRequest;
ListAppCmsGroupsRequest::ListAppCmsGroupsRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListAppCmsGroups")
{
setMethod(HttpRequest::Method::Get);
}
ListAppCmsGroupsRequest::~ListAppCmsGroupsRequest()
{}
long ListAppCmsGroupsRequest::getAppId()const
{
return appId_;
}
void ListAppCmsGroupsRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
int ListAppCmsGroupsRequest::getPageSize()const
{
return pageSize_;
}
void ListAppCmsGroupsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListAppCmsGroupsRequest::getEnvId()const
{
return envId_;
}
void ListAppCmsGroupsRequest::setEnvId(long envId)
{
envId_ = envId;
setParameter("EnvId", std::to_string(envId));
}
int ListAppCmsGroupsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAppCmsGroupsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View 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/retailcloud/model/ListAppCmsGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListAppCmsGroupsResult::ListAppCmsGroupsResult() :
ServiceResult()
{}
ListAppCmsGroupsResult::ListAppCmsGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAppCmsGroupsResult::~ListAppCmsGroupsResult()
{}
void ListAppCmsGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["String"];
for (const auto &item : allData)
data_.push_back(item.asString());
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListAppCmsGroupsResult::getTotalCount()const
{
return totalCount_;
}
int ListAppCmsGroupsResult::getPageSize()const
{
return pageSize_;
}
int ListAppCmsGroupsResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListAppCmsGroupsResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<std::string> ListAppCmsGroupsResult::getData()const
{
return data_;
}
int ListAppCmsGroupsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppEnvironmentRequest.h>
using AlibabaCloud::Retailcloud::Model::ListAppEnvironmentRequest;
ListAppEnvironmentRequest::ListAppEnvironmentRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListAppEnvironment")
{
setMethod(HttpRequest::Method::Get);
}
ListAppEnvironmentRequest::~ListAppEnvironmentRequest()
{}
std::string ListAppEnvironmentRequest::getEnvName()const
{
return envName_;
}
void ListAppEnvironmentRequest::setEnvName(const std::string& envName)
{
envName_ = envName;
setParameter("EnvName", envName);
}
long ListAppEnvironmentRequest::getAppId()const
{
return appId_;
}
void ListAppEnvironmentRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
int ListAppEnvironmentRequest::getEnvType()const
{
return envType_;
}
void ListAppEnvironmentRequest::setEnvType(int envType)
{
envType_ = envType;
setParameter("EnvType", std::to_string(envType));
}
int ListAppEnvironmentRequest::getPageSize()const
{
return pageSize_;
}
void ListAppEnvironmentRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListAppEnvironmentRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAppEnvironmentRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View 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/retailcloud/model/ListAppEnvironmentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListAppEnvironmentResult::ListAppEnvironmentResult() :
ServiceResult()
{}
ListAppEnvironmentResult::ListAppEnvironmentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAppEnvironmentResult::~ListAppEnvironmentResult()
{}
void ListAppEnvironmentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["AppEnvironmentResponse"];
for (auto valueDataAppEnvironmentResponse : allDataNode)
{
AppEnvironmentResponse dataObject;
if(!valueDataAppEnvironmentResponse["AppId"].isNull())
dataObject.appId = std::stol(valueDataAppEnvironmentResponse["AppId"].asString());
if(!valueDataAppEnvironmentResponse["EnvId"].isNull())
dataObject.envId = std::stol(valueDataAppEnvironmentResponse["EnvId"].asString());
if(!valueDataAppEnvironmentResponse["EnvName"].isNull())
dataObject.envName = valueDataAppEnvironmentResponse["EnvName"].asString();
if(!valueDataAppEnvironmentResponse["EnvType"].isNull())
dataObject.envType = std::stoi(valueDataAppEnvironmentResponse["EnvType"].asString());
if(!valueDataAppEnvironmentResponse["EnvTypeName"].isNull())
dataObject.envTypeName = valueDataAppEnvironmentResponse["EnvTypeName"].asString();
if(!valueDataAppEnvironmentResponse["AppSchemaId"].isNull())
dataObject.appSchemaId = std::stol(valueDataAppEnvironmentResponse["AppSchemaId"].asString());
if(!valueDataAppEnvironmentResponse["Region"].isNull())
dataObject.region = valueDataAppEnvironmentResponse["Region"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
}
long ListAppEnvironmentResult::getTotalCount()const
{
return totalCount_;
}
int ListAppEnvironmentResult::getPageSize()const
{
return pageSize_;
}
int ListAppEnvironmentResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListAppEnvironmentResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListAppEnvironmentResult::AppEnvironmentResponse> ListAppEnvironmentResult::getData()const
{
return data_;
}
int ListAppEnvironmentResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppInstanceRequest.h>
using AlibabaCloud::Retailcloud::Model::ListAppInstanceRequest;
ListAppInstanceRequest::ListAppInstanceRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListAppInstance")
{
setMethod(HttpRequest::Method::Post);
}
ListAppInstanceRequest::~ListAppInstanceRequest()
{}
long ListAppInstanceRequest::getAppId()const
{
return appId_;
}
void ListAppInstanceRequest::setAppId(long appId)
{
appId_ = appId;
setBodyParameter("AppId", std::to_string(appId));
}
int ListAppInstanceRequest::getPageSize()const
{
return pageSize_;
}
void ListAppInstanceRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setBodyParameter("PageSize", std::to_string(pageSize));
}
long ListAppInstanceRequest::getEnvId()const
{
return envId_;
}
void ListAppInstanceRequest::setEnvId(long envId)
{
envId_ = envId;
setBodyParameter("EnvId", std::to_string(envId));
}
int ListAppInstanceRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAppInstanceRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setBodyParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListAppInstanceResult::ListAppInstanceResult() :
ServiceResult()
{}
ListAppInstanceResult::ListAppInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAppInstanceResult::~ListAppInstanceResult()
{}
void ListAppInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["AppInstanceDetail"];
for (auto valueDataAppInstanceDetail : allDataNode)
{
AppInstanceDetail dataObject;
if(!valueDataAppInstanceDetail["AppInstanceId"].isNull())
dataObject.appInstanceId = valueDataAppInstanceDetail["AppInstanceId"].asString();
if(!valueDataAppInstanceDetail["CreateTime"].isNull())
dataObject.createTime = valueDataAppInstanceDetail["CreateTime"].asString();
if(!valueDataAppInstanceDetail["Spec"].isNull())
dataObject.spec = valueDataAppInstanceDetail["Spec"].asString();
if(!valueDataAppInstanceDetail["RestartCount"].isNull())
dataObject.restartCount = std::stoi(valueDataAppInstanceDetail["RestartCount"].asString());
if(!valueDataAppInstanceDetail["HostIp"].isNull())
dataObject.hostIp = valueDataAppInstanceDetail["HostIp"].asString();
if(!valueDataAppInstanceDetail["PodIp"].isNull())
dataObject.podIp = valueDataAppInstanceDetail["PodIp"].asString();
if(!valueDataAppInstanceDetail["Health"].isNull())
dataObject.health = valueDataAppInstanceDetail["Health"].asString();
if(!valueDataAppInstanceDetail["Requests"].isNull())
dataObject.requests = valueDataAppInstanceDetail["Requests"].asString();
if(!valueDataAppInstanceDetail["Limits"].isNull())
dataObject.limits = valueDataAppInstanceDetail["Limits"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["ErrMsg"].isNull())
errMsg_ = value["ErrMsg"].asString();
}
long ListAppInstanceResult::getTotalCount()const
{
return totalCount_;
}
int ListAppInstanceResult::getPageSize()const
{
return pageSize_;
}
int ListAppInstanceResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListAppInstanceResult::getErrMsg()const
{
return errMsg_;
}
std::vector<ListAppInstanceResult::AppInstanceDetail> ListAppInstanceResult::getData()const
{
return data_;
}
int ListAppInstanceResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppRequest.h>
using AlibabaCloud::Retailcloud::Model::ListAppRequest;
ListAppRequest::ListAppRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListApp")
{
setMethod(HttpRequest::Method::Get);
}
ListAppRequest::~ListAppRequest()
{}
int ListAppRequest::getPageSize()const
{
return pageSize_;
}
void ListAppRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListAppRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAppRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View File

@@ -0,0 +1,84 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppResourceAllocsRequest.h>
using AlibabaCloud::Retailcloud::Model::ListAppResourceAllocsRequest;
ListAppResourceAllocsRequest::ListAppResourceAllocsRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListAppResourceAllocs")
{
setMethod(HttpRequest::Method::Get);
}
ListAppResourceAllocsRequest::~ListAppResourceAllocsRequest()
{}
long ListAppResourceAllocsRequest::getAppId()const
{
return appId_;
}
void ListAppResourceAllocsRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
int ListAppResourceAllocsRequest::getPageSize()const
{
return pageSize_;
}
void ListAppResourceAllocsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long ListAppResourceAllocsRequest::getAppEnvId()const
{
return appEnvId_;
}
void ListAppResourceAllocsRequest::setAppEnvId(long appEnvId)
{
appEnvId_ = appEnvId;
setParameter("AppEnvId", std::to_string(appEnvId));
}
std::string ListAppResourceAllocsRequest::getClusterId()const
{
return clusterId_;
}
void ListAppResourceAllocsRequest::setClusterId(const std::string& clusterId)
{
clusterId_ = clusterId;
setParameter("ClusterId", clusterId);
}
int ListAppResourceAllocsRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAppResourceAllocsRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}

View 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/retailcloud/model/ListAppResourceAllocsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListAppResourceAllocsResult::ListAppResourceAllocsResult() :
ServiceResult()
{}
ListAppResourceAllocsResult::ListAppResourceAllocsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAppResourceAllocsResult::~ListAppResourceAllocsResult()
{}
void ListAppResourceAllocsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["ListAppResourceAllocResponse"];
for (auto valueDataListAppResourceAllocResponse : allDataNode)
{
ListAppResourceAllocResponse dataObject;
if(!valueDataListAppResourceAllocResponse["AppEnvId"].isNull())
dataObject.appEnvId = std::stol(valueDataListAppResourceAllocResponse["AppEnvId"].asString());
if(!valueDataListAppResourceAllocResponse["AppId"].isNull())
dataObject.appId = std::stol(valueDataListAppResourceAllocResponse["AppId"].asString());
if(!valueDataListAppResourceAllocResponse["ClusterId"].isNull())
dataObject.clusterId = valueDataListAppResourceAllocResponse["ClusterId"].asString();
if(!valueDataListAppResourceAllocResponse["Id"].isNull())
dataObject.id = std::stol(valueDataListAppResourceAllocResponse["Id"].asString());
if(!valueDataListAppResourceAllocResponse["ResourceDef"].isNull())
dataObject.resourceDef = valueDataListAppResourceAllocResponse["ResourceDef"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListAppResourceAllocsResult::getTotalCount()const
{
return totalCount_;
}
int ListAppResourceAllocsResult::getPageSize()const
{
return pageSize_;
}
int ListAppResourceAllocsResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListAppResourceAllocsResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListAppResourceAllocsResult::ListAppResourceAllocResponse> ListAppResourceAllocsResult::getData()const
{
return data_;
}
int ListAppResourceAllocsResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,108 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListAppResult::ListAppResult() :
ServiceResult()
{}
ListAppResult::ListAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAppResult::~ListAppResult()
{}
void ListAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["AppDetail"];
for (auto valueDataAppDetail : allDataNode)
{
AppDetail dataObject;
if(!valueDataAppDetail["AppId"].isNull())
dataObject.appId = std::stol(valueDataAppDetail["AppId"].asString());
if(!valueDataAppDetail["Title"].isNull())
dataObject.title = valueDataAppDetail["Title"].asString();
if(!valueDataAppDetail["Description"].isNull())
dataObject.description = valueDataAppDetail["Description"].asString();
if(!valueDataAppDetail["Language"].isNull())
dataObject.language = valueDataAppDetail["Language"].asString();
if(!valueDataAppDetail["OperatingSystem"].isNull())
dataObject.operatingSystem = valueDataAppDetail["OperatingSystem"].asString();
if(!valueDataAppDetail["BizName"].isNull())
dataObject.bizName = valueDataAppDetail["BizName"].asString();
if(!valueDataAppDetail["ServiceType"].isNull())
dataObject.serviceType = valueDataAppDetail["ServiceType"].asString();
if(!valueDataAppDetail["DeployType"].isNull())
dataObject.deployType = valueDataAppDetail["DeployType"].asString();
if(!valueDataAppDetail["BizTitle"].isNull())
dataObject.bizTitle = valueDataAppDetail["BizTitle"].asString();
if(!valueDataAppDetail["AppStateType"].isNull())
dataObject.appStateType = valueDataAppDetail["AppStateType"].asString();
auto allMiddleWareListNode = allDataNode["MiddleWareList"]["MiddleWareInfo"];
for (auto allDataNodeMiddleWareListMiddleWareInfo : allMiddleWareListNode)
{
AppDetail::MiddleWareInfo middleWareListObject;
if(!allDataNodeMiddleWareListMiddleWareInfo["AppId"].isNull())
middleWareListObject.appId = std::stol(allDataNodeMiddleWareListMiddleWareInfo["AppId"].asString());
if(!allDataNodeMiddleWareListMiddleWareInfo["Code"].isNull())
middleWareListObject.code = std::stoi(allDataNodeMiddleWareListMiddleWareInfo["Code"].asString());
if(!allDataNodeMiddleWareListMiddleWareInfo["Name"].isNull())
middleWareListObject.name = allDataNodeMiddleWareListMiddleWareInfo["Name"].asString();
dataObject.middleWareList.push_back(middleWareListObject);
}
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int ListAppResult::getTotalCount()const
{
return totalCount_;
}
std::string ListAppResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListAppResult::AppDetail> ListAppResult::getData()const
{
return data_;
}
int ListAppResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAvailableClusterNodeRequest.h>
using AlibabaCloud::Retailcloud::Model::ListAvailableClusterNodeRequest;
ListAvailableClusterNodeRequest::ListAvailableClusterNodeRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListAvailableClusterNode")
{
setMethod(HttpRequest::Method::Get);
}
ListAvailableClusterNodeRequest::~ListAvailableClusterNodeRequest()
{}
int ListAvailableClusterNodeRequest::getPageSize()const
{
return pageSize_;
}
void ListAvailableClusterNodeRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListAvailableClusterNodeRequest::getPageNum()const
{
return pageNum_;
}
void ListAvailableClusterNodeRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string ListAvailableClusterNodeRequest::getClusterInstanceId()const
{
return clusterInstanceId_;
}
void ListAvailableClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId)
{
clusterInstanceId_ = clusterInstanceId;
setParameter("ClusterInstanceId", clusterInstanceId);
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListAvailableClusterNodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListAvailableClusterNodeResult::ListAvailableClusterNodeResult() :
ServiceResult()
{}
ListAvailableClusterNodeResult::ListAvailableClusterNodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAvailableClusterNodeResult::~ListAvailableClusterNodeResult()
{}
void ListAvailableClusterNodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["ClusterNodeInfo"];
for (auto valueDataClusterNodeInfo : allDataNode)
{
ClusterNodeInfo dataObject;
if(!valueDataClusterNodeInfo["OSName"].isNull())
dataObject.oSName = valueDataClusterNodeInfo["OSName"].asString();
if(!valueDataClusterNodeInfo["BusinessCode"].isNull())
dataObject.businessCode = valueDataClusterNodeInfo["BusinessCode"].asString();
if(!valueDataClusterNodeInfo["EcsConfiguration"].isNull())
dataObject.ecsConfiguration = valueDataClusterNodeInfo["EcsConfiguration"].asString();
if(!valueDataClusterNodeInfo["EcsCpu"].isNull())
dataObject.ecsCpu = valueDataClusterNodeInfo["EcsCpu"].asString();
if(!valueDataClusterNodeInfo["EcsEip"].isNull())
dataObject.ecsEip = valueDataClusterNodeInfo["EcsEip"].asString();
if(!valueDataClusterNodeInfo["EcsExpiredTime"].isNull())
dataObject.ecsExpiredTime = valueDataClusterNodeInfo["EcsExpiredTime"].asString();
if(!valueDataClusterNodeInfo["EcsLocalStorageCapacity"].isNull())
dataObject.ecsLocalStorageCapacity = valueDataClusterNodeInfo["EcsLocalStorageCapacity"].asString();
if(!valueDataClusterNodeInfo["EcsMemory"].isNull())
dataObject.ecsMemory = valueDataClusterNodeInfo["EcsMemory"].asString();
if(!valueDataClusterNodeInfo["EcsOsType"].isNull())
dataObject.ecsOsType = valueDataClusterNodeInfo["EcsOsType"].asString();
if(!valueDataClusterNodeInfo["EcsPrivateIp"].isNull())
dataObject.ecsPrivateIp = valueDataClusterNodeInfo["EcsPrivateIp"].asString();
if(!valueDataClusterNodeInfo["EcsPublicIp"].isNull())
dataObject.ecsPublicIp = valueDataClusterNodeInfo["EcsPublicIp"].asString();
if(!valueDataClusterNodeInfo["EcsZone"].isNull())
dataObject.ecsZone = valueDataClusterNodeInfo["EcsZone"].asString();
if(!valueDataClusterNodeInfo["InstanceId"].isNull())
dataObject.instanceId = valueDataClusterNodeInfo["InstanceId"].asString();
if(!valueDataClusterNodeInfo["InstanceName"].isNull())
dataObject.instanceName = valueDataClusterNodeInfo["InstanceName"].asString();
if(!valueDataClusterNodeInfo["InstanceNetworkType"].isNull())
dataObject.instanceNetworkType = valueDataClusterNodeInfo["InstanceNetworkType"].asString();
if(!valueDataClusterNodeInfo["InstanceType"].isNull())
dataObject.instanceType = valueDataClusterNodeInfo["InstanceType"].asString();
if(!valueDataClusterNodeInfo["InternetMaxBandwidthIn"].isNull())
dataObject.internetMaxBandwidthIn = valueDataClusterNodeInfo["InternetMaxBandwidthIn"].asString();
if(!valueDataClusterNodeInfo["InternetMaxBandwidthOut"].isNull())
dataObject.internetMaxBandwidthOut = valueDataClusterNodeInfo["InternetMaxBandwidthOut"].asString();
if(!valueDataClusterNodeInfo["RegionId"].isNull())
dataObject.regionId = valueDataClusterNodeInfo["RegionId"].asString();
if(!valueDataClusterNodeInfo["VpcId"].isNull())
dataObject.vpcId = valueDataClusterNodeInfo["VpcId"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListAvailableClusterNodeResult::getTotalCount()const
{
return totalCount_;
}
int ListAvailableClusterNodeResult::getPageSize()const
{
return pageSize_;
}
int ListAvailableClusterNodeResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListAvailableClusterNodeResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListAvailableClusterNodeResult::ClusterNodeInfo> ListAvailableClusterNodeResult::getData()const
{
return data_;
}
int ListAvailableClusterNodeResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListClusterNodeRequest.h>
using AlibabaCloud::Retailcloud::Model::ListClusterNodeRequest;
ListClusterNodeRequest::ListClusterNodeRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListClusterNode")
{
setMethod(HttpRequest::Method::Get);
}
ListClusterNodeRequest::~ListClusterNodeRequest()
{}
int ListClusterNodeRequest::getPageSize()const
{
return pageSize_;
}
void ListClusterNodeRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListClusterNodeRequest::getPageNum()const
{
return pageNum_;
}
void ListClusterNodeRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}
std::string ListClusterNodeRequest::getClusterInstanceId()const
{
return clusterInstanceId_;
}
void ListClusterNodeRequest::setClusterInstanceId(const std::string& clusterInstanceId)
{
clusterInstanceId_ = clusterInstanceId;
setParameter("ClusterInstanceId", clusterInstanceId);
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListClusterNodeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListClusterNodeResult::ListClusterNodeResult() :
ServiceResult()
{}
ListClusterNodeResult::ListClusterNodeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListClusterNodeResult::~ListClusterNodeResult()
{}
void ListClusterNodeResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["ClusterNodeInfo"];
for (auto valueDataClusterNodeInfo : allDataNode)
{
ClusterNodeInfo dataObject;
if(!valueDataClusterNodeInfo["OSName"].isNull())
dataObject.oSName = valueDataClusterNodeInfo["OSName"].asString();
if(!valueDataClusterNodeInfo["BusinessCode"].isNull())
dataObject.businessCode = valueDataClusterNodeInfo["BusinessCode"].asString();
if(!valueDataClusterNodeInfo["EcsConfiguration"].isNull())
dataObject.ecsConfiguration = valueDataClusterNodeInfo["EcsConfiguration"].asString();
if(!valueDataClusterNodeInfo["EcsCpu"].isNull())
dataObject.ecsCpu = valueDataClusterNodeInfo["EcsCpu"].asString();
if(!valueDataClusterNodeInfo["EcsEip"].isNull())
dataObject.ecsEip = valueDataClusterNodeInfo["EcsEip"].asString();
if(!valueDataClusterNodeInfo["EcsExpiredTime"].isNull())
dataObject.ecsExpiredTime = valueDataClusterNodeInfo["EcsExpiredTime"].asString();
if(!valueDataClusterNodeInfo["EcsLocalStorageCapacity"].isNull())
dataObject.ecsLocalStorageCapacity = valueDataClusterNodeInfo["EcsLocalStorageCapacity"].asString();
if(!valueDataClusterNodeInfo["EcsMemory"].isNull())
dataObject.ecsMemory = valueDataClusterNodeInfo["EcsMemory"].asString();
if(!valueDataClusterNodeInfo["EcsOsType"].isNull())
dataObject.ecsOsType = valueDataClusterNodeInfo["EcsOsType"].asString();
if(!valueDataClusterNodeInfo["EcsPrivateIp"].isNull())
dataObject.ecsPrivateIp = valueDataClusterNodeInfo["EcsPrivateIp"].asString();
if(!valueDataClusterNodeInfo["EcsPublicIp"].isNull())
dataObject.ecsPublicIp = valueDataClusterNodeInfo["EcsPublicIp"].asString();
if(!valueDataClusterNodeInfo["EcsZone"].isNull())
dataObject.ecsZone = valueDataClusterNodeInfo["EcsZone"].asString();
if(!valueDataClusterNodeInfo["InstanceId"].isNull())
dataObject.instanceId = valueDataClusterNodeInfo["InstanceId"].asString();
if(!valueDataClusterNodeInfo["InstanceName"].isNull())
dataObject.instanceName = valueDataClusterNodeInfo["InstanceName"].asString();
if(!valueDataClusterNodeInfo["InstanceNetworkType"].isNull())
dataObject.instanceNetworkType = valueDataClusterNodeInfo["InstanceNetworkType"].asString();
if(!valueDataClusterNodeInfo["InstanceType"].isNull())
dataObject.instanceType = valueDataClusterNodeInfo["InstanceType"].asString();
if(!valueDataClusterNodeInfo["InternetMaxBandwidthIn"].isNull())
dataObject.internetMaxBandwidthIn = valueDataClusterNodeInfo["InternetMaxBandwidthIn"].asString();
if(!valueDataClusterNodeInfo["InternetMaxBandwidthOut"].isNull())
dataObject.internetMaxBandwidthOut = valueDataClusterNodeInfo["InternetMaxBandwidthOut"].asString();
if(!valueDataClusterNodeInfo["RegionId"].isNull())
dataObject.regionId = valueDataClusterNodeInfo["RegionId"].asString();
if(!valueDataClusterNodeInfo["VpcId"].isNull())
dataObject.vpcId = valueDataClusterNodeInfo["VpcId"].asString();
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListClusterNodeResult::getTotalCount()const
{
return totalCount_;
}
int ListClusterNodeResult::getPageSize()const
{
return pageSize_;
}
int ListClusterNodeResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListClusterNodeResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListClusterNodeResult::ClusterNodeInfo> ListClusterNodeResult::getData()const
{
return data_;
}
int ListClusterNodeResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListClusterRequest.h>
using AlibabaCloud::Retailcloud::Model::ListClusterRequest;
ListClusterRequest::ListClusterRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListCluster")
{
setMethod(HttpRequest::Method::Get);
}
ListClusterRequest::~ListClusterRequest()
{}
std::string ListClusterRequest::getBusinessCode()const
{
return businessCode_;
}
void ListClusterRequest::setBusinessCode(const std::string& businessCode)
{
businessCode_ = businessCode;
setParameter("BusinessCode", businessCode);
}
std::string ListClusterRequest::getEnvType()const
{
return envType_;
}
void ListClusterRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setParameter("EnvType", envType);
}
int ListClusterRequest::getPageSize()const
{
return pageSize_;
}
void ListClusterRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int ListClusterRequest::getPageNum()const
{
return pageNum_;
}
void ListClusterRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -0,0 +1,130 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Retailcloud;
using namespace AlibabaCloud::Retailcloud::Model;
ListClusterResult::ListClusterResult() :
ServiceResult()
{}
ListClusterResult::ListClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListClusterResult::~ListClusterResult()
{}
void ListClusterResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["ClusterInfo"];
for (auto valueDataClusterInfo : allDataNode)
{
ClusterInfo dataObject;
if(!valueDataClusterInfo["BusinessCode"].isNull())
dataObject.businessCode = valueDataClusterInfo["BusinessCode"].asString();
if(!valueDataClusterInfo["ClusterTitle"].isNull())
dataObject.clusterTitle = valueDataClusterInfo["ClusterTitle"].asString();
if(!valueDataClusterInfo["CreateStatus"].isNull())
dataObject.createStatus = valueDataClusterInfo["CreateStatus"].asString();
if(!valueDataClusterInfo["EnvType"].isNull())
dataObject.envType = valueDataClusterInfo["EnvType"].asString();
if(!valueDataClusterInfo["Id"].isNull())
dataObject.id = std::stol(valueDataClusterInfo["Id"].asString());
if(!valueDataClusterInfo["InstanceId"].isNull())
dataObject.instanceId = valueDataClusterInfo["InstanceId"].asString();
if(!valueDataClusterInfo["KeyPair"].isNull())
dataObject.keyPair = valueDataClusterInfo["KeyPair"].asString();
if(!valueDataClusterInfo["NetPlug"].isNull())
dataObject.netPlug = valueDataClusterInfo["NetPlug"].asString();
if(!valueDataClusterInfo["Password"].isNull())
dataObject.password = valueDataClusterInfo["Password"].asString();
if(!valueDataClusterInfo["PodCIDR"].isNull())
dataObject.podCIDR = valueDataClusterInfo["PodCIDR"].asString();
if(!valueDataClusterInfo["RegionId"].isNull())
dataObject.regionId = valueDataClusterInfo["RegionId"].asString();
if(!valueDataClusterInfo["RegionName"].isNull())
dataObject.regionName = valueDataClusterInfo["RegionName"].asString();
if(!valueDataClusterInfo["ServiceCIDR"].isNull())
dataObject.serviceCIDR = valueDataClusterInfo["ServiceCIDR"].asString();
if(!valueDataClusterInfo["Status"].isNull())
dataObject.status = valueDataClusterInfo["Status"].asString();
if(!valueDataClusterInfo["VpcId"].isNull())
dataObject.vpcId = valueDataClusterInfo["VpcId"].asString();
if(!valueDataClusterInfo["WorkLoadCpu"].isNull())
dataObject.workLoadCpu = valueDataClusterInfo["WorkLoadCpu"].asString();
if(!valueDataClusterInfo["WorkLoadMem"].isNull())
dataObject.workLoadMem = valueDataClusterInfo["WorkLoadMem"].asString();
auto allEcsIds = value["EcsIds"]["String"];
for (auto value : allEcsIds)
dataObject.ecsIds.push_back(value.asString());
auto allVswitchIds = value["VswitchIds"]["String"];
for (auto value : allVswitchIds)
dataObject.vswitchIds.push_back(value.asString());
data_.push_back(dataObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["ErrorMsg"].isNull())
errorMsg_ = value["ErrorMsg"].asString();
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListClusterResult::getTotalCount()const
{
return totalCount_;
}
int ListClusterResult::getPageSize()const
{
return pageSize_;
}
int ListClusterResult::getPageNumber()const
{
return pageNumber_;
}
std::string ListClusterResult::getErrorMsg()const
{
return errorMsg_;
}
std::vector<ListClusterResult::ClusterInfo> ListClusterResult::getData()const
{
return data_;
}
int ListClusterResult::getCode()const
{
return code_;
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/retailcloud/model/ListDeployConfigRequest.h>
using AlibabaCloud::Retailcloud::Model::ListDeployConfigRequest;
ListDeployConfigRequest::ListDeployConfigRequest() :
RpcServiceRequest("retailcloud", "2018-03-13", "ListDeployConfig")
{
setMethod(HttpRequest::Method::Post);
}
ListDeployConfigRequest::~ListDeployConfigRequest()
{}
long ListDeployConfigRequest::getAppId()const
{
return appId_;
}
void ListDeployConfigRequest::setAppId(long appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string ListDeployConfigRequest::getEnvType()const
{
return envType_;
}
void ListDeployConfigRequest::setEnvType(const std::string& envType)
{
envType_ = envType;
setParameter("EnvType", envType);
}
std::string ListDeployConfigRequest::getName()const
{
return name_;
}
void ListDeployConfigRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long ListDeployConfigRequest::getId()const
{
return id_;
}
void ListDeployConfigRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

Some files were not shown because too many files have changed in this diff Show More