regenerate code

This commit is contained in:
wb-hx510875
2020-03-26 17:27:13 +08:00
committed by Axios
parent cba94f2119
commit f0c2600a26
6249 changed files with 188711 additions and 43443 deletions

View File

@@ -591,6 +591,42 @@ CSBClient::DeleteUnionCasServiceOutcomeCallable CSBClient::deleteUnionCasService
return task->get_future();
}
CSBClient::DescribeRegionsOutcome CSBClient::describeRegions(const DescribeRegionsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRegionsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result()));
else
return DescribeRegionsOutcome(outcome.error());
}
void CSBClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRegions(request), context);
};
asyncExecute(new Runnable(fn));
}
CSBClient::DescribeRegionsOutcomeCallable CSBClient::describeRegionsCallable(const DescribeRegionsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRegionsOutcome()>>(
[this, request]()
{
return this->describeRegions(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CSBClient::FindApprovalOrderListOutcome CSBClient::findApprovalOrderList(const FindApprovalOrderListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::ApproveOrderListRequest;
ApproveOrderListRequest::ApproveOrderListRequest() :
RpcServiceRequest("csb", "2017-11-18", "ApproveOrderList")
{}
{
setMethod(HttpRequest::Method::Post);
}
ApproveOrderListRequest::~ApproveOrderListRequest()
{}
@@ -33,6 +35,6 @@ std::string ApproveOrderListRequest::getData()const
void ApproveOrderListRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::CheckServiceExistRequest;
CheckServiceExistRequest::CheckServiceExistRequest() :
RpcServiceRequest("csb", "2017-11-18", "CheckServiceExist")
{}
{
setMethod(HttpRequest::Method::Post);
}
CheckServiceExistRequest::~CheckServiceExistRequest()
{}
@@ -33,7 +35,7 @@ long CheckServiceExistRequest::getCsbId()const
void CheckServiceExistRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
std::string CheckServiceExistRequest::getServiceName()const
@@ -44,6 +46,6 @@ std::string CheckServiceExistRequest::getServiceName()const
void CheckServiceExistRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::CommitSuccessedServicesRequest;
CommitSuccessedServicesRequest::CommitSuccessedServicesRequest() :
RpcServiceRequest("csb", "2017-11-18", "CommitSuccessedServices")
{}
{
setMethod(HttpRequest::Method::Post);
}
CommitSuccessedServicesRequest::~CommitSuccessedServicesRequest()
{}
@@ -33,7 +35,7 @@ std::string CommitSuccessedServicesRequest::getCsbName()const
void CommitSuccessedServicesRequest::setCsbName(const std::string& csbName)
{
csbName_ = csbName;
setCoreParameter("CsbName", csbName);
setParameter("CsbName", csbName);
}
std::string CommitSuccessedServicesRequest::getServices()const
@@ -44,6 +46,6 @@ std::string CommitSuccessedServicesRequest::getServices()const
void CommitSuccessedServicesRequest::setServices(const std::string& services)
{
services_ = services;
setCoreParameter("Services", services);
setBodyParameter("Services", services);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::CreateCredentialsRequest;
CreateCredentialsRequest::CreateCredentialsRequest() :
RpcServiceRequest("csb", "2017-11-18", "CreateCredentials")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateCredentialsRequest::~CreateCredentialsRequest()
{}
@@ -33,7 +35,7 @@ std::string CreateCredentialsRequest::getData()const
void CreateCredentialsRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long CreateCredentialsRequest::getCsbId()const
@@ -44,6 +46,6 @@ long CreateCredentialsRequest::getCsbId()const
void CreateCredentialsRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::CreateOrderRequest;
CreateOrderRequest::CreateOrderRequest() :
RpcServiceRequest("csb", "2017-11-18", "CreateOrder")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateOrderRequest::~CreateOrderRequest()
{}
@@ -33,7 +35,7 @@ std::string CreateOrderRequest::getData()const
void CreateOrderRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long CreateOrderRequest::getCsbId()const
@@ -44,6 +46,6 @@ long CreateOrderRequest::getCsbId()const
void CreateOrderRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::CreateProjectRequest;
CreateProjectRequest::CreateProjectRequest() :
RpcServiceRequest("csb", "2017-11-18", "CreateProject")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateProjectRequest::~CreateProjectRequest()
{}
@@ -33,7 +35,7 @@ std::string CreateProjectRequest::getData()const
void CreateProjectRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long CreateProjectRequest::getCsbId()const
@@ -44,6 +46,6 @@ long CreateProjectRequest::getCsbId()const
void CreateProjectRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::CreateServiceRequest;
CreateServiceRequest::CreateServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "CreateService")
{}
{
setMethod(HttpRequest::Method::Post);
}
CreateServiceRequest::~CreateServiceRequest()
{}
@@ -33,7 +35,7 @@ std::string CreateServiceRequest::getData()const
void CreateServiceRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long CreateServiceRequest::getCsbId()const
@@ -44,6 +46,6 @@ long CreateServiceRequest::getCsbId()const
void CreateServiceRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteCasServiceRequest;
DeleteCasServiceRequest::DeleteCasServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteCasService")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteCasServiceRequest::~DeleteCasServiceRequest()
{}
@@ -33,7 +35,7 @@ bool DeleteCasServiceRequest::getLeafOnly()const
void DeleteCasServiceRequest::setLeafOnly(bool leafOnly)
{
leafOnly_ = leafOnly;
setCoreParameter("LeafOnly", leafOnly ? "true" : "false");
setParameter("LeafOnly", leafOnly ? "true" : "false");
}
std::string DeleteCasServiceRequest::getCasCsbName()const
@@ -44,7 +46,7 @@ std::string DeleteCasServiceRequest::getCasCsbName()const
void DeleteCasServiceRequest::setCasCsbName(const std::string& casCsbName)
{
casCsbName_ = casCsbName;
setCoreParameter("CasCsbName", casCsbName);
setParameter("CasCsbName", casCsbName);
}
std::string DeleteCasServiceRequest::getSrcUserId()const
@@ -55,7 +57,7 @@ std::string DeleteCasServiceRequest::getSrcUserId()const
void DeleteCasServiceRequest::setSrcUserId(const std::string& srcUserId)
{
srcUserId_ = srcUserId;
setCoreParameter("SrcUserId", srcUserId);
setParameter("SrcUserId", srcUserId);
}
std::string DeleteCasServiceRequest::getCasServiceId()const
@@ -66,6 +68,6 @@ std::string DeleteCasServiceRequest::getCasServiceId()const
void DeleteCasServiceRequest::setCasServiceId(const std::string& casServiceId)
{
casServiceId_ = casServiceId;
setCoreParameter("CasServiceId", casServiceId);
setParameter("CasServiceId", casServiceId);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteCredentialsListRequest;
DeleteCredentialsListRequest::DeleteCredentialsListRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteCredentialsList")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteCredentialsListRequest::~DeleteCredentialsListRequest()
{}
@@ -33,7 +35,7 @@ std::string DeleteCredentialsListRequest::getData()const
void DeleteCredentialsListRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
bool DeleteCredentialsListRequest::getIgnoreDauth()const
@@ -44,7 +46,7 @@ bool DeleteCredentialsListRequest::getIgnoreDauth()const
void DeleteCredentialsListRequest::setIgnoreDauth(bool ignoreDauth)
{
ignoreDauth_ = ignoreDauth;
setCoreParameter("IgnoreDauth", ignoreDauth ? "true" : "false");
setParameter("IgnoreDauth", ignoreDauth ? "true" : "false");
}
bool DeleteCredentialsListRequest::getForce()const
@@ -55,6 +57,6 @@ bool DeleteCredentialsListRequest::getForce()const
void DeleteCredentialsListRequest::setForce(bool force)
{
force_ = force;
setCoreParameter("Force", force ? "true" : "false");
setParameter("Force", force ? "true" : "false");
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteOrderListRequest;
DeleteOrderListRequest::DeleteOrderListRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteOrderList")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteOrderListRequest::~DeleteOrderListRequest()
{}
@@ -33,6 +35,6 @@ std::string DeleteOrderListRequest::getData()const
void DeleteOrderListRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteProjectListRequest;
DeleteProjectListRequest::DeleteProjectListRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteProjectList")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteProjectListRequest::~DeleteProjectListRequest()
{}
@@ -33,7 +35,7 @@ std::string DeleteProjectListRequest::getData()const
void DeleteProjectListRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long DeleteProjectListRequest::getCsbId()const
@@ -44,6 +46,6 @@ long DeleteProjectListRequest::getCsbId()const
void DeleteProjectListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteProjectRequest;
DeleteProjectRequest::DeleteProjectRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteProject")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteProjectRequest::~DeleteProjectRequest()
{}
@@ -33,7 +35,7 @@ long DeleteProjectRequest::getCsbId()const
void DeleteProjectRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
long DeleteProjectRequest::getProjectId()const
@@ -44,6 +46,6 @@ long DeleteProjectRequest::getProjectId()const
void DeleteProjectRequest::setProjectId(long projectId)
{
projectId_ = projectId;
setCoreParameter("ProjectId", std::to_string(projectId));
setParameter("ProjectId", std::to_string(projectId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteServiceListRequest;
DeleteServiceListRequest::DeleteServiceListRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteServiceList")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteServiceListRequest::~DeleteServiceListRequest()
{}
@@ -33,7 +35,7 @@ std::string DeleteServiceListRequest::getData()const
void DeleteServiceListRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long DeleteServiceListRequest::getCsbId()const
@@ -44,6 +46,6 @@ long DeleteServiceListRequest::getCsbId()const
void DeleteServiceListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteServiceRequest;
DeleteServiceRequest::DeleteServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteService")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteServiceRequest::~DeleteServiceRequest()
{}
@@ -33,7 +35,7 @@ std::string DeleteServiceRequest::getServiceName()const
void DeleteServiceRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}
long DeleteServiceRequest::getServiceId()const
@@ -44,6 +46,6 @@ long DeleteServiceRequest::getServiceId()const
void DeleteServiceRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setCoreParameter("ServiceId", std::to_string(serviceId));
setParameter("ServiceId", std::to_string(serviceId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::DeleteUnionCasServiceRequest;
DeleteUnionCasServiceRequest::DeleteUnionCasServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "DeleteUnionCasService")
{}
{
setMethod(HttpRequest::Method::Post);
}
DeleteUnionCasServiceRequest::~DeleteUnionCasServiceRequest()
{}
@@ -33,7 +35,7 @@ bool DeleteUnionCasServiceRequest::getLeafOnly()const
void DeleteUnionCasServiceRequest::setLeafOnly(bool leafOnly)
{
leafOnly_ = leafOnly;
setCoreParameter("LeafOnly", leafOnly ? "true" : "false");
setParameter("LeafOnly", leafOnly ? "true" : "false");
}
std::string DeleteUnionCasServiceRequest::getCasCsbName()const
@@ -44,7 +46,7 @@ std::string DeleteUnionCasServiceRequest::getCasCsbName()const
void DeleteUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName)
{
casCsbName_ = casCsbName;
setCoreParameter("CasCsbName", casCsbName);
setParameter("CasCsbName", casCsbName);
}
std::string DeleteUnionCasServiceRequest::getSrcUserId()const
@@ -55,7 +57,7 @@ std::string DeleteUnionCasServiceRequest::getSrcUserId()const
void DeleteUnionCasServiceRequest::setSrcUserId(const std::string& srcUserId)
{
srcUserId_ = srcUserId;
setCoreParameter("SrcUserId", srcUserId);
setParameter("SrcUserId", srcUserId);
}
std::string DeleteUnionCasServiceRequest::getCasServiceId()const
@@ -66,6 +68,6 @@ std::string DeleteUnionCasServiceRequest::getCasServiceId()const
void DeleteUnionCasServiceRequest::setCasServiceId(const std::string& casServiceId)
{
casServiceId_ = casServiceId;
setCoreParameter("CasServiceId", casServiceId);
setParameter("CasServiceId", casServiceId);
}

View File

@@ -0,0 +1,29 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/csb/model/DescribeRegionsRequest.h>
using AlibabaCloud::CSB::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RpcServiceRequest("csb", "2017-11-18", "DescribeRegions")
{
setMethod(HttpRequest::Method::Get);
}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}

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/csb/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::CSB;
using namespace AlibabaCloud::CSB::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allRegionListNode = dataNode["RegionList"]["Region"];
for (auto dataNodeRegionListRegion : allRegionListNode)
{
Data::Region regionObject;
if(!dataNodeRegionListRegion["RegionId"].isNull())
regionObject.regionId = dataNodeRegionListRegion["RegionId"].asString();
if(!dataNodeRegionListRegion["RegionName"].isNull())
regionObject.regionName = dataNodeRegionListRegion["RegionName"].asString();
if(!dataNodeRegionListRegion["RegionUrl"].isNull())
regionObject.regionUrl = dataNodeRegionListRegion["RegionUrl"].asString();
if(!dataNodeRegionListRegion["Isdefault"].isNull())
regionObject.isdefault = dataNodeRegionListRegion["Isdefault"].asString() == "true";
auto allPhysicalLocationsNode = allRegionListNode["PhysicalLocations"]["PhysicalLocation"];
for (auto allRegionListNodePhysicalLocationsPhysicalLocation : allPhysicalLocationsNode)
{
Data::Region::PhysicalLocation physicalLocationsObject;
if(!allRegionListNodePhysicalLocationsPhysicalLocation["No"].isNull())
physicalLocationsObject.no = allRegionListNodePhysicalLocationsPhysicalLocation["No"].asString();
if(!allRegionListNodePhysicalLocationsPhysicalLocation["ServiceCode"].isNull())
physicalLocationsObject.serviceCode = allRegionListNodePhysicalLocationsPhysicalLocation["ServiceCode"].asString();
if(!allRegionListNodePhysicalLocationsPhysicalLocation["Type"].isNull())
physicalLocationsObject.type = allRegionListNodePhysicalLocationsPhysicalLocation["Type"].asString();
if(!allRegionListNodePhysicalLocationsPhysicalLocation["Name"].isNull())
physicalLocationsObject.name = allRegionListNodePhysicalLocationsPhysicalLocation["Name"].asString();
if(!allRegionListNodePhysicalLocationsPhysicalLocation["Status"].isNull())
physicalLocationsObject.status = allRegionListNodePhysicalLocationsPhysicalLocation["Status"].asString();
auto allAttributesNode = allPhysicalLocationsNode["Attributes"]["Attribute"];
for (auto allPhysicalLocationsNodeAttributesAttribute : allAttributesNode)
{
Data::Region::PhysicalLocation::Attribute attributesObject;
if(!allPhysicalLocationsNodeAttributesAttribute["Name"].isNull())
attributesObject.name = allPhysicalLocationsNodeAttributesAttribute["Name"].asString();
if(!allPhysicalLocationsNodeAttributesAttribute["Value"].isNull())
attributesObject.value = allPhysicalLocationsNodeAttributesAttribute["Value"].asString();
physicalLocationsObject.attributes.push_back(attributesObject);
}
regionObject.physicalLocations.push_back(physicalLocationsObject);
}
data_.regionList.push_back(regionObject);
}
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeRegionsResult::getMessage()const
{
return message_;
}
DescribeRegionsResult::Data DescribeRegionsResult::getData()const
{
return data_;
}
int DescribeRegionsResult::getCode()const
{
return code_;
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindApprovalOrderListRequest;
FindApprovalOrderListRequest::FindApprovalOrderListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindApprovalOrderList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindApprovalOrderListRequest::~FindApprovalOrderListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindApprovalOrderListRequest::getProjectName()const
void FindApprovalOrderListRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
long FindApprovalOrderListRequest::getCsbId()const
@@ -44,7 +46,7 @@ long FindApprovalOrderListRequest::getCsbId()const
void FindApprovalOrderListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindApprovalOrderListRequest::getPageNum()const
@@ -55,7 +57,7 @@ int FindApprovalOrderListRequest::getPageNum()const
void FindApprovalOrderListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}
std::string FindApprovalOrderListRequest::getAlias()const
@@ -66,7 +68,7 @@ std::string FindApprovalOrderListRequest::getAlias()const
void FindApprovalOrderListRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setCoreParameter("Alias", alias);
setParameter("Alias", alias);
}
std::string FindApprovalOrderListRequest::getServiceName()const
@@ -77,7 +79,7 @@ std::string FindApprovalOrderListRequest::getServiceName()const
void FindApprovalOrderListRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}
long FindApprovalOrderListRequest::getServiceId()const
@@ -88,7 +90,7 @@ long FindApprovalOrderListRequest::getServiceId()const
void FindApprovalOrderListRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setCoreParameter("ServiceId", std::to_string(serviceId));
setParameter("ServiceId", std::to_string(serviceId));
}
bool FindApprovalOrderListRequest::getOnlyPending()const
@@ -99,6 +101,6 @@ bool FindApprovalOrderListRequest::getOnlyPending()const
void FindApprovalOrderListRequest::setOnlyPending(bool onlyPending)
{
onlyPending_ = onlyPending;
setCoreParameter("OnlyPending", onlyPending ? "true" : "false");
setParameter("OnlyPending", onlyPending ? "true" : "false");
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindApproveServiceListRequest;
FindApproveServiceListRequest::FindApproveServiceListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindApproveServiceList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindApproveServiceListRequest::~FindApproveServiceListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindApproveServiceListRequest::getProjectName()const
void FindApproveServiceListRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
std::string FindApproveServiceListRequest::getApproveLevel()const
@@ -44,7 +46,7 @@ std::string FindApproveServiceListRequest::getApproveLevel()const
void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel)
{
approveLevel_ = approveLevel;
setCoreParameter("ApproveLevel", approveLevel);
setParameter("ApproveLevel", approveLevel);
}
bool FindApproveServiceListRequest::getShowDelService()const
@@ -55,7 +57,7 @@ bool FindApproveServiceListRequest::getShowDelService()const
void FindApproveServiceListRequest::setShowDelService(bool showDelService)
{
showDelService_ = showDelService;
setCoreParameter("ShowDelService", showDelService ? "true" : "false");
setParameter("ShowDelService", showDelService ? "true" : "false");
}
long FindApproveServiceListRequest::getCsbId()const
@@ -66,7 +68,7 @@ long FindApproveServiceListRequest::getCsbId()const
void FindApproveServiceListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
std::string FindApproveServiceListRequest::getAlias()const
@@ -77,7 +79,7 @@ std::string FindApproveServiceListRequest::getAlias()const
void FindApproveServiceListRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setCoreParameter("Alias", alias);
setParameter("Alias", alias);
}
std::string FindApproveServiceListRequest::getServiceName()const
@@ -88,6 +90,6 @@ std::string FindApproveServiceListRequest::getServiceName()const
void FindApproveServiceListRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindCredentialsListRequest;
FindCredentialsListRequest::FindCredentialsListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindCredentialsList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindCredentialsListRequest::~FindCredentialsListRequest()
{}
@@ -33,7 +35,7 @@ long FindCredentialsListRequest::getCsbId()const
void FindCredentialsListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindCredentialsListRequest::getPageNum()const
@@ -44,7 +46,7 @@ int FindCredentialsListRequest::getPageNum()const
void FindCredentialsListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}
std::string FindCredentialsListRequest::getGroupName()const
@@ -55,6 +57,6 @@ std::string FindCredentialsListRequest::getGroupName()const
void FindCredentialsListRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
setParameter("GroupName", groupName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindInstanceListRequest;
FindInstanceListRequest::FindInstanceListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindInstanceList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindInstanceListRequest::~FindInstanceListRequest()
{}
@@ -33,7 +35,7 @@ long FindInstanceListRequest::getCsbId()const
void FindInstanceListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindInstanceListRequest::getPageNum()const
@@ -44,7 +46,7 @@ int FindInstanceListRequest::getPageNum()const
void FindInstanceListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}
std::string FindInstanceListRequest::getSearchTxt()const
@@ -55,7 +57,7 @@ std::string FindInstanceListRequest::getSearchTxt()const
void FindInstanceListRequest::setSearchTxt(const std::string& searchTxt)
{
searchTxt_ = searchTxt;
setCoreParameter("SearchTxt", searchTxt);
setParameter("SearchTxt", searchTxt);
}
int FindInstanceListRequest::getStatus()const
@@ -66,6 +68,6 @@ int FindInstanceListRequest::getStatus()const
void FindInstanceListRequest::setStatus(int status)
{
status_ = status;
setCoreParameter("Status", std::to_string(status));
setParameter("Status", std::to_string(status));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindOrderableListRequest;
FindOrderableListRequest::FindOrderableListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindOrderableList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindOrderableListRequest::~FindOrderableListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindOrderableListRequest::getProjectName()const
void FindOrderableListRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
long FindOrderableListRequest::getCsbId()const
@@ -44,7 +46,7 @@ long FindOrderableListRequest::getCsbId()const
void FindOrderableListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindOrderableListRequest::getPageNum()const
@@ -55,7 +57,7 @@ int FindOrderableListRequest::getPageNum()const
void FindOrderableListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}
std::string FindOrderableListRequest::getAlias()const
@@ -66,7 +68,7 @@ std::string FindOrderableListRequest::getAlias()const
void FindOrderableListRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setCoreParameter("Alias", alias);
setParameter("Alias", alias);
}
std::string FindOrderableListRequest::getServiceName()const
@@ -77,6 +79,6 @@ std::string FindOrderableListRequest::getServiceName()const
void FindOrderableListRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindOrderedListRequest;
FindOrderedListRequest::FindOrderedListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindOrderedList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindOrderedListRequest::~FindOrderedListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindOrderedListRequest::getProjectName()const
void FindOrderedListRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
bool FindOrderedListRequest::getShowDelOrder()const
@@ -44,7 +46,7 @@ bool FindOrderedListRequest::getShowDelOrder()const
void FindOrderedListRequest::setShowDelOrder(bool showDelOrder)
{
showDelOrder_ = showDelOrder;
setCoreParameter("ShowDelOrder", showDelOrder ? "true" : "false");
setParameter("ShowDelOrder", showDelOrder ? "true" : "false");
}
long FindOrderedListRequest::getCsbId()const
@@ -55,7 +57,7 @@ long FindOrderedListRequest::getCsbId()const
void FindOrderedListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindOrderedListRequest::getPageNum()const
@@ -66,7 +68,7 @@ int FindOrderedListRequest::getPageNum()const
void FindOrderedListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}
std::string FindOrderedListRequest::getAlias()const
@@ -77,7 +79,7 @@ std::string FindOrderedListRequest::getAlias()const
void FindOrderedListRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setCoreParameter("Alias", alias);
setParameter("Alias", alias);
}
std::string FindOrderedListRequest::getServiceName()const
@@ -88,7 +90,7 @@ std::string FindOrderedListRequest::getServiceName()const
void FindOrderedListRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}
long FindOrderedListRequest::getServiceId()const
@@ -99,7 +101,7 @@ long FindOrderedListRequest::getServiceId()const
void FindOrderedListRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setCoreParameter("ServiceId", std::to_string(serviceId));
setParameter("ServiceId", std::to_string(serviceId));
}
std::string FindOrderedListRequest::getStatus()const
@@ -110,6 +112,6 @@ std::string FindOrderedListRequest::getStatus()const
void FindOrderedListRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
setParameter("Status", status);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindProjectListRequest;
FindProjectListRequest::FindProjectListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindProjectList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindProjectListRequest::~FindProjectListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindProjectListRequest::getProjectName()const
void FindProjectListRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
long FindProjectListRequest::getCsbId()const
@@ -44,7 +46,7 @@ long FindProjectListRequest::getCsbId()const
void FindProjectListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindProjectListRequest::getPageNum()const
@@ -55,6 +57,6 @@ int FindProjectListRequest::getPageNum()const
void FindProjectListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindProjectsNameListRequest;
FindProjectsNameListRequest::FindProjectsNameListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindProjectsNameList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindProjectsNameListRequest::~FindProjectsNameListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindProjectsNameListRequest::getOperationFlag()const
void FindProjectsNameListRequest::setOperationFlag(const std::string& operationFlag)
{
operationFlag_ = operationFlag;
setCoreParameter("OperationFlag", operationFlag);
setParameter("OperationFlag", operationFlag);
}
long FindProjectsNameListRequest::getCsbId()const
@@ -44,6 +46,6 @@ long FindProjectsNameListRequest::getCsbId()const
void FindProjectsNameListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindServiceListRequest;
FindServiceListRequest::FindServiceListRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindServiceList")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindServiceListRequest::~FindServiceListRequest()
{}
@@ -33,7 +35,7 @@ std::string FindServiceListRequest::getProjectName()const
void FindServiceListRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
bool FindServiceListRequest::getShowDelService()const
@@ -44,7 +46,7 @@ bool FindServiceListRequest::getShowDelService()const
void FindServiceListRequest::setShowDelService(bool showDelService)
{
showDelService_ = showDelService;
setCoreParameter("ShowDelService", showDelService ? "true" : "false");
setParameter("ShowDelService", showDelService ? "true" : "false");
}
long FindServiceListRequest::getCsbId()const
@@ -55,7 +57,7 @@ long FindServiceListRequest::getCsbId()const
void FindServiceListRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
int FindServiceListRequest::getPageNum()const
@@ -66,7 +68,7 @@ int FindServiceListRequest::getPageNum()const
void FindServiceListRequest::setPageNum(int pageNum)
{
pageNum_ = pageNum;
setCoreParameter("PageNum", std::to_string(pageNum));
setParameter("PageNum", std::to_string(pageNum));
}
int FindServiceListRequest::getCasShowType()const
@@ -77,7 +79,7 @@ int FindServiceListRequest::getCasShowType()const
void FindServiceListRequest::setCasShowType(int casShowType)
{
casShowType_ = casShowType;
setCoreParameter("CasShowType", std::to_string(casShowType));
setParameter("CasShowType", std::to_string(casShowType));
}
std::string FindServiceListRequest::getAlias()const
@@ -88,7 +90,7 @@ std::string FindServiceListRequest::getAlias()const
void FindServiceListRequest::setAlias(const std::string& alias)
{
alias_ = alias;
setCoreParameter("Alias", alias);
setParameter("Alias", alias);
}
std::string FindServiceListRequest::getServiceName()const
@@ -99,6 +101,6 @@ std::string FindServiceListRequest::getServiceName()const
void FindServiceListRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}

