由颍川发起的CSB SDK自动发布, BUILD_ID=503, 版本号:1.3.5
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
1457
csb/src/CSBClient.cc
Normal file
1457
csb/src/CSBClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
49
csb/src/model/ApproveOrderListRequest.cc
Normal file
49
csb/src/model/ApproveOrderListRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ApproveOrderListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::ApproveOrderListRequest;
|
||||
|
||||
ApproveOrderListRequest::ApproveOrderListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "ApproveOrderList")
|
||||
{}
|
||||
|
||||
ApproveOrderListRequest::~ApproveOrderListRequest()
|
||||
{}
|
||||
|
||||
std::string ApproveOrderListRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void ApproveOrderListRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string ApproveOrderListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ApproveOrderListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/ApproveOrderListResult.cc
Normal file
59
csb/src/model/ApproveOrderListResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ApproveOrderListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
ApproveOrderListResult::ApproveOrderListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ApproveOrderListResult::ApproveOrderListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ApproveOrderListResult::~ApproveOrderListResult()
|
||||
{}
|
||||
|
||||
void ApproveOrderListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ApproveOrderListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int ApproveOrderListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/CheckServiceExistRequest.cc
Normal file
60
csb/src/model/CheckServiceExistRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckServiceExistRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CheckServiceExistRequest;
|
||||
|
||||
CheckServiceExistRequest::CheckServiceExistRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CheckServiceExist")
|
||||
{}
|
||||
|
||||
CheckServiceExistRequest::~CheckServiceExistRequest()
|
||||
{}
|
||||
|
||||
long CheckServiceExistRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CheckServiceExistRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CheckServiceExistRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CheckServiceExistRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CheckServiceExistRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void CheckServiceExistRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
67
csb/src/model/CheckServiceExistResult.cc
Normal file
67
csb/src/model/CheckServiceExistResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CheckServiceExistResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CheckServiceExistResult::CheckServiceExistResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CheckServiceExistResult::CheckServiceExistResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CheckServiceExistResult::~CheckServiceExistResult()
|
||||
{}
|
||||
|
||||
void CheckServiceExistResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Exist"].isNull())
|
||||
data_.exist = dataNode["Exist"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CheckServiceExistResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CheckServiceExistResult::Data CheckServiceExistResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CheckServiceExistResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/CommitSuccessedServicesRequest.cc
Normal file
60
csb/src/model/CommitSuccessedServicesRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CommitSuccessedServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CommitSuccessedServicesRequest;
|
||||
|
||||
CommitSuccessedServicesRequest::CommitSuccessedServicesRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CommitSuccessedServices")
|
||||
{}
|
||||
|
||||
CommitSuccessedServicesRequest::~CommitSuccessedServicesRequest()
|
||||
{}
|
||||
|
||||
std::string CommitSuccessedServicesRequest::getCsbName()const
|
||||
{
|
||||
return csbName_;
|
||||
}
|
||||
|
||||
void CommitSuccessedServicesRequest::setCsbName(const std::string& csbName)
|
||||
{
|
||||
csbName_ = csbName;
|
||||
setParameter("CsbName", csbName);
|
||||
}
|
||||
|
||||
std::string CommitSuccessedServicesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CommitSuccessedServicesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CommitSuccessedServicesRequest::getServices()const
|
||||
{
|
||||
return services_;
|
||||
}
|
||||
|
||||
void CommitSuccessedServicesRequest::setServices(const std::string& services)
|
||||
{
|
||||
services_ = services;
|
||||
setParameter("Services", services);
|
||||
}
|
||||
|
||||
59
csb/src/model/CommitSuccessedServicesResult.cc
Normal file
59
csb/src/model/CommitSuccessedServicesResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CommitSuccessedServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CommitSuccessedServicesResult::CommitSuccessedServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CommitSuccessedServicesResult::CommitSuccessedServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CommitSuccessedServicesResult::~CommitSuccessedServicesResult()
|
||||
{}
|
||||
|
||||
void CommitSuccessedServicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CommitSuccessedServicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int CommitSuccessedServicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/CreateCredentialsRequest.cc
Normal file
60
csb/src/model/CreateCredentialsRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateCredentialsRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CreateCredentialsRequest;
|
||||
|
||||
CreateCredentialsRequest::CreateCredentialsRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CreateCredentials")
|
||||
{}
|
||||
|
||||
CreateCredentialsRequest::~CreateCredentialsRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCredentialsRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateCredentialsRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string CreateCredentialsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateCredentialsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long CreateCredentialsRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CreateCredentialsRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
73
csb/src/model/CreateCredentialsResult.cc
Normal file
73
csb/src/model/CreateCredentialsResult.cc
Normal 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/csb/model/CreateCredentialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CreateCredentialsResult::CreateCredentialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCredentialsResult::CreateCredentialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCredentialsResult::~CreateCredentialsResult()
|
||||
{}
|
||||
|
||||
void CreateCredentialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto credentialsNode = dataNode["Credentials"];
|
||||
if(!credentialsNode["Id"].isNull())
|
||||
data_.credentials.id = std::stol(credentialsNode["Id"].asString());
|
||||
auto currentCredentialNode = credentialsNode["CurrentCredential"];
|
||||
if(!currentCredentialNode["SecretKey"].isNull())
|
||||
data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString();
|
||||
if(!currentCredentialNode["AccessKey"].isNull())
|
||||
data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCredentialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateCredentialsResult::Data CreateCredentialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateCredentialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/CreateOrderRequest.cc
Normal file
60
csb/src/model/CreateOrderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CreateOrderRequest;
|
||||
|
||||
CreateOrderRequest::CreateOrderRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CreateOrder")
|
||||
{}
|
||||
|
||||
CreateOrderRequest::~CreateOrderRequest()
|
||||
{}
|
||||
|
||||
std::string CreateOrderRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long CreateOrderRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CreateOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
67
csb/src/model/CreateOrderResult.cc
Normal file
67
csb/src/model/CreateOrderResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CreateOrderResult::CreateOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateOrderResult::CreateOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateOrderResult::~CreateOrderResult()
|
||||
{}
|
||||
|
||||
void CreateOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateOrderResult::Data CreateOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/CreateProjectRequest.cc
Normal file
60
csb/src/model/CreateProjectRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CreateProjectRequest;
|
||||
|
||||
CreateProjectRequest::CreateProjectRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CreateProject")
|
||||
{}
|
||||
|
||||
CreateProjectRequest::~CreateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string CreateProjectRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long CreateProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
67
csb/src/model/CreateProjectResult.cc
Normal file
67
csb/src/model/CreateProjectResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
CreateProjectResult::CreateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectResult::CreateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectResult::~CreateProjectResult()
|
||||
{}
|
||||
|
||||
void CreateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateProjectResult::Data CreateProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/CreateServiceRequest.cc
Normal file
60
csb/src/model/CreateServiceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::CreateServiceRequest;
|
||||
|
||||
CreateServiceRequest::CreateServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "CreateService")
|
||||
{}
|
||||
|
||||
CreateServiceRequest::~CreateServiceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateServiceRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long CreateServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string CreateServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
67
csb/src/model/CreateServiceResult.cc
Normal file
67
csb/src/model/CreateServiceResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/CreateServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::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 dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateServiceResult::Data CreateServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int CreateServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
csb/src/model/DeleteCasServiceRequest.cc
Normal file
82
csb/src/model/DeleteCasServiceRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/DeleteCasServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteCasServiceRequest;
|
||||
|
||||
DeleteCasServiceRequest::DeleteCasServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteCasService")
|
||||
{}
|
||||
|
||||
DeleteCasServiceRequest::~DeleteCasServiceRequest()
|
||||
{}
|
||||
|
||||
bool DeleteCasServiceRequest::getLeafOnly()const
|
||||
{
|
||||
return leafOnly_;
|
||||
}
|
||||
|
||||
void DeleteCasServiceRequest::setLeafOnly(bool leafOnly)
|
||||
{
|
||||
leafOnly_ = leafOnly;
|
||||
setParameter("LeafOnly", std::to_string(leafOnly));
|
||||
}
|
||||
|
||||
std::string DeleteCasServiceRequest::getCasCsbName()const
|
||||
{
|
||||
return casCsbName_;
|
||||
}
|
||||
|
||||
void DeleteCasServiceRequest::setCasCsbName(const std::string& casCsbName)
|
||||
{
|
||||
casCsbName_ = casCsbName;
|
||||
setParameter("CasCsbName", casCsbName);
|
||||
}
|
||||
|
||||
std::string DeleteCasServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteCasServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteCasServiceRequest::getSrcUserId()const
|
||||
{
|
||||
return srcUserId_;
|
||||
}
|
||||
|
||||
void DeleteCasServiceRequest::setSrcUserId(const std::string& srcUserId)
|
||||
{
|
||||
srcUserId_ = srcUserId;
|
||||
setParameter("SrcUserId", srcUserId);
|
||||
}
|
||||
|
||||
std::string DeleteCasServiceRequest::getCasServiceId()const
|
||||
{
|
||||
return casServiceId_;
|
||||
}
|
||||
|
||||
void DeleteCasServiceRequest::setCasServiceId(const std::string& casServiceId)
|
||||
{
|
||||
casServiceId_ = casServiceId;
|
||||
setParameter("CasServiceId", casServiceId);
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteCasServiceResult.cc
Normal file
59
csb/src/model/DeleteCasServiceResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteCasServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteCasServiceResult::DeleteCasServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCasServiceResult::DeleteCasServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCasServiceResult::~DeleteCasServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteCasServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteCasServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteCasServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
71
csb/src/model/DeleteCredentialsListRequest.cc
Normal file
71
csb/src/model/DeleteCredentialsListRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteCredentialsListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteCredentialsListRequest;
|
||||
|
||||
DeleteCredentialsListRequest::DeleteCredentialsListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteCredentialsList")
|
||||
{}
|
||||
|
||||
DeleteCredentialsListRequest::~DeleteCredentialsListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteCredentialsListRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void DeleteCredentialsListRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string DeleteCredentialsListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteCredentialsListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DeleteCredentialsListRequest::getIgnoreDauth()const
|
||||
{
|
||||
return ignoreDauth_;
|
||||
}
|
||||
|
||||
void DeleteCredentialsListRequest::setIgnoreDauth(bool ignoreDauth)
|
||||
{
|
||||
ignoreDauth_ = ignoreDauth;
|
||||
setParameter("IgnoreDauth", std::to_string(ignoreDauth));
|
||||
}
|
||||
|
||||
bool DeleteCredentialsListRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
}
|
||||
|
||||
void DeleteCredentialsListRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", std::to_string(force));
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteCredentialsListResult.cc
Normal file
59
csb/src/model/DeleteCredentialsListResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteCredentialsListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteCredentialsListResult::DeleteCredentialsListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteCredentialsListResult::DeleteCredentialsListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteCredentialsListResult::~DeleteCredentialsListResult()
|
||||
{}
|
||||
|
||||
void DeleteCredentialsListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteCredentialsListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteCredentialsListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
49
csb/src/model/DeleteOrderListRequest.cc
Normal file
49
csb/src/model/DeleteOrderListRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteOrderListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteOrderListRequest;
|
||||
|
||||
DeleteOrderListRequest::DeleteOrderListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteOrderList")
|
||||
{}
|
||||
|
||||
DeleteOrderListRequest::~DeleteOrderListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteOrderListRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void DeleteOrderListRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string DeleteOrderListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteOrderListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteOrderListResult.cc
Normal file
59
csb/src/model/DeleteOrderListResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteOrderListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteOrderListResult::DeleteOrderListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteOrderListResult::DeleteOrderListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteOrderListResult::~DeleteOrderListResult()
|
||||
{}
|
||||
|
||||
void DeleteOrderListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteOrderListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteOrderListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/DeleteProjectListRequest.cc
Normal file
60
csb/src/model/DeleteProjectListRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteProjectListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteProjectListRequest;
|
||||
|
||||
DeleteProjectListRequest::DeleteProjectListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteProjectList")
|
||||
{}
|
||||
|
||||
DeleteProjectListRequest::~DeleteProjectListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteProjectListRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void DeleteProjectListRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long DeleteProjectListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteProjectListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string DeleteProjectListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteProjectListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteProjectListResult.cc
Normal file
59
csb/src/model/DeleteProjectListResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteProjectListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteProjectListResult::DeleteProjectListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProjectListResult::DeleteProjectListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProjectListResult::~DeleteProjectListResult()
|
||||
{}
|
||||
|
||||
void DeleteProjectListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteProjectListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteProjectListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/DeleteProjectRequest.cc
Normal file
60
csb/src/model/DeleteProjectRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteProjectRequest;
|
||||
|
||||
DeleteProjectRequest::DeleteProjectRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteProject")
|
||||
{}
|
||||
|
||||
DeleteProjectRequest::~DeleteProjectRequest()
|
||||
{}
|
||||
|
||||
long DeleteProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProjectId(long projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", std::to_string(projectId));
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteProjectResult.cc
Normal file
59
csb/src/model/DeleteProjectResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProjectResult::~DeleteProjectResult()
|
||||
{}
|
||||
|
||||
void DeleteProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/DeleteServiceListRequest.cc
Normal file
60
csb/src/model/DeleteServiceListRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteServiceListRequest;
|
||||
|
||||
DeleteServiceListRequest::DeleteServiceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteServiceList")
|
||||
{}
|
||||
|
||||
DeleteServiceListRequest::~DeleteServiceListRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteServiceListRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void DeleteServiceListRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long DeleteServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void DeleteServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string DeleteServiceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteServiceListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteServiceListResult.cc
Normal file
59
csb/src/model/DeleteServiceListResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteServiceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteServiceListResult::DeleteServiceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteServiceListResult::DeleteServiceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteServiceListResult::~DeleteServiceListResult()
|
||||
{}
|
||||
|
||||
void DeleteServiceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteServiceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/DeleteServiceRequest.cc
Normal file
60
csb/src/model/DeleteServiceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteServiceRequest;
|
||||
|
||||
DeleteServiceRequest::DeleteServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteService")
|
||||
{}
|
||||
|
||||
DeleteServiceRequest::~DeleteServiceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteServiceRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
long DeleteServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void DeleteServiceRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteServiceResult.cc
Normal file
59
csb/src/model/DeleteServiceResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::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["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
csb/src/model/DeleteUnionCasServiceRequest.cc
Normal file
82
csb/src/model/DeleteUnionCasServiceRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/DeleteUnionCasServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::DeleteUnionCasServiceRequest;
|
||||
|
||||
DeleteUnionCasServiceRequest::DeleteUnionCasServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "DeleteUnionCasService")
|
||||
{}
|
||||
|
||||
DeleteUnionCasServiceRequest::~DeleteUnionCasServiceRequest()
|
||||
{}
|
||||
|
||||
bool DeleteUnionCasServiceRequest::getLeafOnly()const
|
||||
{
|
||||
return leafOnly_;
|
||||
}
|
||||
|
||||
void DeleteUnionCasServiceRequest::setLeafOnly(bool leafOnly)
|
||||
{
|
||||
leafOnly_ = leafOnly;
|
||||
setParameter("LeafOnly", std::to_string(leafOnly));
|
||||
}
|
||||
|
||||
std::string DeleteUnionCasServiceRequest::getCasCsbName()const
|
||||
{
|
||||
return casCsbName_;
|
||||
}
|
||||
|
||||
void DeleteUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName)
|
||||
{
|
||||
casCsbName_ = casCsbName;
|
||||
setParameter("CasCsbName", casCsbName);
|
||||
}
|
||||
|
||||
std::string DeleteUnionCasServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteUnionCasServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteUnionCasServiceRequest::getSrcUserId()const
|
||||
{
|
||||
return srcUserId_;
|
||||
}
|
||||
|
||||
void DeleteUnionCasServiceRequest::setSrcUserId(const std::string& srcUserId)
|
||||
{
|
||||
srcUserId_ = srcUserId;
|
||||
setParameter("SrcUserId", srcUserId);
|
||||
}
|
||||
|
||||
std::string DeleteUnionCasServiceRequest::getCasServiceId()const
|
||||
{
|
||||
return casServiceId_;
|
||||
}
|
||||
|
||||
void DeleteUnionCasServiceRequest::setCasServiceId(const std::string& casServiceId)
|
||||
{
|
||||
casServiceId_ = casServiceId;
|
||||
setParameter("CasServiceId", casServiceId);
|
||||
}
|
||||
|
||||
59
csb/src/model/DeleteUnionCasServiceResult.cc
Normal file
59
csb/src/model/DeleteUnionCasServiceResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteUnionCasServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
DeleteUnionCasServiceResult::DeleteUnionCasServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteUnionCasServiceResult::DeleteUnionCasServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteUnionCasServiceResult::~DeleteUnionCasServiceResult()
|
||||
{}
|
||||
|
||||
void DeleteUnionCasServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteUnionCasServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DeleteUnionCasServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
104
csb/src/model/FindApprovalOrderListRequest.cc
Normal file
104
csb/src/model/FindApprovalOrderListRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindApprovalOrderListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindApprovalOrderListRequest;
|
||||
|
||||
FindApprovalOrderListRequest::FindApprovalOrderListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindApprovalOrderList")
|
||||
{}
|
||||
|
||||
FindApprovalOrderListRequest::~FindApprovalOrderListRequest()
|
||||
{}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setAlias(const std::string& alias)
|
||||
{
|
||||
alias_ = alias;
|
||||
setParameter("Alias", alias);
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int FindApprovalOrderListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long FindApprovalOrderListRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
bool FindApprovalOrderListRequest::getOnlyPending()const
|
||||
{
|
||||
return onlyPending_;
|
||||
}
|
||||
|
||||
void FindApprovalOrderListRequest::setOnlyPending(bool onlyPending)
|
||||
{
|
||||
onlyPending_ = onlyPending;
|
||||
setParameter("OnlyPending", std::to_string(onlyPending));
|
||||
}
|
||||
|
||||
119
csb/src/model/FindApprovalOrderListResult.cc
Normal file
119
csb/src/model/FindApprovalOrderListResult.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindApprovalOrderListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindApprovalOrderListResult::FindApprovalOrderListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindApprovalOrderListResult::FindApprovalOrderListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindApprovalOrderListResult::~FindApprovalOrderListResult()
|
||||
{}
|
||||
|
||||
void FindApprovalOrderListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allOrderList = value["OrderList"]["Order"];
|
||||
for (auto value : allOrderList)
|
||||
{
|
||||
Data::Order orderObject;
|
||||
if(!value["Alias"].isNull())
|
||||
orderObject.alias = value["Alias"].asString();
|
||||
if(!value["CredentialGroupId"].isNull())
|
||||
orderObject.credentialGroupId = std::stol(value["CredentialGroupId"].asString());
|
||||
if(!value["CsbId"].isNull())
|
||||
orderObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["GmtCreate"].isNull())
|
||||
orderObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
orderObject.gmtModified = std::stol(value["GmtModified"].asString());
|
||||
if(!value["GroupName"].isNull())
|
||||
orderObject.groupName = value["GroupName"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
orderObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["ProjectName"].isNull())
|
||||
orderObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
orderObject.serviceId = std::stol(value["ServiceId"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
orderObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceStatus"].isNull())
|
||||
orderObject.serviceStatus = std::stoi(value["ServiceStatus"].asString());
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
orderObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["StatisticName"].isNull())
|
||||
orderObject.statisticName = value["StatisticName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
orderObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["StrictWhiteListJson"].isNull())
|
||||
orderObject.strictWhiteListJson = value["StrictWhiteListJson"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
orderObject.userId = value["UserId"].asString();
|
||||
if(!value["UserName"].isNull())
|
||||
orderObject.userName = value["UserName"].asString();
|
||||
auto slaInfoNode = value["SlaInfo"];
|
||||
if(!slaInfoNode["Qph"].isNull())
|
||||
orderObject.slaInfo.qph = std::stoi(slaInfoNode["Qph"].asString());
|
||||
if(!slaInfoNode["Qps"].isNull())
|
||||
orderObject.slaInfo.qps = std::stoi(slaInfoNode["Qps"].asString());
|
||||
auto totalNode = value["Total"];
|
||||
if(!totalNode["ErrorNum"].isNull())
|
||||
orderObject.total.errorNum = std::stoi(totalNode["ErrorNum"].asString());
|
||||
if(!totalNode["Total"].isNull())
|
||||
orderObject.total.total = std::stoi(totalNode["Total"].asString());
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindApprovalOrderListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindApprovalOrderListResult::Data FindApprovalOrderListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindApprovalOrderListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
104
csb/src/model/FindApproveServiceListRequest.cc
Normal file
104
csb/src/model/FindApproveServiceListRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindApproveServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindApproveServiceListRequest;
|
||||
|
||||
FindApproveServiceListRequest::FindApproveServiceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindApproveServiceList")
|
||||
{}
|
||||
|
||||
FindApproveServiceListRequest::~FindApproveServiceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindApproveServiceListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListRequest::getApproveLevel()const
|
||||
{
|
||||
return approveLevel_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setApproveLevel(const std::string& approveLevel)
|
||||
{
|
||||
approveLevel_ = approveLevel;
|
||||
setParameter("ApproveLevel", approveLevel);
|
||||
}
|
||||
|
||||
bool FindApproveServiceListRequest::getShowDelService()const
|
||||
{
|
||||
return showDelService_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setShowDelService(bool showDelService)
|
||||
{
|
||||
showDelService_ = showDelService;
|
||||
setParameter("ShowDelService", std::to_string(showDelService));
|
||||
}
|
||||
|
||||
long FindApproveServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setAlias(const std::string& alias)
|
||||
{
|
||||
alias_ = alias;
|
||||
setParameter("Alias", alias);
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindApproveServiceListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
115
csb/src/model/FindApproveServiceListResult.cc
Normal file
115
csb/src/model/FindApproveServiceListResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindApproveServiceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindApproveServiceListResult::FindApproveServiceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindApproveServiceListResult::FindApproveServiceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindApproveServiceListResult::~FindApproveServiceListResult()
|
||||
{}
|
||||
|
||||
void FindApproveServiceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
auto allServiceList = value["ServiceList"]["Service"];
|
||||
for (auto value : allServiceList)
|
||||
{
|
||||
Data::Service serviceObject;
|
||||
if(!value["AllVisiable"].isNull())
|
||||
serviceObject.allVisiable = value["AllVisiable"].asString() == "true";
|
||||
if(!value["CasTargets"].isNull())
|
||||
serviceObject.casTargets = value["CasTargets"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
serviceObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["CsbId"].isNull())
|
||||
serviceObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
serviceObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InterfaceName"].isNull())
|
||||
serviceObject.interfaceName = value["InterfaceName"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
serviceObject.modifiedTime = std::stol(value["ModifiedTime"].asString());
|
||||
if(!value["OwnerId"].isNull())
|
||||
serviceObject.ownerId = value["OwnerId"].asString();
|
||||
if(!value["PrincipalName"].isNull())
|
||||
serviceObject.principalName = value["PrincipalName"].asString();
|
||||
if(!value["ProjectId"].isNull())
|
||||
serviceObject.projectId = std::stol(value["ProjectId"].asString());
|
||||
if(!value["ProjectName"].isNull())
|
||||
serviceObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
serviceObject.qps = std::stoi(value["Qps"].asString());
|
||||
if(!value["Scope"].isNull())
|
||||
serviceObject.scope = value["Scope"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
serviceObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["SkipAuth"].isNull())
|
||||
serviceObject.skipAuth = value["SkipAuth"].asString() == "true";
|
||||
if(!value["StatisticName"].isNull())
|
||||
serviceObject.statisticName = value["StatisticName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
serviceObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
serviceObject.userId = value["UserId"].asString();
|
||||
data_.serviceList.push_back(serviceObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindApproveServiceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindApproveServiceListResult::Data FindApproveServiceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindApproveServiceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
71
csb/src/model/FindCredentialsListRequest.cc
Normal file
71
csb/src/model/FindCredentialsListRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindCredentialsListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindCredentialsListRequest;
|
||||
|
||||
FindCredentialsListRequest::FindCredentialsListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindCredentialsList")
|
||||
{}
|
||||
|
||||
FindCredentialsListRequest::~FindCredentialsListRequest()
|
||||
{}
|
||||
|
||||
long FindCredentialsListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindCredentialsListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindCredentialsListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindCredentialsListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int FindCredentialsListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindCredentialsListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string FindCredentialsListRequest::getGroupName()const
|
||||
{
|
||||
return groupName_;
|
||||
}
|
||||
|
||||
void FindCredentialsListRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
95
csb/src/model/FindCredentialsListResult.cc
Normal file
95
csb/src/model/FindCredentialsListResult.cc
Normal 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/csb/model/FindCredentialsListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindCredentialsListResult::FindCredentialsListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindCredentialsListResult::FindCredentialsListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindCredentialsListResult::~FindCredentialsListResult()
|
||||
{}
|
||||
|
||||
void FindCredentialsListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allCredentialList = value["CredentialList"]["Credential"];
|
||||
for (auto value : allCredentialList)
|
||||
{
|
||||
Data::Credential credentialObject;
|
||||
if(!value["GmtCreate"].isNull())
|
||||
credentialObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
credentialObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
credentialObject.name = value["Name"].asString();
|
||||
if(!value["OwnerAttr"].isNull())
|
||||
credentialObject.ownerAttr = value["OwnerAttr"].asString();
|
||||
if(!value["UserId"].isNull())
|
||||
credentialObject.userId = value["UserId"].asString();
|
||||
auto currentCredentialNode = value["CurrentCredential"];
|
||||
if(!currentCredentialNode["AccessKey"].isNull())
|
||||
credentialObject.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString();
|
||||
if(!currentCredentialNode["SecretKey"].isNull())
|
||||
credentialObject.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString();
|
||||
auto newCredentialNode = value["NewCredential"];
|
||||
if(!newCredentialNode["AccessKey"].isNull())
|
||||
credentialObject.newCredential.accessKey = newCredentialNode["AccessKey"].asString();
|
||||
if(!newCredentialNode["SecretKey"].isNull())
|
||||
credentialObject.newCredential.secretKey = newCredentialNode["SecretKey"].asString();
|
||||
data_.credentialList.push_back(credentialObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindCredentialsListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindCredentialsListResult::Data FindCredentialsListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindCredentialsListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
82
csb/src/model/FindInstanceListRequest.cc
Normal file
82
csb/src/model/FindInstanceListRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindInstanceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindInstanceListRequest;
|
||||
|
||||
FindInstanceListRequest::FindInstanceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindInstanceList")
|
||||
{}
|
||||
|
||||
FindInstanceListRequest::~FindInstanceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindInstanceListRequest::getSearchTxt()const
|
||||
{
|
||||
return searchTxt_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setSearchTxt(const std::string& searchTxt)
|
||||
{
|
||||
searchTxt_ = searchTxt;
|
||||
setParameter("SearchTxt", searchTxt);
|
||||
}
|
||||
|
||||
std::string FindInstanceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long FindInstanceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
int FindInstanceListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int FindInstanceListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void FindInstanceListRequest::setStatus(int status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", std::to_string(status));
|
||||
}
|
||||
|
||||
95
csb/src/model/FindInstanceListResult.cc
Normal file
95
csb/src/model/FindInstanceListResult.cc
Normal 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/csb/model/FindInstanceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindInstanceListResult::FindInstanceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindInstanceListResult::FindInstanceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindInstanceListResult::~FindInstanceListResult()
|
||||
{}
|
||||
|
||||
void FindInstanceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allItemList = value["ItemList"]["Item"];
|
||||
for (auto value : allItemList)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!value["Description"].isNull())
|
||||
itemObject.description = value["Description"].asString();
|
||||
if(!value["FrontStatus"].isNull())
|
||||
itemObject.frontStatus = value["FrontStatus"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
itemObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
itemObject.gmtModified = std::stol(value["GmtModified"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
itemObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InstanceCategory"].isNull())
|
||||
itemObject.instanceCategory = std::stoi(value["InstanceCategory"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
itemObject.name = value["Name"].asString();
|
||||
if(!value["StatusCode"].isNull())
|
||||
itemObject.statusCode = std::stoi(value["StatusCode"].asString());
|
||||
if(!value["Visible"].isNull())
|
||||
itemObject.visible = value["Visible"].asString() == "true";
|
||||
if(!value["VpcName"].isNull())
|
||||
itemObject.vpcName = value["VpcName"].asString();
|
||||
data_.itemList.push_back(itemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindInstanceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindInstanceListResult::Data FindInstanceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindInstanceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
93
csb/src/model/FindOrderableListRequest.cc
Normal file
93
csb/src/model/FindOrderableListRequest.cc
Normal file
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindOrderableListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindOrderableListRequest;
|
||||
|
||||
FindOrderableListRequest::FindOrderableListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindOrderableList")
|
||||
{}
|
||||
|
||||
FindOrderableListRequest::~FindOrderableListRequest()
|
||||
{}
|
||||
|
||||
std::string FindOrderableListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindOrderableListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long FindOrderableListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindOrderableListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindOrderableListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindOrderableListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string FindOrderableListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
}
|
||||
|
||||
void FindOrderableListRequest::setAlias(const std::string& alias)
|
||||
{
|
||||
alias_ = alias;
|
||||
setParameter("Alias", alias);
|
||||
}
|
||||
|
||||
std::string FindOrderableListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindOrderableListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int FindOrderableListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindOrderableListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
115
csb/src/model/FindOrderableListResult.cc
Normal file
115
csb/src/model/FindOrderableListResult.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindOrderableListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindOrderableListResult::FindOrderableListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindOrderableListResult::FindOrderableListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindOrderableListResult::~FindOrderableListResult()
|
||||
{}
|
||||
|
||||
void FindOrderableListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allServiceList = value["ServiceList"]["Service"];
|
||||
for (auto value : allServiceList)
|
||||
{
|
||||
Data::Service serviceObject;
|
||||
if(!value["Alias"].isNull())
|
||||
serviceObject.alias = value["Alias"].asString();
|
||||
if(!value["AllVisiable"].isNull())
|
||||
serviceObject.allVisiable = value["AllVisiable"].asString() == "true";
|
||||
if(!value["ApproveUserId"].isNull())
|
||||
serviceObject.approveUserId = value["ApproveUserId"].asString();
|
||||
if(!value["CasTargets"].isNull())
|
||||
serviceObject.casTargets = value["CasTargets"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
serviceObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["CsbId"].isNull())
|
||||
serviceObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
serviceObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InterfaceName"].isNull())
|
||||
serviceObject.interfaceName = value["InterfaceName"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
serviceObject.modifiedTime = std::stol(value["ModifiedTime"].asString());
|
||||
if(!value["OwnerId"].isNull())
|
||||
serviceObject.ownerId = value["OwnerId"].asString();
|
||||
if(!value["PrincipalName"].isNull())
|
||||
serviceObject.principalName = value["PrincipalName"].asString();
|
||||
if(!value["ProjectId"].isNull())
|
||||
serviceObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
serviceObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["Scope"].isNull())
|
||||
serviceObject.scope = value["Scope"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
serviceObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["SkipAuth"].isNull())
|
||||
serviceObject.skipAuth = value["SkipAuth"].asString() == "true";
|
||||
if(!value["StatisticName"].isNull())
|
||||
serviceObject.statisticName = value["StatisticName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
serviceObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
serviceObject.userId = value["UserId"].asString();
|
||||
data_.serviceList.push_back(serviceObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindOrderableListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindOrderableListResult::Data FindOrderableListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindOrderableListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
126
csb/src/model/FindOrderedListRequest.cc
Normal file
126
csb/src/model/FindOrderedListRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindOrderedListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindOrderedListRequest;
|
||||
|
||||
FindOrderedListRequest::FindOrderedListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindOrderedList")
|
||||
{}
|
||||
|
||||
FindOrderedListRequest::~FindOrderedListRequest()
|
||||
{}
|
||||
|
||||
std::string FindOrderedListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
bool FindOrderedListRequest::getShowDelOrder()const
|
||||
{
|
||||
return showDelOrder_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setShowDelOrder(bool showDelOrder)
|
||||
{
|
||||
showDelOrder_ = showDelOrder;
|
||||
setParameter("ShowDelOrder", std::to_string(showDelOrder));
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long FindOrderedListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setAlias(const std::string& alias)
|
||||
{
|
||||
alias_ = alias;
|
||||
setParameter("Alias", alias);
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int FindOrderedListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long FindOrderedListRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string FindOrderedListRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void FindOrderedListRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
160
csb/src/model/FindOrderedListResult.cc
Normal file
160
csb/src/model/FindOrderedListResult.cc
Normal file
@@ -0,0 +1,160 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindOrderedListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindOrderedListResult::FindOrderedListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindOrderedListResult::FindOrderedListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindOrderedListResult::~FindOrderedListResult()
|
||||
{}
|
||||
|
||||
void FindOrderedListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
auto allOrderList = value["OrderList"]["Order"];
|
||||
for (auto value : allOrderList)
|
||||
{
|
||||
Data::Order orderObject;
|
||||
if(!value["Alias"].isNull())
|
||||
orderObject.alias = value["Alias"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
orderObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
orderObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
orderObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["OrderStatus"].isNull())
|
||||
orderObject.orderStatus = std::stoi(value["OrderStatus"].asString());
|
||||
if(!value["AliveOrderCount"].isNull())
|
||||
orderObject.aliveOrderCount = std::stoi(value["AliveOrderCount"].asString());
|
||||
if(!value["GmtCreate"].isNull())
|
||||
orderObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["MaxRT"].isNull())
|
||||
orderObject.maxRT = std::stoi(value["MaxRT"].asString());
|
||||
if(!value["MinRT"].isNull())
|
||||
orderObject.minRT = std::stoi(value["MinRT"].asString());
|
||||
if(!value["ServiceId"].isNull())
|
||||
orderObject.serviceId = value["ServiceId"].asString();
|
||||
if(!value["ServiceStatus"].isNull())
|
||||
orderObject.serviceStatus = std::stoi(value["ServiceStatus"].asString());
|
||||
auto allErrorTypeCatagoryList = value["ErrorTypeCatagoryList"]["ErrorTypeCatagory"];
|
||||
for (auto value : allErrorTypeCatagoryList)
|
||||
{
|
||||
Data::Order::ErrorTypeCatagory errorTypeCatagoryListObject;
|
||||
if(!value["Name"].isNull())
|
||||
errorTypeCatagoryListObject.name = value["Name"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
errorTypeCatagoryListObject.total = std::stol(value["Total"].asString());
|
||||
if(!value["ErrorNum"].isNull())
|
||||
errorTypeCatagoryListObject.errorNum = std::stol(value["ErrorNum"].asString());
|
||||
orderObject.errorTypeCatagoryList.push_back(errorTypeCatagoryListObject);
|
||||
}
|
||||
auto allOrders = value["Orders"]["Order"];
|
||||
for (auto value : allOrders)
|
||||
{
|
||||
Data::Order::Order1 ordersObject;
|
||||
if(!value["Alias"].isNull())
|
||||
ordersObject.alias = value["Alias"].asString();
|
||||
if(!value["ApproveComments"].isNull())
|
||||
ordersObject.approveComments = value["ApproveComments"].asString();
|
||||
if(!value["CsbId"].isNull())
|
||||
ordersObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["GmtCreate"].isNull())
|
||||
ordersObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
ordersObject.gmtModified = std::stol(value["GmtModified"].asString());
|
||||
if(!value["GroupName"].isNull())
|
||||
ordersObject.groupName = value["GroupName"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
ordersObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["ProjectName"].isNull())
|
||||
ordersObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
ordersObject.serviceId = std::stol(value["ServiceId"].asString());
|
||||
if(!value["ServiceName"].isNull())
|
||||
ordersObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceStatus"].isNull())
|
||||
ordersObject.serviceStatus = std::stoi(value["ServiceStatus"].asString());
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
ordersObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["StatisticName"].isNull())
|
||||
ordersObject.statisticName = value["StatisticName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
ordersObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
ordersObject.userId = value["UserId"].asString();
|
||||
auto slaInfoNode = value["SlaInfo"];
|
||||
if(!slaInfoNode["Qph"].isNull())
|
||||
ordersObject.slaInfo.qph = slaInfoNode["Qph"].asString();
|
||||
if(!slaInfoNode["Qps"].isNull())
|
||||
ordersObject.slaInfo.qps = slaInfoNode["Qps"].asString();
|
||||
auto total2Node = value["Total"];
|
||||
if(!total2Node["ErrorNum"].isNull())
|
||||
ordersObject.total2.errorNum = std::stoi(total2Node["ErrorNum"].asString());
|
||||
if(!total2Node["Total"].isNull())
|
||||
ordersObject.total2.total = std::stoi(total2Node["Total"].asString());
|
||||
orderObject.orders.push_back(ordersObject);
|
||||
}
|
||||
auto totalNode = value["Total"];
|
||||
if(!totalNode["ErrorNum"].isNull())
|
||||
orderObject.total.errorNum = std::stoi(totalNode["ErrorNum"].asString());
|
||||
if(!totalNode["Total"].isNull())
|
||||
orderObject.total.total = std::stoi(totalNode["Total"].asString());
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindOrderedListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindOrderedListResult::Data FindOrderedListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindOrderedListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
71
csb/src/model/FindProjectListRequest.cc
Normal file
71
csb/src/model/FindProjectListRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindProjectListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindProjectListRequest;
|
||||
|
||||
FindProjectListRequest::FindProjectListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindProjectList")
|
||||
{}
|
||||
|
||||
FindProjectListRequest::~FindProjectListRequest()
|
||||
{}
|
||||
|
||||
std::string FindProjectListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindProjectListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long FindProjectListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindProjectListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindProjectListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindProjectListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int FindProjectListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindProjectListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
111
csb/src/model/FindProjectListResult.cc
Normal file
111
csb/src/model/FindProjectListResult.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindProjectListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindProjectListResult::FindProjectListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindProjectListResult::FindProjectListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindProjectListResult::~FindProjectListResult()
|
||||
{}
|
||||
|
||||
void FindProjectListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
auto allProjectList = value["ProjectList"]["Project"];
|
||||
for (auto value : allProjectList)
|
||||
{
|
||||
Data::Project projectObject;
|
||||
if(!value["ApiNum"].isNull())
|
||||
projectObject.apiNum = std::stoi(value["ApiNum"].asString());
|
||||
if(!value["CsbId"].isNull())
|
||||
projectObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["DeleteFlag"].isNull())
|
||||
projectObject.deleteFlag = std::stoi(value["DeleteFlag"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
projectObject.description = value["Description"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
projectObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
projectObject.gmtModified = std::stol(value["GmtModified"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
projectObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InterfaceJarLocation"].isNull())
|
||||
projectObject.interfaceJarLocation = value["InterfaceJarLocation"].asString();
|
||||
if(!value["InterfaceJarName"].isNull())
|
||||
projectObject.interfaceJarName = value["InterfaceJarName"].asString();
|
||||
if(!value["JarFileKey"].isNull())
|
||||
projectObject.jarFileKey = value["JarFileKey"].asString();
|
||||
if(!value["OwnerId"].isNull())
|
||||
projectObject.ownerId = value["OwnerId"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
projectObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["ProjectOwnerEmail"].isNull())
|
||||
projectObject.projectOwnerEmail = value["ProjectOwnerEmail"].asString();
|
||||
if(!value["ProjectOwnerName"].isNull())
|
||||
projectObject.projectOwnerName = value["ProjectOwnerName"].asString();
|
||||
if(!value["ProjectOwnerPhoneNum"].isNull())
|
||||
projectObject.projectOwnerPhoneNum = value["ProjectOwnerPhoneNum"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
projectObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
projectObject.userId = value["UserId"].asString();
|
||||
data_.projectList.push_back(projectObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindProjectListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindProjectListResult::Data FindProjectListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindProjectListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/FindProjectsNameListRequest.cc
Normal file
60
csb/src/model/FindProjectsNameListRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindProjectsNameListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindProjectsNameListRequest;
|
||||
|
||||
FindProjectsNameListRequest::FindProjectsNameListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindProjectsNameList")
|
||||
{}
|
||||
|
||||
FindProjectsNameListRequest::~FindProjectsNameListRequest()
|
||||
{}
|
||||
|
||||
std::string FindProjectsNameListRequest::getOperationFlag()const
|
||||
{
|
||||
return operationFlag_;
|
||||
}
|
||||
|
||||
void FindProjectsNameListRequest::setOperationFlag(const std::string& operationFlag)
|
||||
{
|
||||
operationFlag_ = operationFlag;
|
||||
setParameter("OperationFlag", operationFlag);
|
||||
}
|
||||
|
||||
long FindProjectsNameListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindProjectsNameListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindProjectsNameListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindProjectsNameListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
68
csb/src/model/FindProjectsNameListResult.cc
Normal file
68
csb/src/model/FindProjectsNameListResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindProjectsNameListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindProjectsNameListResult::FindProjectsNameListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindProjectsNameListResult::FindProjectsNameListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindProjectsNameListResult::~FindProjectsNameListResult()
|
||||
{}
|
||||
|
||||
void FindProjectsNameListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allProjectNameList = dataNode["ProjectNameList"]["ProjectName"];
|
||||
for (auto value : allProjectNameList)
|
||||
data_.projectNameList.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string FindProjectsNameListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindProjectsNameListResult::Data FindProjectsNameListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindProjectsNameListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
115
csb/src/model/FindServiceListRequest.cc
Normal file
115
csb/src/model/FindServiceListRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/FindServiceListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::FindServiceListRequest;
|
||||
|
||||
FindServiceListRequest::FindServiceListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "FindServiceList")
|
||||
{}
|
||||
|
||||
FindServiceListRequest::~FindServiceListRequest()
|
||||
{}
|
||||
|
||||
std::string FindServiceListRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
bool FindServiceListRequest::getShowDelService()const
|
||||
{
|
||||
return showDelService_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setShowDelService(bool showDelService)
|
||||
{
|
||||
showDelService_ = showDelService;
|
||||
setParameter("ShowDelService", std::to_string(showDelService));
|
||||
}
|
||||
|
||||
int FindServiceListRequest::getCasShowType()const
|
||||
{
|
||||
return casShowType_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setCasShowType(int casShowType)
|
||||
{
|
||||
casShowType_ = casShowType;
|
||||
setParameter("CasShowType", std::to_string(casShowType));
|
||||
}
|
||||
|
||||
long FindServiceListRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string FindServiceListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string FindServiceListRequest::getAlias()const
|
||||
{
|
||||
return alias_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setAlias(const std::string& alias)
|
||||
{
|
||||
alias_ = alias;
|
||||
setParameter("Alias", alias);
|
||||
}
|
||||
|
||||
std::string FindServiceListRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
int FindServiceListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void FindServiceListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
117
csb/src/model/FindServiceListResult.cc
Normal file
117
csb/src/model/FindServiceListResult.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/FindServiceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
FindServiceListResult::FindServiceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
FindServiceListResult::FindServiceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
FindServiceListResult::~FindServiceListResult()
|
||||
{}
|
||||
|
||||
void FindServiceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["PageNumber"].isNull())
|
||||
data_.pageNumber = std::stoi(dataNode["PageNumber"].asString());
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stoi(dataNode["Total"].asString());
|
||||
auto allServiceList = value["ServiceList"]["Service"];
|
||||
for (auto value : allServiceList)
|
||||
{
|
||||
Data::Service serviceObject;
|
||||
if(!value["Alias"].isNull())
|
||||
serviceObject.alias = value["Alias"].asString();
|
||||
if(!value["AllVisiable"].isNull())
|
||||
serviceObject.allVisiable = value["AllVisiable"].asString() == "true";
|
||||
if(!value["CreateTime"].isNull())
|
||||
serviceObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["CsbId"].isNull())
|
||||
serviceObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
serviceObject.description = value["Description"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
serviceObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InterfaceName"].isNull())
|
||||
serviceObject.interfaceName = value["InterfaceName"].asString();
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
serviceObject.modifiedTime = std::stol(value["ModifiedTime"].asString());
|
||||
if(!value["OrderInfo"].isNull())
|
||||
serviceObject.orderInfo = value["OrderInfo"].asString();
|
||||
if(!value["OwnerId"].isNull())
|
||||
serviceObject.ownerId = value["OwnerId"].asString();
|
||||
if(!value["PrincipalName"].isNull())
|
||||
serviceObject.principalName = value["PrincipalName"].asString();
|
||||
if(!value["ProjectId"].isNull())
|
||||
serviceObject.projectId = std::stol(value["ProjectId"].asString());
|
||||
if(!value["ProjectName"].isNull())
|
||||
serviceObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["Scope"].isNull())
|
||||
serviceObject.scope = value["Scope"].asString();
|
||||
if(!value["ServiceName"].isNull())
|
||||
serviceObject.serviceName = value["ServiceName"].asString();
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
serviceObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["SkipAuth"].isNull())
|
||||
serviceObject.skipAuth = value["SkipAuth"].asString() == "true";
|
||||
if(!value["StatisticName"].isNull())
|
||||
serviceObject.statisticName = value["StatisticName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
serviceObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
serviceObject.userId = value["UserId"].asString();
|
||||
data_.serviceList.push_back(serviceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string FindServiceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
FindServiceListResult::Data FindServiceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int FindServiceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
49
csb/src/model/GetInstanceRequest.cc
Normal file
49
csb/src/model/GetInstanceRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::GetInstanceRequest;
|
||||
|
||||
GetInstanceRequest::GetInstanceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "GetInstance")
|
||||
{}
|
||||
|
||||
GetInstanceRequest::~GetInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string GetInstanceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetInstanceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
136
csb/src/model/GetInstanceResult.cc
Normal file
136
csb/src/model/GetInstanceResult.cc
Normal file
@@ -0,0 +1,136 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/GetInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
GetInstanceResult::GetInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetInstanceResult::GetInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetInstanceResult::~GetInstanceResult()
|
||||
{}
|
||||
|
||||
void GetInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto instanceNode = dataNode["Instance"];
|
||||
if(!instanceNode["ApprLevel"].isNull())
|
||||
data_.instance.apprLevel = std::stoi(instanceNode["ApprLevel"].asString());
|
||||
if(!instanceNode["ApprUser1"].isNull())
|
||||
data_.instance.apprUser1 = instanceNode["ApprUser1"].asString();
|
||||
if(!instanceNode["ApprUser2"].isNull())
|
||||
data_.instance.apprUser2 = instanceNode["ApprUser2"].asString();
|
||||
if(!instanceNode["BrokerVpcId"].isNull())
|
||||
data_.instance.brokerVpcId = instanceNode["BrokerVpcId"].asString();
|
||||
if(!instanceNode["BrokerVpcName"].isNull())
|
||||
data_.instance.brokerVpcName = instanceNode["BrokerVpcName"].asString();
|
||||
if(!instanceNode["ClientVpcId"].isNull())
|
||||
data_.instance.clientVpcId = instanceNode["ClientVpcId"].asString();
|
||||
if(!instanceNode["ClientVpcName"].isNull())
|
||||
data_.instance.clientVpcName = instanceNode["ClientVpcName"].asString();
|
||||
if(!instanceNode["ClusterMembers"].isNull())
|
||||
data_.instance.clusterMembers = std::stoi(instanceNode["ClusterMembers"].asString());
|
||||
if(!instanceNode["CredentialGroup"].isNull())
|
||||
data_.instance.credentialGroup = std::stol(instanceNode["CredentialGroup"].asString());
|
||||
if(!instanceNode["CsbAccountId"].isNull())
|
||||
data_.instance.csbAccountId = instanceNode["CsbAccountId"].asString();
|
||||
if(!instanceNode["CsbId"].isNull())
|
||||
data_.instance.csbId = std::stol(instanceNode["CsbId"].asString());
|
||||
if(!instanceNode["DbStatus"].isNull())
|
||||
data_.instance.dbStatus = std::stoi(instanceNode["DbStatus"].asString());
|
||||
if(!instanceNode["Description"].isNull())
|
||||
data_.instance.description = instanceNode["Description"].asString();
|
||||
if(!instanceNode["FrontStatus"].isNull())
|
||||
data_.instance.frontStatus = instanceNode["FrontStatus"].asString();
|
||||
if(!instanceNode["GmtCreate"].isNull())
|
||||
data_.instance.gmtCreate = std::stol(instanceNode["GmtCreate"].asString());
|
||||
if(!instanceNode["GmtModified"].isNull())
|
||||
data_.instance.gmtModified = std::stol(instanceNode["GmtModified"].asString());
|
||||
if(!instanceNode["Id"].isNull())
|
||||
data_.instance.id = std::stol(instanceNode["Id"].asString());
|
||||
if(!instanceNode["InstanceCategory"].isNull())
|
||||
data_.instance.instanceCategory = std::stoi(instanceNode["InstanceCategory"].asString());
|
||||
if(!instanceNode["InstanceType"].isNull())
|
||||
data_.instance.instanceType = std::stoi(instanceNode["InstanceType"].asString());
|
||||
if(!instanceNode["IpList"].isNull())
|
||||
data_.instance.ipList = instanceNode["IpList"].asString();
|
||||
if(!instanceNode["IsImported"].isNull())
|
||||
data_.instance.isImported = instanceNode["IsImported"].asString() == "true";
|
||||
if(!instanceNode["IsPublic"].isNull())
|
||||
data_.instance.isPublic = instanceNode["IsPublic"].asString() == "true";
|
||||
if(!instanceNode["Name"].isNull())
|
||||
data_.instance.name = instanceNode["Name"].asString();
|
||||
if(!instanceNode["OwnerId"].isNull())
|
||||
data_.instance.ownerId = instanceNode["OwnerId"].asString();
|
||||
if(!instanceNode["SentinelCtlStr"].isNull())
|
||||
data_.instance.sentinelCtlStr = instanceNode["SentinelCtlStr"].asString();
|
||||
if(!instanceNode["SentinelCtrl"].isNull())
|
||||
data_.instance.sentinelCtrl = std::stol(instanceNode["SentinelCtrl"].asString());
|
||||
if(!instanceNode["SentinelGridInterval"].isNull())
|
||||
data_.instance.sentinelGridInterval = std::stoi(instanceNode["SentinelGridInterval"].asString());
|
||||
if(!instanceNode["SentinelQps"].isNull())
|
||||
data_.instance.sentinelQps = std::stol(instanceNode["SentinelQps"].asString());
|
||||
if(!instanceNode["Status"].isNull())
|
||||
data_.instance.status = instanceNode["Status"].asString();
|
||||
if(!instanceNode["StatusCode"].isNull())
|
||||
data_.instance.statusCode = std::stoi(instanceNode["StatusCode"].asString());
|
||||
if(!instanceNode["TenantId"].isNull())
|
||||
data_.instance.tenantId = instanceNode["TenantId"].asString();
|
||||
if(!instanceNode["Testable"].isNull())
|
||||
data_.instance.testable = instanceNode["Testable"].asString() == "true";
|
||||
if(!instanceNode["UserId"].isNull())
|
||||
data_.instance.userId = instanceNode["UserId"].asString();
|
||||
if(!instanceNode["Visible"].isNull())
|
||||
data_.instance.visible = instanceNode["Visible"].asString() == "true";
|
||||
if(!instanceNode["VpcName"].isNull())
|
||||
data_.instance.vpcName = instanceNode["VpcName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetInstanceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetInstanceResult::Data GetInstanceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetInstanceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/GetOrderRequest.cc
Normal file
60
csb/src/model/GetOrderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::GetOrderRequest;
|
||||
|
||||
GetOrderRequest::GetOrderRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "GetOrder")
|
||||
{}
|
||||
|
||||
GetOrderRequest::~GetOrderRequest()
|
||||
{}
|
||||
|
||||
long GetOrderRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetOrderRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
}
|
||||
|
||||
std::string GetOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string GetOrderRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
void GetOrderRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
}
|
||||
|
||||
182
csb/src/model/GetOrderResult.cc
Normal file
182
csb/src/model/GetOrderResult.cc
Normal file
@@ -0,0 +1,182 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/GetOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
GetOrderResult::GetOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetOrderResult::GetOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetOrderResult::~GetOrderResult()
|
||||
{}
|
||||
|
||||
void GetOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto orderNode = dataNode["Order"];
|
||||
if(!orderNode["Alias"].isNull())
|
||||
data_.order.alias = orderNode["Alias"].asString();
|
||||
if(!orderNode["CredentialGroupId"].isNull())
|
||||
data_.order.credentialGroupId = std::stol(orderNode["CredentialGroupId"].asString());
|
||||
if(!orderNode["CsbId"].isNull())
|
||||
data_.order.csbId = std::stol(orderNode["CsbId"].asString());
|
||||
if(!orderNode["DauthGroupName"].isNull())
|
||||
data_.order.dauthGroupName = orderNode["DauthGroupName"].asString();
|
||||
if(!orderNode["GmtCreate"].isNull())
|
||||
data_.order.gmtCreate = std::stol(orderNode["GmtCreate"].asString());
|
||||
if(!orderNode["GmtModified"].isNull())
|
||||
data_.order.gmtModified = std::stol(orderNode["GmtModified"].asString());
|
||||
if(!orderNode["GroupName"].isNull())
|
||||
data_.order.groupName = orderNode["GroupName"].asString();
|
||||
if(!orderNode["Id"].isNull())
|
||||
data_.order.id = std::stol(orderNode["Id"].asString());
|
||||
if(!orderNode["ProjectName"].isNull())
|
||||
data_.order.projectName = orderNode["ProjectName"].asString();
|
||||
if(!orderNode["ServiceId"].isNull())
|
||||
data_.order.serviceId = std::stol(orderNode["ServiceId"].asString());
|
||||
if(!orderNode["ServiceName"].isNull())
|
||||
data_.order.serviceName = orderNode["ServiceName"].asString();
|
||||
if(!orderNode["ServiceStatus"].isNull())
|
||||
data_.order.serviceStatus = std::stoi(orderNode["ServiceStatus"].asString());
|
||||
if(!orderNode["ServiceVersion"].isNull())
|
||||
data_.order.serviceVersion = orderNode["ServiceVersion"].asString();
|
||||
if(!orderNode["StatisticName"].isNull())
|
||||
data_.order.statisticName = orderNode["StatisticName"].asString();
|
||||
if(!orderNode["Status"].isNull())
|
||||
data_.order.status = std::stoi(orderNode["Status"].asString());
|
||||
if(!orderNode["StrictWhiteListJson"].isNull())
|
||||
data_.order.strictWhiteListJson = orderNode["StrictWhiteListJson"].asString();
|
||||
if(!orderNode["UserId"].isNull())
|
||||
data_.order.userId = orderNode["UserId"].asString();
|
||||
auto allErrorTypeCatagoryList = value["ErrorTypeCatagoryList"]["ErrorTypeCatagory"];
|
||||
for (auto value : allErrorTypeCatagoryList)
|
||||
{
|
||||
Data::Order::ErrorTypeCatagory errorTypeCatagoryObject;
|
||||
if(!value["Total"].isNull())
|
||||
errorTypeCatagoryObject.total = std::stoi(value["Total"].asString());
|
||||
if(!value["ErrorNum"].isNull())
|
||||
errorTypeCatagoryObject.errorNum = std::stoi(value["ErrorNum"].asString());
|
||||
if(!value["Name"].isNull())
|
||||
errorTypeCatagoryObject.name = value["Name"].asString();
|
||||
data_.order.errorTypeCatagoryList.push_back(errorTypeCatagoryObject);
|
||||
}
|
||||
auto serviceNode = orderNode["Service"];
|
||||
if(!serviceNode["AccessParamsJSON"].isNull())
|
||||
data_.order.service.accessParamsJSON = serviceNode["AccessParamsJSON"].asString();
|
||||
if(!serviceNode["Active"].isNull())
|
||||
data_.order.service.active = serviceNode["Active"].asString() == "true";
|
||||
if(!serviceNode["Alias"].isNull())
|
||||
data_.order.service.alias = serviceNode["Alias"].asString();
|
||||
if(!serviceNode["AllVisiable"].isNull())
|
||||
data_.order.service.allVisiable = serviceNode["AllVisiable"].asString() == "true";
|
||||
if(!serviceNode["ConsumeTypesJSON"].isNull())
|
||||
data_.order.service.consumeTypesJSON = serviceNode["ConsumeTypesJSON"].asString();
|
||||
if(!serviceNode["CreateTime"].isNull())
|
||||
data_.order.service.createTime = std::stol(serviceNode["CreateTime"].asString());
|
||||
if(!serviceNode["CsbId"].isNull())
|
||||
data_.order.service.csbId = std::stol(serviceNode["CsbId"].asString());
|
||||
if(!serviceNode["ErrDefJSON"].isNull())
|
||||
data_.order.service.errDefJSON = serviceNode["ErrDefJSON"].asString();
|
||||
if(!serviceNode["Id"].isNull())
|
||||
data_.order.service.id = std::stol(serviceNode["Id"].asString());
|
||||
if(!serviceNode["InterfaceName"].isNull())
|
||||
data_.order.service.interfaceName = serviceNode["InterfaceName"].asString();
|
||||
if(!serviceNode["OldVersion"].isNull())
|
||||
data_.order.service.oldVersion = serviceNode["OldVersion"].asString();
|
||||
if(!serviceNode["OttFlag"].isNull())
|
||||
data_.order.service.ottFlag = serviceNode["OttFlag"].asString() == "true";
|
||||
if(!serviceNode["OwnerId"].isNull())
|
||||
data_.order.service.ownerId = serviceNode["OwnerId"].asString();
|
||||
if(!serviceNode["PrincipalName"].isNull())
|
||||
data_.order.service.principalName = serviceNode["PrincipalName"].asString();
|
||||
if(!serviceNode["ProjectId"].isNull())
|
||||
data_.order.service.projectId = serviceNode["ProjectId"].asString();
|
||||
if(!serviceNode["ProjectName"].isNull())
|
||||
data_.order.service.projectName = serviceNode["ProjectName"].asString();
|
||||
if(!serviceNode["ProvideType"].isNull())
|
||||
data_.order.service.provideType = serviceNode["ProvideType"].asString();
|
||||
if(!serviceNode["SSL"].isNull())
|
||||
data_.order.service.sSL = serviceNode["SSL"].asString() == "true";
|
||||
if(!serviceNode["Scope"].isNull())
|
||||
data_.order.service.scope = serviceNode["Scope"].asString();
|
||||
if(!serviceNode["ServiceName"].isNull())
|
||||
data_.order.service.serviceName = serviceNode["ServiceName"].asString();
|
||||
if(!serviceNode["ServiceProviderType"].isNull())
|
||||
data_.order.service.serviceProviderType = serviceNode["ServiceProviderType"].asString();
|
||||
if(!serviceNode["ServiceVersion"].isNull())
|
||||
data_.order.service.serviceVersion = serviceNode["ServiceVersion"].asString();
|
||||
if(!serviceNode["SkipAuth"].isNull())
|
||||
data_.order.service.skipAuth = serviceNode["SkipAuth"].asString() == "true";
|
||||
if(!serviceNode["StatisticName"].isNull())
|
||||
data_.order.service.statisticName = serviceNode["StatisticName"].asString();
|
||||
if(!serviceNode["Status"].isNull())
|
||||
data_.order.service.status = std::stoi(serviceNode["Status"].asString());
|
||||
if(!serviceNode["UserId"].isNull())
|
||||
data_.order.service.userId = std::stol(serviceNode["UserId"].asString());
|
||||
if(!serviceNode["ValidConsumeTypes"].isNull())
|
||||
data_.order.service.validConsumeTypes = serviceNode["ValidConsumeTypes"].asString() == "true";
|
||||
if(!serviceNode["ValidProvideType"].isNull())
|
||||
data_.order.service.validProvideType = serviceNode["ValidProvideType"].asString() == "true";
|
||||
auto slaInfoNode = orderNode["SlaInfo"];
|
||||
if(!slaInfoNode["Qph"].isNull())
|
||||
data_.order.slaInfo.qph = slaInfoNode["Qph"].asString();
|
||||
if(!slaInfoNode["Qps"].isNull())
|
||||
data_.order.slaInfo.qps = slaInfoNode["Qps"].asString();
|
||||
auto totalNode = orderNode["Total"];
|
||||
if(!totalNode["ErrorNum"].isNull())
|
||||
data_.order.total.errorNum = std::stoi(totalNode["ErrorNum"].asString());
|
||||
if(!totalNode["Total"].isNull())
|
||||
data_.order.total.total = std::stoi(totalNode["Total"].asString());
|
||||
auto allStrictWhiteList = orderNode["StrictWhiteList"]["StrictWhite"];
|
||||
for (auto value : allStrictWhiteList)
|
||||
data_.order.strictWhiteList.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetOrderResult::Data GetOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/GetProjectRequest.cc
Normal file
60
csb/src/model/GetProjectRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::GetProjectRequest;
|
||||
|
||||
GetProjectRequest::GetProjectRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "GetProject")
|
||||
{}
|
||||
|
||||
GetProjectRequest::~GetProjectRequest()
|
||||
{}
|
||||
|
||||
std::string GetProjectRequest::getProjectName()const
|
||||
{
|
||||
return projectName_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setProjectName(const std::string& projectName)
|
||||
{
|
||||
projectName_ = projectName;
|
||||
setParameter("ProjectName", projectName);
|
||||
}
|
||||
|
||||
long GetProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string GetProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
105
csb/src/model/GetProjectResult.cc
Normal file
105
csb/src/model/GetProjectResult.cc
Normal file
@@ -0,0 +1,105 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/csb/model/GetProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
GetProjectResult::GetProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetProjectResult::GetProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetProjectResult::~GetProjectResult()
|
||||
{}
|
||||
|
||||
void GetProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allProjectList = value["ProjectList"]["Project"];
|
||||
for (auto value : allProjectList)
|
||||
{
|
||||
Data::Project projectObject;
|
||||
if(!value["ApiNum"].isNull())
|
||||
projectObject.apiNum = std::stoi(value["ApiNum"].asString());
|
||||
if(!value["CsbId"].isNull())
|
||||
projectObject.csbId = std::stol(value["CsbId"].asString());
|
||||
if(!value["DeleteFlag"].isNull())
|
||||
projectObject.deleteFlag = std::stoi(value["DeleteFlag"].asString());
|
||||
if(!value["Description"].isNull())
|
||||
projectObject.description = value["Description"].asString();
|
||||
if(!value["GmtCreate"].isNull())
|
||||
projectObject.gmtCreate = std::stol(value["GmtCreate"].asString());
|
||||
if(!value["GmtModified"].isNull())
|
||||
projectObject.gmtModified = std::stol(value["GmtModified"].asString());
|
||||
if(!value["Id"].isNull())
|
||||
projectObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["InterfaceJarLocation"].isNull())
|
||||
projectObject.interfaceJarLocation = value["InterfaceJarLocation"].asString();
|
||||
if(!value["InterfaceJarName"].isNull())
|
||||
projectObject.interfaceJarName = value["InterfaceJarName"].asString();
|
||||
if(!value["JarFileKey"].isNull())
|
||||
projectObject.jarFileKey = value["JarFileKey"].asString();
|
||||
if(!value["OwnerId"].isNull())
|
||||
projectObject.ownerId = value["OwnerId"].asString();
|
||||
if(!value["ProjectName"].isNull())
|
||||
projectObject.projectName = value["ProjectName"].asString();
|
||||
if(!value["ProjectOwnerEmail"].isNull())
|
||||
projectObject.projectOwnerEmail = value["ProjectOwnerEmail"].asString();
|
||||
if(!value["ProjectOwnerName"].isNull())
|
||||
projectObject.projectOwnerName = value["ProjectOwnerName"].asString();
|
||||
if(!value["ProjectOwnerPhoneNum"].isNull())
|
||||
projectObject.projectOwnerPhoneNum = value["ProjectOwnerPhoneNum"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
projectObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
projectObject.userId = value["UserId"].asString();
|
||||
data_.projectList.push_back(projectObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetProjectResult::Data GetProjectResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/GetServiceRequest.cc
Normal file
60
csb/src/model/GetServiceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::GetServiceRequest;
|
||||
|
||||
GetServiceRequest::GetServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "GetService")
|
||||
{}
|
||||
|
||||
GetServiceRequest::~GetServiceRequest()
|
||||
{}
|
||||
|
||||
long GetServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string GetServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long GetServiceRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void GetServiceRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
309
csb/src/model/GetServiceResult.cc
Normal file
309
csb/src/model/GetServiceResult.cc
Normal file
@@ -0,0 +1,309 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/GetServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
GetServiceResult::GetServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetServiceResult::GetServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetServiceResult::~GetServiceResult()
|
||||
{}
|
||||
|
||||
void GetServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto serviceNode = dataNode["Service"];
|
||||
if(!serviceNode["AccessParamsJSON"].isNull())
|
||||
data_.service.accessParamsJSON = serviceNode["AccessParamsJSON"].asString();
|
||||
if(!serviceNode["Active"].isNull())
|
||||
data_.service.active = serviceNode["Active"].asString() == "true";
|
||||
if(!serviceNode["Alias"].isNull())
|
||||
data_.service.alias = serviceNode["Alias"].asString();
|
||||
if(!serviceNode["AllVisiable"].isNull())
|
||||
data_.service.allVisiable = serviceNode["AllVisiable"].asString() == "true";
|
||||
if(!serviceNode["ApproveUserId"].isNull())
|
||||
data_.service.approveUserId = serviceNode["ApproveUserId"].asString();
|
||||
if(!serviceNode["CasTargets"].isNull())
|
||||
data_.service.casTargets = serviceNode["CasTargets"].asString();
|
||||
if(!serviceNode["ConsumeTypesJSON"].isNull())
|
||||
data_.service.consumeTypesJSON = serviceNode["ConsumeTypesJSON"].asString();
|
||||
if(!serviceNode["CreateTime"].isNull())
|
||||
data_.service.createTime = std::stol(serviceNode["CreateTime"].asString());
|
||||
if(!serviceNode["CsbId"].isNull())
|
||||
data_.service.csbId = std::stol(serviceNode["CsbId"].asString());
|
||||
if(!serviceNode["ErrDefJSON"].isNull())
|
||||
data_.service.errDefJSON = serviceNode["ErrDefJSON"].asString();
|
||||
if(!serviceNode["Id"].isNull())
|
||||
data_.service.id = std::stol(serviceNode["Id"].asString());
|
||||
if(!serviceNode["InterfaceName"].isNull())
|
||||
data_.service.interfaceName = serviceNode["InterfaceName"].asString();
|
||||
if(!serviceNode["IpBlackStr"].isNull())
|
||||
data_.service.ipBlackStr = serviceNode["IpBlackStr"].asString();
|
||||
if(!serviceNode["IpWhiteStr"].isNull())
|
||||
data_.service.ipWhiteStr = serviceNode["IpWhiteStr"].asString();
|
||||
if(!serviceNode["ModelVersion"].isNull())
|
||||
data_.service.modelVersion = serviceNode["ModelVersion"].asString();
|
||||
if(!serviceNode["ModifiedTime"].isNull())
|
||||
data_.service.modifiedTime = std::stol(serviceNode["ModifiedTime"].asString());
|
||||
if(!serviceNode["OldVersion"].isNull())
|
||||
data_.service.oldVersion = serviceNode["OldVersion"].asString();
|
||||
if(!serviceNode["OpenRestfulPath"].isNull())
|
||||
data_.service.openRestfulPath = serviceNode["OpenRestfulPath"].asString();
|
||||
if(!serviceNode["OttFlag"].isNull())
|
||||
data_.service.ottFlag = serviceNode["OttFlag"].asString() == "true";
|
||||
if(!serviceNode["OwnerId"].isNull())
|
||||
data_.service.ownerId = serviceNode["OwnerId"].asString();
|
||||
if(!serviceNode["PolicyHandler"].isNull())
|
||||
data_.service.policyHandler = serviceNode["PolicyHandler"].asString();
|
||||
if(!serviceNode["PrincipalName"].isNull())
|
||||
data_.service.principalName = serviceNode["PrincipalName"].asString();
|
||||
if(!serviceNode["ProjectId"].isNull())
|
||||
data_.service.projectId = std::stol(serviceNode["ProjectId"].asString());
|
||||
if(!serviceNode["ProjectName"].isNull())
|
||||
data_.service.projectName = serviceNode["ProjectName"].asString();
|
||||
if(!serviceNode["ProvideType"].isNull())
|
||||
data_.service.provideType = serviceNode["ProvideType"].asString();
|
||||
if(!serviceNode["RouteConfJson"].isNull())
|
||||
data_.service.routeConfJson = serviceNode["RouteConfJson"].asString();
|
||||
if(!serviceNode["SSL"].isNull())
|
||||
data_.service.sSL = serviceNode["SSL"].asString() == "true";
|
||||
if(!serviceNode["Scope"].isNull())
|
||||
data_.service.scope = serviceNode["Scope"].asString();
|
||||
if(!serviceNode["ServiceName"].isNull())
|
||||
data_.service.serviceName = serviceNode["ServiceName"].asString();
|
||||
if(!serviceNode["ServiceOpenRestfulPath"].isNull())
|
||||
data_.service.serviceOpenRestfulPath = serviceNode["ServiceOpenRestfulPath"].asString();
|
||||
if(!serviceNode["ServiceProviderType"].isNull())
|
||||
data_.service.serviceProviderType = serviceNode["ServiceProviderType"].asString();
|
||||
if(!serviceNode["ServiceVersion"].isNull())
|
||||
data_.service.serviceVersion = serviceNode["ServiceVersion"].asString();
|
||||
if(!serviceNode["SkipAuth"].isNull())
|
||||
data_.service.skipAuth = serviceNode["SkipAuth"].asString() == "true";
|
||||
if(!serviceNode["StatisticName"].isNull())
|
||||
data_.service.statisticName = serviceNode["StatisticName"].asString();
|
||||
if(!serviceNode["Status"].isNull())
|
||||
data_.service.status = std::stoi(serviceNode["Status"].asString());
|
||||
if(!serviceNode["UserId"].isNull())
|
||||
data_.service.userId = serviceNode["UserId"].asString();
|
||||
if(!serviceNode["ValidConsumeTypes"].isNull())
|
||||
data_.service.validConsumeTypes = serviceNode["ValidConsumeTypes"].asString() == "true";
|
||||
if(!serviceNode["ValidProvideType"].isNull())
|
||||
data_.service.validProvideType = serviceNode["ValidProvideType"].asString() == "true";
|
||||
auto allServiceVersionsList = value["ServiceVersionsList"]["ServiceVersion"];
|
||||
for (auto value : allServiceVersionsList)
|
||||
{
|
||||
Data::Service::ServiceVersion serviceVersionObject;
|
||||
if(!value["Active"].isNull())
|
||||
serviceVersionObject.active = value["Active"].asString() == "true";
|
||||
if(!value["AllVisiable"].isNull())
|
||||
serviceVersionObject.allVisiable = value["AllVisiable"].asString() == "true";
|
||||
if(!value["Id"].isNull())
|
||||
serviceVersionObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["OldVersion"].isNull())
|
||||
serviceVersionObject.oldVersion = value["OldVersion"].asString();
|
||||
if(!value["OttFlag"].isNull())
|
||||
serviceVersionObject.ottFlag = value["OttFlag"].asString() == "true";
|
||||
if(!value["SSL"].isNull())
|
||||
serviceVersionObject.sSL = value["SSL"].asString() == "true";
|
||||
if(!value["Scope"].isNull())
|
||||
serviceVersionObject.scope = value["Scope"].asString();
|
||||
if(!value["ServiceVersion"].isNull())
|
||||
serviceVersionObject.serviceVersion = value["ServiceVersion"].asString();
|
||||
if(!value["SkipAuth"].isNull())
|
||||
serviceVersionObject.skipAuth = value["SkipAuth"].asString() == "true";
|
||||
if(!value["StatisticName"].isNull())
|
||||
serviceVersionObject.statisticName = value["StatisticName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
serviceVersionObject.status = std::stoi(value["Status"].asString());
|
||||
if(!value["ValidConsumeTypes"].isNull())
|
||||
serviceVersionObject.validConsumeTypes = value["ValidConsumeTypes"].asString() == "true";
|
||||
if(!value["ValidProvideType"].isNull())
|
||||
serviceVersionObject.validProvideType = value["ValidProvideType"].asString() == "true";
|
||||
data_.service.serviceVersionsList.push_back(serviceVersionObject);
|
||||
}
|
||||
auto allVisiableGroupList = value["VisiableGroupList"]["VisiableGroup"];
|
||||
for (auto value : allVisiableGroupList)
|
||||
{
|
||||
Data::Service::VisiableGroup visiableGroupObject;
|
||||
if(!value["Id"].isNull())
|
||||
visiableGroupObject.id = std::stol(value["Id"].asString());
|
||||
if(!value["GroupId"].isNull())
|
||||
visiableGroupObject.groupId = std::stol(value["GroupId"].asString());
|
||||
if(!value["UserId"].isNull())
|
||||
visiableGroupObject.userId = value["UserId"].asString();
|
||||
if(!value["ServiceId"].isNull())
|
||||
visiableGroupObject.serviceId = std::stol(value["ServiceId"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
visiableGroupObject.createTime = std::stol(value["CreateTime"].asString());
|
||||
if(!value["ModifiedTime"].isNull())
|
||||
visiableGroupObject.modifiedTime = std::stol(value["ModifiedTime"].asString());
|
||||
if(!value["Status"].isNull())
|
||||
visiableGroupObject.status = std::stoi(value["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 allInputParameterMap = value["InputParameterMap"]["InputParameter"];
|
||||
for (auto value : allInputParameterMap)
|
||||
{
|
||||
Data::Service::RouteConf::ImportConf::InputParameter inputParameterObject;
|
||||
if(!value["CatType"].isNull())
|
||||
inputParameterObject.catType = std::stoi(value["CatType"].asString());
|
||||
if(!value["Depth"].isNull())
|
||||
inputParameterObject.depth = std::stoi(value["Depth"].asString());
|
||||
if(!value["ExtType"].isNull())
|
||||
inputParameterObject.extType = std::stoi(value["ExtType"].asString());
|
||||
if(!value["MapStyle"].isNull())
|
||||
inputParameterObject.mapStyle = std::stoi(value["MapStyle"].asString());
|
||||
if(!value["Optional"].isNull())
|
||||
inputParameterObject.optional = value["Optional"].asString() == "true";
|
||||
if(!value["OriginalName"].isNull())
|
||||
inputParameterObject.originalName = value["OriginalName"].asString();
|
||||
if(!value["ParamType"].isNull())
|
||||
inputParameterObject.paramType = value["ParamType"].asString();
|
||||
if(!value["PassMethod"].isNull())
|
||||
inputParameterObject.passMethod = value["PassMethod"].asString();
|
||||
if(!value["TargetName"].isNull())
|
||||
inputParameterObject.targetName = value["TargetName"].asString();
|
||||
data_.service.routeConf.importConf.inputParameterMap.push_back(inputParameterObject);
|
||||
}
|
||||
auto allOutputParameterMap = value["OutputParameterMap"]["OutputParameter"];
|
||||
for (auto value : allOutputParameterMap)
|
||||
{
|
||||
Data::Service::RouteConf::ImportConf::OutputParameter outputParameterObject;
|
||||
if(!value["CatType"].isNull())
|
||||
outputParameterObject.catType = std::stoi(value["CatType"].asString());
|
||||
if(!value["Depth"].isNull())
|
||||
outputParameterObject.depth = std::stoi(value["Depth"].asString());
|
||||
if(!value["ExtType"].isNull())
|
||||
outputParameterObject.extType = std::stoi(value["ExtType"].asString());
|
||||
if(!value["MapStyle"].isNull())
|
||||
outputParameterObject.mapStyle = std::stoi(value["MapStyle"].asString());
|
||||
if(!value["Optional"].isNull())
|
||||
outputParameterObject.optional = value["Optional"].asString() == "true";
|
||||
if(!value["OriginalName"].isNull())
|
||||
outputParameterObject.originalName = value["OriginalName"].asString();
|
||||
if(!value["ParamType"].isNull())
|
||||
outputParameterObject.paramType = value["ParamType"].asString();
|
||||
if(!value["PassMethod"].isNull())
|
||||
outputParameterObject.passMethod = value["PassMethod"].asString();
|
||||
if(!value["TargetName"].isNull())
|
||||
outputParameterObject.targetName = value["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 allInputParameterMap1 = value["InputParameterMap"]["InputParameter"];
|
||||
for (auto value : allInputParameterMap1)
|
||||
{
|
||||
Data::Service::RouteConf::ImportConfs::InputParameter3 inputParameter3Object;
|
||||
if(!value["CatType"].isNull())
|
||||
inputParameter3Object.catType = std::stoi(value["CatType"].asString());
|
||||
if(!value["Depth"].isNull())
|
||||
inputParameter3Object.depth = std::stoi(value["Depth"].asString());
|
||||
if(!value["ExtType"].isNull())
|
||||
inputParameter3Object.extType = std::stoi(value["ExtType"].asString());
|
||||
if(!value["MapStyle"].isNull())
|
||||
inputParameter3Object.mapStyle = std::stoi(value["MapStyle"].asString());
|
||||
if(!value["Optional"].isNull())
|
||||
inputParameter3Object.optional = value["Optional"].asString() == "true";
|
||||
if(!value["OriginalName"].isNull())
|
||||
inputParameter3Object.originalName = value["OriginalName"].asString();
|
||||
if(!value["ParamType"].isNull())
|
||||
inputParameter3Object.paramType = value["ParamType"].asString();
|
||||
if(!value["PassMethod"].isNull())
|
||||
inputParameter3Object.passMethod = value["PassMethod"].asString();
|
||||
if(!value["TargetName"].isNull())
|
||||
inputParameter3Object.targetName = value["TargetName"].asString();
|
||||
data_.service.routeConf.importConfs.inputParameterMap1.push_back(inputParameter3Object);
|
||||
}
|
||||
auto allOutputParameterMap2 = value["OutputParameterMap"]["OutputParameter"];
|
||||
for (auto value : allOutputParameterMap2)
|
||||
{
|
||||
Data::Service::RouteConf::ImportConfs::OutputParameter4 outputParameter4Object;
|
||||
if(!value["CatType"].isNull())
|
||||
outputParameter4Object.catType = std::stoi(value["CatType"].asString());
|
||||
if(!value["Depth"].isNull())
|
||||
outputParameter4Object.depth = std::stoi(value["Depth"].asString());
|
||||
if(!value["ExtType"].isNull())
|
||||
outputParameter4Object.extType = std::stoi(value["ExtType"].asString());
|
||||
if(!value["MapStyle"].isNull())
|
||||
outputParameter4Object.mapStyle = std::stoi(value["MapStyle"].asString());
|
||||
if(!value["Optional"].isNull())
|
||||
outputParameter4Object.optional = value["Optional"].asString() == "true";
|
||||
if(!value["OriginalName"].isNull())
|
||||
outputParameter4Object.originalName = value["OriginalName"].asString();
|
||||
if(!value["ParamType"].isNull())
|
||||
outputParameter4Object.paramType = value["ParamType"].asString();
|
||||
if(!value["PassMethod"].isNull())
|
||||
outputParameter4Object.passMethod = value["PassMethod"].asString();
|
||||
if(!value["TargetName"].isNull())
|
||||
outputParameter4Object.targetName = value["TargetName"].asString();
|
||||
data_.service.routeConf.importConfs.outputParameterMap2.push_back(outputParameter4Object);
|
||||
}
|
||||
auto allCasServTargets = serviceNode["CasServTargets"]["CasServTarget"];
|
||||
for (auto value : allCasServTargets)
|
||||
data_.service.casServTargets.push_back(value.asString());
|
||||
auto allConsumeTypes = serviceNode["ConsumeTypes"]["ConsumeType"];
|
||||
for (auto value : allConsumeTypes)
|
||||
data_.service.consumeTypes.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetServiceResult::Data GetServiceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int GetServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/PublishCasServiceRequest.cc
Normal file
60
csb/src/model/PublishCasServiceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/PublishCasServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::PublishCasServiceRequest;
|
||||
|
||||
PublishCasServiceRequest::PublishCasServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "PublishCasService")
|
||||
{}
|
||||
|
||||
PublishCasServiceRequest::~PublishCasServiceRequest()
|
||||
{}
|
||||
|
||||
std::string PublishCasServiceRequest::getCasCsbName()const
|
||||
{
|
||||
return casCsbName_;
|
||||
}
|
||||
|
||||
void PublishCasServiceRequest::setCasCsbName(const std::string& casCsbName)
|
||||
{
|
||||
casCsbName_ = casCsbName;
|
||||
setParameter("CasCsbName", casCsbName);
|
||||
}
|
||||
|
||||
std::string PublishCasServiceRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void PublishCasServiceRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string PublishCasServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void PublishCasServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/PublishCasServiceResult.cc
Normal file
59
csb/src/model/PublishCasServiceResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/PublishCasServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
PublishCasServiceResult::PublishCasServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PublishCasServiceResult::PublishCasServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PublishCasServiceResult::~PublishCasServiceResult()
|
||||
{}
|
||||
|
||||
void PublishCasServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PublishCasServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int PublishCasServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/PublishUnionCasServiceRequest.cc
Normal file
60
csb/src/model/PublishUnionCasServiceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/PublishUnionCasServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::PublishUnionCasServiceRequest;
|
||||
|
||||
PublishUnionCasServiceRequest::PublishUnionCasServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "PublishUnionCasService")
|
||||
{}
|
||||
|
||||
PublishUnionCasServiceRequest::~PublishUnionCasServiceRequest()
|
||||
{}
|
||||
|
||||
std::string PublishUnionCasServiceRequest::getCasCsbName()const
|
||||
{
|
||||
return casCsbName_;
|
||||
}
|
||||
|
||||
void PublishUnionCasServiceRequest::setCasCsbName(const std::string& casCsbName)
|
||||
{
|
||||
casCsbName_ = casCsbName;
|
||||
setParameter("CasCsbName", casCsbName);
|
||||
}
|
||||
|
||||
std::string PublishUnionCasServiceRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void PublishUnionCasServiceRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string PublishUnionCasServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void PublishUnionCasServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/PublishUnionCasServiceResult.cc
Normal file
59
csb/src/model/PublishUnionCasServiceResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/PublishUnionCasServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
PublishUnionCasServiceResult::PublishUnionCasServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PublishUnionCasServiceResult::PublishUnionCasServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PublishUnionCasServiceResult::~PublishUnionCasServiceResult()
|
||||
{}
|
||||
|
||||
void PublishUnionCasServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string PublishUnionCasServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int PublishUnionCasServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
49
csb/src/model/RenewCredentialsRequest.cc
Normal file
49
csb/src/model/RenewCredentialsRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/RenewCredentialsRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::RenewCredentialsRequest;
|
||||
|
||||
RenewCredentialsRequest::RenewCredentialsRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "RenewCredentials")
|
||||
{}
|
||||
|
||||
RenewCredentialsRequest::~RenewCredentialsRequest()
|
||||
{}
|
||||
|
||||
std::string RenewCredentialsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void RenewCredentialsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long RenewCredentialsRequest::getCredentialId()const
|
||||
{
|
||||
return credentialId_;
|
||||
}
|
||||
|
||||
void RenewCredentialsRequest::setCredentialId(long credentialId)
|
||||
{
|
||||
credentialId_ = credentialId;
|
||||
setParameter("CredentialId", std::to_string(credentialId));
|
||||
}
|
||||
|
||||
84
csb/src/model/RenewCredentialsResult.cc
Normal file
84
csb/src/model/RenewCredentialsResult.cc
Normal 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/csb/model/RenewCredentialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
RenewCredentialsResult::RenewCredentialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RenewCredentialsResult::RenewCredentialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RenewCredentialsResult::~RenewCredentialsResult()
|
||||
{}
|
||||
|
||||
void RenewCredentialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto credentialsNode = dataNode["Credentials"];
|
||||
if(!credentialsNode["GmtCreate"].isNull())
|
||||
data_.credentials.gmtCreate = std::stol(credentialsNode["GmtCreate"].asString());
|
||||
if(!credentialsNode["Id"].isNull())
|
||||
data_.credentials.id = std::stol(credentialsNode["Id"].asString());
|
||||
if(!credentialsNode["Name"].isNull())
|
||||
data_.credentials.name = credentialsNode["Name"].asString();
|
||||
if(!credentialsNode["UserId"].isNull())
|
||||
data_.credentials.userId = credentialsNode["UserId"].asString();
|
||||
auto currentCredentialNode = credentialsNode["CurrentCredential"];
|
||||
if(!currentCredentialNode["AccessKey"].isNull())
|
||||
data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString();
|
||||
if(!currentCredentialNode["SecretKey"].isNull())
|
||||
data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString();
|
||||
auto newCredentialNode = credentialsNode["NewCredential"];
|
||||
if(!newCredentialNode["AccessKey"].isNull())
|
||||
data_.credentials.newCredential.accessKey = newCredentialNode["AccessKey"].asString();
|
||||
if(!newCredentialNode["SecretKey"].isNull())
|
||||
data_.credentials.newCredential.secretKey = newCredentialNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RenewCredentialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
RenewCredentialsResult::Data RenewCredentialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int RenewCredentialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
49
csb/src/model/ReplaceCredentialRequest.cc
Normal file
49
csb/src/model/ReplaceCredentialRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ReplaceCredentialRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::ReplaceCredentialRequest;
|
||||
|
||||
ReplaceCredentialRequest::ReplaceCredentialRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "ReplaceCredential")
|
||||
{}
|
||||
|
||||
ReplaceCredentialRequest::~ReplaceCredentialRequest()
|
||||
{}
|
||||
|
||||
std::string ReplaceCredentialRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ReplaceCredentialRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long ReplaceCredentialRequest::getCredentialId()const
|
||||
{
|
||||
return credentialId_;
|
||||
}
|
||||
|
||||
void ReplaceCredentialRequest::setCredentialId(long credentialId)
|
||||
{
|
||||
credentialId_ = credentialId;
|
||||
setParameter("CredentialId", std::to_string(credentialId));
|
||||
}
|
||||
|
||||
84
csb/src/model/ReplaceCredentialResult.cc
Normal file
84
csb/src/model/ReplaceCredentialResult.cc
Normal 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/csb/model/ReplaceCredentialResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
ReplaceCredentialResult::ReplaceCredentialResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ReplaceCredentialResult::ReplaceCredentialResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ReplaceCredentialResult::~ReplaceCredentialResult()
|
||||
{}
|
||||
|
||||
void ReplaceCredentialResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto credentialsNode = dataNode["Credentials"];
|
||||
if(!credentialsNode["GmtCreate"].isNull())
|
||||
data_.credentials.gmtCreate = std::stol(credentialsNode["GmtCreate"].asString());
|
||||
if(!credentialsNode["Id"].isNull())
|
||||
data_.credentials.id = std::stol(credentialsNode["Id"].asString());
|
||||
if(!credentialsNode["Name"].isNull())
|
||||
data_.credentials.name = credentialsNode["Name"].asString();
|
||||
if(!credentialsNode["UserId"].isNull())
|
||||
data_.credentials.userId = credentialsNode["UserId"].asString();
|
||||
auto currentCredentialNode = credentialsNode["CurrentCredential"];
|
||||
if(!currentCredentialNode["AccessKey"].isNull())
|
||||
data_.credentials.currentCredential.accessKey = currentCredentialNode["AccessKey"].asString();
|
||||
if(!currentCredentialNode["SecretKey"].isNull())
|
||||
data_.credentials.currentCredential.secretKey = currentCredentialNode["SecretKey"].asString();
|
||||
auto newCredentialNode = credentialsNode["NewCredential"];
|
||||
if(!newCredentialNode["AccessKey"].isNull())
|
||||
data_.credentials.newCredential.accessKey = newCredentialNode["AccessKey"].asString();
|
||||
if(!newCredentialNode["SecretKey"].isNull())
|
||||
data_.credentials.newCredential.secretKey = newCredentialNode["SecretKey"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ReplaceCredentialResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ReplaceCredentialResult::Data ReplaceCredentialResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int ReplaceCredentialResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
49
csb/src/model/UpdateOrderListRequest.cc
Normal file
49
csb/src/model/UpdateOrderListRequest.cc
Normal file
@@ -0,0 +1,49 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateOrderListRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateOrderListRequest;
|
||||
|
||||
UpdateOrderListRequest::UpdateOrderListRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateOrderList")
|
||||
{}
|
||||
|
||||
UpdateOrderListRequest::~UpdateOrderListRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateOrderListRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UpdateOrderListRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string UpdateOrderListRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateOrderListRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
67
csb/src/model/UpdateOrderListResult.cc
Normal file
67
csb/src/model/UpdateOrderListResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateOrderListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateOrderListResult::UpdateOrderListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateOrderListResult::UpdateOrderListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateOrderListResult::~UpdateOrderListResult()
|
||||
{}
|
||||
|
||||
void UpdateOrderListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["UpdateCount"].isNull())
|
||||
data_.updateCount = std::stoi(dataNode["UpdateCount"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateOrderListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
UpdateOrderListResult::Data UpdateOrderListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
int UpdateOrderListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/UpdateOrderRequest.cc
Normal file
60
csb/src/model/UpdateOrderRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateOrderRequest;
|
||||
|
||||
UpdateOrderRequest::UpdateOrderRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateOrder")
|
||||
{}
|
||||
|
||||
UpdateOrderRequest::~UpdateOrderRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateOrderRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UpdateOrderRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateOrderRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateOrderRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateOrderRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateOrderRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/UpdateOrderResult.cc
Normal file
59
csb/src/model/UpdateOrderResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateOrderResult::UpdateOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateOrderResult::UpdateOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateOrderResult::~UpdateOrderResult()
|
||||
{}
|
||||
|
||||
void UpdateOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/UpdateProjectListStatusRequest.cc
Normal file
60
csb/src/model/UpdateProjectListStatusRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateProjectListStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateProjectListStatusRequest;
|
||||
|
||||
UpdateProjectListStatusRequest::UpdateProjectListStatusRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateProjectListStatus")
|
||||
{}
|
||||
|
||||
UpdateProjectListStatusRequest::~UpdateProjectListStatusRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProjectListStatusRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UpdateProjectListStatusRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateProjectListStatusRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateProjectListStatusRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateProjectListStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateProjectListStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/UpdateProjectListStatusResult.cc
Normal file
59
csb/src/model/UpdateProjectListStatusResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateProjectListStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateProjectListStatusResult::UpdateProjectListStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateProjectListStatusResult::UpdateProjectListStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateProjectListStatusResult::~UpdateProjectListStatusResult()
|
||||
{}
|
||||
|
||||
void UpdateProjectListStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateProjectListStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateProjectListStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/UpdateProjectRequest.cc
Normal file
60
csb/src/model/UpdateProjectRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateProjectRequest;
|
||||
|
||||
UpdateProjectRequest::UpdateProjectRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateProject")
|
||||
{}
|
||||
|
||||
UpdateProjectRequest::~UpdateProjectRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateProjectRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateProjectRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/UpdateProjectResult.cc
Normal file
59
csb/src/model/UpdateProjectResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateProjectResult::UpdateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateProjectResult::~UpdateProjectResult()
|
||||
{}
|
||||
|
||||
void UpdateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateProjectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateProjectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/UpdateServiceListStatusRequest.cc
Normal file
60
csb/src/model/UpdateServiceListStatusRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateServiceListStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateServiceListStatusRequest;
|
||||
|
||||
UpdateServiceListStatusRequest::UpdateServiceListStatusRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateServiceListStatus")
|
||||
{}
|
||||
|
||||
UpdateServiceListStatusRequest::~UpdateServiceListStatusRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateServiceListStatusRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UpdateServiceListStatusRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateServiceListStatusRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateServiceListStatusRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateServiceListStatusRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateServiceListStatusRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/UpdateServiceListStatusResult.cc
Normal file
59
csb/src/model/UpdateServiceListStatusResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateServiceListStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateServiceListStatusResult::UpdateServiceListStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateServiceListStatusResult::UpdateServiceListStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateServiceListStatusResult::~UpdateServiceListStatusResult()
|
||||
{}
|
||||
|
||||
void UpdateServiceListStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateServiceListStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateServiceListStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/UpdateServiceQPSRequest.cc
Normal file
60
csb/src/model/UpdateServiceQPSRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateServiceQPSRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateServiceQPSRequest;
|
||||
|
||||
UpdateServiceQPSRequest::UpdateServiceQPSRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateServiceQPS")
|
||||
{}
|
||||
|
||||
UpdateServiceQPSRequest::~UpdateServiceQPSRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateServiceQPSRequest::getQps()const
|
||||
{
|
||||
return qps_;
|
||||
}
|
||||
|
||||
void UpdateServiceQPSRequest::setQps(const std::string& qps)
|
||||
{
|
||||
qps_ = qps;
|
||||
setParameter("Qps", qps);
|
||||
}
|
||||
|
||||
std::string UpdateServiceQPSRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateServiceQPSRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long UpdateServiceQPSRequest::getServiceId()const
|
||||
{
|
||||
return serviceId_;
|
||||
}
|
||||
|
||||
void UpdateServiceQPSRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
59
csb/src/model/UpdateServiceQPSResult.cc
Normal file
59
csb/src/model/UpdateServiceQPSResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateServiceQPSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateServiceQPSResult::UpdateServiceQPSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateServiceQPSResult::UpdateServiceQPSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateServiceQPSResult::~UpdateServiceQPSResult()
|
||||
{}
|
||||
|
||||
void UpdateServiceQPSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateServiceQPSResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateServiceQPSResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
60
csb/src/model/UpdateServiceRequest.cc
Normal file
60
csb/src/model/UpdateServiceRequest.cc
Normal file
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::CSB::Model::UpdateServiceRequest;
|
||||
|
||||
UpdateServiceRequest::UpdateServiceRequest() :
|
||||
RpcServiceRequest("csb", "2017-11-18", "UpdateService")
|
||||
{}
|
||||
|
||||
UpdateServiceRequest::~UpdateServiceRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateServiceRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setParameter("Data", data);
|
||||
}
|
||||
|
||||
long UpdateServiceRequest::getCsbId()const
|
||||
{
|
||||
return csbId_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setCsbId(long csbId)
|
||||
{
|
||||
csbId_ = csbId;
|
||||
setParameter("CsbId", std::to_string(csbId));
|
||||
}
|
||||
|
||||
std::string UpdateServiceRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateServiceRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
59
csb/src/model/UpdateServiceResult.cc
Normal file
59
csb/src/model/UpdateServiceResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/UpdateServiceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::CSB;
|
||||
using namespace AlibabaCloud::CSB::Model;
|
||||
|
||||
UpdateServiceResult::UpdateServiceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateServiceResult::UpdateServiceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateServiceResult::~UpdateServiceResult()
|
||||
{}
|
||||
|
||||
void UpdateServiceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UpdateServiceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int UpdateServiceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user