View File

@@ -92,6 +92,8 @@ void FindServiceListResult::parse(const std::string &payload)
serviceObject.userId = dataNodeServiceListService["UserId"].asString();
if(!dataNodeServiceListService["CasTargets"].isNull())
serviceObject.casTargets = dataNodeServiceListService["CasTargets"].asString();
if(!dataNodeServiceListService["RouteConfJson"].isNull())
serviceObject.routeConfJson = dataNodeServiceListService["RouteConfJson"].asString();
data_.serviceList.push_back(serviceObject);
}
if(!value["Message"].isNull())

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::FindServiceStatisticalDataRequest;
FindServiceStatisticalDataRequest::FindServiceStatisticalDataRequest() :
RpcServiceRequest("csb", "2017-11-18", "FindServiceStatisticalData")
{}
{
setMethod(HttpRequest::Method::Get);
}
FindServiceStatisticalDataRequest::~FindServiceStatisticalDataRequest()
{}
@@ -33,7 +35,7 @@ long FindServiceStatisticalDataRequest::getCsbId()const
void FindServiceStatisticalDataRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
long FindServiceStatisticalDataRequest::getEndTime()const
@@ -44,7 +46,7 @@ long FindServiceStatisticalDataRequest::getEndTime()const
void FindServiceStatisticalDataRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
setParameter("EndTime", std::to_string(endTime));
}
long FindServiceStatisticalDataRequest::getStartTime()const
@@ -55,7 +57,7 @@ long FindServiceStatisticalDataRequest::getStartTime()const
void FindServiceStatisticalDataRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", std::to_string(startTime));
setParameter("StartTime", std::to_string(startTime));
}
std::string FindServiceStatisticalDataRequest::getServiceName()const
@@ -66,6 +68,6 @@ std::string FindServiceStatisticalDataRequest::getServiceName()const
void FindServiceStatisticalDataRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::GetInstanceRequest;
GetInstanceRequest::GetInstanceRequest() :
RpcServiceRequest("csb", "2017-11-18", "GetInstance")
{}
{
setMethod(HttpRequest::Method::Get);
}
GetInstanceRequest::~GetInstanceRequest()
{}
@@ -33,6 +35,6 @@ long GetInstanceRequest::getCsbId()const
void GetInstanceRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::GetOrderRequest;
GetOrderRequest::GetOrderRequest() :
RpcServiceRequest("csb", "2017-11-18", "GetOrder")
{}
{
setMethod(HttpRequest::Method::Get);
}
GetOrderRequest::~GetOrderRequest()
{}
@@ -33,7 +35,7 @@ long GetOrderRequest::getOrderId()const
void GetOrderRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setCoreParameter("OrderId", std::to_string(orderId));
setParameter("OrderId", std::to_string(orderId));
}
std::string GetOrderRequest::getServiceName()const
@@ -44,6 +46,6 @@ std::string GetOrderRequest::getServiceName()const
void GetOrderRequest::setServiceName(const std::string& serviceName)
{
serviceName_ = serviceName;
setCoreParameter("ServiceName", serviceName);
setParameter("ServiceName", serviceName);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::GetProjectRequest;
GetProjectRequest::GetProjectRequest() :
RpcServiceRequest("csb", "2017-11-18", "GetProject")
{}
{
setMethod(HttpRequest::Method::Get);
}
GetProjectRequest::~GetProjectRequest()
{}
@@ -33,7 +35,7 @@ std::string GetProjectRequest::getProjectName()const
void GetProjectRequest::setProjectName(const std::string& projectName)
{
projectName_ = projectName;
setCoreParameter("ProjectName", projectName);
setParameter("ProjectName", projectName);
}
long GetProjectRequest::getCsbId()const
@@ -44,6 +46,6 @@ long GetProjectRequest::getCsbId()const
void GetProjectRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::GetServiceRequest;
GetServiceRequest::GetServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "GetService")
{}
{
setMethod(HttpRequest::Method::Get);
}
GetServiceRequest::~GetServiceRequest()
{}
@@ -33,7 +35,7 @@ long GetServiceRequest::getCsbId()const
void GetServiceRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}
long GetServiceRequest::getServiceId()const
@@ -44,6 +46,6 @@ long GetServiceRequest::getServiceId()const
void GetServiceRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setCoreParameter("ServiceId", std::to_string(serviceId));
setParameter("ServiceId", std::to_string(serviceId));
}

View File

@@ -168,115 +168,6 @@ void GetServiceResult::parse(const std::string &payload)
if(!serviceNodeVisiableGroupListVisiableGroup["Status"].isNull())
visiableGroupObject.status = std::stoi(serviceNodeVisiableGroupListVisiableGroup["Status"].asString());
data_.service.visiableGroupList.push_back(visiableGroupObject);
}
auto routeConfNode = serviceNode["RouteConf"];
if(!routeConfNode["ServiceRouteStrategy"].isNull())
data_.service.routeConf.serviceRouteStrategy = routeConfNode["ServiceRouteStrategy"].asString();
auto importConfNode = routeConfNode["ImportConf"];
if(!importConfNode["AccessEndpointJSON"].isNull())
data_.service.routeConf.importConf.accessEndpointJSON = importConfNode["AccessEndpointJSON"].asString();
if(!importConfNode["ProvideType"].isNull())
data_.service.routeConf.importConf.provideType = importConfNode["ProvideType"].asString();
auto allInputParameterMapNode = importConfNode["InputParameterMap"]["InputParameter"];
for (auto importConfNodeInputParameterMapInputParameter : allInputParameterMapNode)
{
Data::Service::RouteConf::ImportConf::InputParameter inputParameterObject;
if(!importConfNodeInputParameterMapInputParameter["CatType"].isNull())
inputParameterObject.catType = std::stoi(importConfNodeInputParameterMapInputParameter["CatType"].asString());
if(!importConfNodeInputParameterMapInputParameter["Depth"].isNull())
inputParameterObject.depth = std::stoi(importConfNodeInputParameterMapInputParameter["Depth"].asString());
if(!importConfNodeInputParameterMapInputParameter["ExtType"].isNull())
inputParameterObject.extType = std::stoi(importConfNodeInputParameterMapInputParameter["ExtType"].asString());
if(!importConfNodeInputParameterMapInputParameter["MapStyle"].isNull())
inputParameterObject.mapStyle = std::stoi(importConfNodeInputParameterMapInputParameter["MapStyle"].asString());
if(!importConfNodeInputParameterMapInputParameter["Optional"].isNull())
inputParameterObject.optional = importConfNodeInputParameterMapInputParameter["Optional"].asString() == "true";
if(!importConfNodeInputParameterMapInputParameter["OriginalName"].isNull())
inputParameterObject.originalName = importConfNodeInputParameterMapInputParameter["OriginalName"].asString();
if(!importConfNodeInputParameterMapInputParameter["ParamType"].isNull())
inputParameterObject.paramType = importConfNodeInputParameterMapInputParameter["ParamType"].asString();
if(!importConfNodeInputParameterMapInputParameter["PassMethod"].isNull())
inputParameterObject.passMethod = importConfNodeInputParameterMapInputParameter["PassMethod"].asString();
if(!importConfNodeInputParameterMapInputParameter["TargetName"].isNull())
inputParameterObject.targetName = importConfNodeInputParameterMapInputParameter["TargetName"].asString();
data_.service.routeConf.importConf.inputParameterMap.push_back(inputParameterObject);
}
auto allOutputParameterMapNode = importConfNode["OutputParameterMap"]["OutputParameter"];
for (auto importConfNodeOutputParameterMapOutputParameter : allOutputParameterMapNode)
{
Data::Service::RouteConf::ImportConf::OutputParameter outputParameterObject;
if(!importConfNodeOutputParameterMapOutputParameter["CatType"].isNull())
outputParameterObject.catType = std::stoi(importConfNodeOutputParameterMapOutputParameter["CatType"].asString());
if(!importConfNodeOutputParameterMapOutputParameter["Depth"].isNull())
outputParameterObject.depth = std::stoi(importConfNodeOutputParameterMapOutputParameter["Depth"].asString());
if(!importConfNodeOutputParameterMapOutputParameter["ExtType"].isNull())
outputParameterObject.extType = std::stoi(importConfNodeOutputParameterMapOutputParameter["ExtType"].asString());
if(!importConfNodeOutputParameterMapOutputParameter["MapStyle"].isNull())
outputParameterObject.mapStyle = std::stoi(importConfNodeOutputParameterMapOutputParameter["MapStyle"].asString());
if(!importConfNodeOutputParameterMapOutputParameter["Optional"].isNull())
outputParameterObject.optional = importConfNodeOutputParameterMapOutputParameter["Optional"].asString() == "true";
if(!importConfNodeOutputParameterMapOutputParameter["OriginalName"].isNull())
outputParameterObject.originalName = importConfNodeOutputParameterMapOutputParameter["OriginalName"].asString();
if(!importConfNodeOutputParameterMapOutputParameter["ParamType"].isNull())
outputParameterObject.paramType = importConfNodeOutputParameterMapOutputParameter["ParamType"].asString();
if(!importConfNodeOutputParameterMapOutputParameter["PassMethod"].isNull())
outputParameterObject.passMethod = importConfNodeOutputParameterMapOutputParameter["PassMethod"].asString();
if(!importConfNodeOutputParameterMapOutputParameter["TargetName"].isNull())
outputParameterObject.targetName = importConfNodeOutputParameterMapOutputParameter["TargetName"].asString();
data_.service.routeConf.importConf.outputParameterMap.push_back(outputParameterObject);
}
auto importConfsNode = routeConfNode["ImportConfs"];
if(!importConfsNode["AccessEndpointJSON"].isNull())
data_.service.routeConf.importConfs.accessEndpointJSON = importConfsNode["AccessEndpointJSON"].asString();
if(!importConfsNode["ProvideType"].isNull())
data_.service.routeConf.importConfs.provideType = importConfsNode["ProvideType"].asString();
auto allInputParameterMap1Node = importConfsNode["InputParameterMap"]["InputParameter"];
for (auto importConfsNodeInputParameterMapInputParameter : allInputParameterMap1Node)
{
Data::Service::RouteConf::ImportConfs::InputParameter3 inputParameter3Object;
if(!importConfsNodeInputParameterMapInputParameter["CatType"].isNull())
inputParameter3Object.catType = std::stoi(importConfsNodeInputParameterMapInputParameter["CatType"].asString());
if(!importConfsNodeInputParameterMapInputParameter["Depth"].isNull())
inputParameter3Object.depth = std::stoi(importConfsNodeInputParameterMapInputParameter["Depth"].asString());
if(!importConfsNodeInputParameterMapInputParameter["ExtType"].isNull())
inputParameter3Object.extType = std::stoi(importConfsNodeInputParameterMapInputParameter["ExtType"].asString());
if(!importConfsNodeInputParameterMapInputParameter["MapStyle"].isNull())
inputParameter3Object.mapStyle = std::stoi(importConfsNodeInputParameterMapInputParameter["MapStyle"].asString());
if(!importConfsNodeInputParameterMapInputParameter["Optional"].isNull())
inputParameter3Object.optional = importConfsNodeInputParameterMapInputParameter["Optional"].asString() == "true";
if(!importConfsNodeInputParameterMapInputParameter["OriginalName"].isNull())
inputParameter3Object.originalName = importConfsNodeInputParameterMapInputParameter["OriginalName"].asString();
if(!importConfsNodeInputParameterMapInputParameter["ParamType"].isNull())
inputParameter3Object.paramType = importConfsNodeInputParameterMapInputParameter["ParamType"].asString();
if(!importConfsNodeInputParameterMapInputParameter["PassMethod"].isNull())
inputParameter3Object.passMethod = importConfsNodeInputParameterMapInputParameter["PassMethod"].asString();
if(!importConfsNodeInputParameterMapInputParameter["TargetName"].isNull())
inputParameter3Object.targetName = importConfsNodeInputParameterMapInputParameter["TargetName"].asString();
data_.service.routeConf.importConfs.inputParameterMap1.push_back(inputParameter3Object);
}
auto allOutputParameterMap2Node = importConfsNode["OutputParameterMap"]["OutputParameter"];
for (auto importConfsNodeOutputParameterMapOutputParameter : allOutputParameterMap2Node)
{
Data::Service::RouteConf::ImportConfs::OutputParameter4 outputParameter4Object;
if(!importConfsNodeOutputParameterMapOutputParameter["CatType"].isNull())
outputParameter4Object.catType = std::stoi(importConfsNodeOutputParameterMapOutputParameter["CatType"].asString());
if(!importConfsNodeOutputParameterMapOutputParameter["Depth"].isNull())
outputParameter4Object.depth = std::stoi(importConfsNodeOutputParameterMapOutputParameter["Depth"].asString());
if(!importConfsNodeOutputParameterMapOutputParameter["ExtType"].isNull())
outputParameter4Object.extType = std::stoi(importConfsNodeOutputParameterMapOutputParameter["ExtType"].asString());
if(!importConfsNodeOutputParameterMapOutputParameter["MapStyle"].isNull())
outputParameter4Object.mapStyle = std::stoi(importConfsNodeOutputParameterMapOutputParameter["MapStyle"].asString());
if(!importConfsNodeOutputParameterMapOutputParameter["Optional"].isNull())
outputParameter4Object.optional = importConfsNodeOutputParameterMapOutputParameter["Optional"].asString() == "true";
if(!importConfsNodeOutputParameterMapOutputParameter["OriginalName"].isNull())
outputParameter4Object.originalName = importConfsNodeOutputParameterMapOutputParameter["OriginalName"].asString();
if(!importConfsNodeOutputParameterMapOutputParameter["ParamType"].isNull())
outputParameter4Object.paramType = importConfsNodeOutputParameterMapOutputParameter["ParamType"].asString();
if(!importConfsNodeOutputParameterMapOutputParameter["PassMethod"].isNull())
outputParameter4Object.passMethod = importConfsNodeOutputParameterMapOutputParameter["PassMethod"].asString();
if(!importConfsNodeOutputParameterMapOutputParameter["TargetName"].isNull())
outputParameter4Object.targetName = importConfsNodeOutputParameterMapOutputParameter["TargetName"].asString();
data_.service.routeConf.importConfs.outputParameterMap2.push_back(outputParameter4Object);
}
auto allCasServTargets = serviceNode["CasServTargets"]["CasServTarget"];
for (auto value : allCasServTargets)

View File

@@ -20,30 +20,32 @@ using AlibabaCloud::CSB::Model::ImportCredentialsRequest;
ImportCredentialsRequest::ImportCredentialsRequest() :
RpcServiceRequest("csb", "2017-11-18", "ImportCredentials")
{}
{
setMethod(HttpRequest::Method::Post);
}
ImportCredentialsRequest::~ImportCredentialsRequest()
{}
std::string ImportCredentialsRequest::getData()const
{
return data_;
}
void ImportCredentialsRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
}
long ImportCredentialsRequest::getCsbId()const
{
return csbId_;
}
void ImportCredentialsRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
}
std::string ImportCredentialsRequest::getData()const
{
return data_;
}
void ImportCredentialsRequest::setData(const std::string& data)
{
data_ = data;
setBodyParameter("Data", data);
}
long ImportCredentialsRequest::getCsbId()const
{
return csbId_;
}
void ImportCredentialsRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::PublishCasServiceRequest;
PublishCasServiceRequest::PublishCasServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "PublishCasService")
{}
{
setMethod(HttpRequest::Method::Post);
}
PublishCasServiceRequest::~PublishCasServiceRequest()
{}
@@ -33,7 +35,7 @@ std::string PublishCasServiceRequest::getCasCsbName()const
void PublishCasServiceRequest::setCasCsbName(const std::string& casCsbName)
{
casCsbName_ = casCsbName;
setCoreParameter("CasCsbName", casCsbName);
setParameter("CasCsbName", casCsbName);
}
std::string PublishCasServiceRequest::getData()const
@@ -44,6 +46,6 @@ std::string PublishCasServiceRequest::getData()const
void PublishCasServiceRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::PublishUnionCasServiceRequest;
PublishUnionCasServiceRequest::PublishUnionCasServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "PublishUnionCasService")
{}
{
setMethod(HttpRequest::Method::Post);
}
PublishUnionCasServiceRequest::~PublishUnionCasServiceRequest()
{}
@@ -33,7 +35,7 @@ std::string PublishUnionCasServiceRequest::getCasCsbName()const
void PublishUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName)
{
casCsbName_ = casCsbName;
setCoreParameter("CasCsbName", casCsbName);
setParameter("CasCsbName", casCsbName);
}
std::string PublishUnionCasServiceRequest::getData()const
@@ -44,6 +46,6 @@ std::string PublishUnionCasServiceRequest::getData()const
void PublishUnionCasServiceRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::RenewCredentialsRequest;
RenewCredentialsRequest::RenewCredentialsRequest() :
RpcServiceRequest("csb", "2017-11-18", "RenewCredentials")
{}
{
setMethod(HttpRequest::Method::Post);
}
RenewCredentialsRequest::~RenewCredentialsRequest()
{}
@@ -33,6 +35,6 @@ long RenewCredentialsRequest::getCredentialId()const
void RenewCredentialsRequest::setCredentialId(long credentialId)
{
credentialId_ = credentialId;
setCoreParameter("CredentialId", std::to_string(credentialId));
setParameter("CredentialId", std::to_string(credentialId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::ReplaceCredentialRequest;
ReplaceCredentialRequest::ReplaceCredentialRequest() :
RpcServiceRequest("csb", "2017-11-18", "ReplaceCredential")
{}
{
setMethod(HttpRequest::Method::Post);
}
ReplaceCredentialRequest::~ReplaceCredentialRequest()
{}
@@ -33,6 +35,6 @@ long ReplaceCredentialRequest::getCredentialId()const
void ReplaceCredentialRequest::setCredentialId(long credentialId)
{
credentialId_ = credentialId;
setCoreParameter("CredentialId", std::to_string(credentialId));
setParameter("CredentialId", std::to_string(credentialId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateOrderListRequest;
UpdateOrderListRequest::UpdateOrderListRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateOrderList")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateOrderListRequest::~UpdateOrderListRequest()
{}
@@ -33,6 +35,6 @@ std::string UpdateOrderListRequest::getData()const
void UpdateOrderListRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateOrderRequest;
UpdateOrderRequest::UpdateOrderRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateOrder")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateOrderRequest::~UpdateOrderRequest()
{}
@@ -33,7 +35,7 @@ std::string UpdateOrderRequest::getData()const
void UpdateOrderRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long UpdateOrderRequest::getCsbId()const
@@ -44,6 +46,6 @@ long UpdateOrderRequest::getCsbId()const
void UpdateOrderRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateProjectListStatusRequest;
UpdateProjectListStatusRequest::UpdateProjectListStatusRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateProjectListStatus")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateProjectListStatusRequest::~UpdateProjectListStatusRequest()
{}
@@ -33,7 +35,7 @@ std::string UpdateProjectListStatusRequest::getData()const
void UpdateProjectListStatusRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long UpdateProjectListStatusRequest::getCsbId()const
@@ -44,6 +46,6 @@ long UpdateProjectListStatusRequest::getCsbId()const
void UpdateProjectListStatusRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateProjectRequest;
UpdateProjectRequest::UpdateProjectRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateProject")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateProjectRequest::~UpdateProjectRequest()
{}
@@ -33,7 +35,7 @@ std::string UpdateProjectRequest::getData()const
void UpdateProjectRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long UpdateProjectRequest::getCsbId()const
@@ -44,6 +46,6 @@ long UpdateProjectRequest::getCsbId()const
void UpdateProjectRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateServiceListStatusRequest;
UpdateServiceListStatusRequest::UpdateServiceListStatusRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateServiceListStatus")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateServiceListStatusRequest::~UpdateServiceListStatusRequest()
{}
@@ -33,7 +35,7 @@ std::string UpdateServiceListStatusRequest::getData()const
void UpdateServiceListStatusRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long UpdateServiceListStatusRequest::getCsbId()const
@@ -44,6 +46,6 @@ long UpdateServiceListStatusRequest::getCsbId()const
void UpdateServiceListStatusRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateServiceQPSRequest;
UpdateServiceQPSRequest::UpdateServiceQPSRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateServiceQPS")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateServiceQPSRequest::~UpdateServiceQPSRequest()
{}
@@ -33,7 +35,7 @@ std::string UpdateServiceQPSRequest::getQps()const
void UpdateServiceQPSRequest::setQps(const std::string& qps)
{
qps_ = qps;
setCoreParameter("Qps", qps);
setParameter("Qps", qps);
}
long UpdateServiceQPSRequest::getServiceId()const
@@ -44,6 +46,6 @@ long UpdateServiceQPSRequest::getServiceId()const
void UpdateServiceQPSRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setCoreParameter("ServiceId", std::to_string(serviceId));
setParameter("ServiceId", std::to_string(serviceId));
}

View File

@@ -20,7 +20,9 @@ using AlibabaCloud::CSB::Model::UpdateServiceRequest;
UpdateServiceRequest::UpdateServiceRequest() :
RpcServiceRequest("csb", "2017-11-18", "UpdateService")
{}
{
setMethod(HttpRequest::Method::Post);
}
UpdateServiceRequest::~UpdateServiceRequest()
{}
@@ -33,7 +35,7 @@ std::string UpdateServiceRequest::getData()const
void UpdateServiceRequest::setData(const std::string& data)
{
data_ = data;
setCoreParameter("Data", data);
setBodyParameter("Data", data);
}
long UpdateServiceRequest::getCsbId()const
@@ -44,6 +46,6 @@ long UpdateServiceRequest::getCsbId()const
void UpdateServiceRequest::setCsbId(long csbId)
{
csbId_ = csbId;
setCoreParameter("CsbId", std::to_string(csbId));
setParameter("CsbId", std::to_string(csbId));
}