Release latest features.
This commit is contained in:
2177
sae/src/SaeClient.cc
Normal file
2177
sae/src/SaeClient.cc
Normal file
File diff suppressed because it is too large
Load Diff
41
sae/src/model/AbortAndRollbackChangeOrderRequest.cc
Normal file
41
sae/src/model/AbortAndRollbackChangeOrderRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/AbortAndRollbackChangeOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::AbortAndRollbackChangeOrderRequest;
|
||||
|
||||
AbortAndRollbackChangeOrderRequest::AbortAndRollbackChangeOrderRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/AbortAndRollbackChangeOrder");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
AbortAndRollbackChangeOrderRequest::~AbortAndRollbackChangeOrderRequest()
|
||||
{}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderRequest::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void AbortAndRollbackChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
}
|
||||
|
||||
87
sae/src/model/AbortAndRollbackChangeOrderResult.cc
Normal file
87
sae/src/model/AbortAndRollbackChangeOrderResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/AbortAndRollbackChangeOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
AbortAndRollbackChangeOrderResult::AbortAndRollbackChangeOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AbortAndRollbackChangeOrderResult::AbortAndRollbackChangeOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AbortAndRollbackChangeOrderResult::~AbortAndRollbackChangeOrderResult()
|
||||
{}
|
||||
|
||||
void AbortAndRollbackChangeOrderResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
AbortAndRollbackChangeOrderResult::Data AbortAndRollbackChangeOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AbortAndRollbackChangeOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/AbortChangeOrderRequest.cc
Normal file
41
sae/src/model/AbortChangeOrderRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/AbortChangeOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::AbortChangeOrderRequest;
|
||||
|
||||
AbortChangeOrderRequest::AbortChangeOrderRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/AbortChangeOrder");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
AbortChangeOrderRequest::~AbortChangeOrderRequest()
|
||||
{}
|
||||
|
||||
std::string AbortChangeOrderRequest::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void AbortChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
}
|
||||
|
||||
87
sae/src/model/AbortChangeOrderResult.cc
Normal file
87
sae/src/model/AbortChangeOrderResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/AbortChangeOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
AbortChangeOrderResult::AbortChangeOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AbortChangeOrderResult::AbortChangeOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AbortChangeOrderResult::~AbortChangeOrderResult()
|
||||
{}
|
||||
|
||||
void AbortChangeOrderResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
AbortChangeOrderResult::Data AbortChangeOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string AbortChangeOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AbortChangeOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/BatchStartApplicationsRequest.cc
Normal file
52
sae/src/model/BatchStartApplicationsRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/BatchStartApplicationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::BatchStartApplicationsRequest;
|
||||
|
||||
BatchStartApplicationsRequest::BatchStartApplicationsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/batchStartApplications");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
BatchStartApplicationsRequest::~BatchStartApplicationsRequest()
|
||||
{}
|
||||
|
||||
std::string BatchStartApplicationsRequest::getAppIds()const
|
||||
{
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
void BatchStartApplicationsRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
}
|
||||
|
||||
std::string BatchStartApplicationsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void BatchStartApplicationsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
87
sae/src/model/BatchStartApplicationsResult.cc
Normal file
87
sae/src/model/BatchStartApplicationsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/BatchStartApplicationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
BatchStartApplicationsResult::BatchStartApplicationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchStartApplicationsResult::BatchStartApplicationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchStartApplicationsResult::~BatchStartApplicationsResult()
|
||||
{}
|
||||
|
||||
void BatchStartApplicationsResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchStartApplicationsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchStartApplicationsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
BatchStartApplicationsResult::Data BatchStartApplicationsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchStartApplicationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string BatchStartApplicationsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchStartApplicationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/BatchStopApplicationsRequest.cc
Normal file
52
sae/src/model/BatchStopApplicationsRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/BatchStopApplicationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::BatchStopApplicationsRequest;
|
||||
|
||||
BatchStopApplicationsRequest::BatchStopApplicationsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/batchStopApplications");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
BatchStopApplicationsRequest::~BatchStopApplicationsRequest()
|
||||
{}
|
||||
|
||||
std::string BatchStopApplicationsRequest::getAppIds()const
|
||||
{
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
void BatchStopApplicationsRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
}
|
||||
|
||||
std::string BatchStopApplicationsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void BatchStopApplicationsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
87
sae/src/model/BatchStopApplicationsResult.cc
Normal file
87
sae/src/model/BatchStopApplicationsResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/BatchStopApplicationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
BatchStopApplicationsResult::BatchStopApplicationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchStopApplicationsResult::BatchStopApplicationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchStopApplicationsResult::~BatchStopApplicationsResult()
|
||||
{}
|
||||
|
||||
void BatchStopApplicationsResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string BatchStopApplicationsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BatchStopApplicationsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
BatchStopApplicationsResult::Data BatchStopApplicationsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BatchStopApplicationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string BatchStopApplicationsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BatchStopApplicationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
85
sae/src/model/BindSlbRequest.cc
Normal file
85
sae/src/model/BindSlbRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/BindSlbRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::BindSlbRequest;
|
||||
|
||||
BindSlbRequest::BindSlbRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/slb");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
BindSlbRequest::~BindSlbRequest()
|
||||
{}
|
||||
|
||||
std::string BindSlbRequest::getIntranet()const
|
||||
{
|
||||
return intranet_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setIntranet(const std::string& intranet)
|
||||
{
|
||||
intranet_ = intranet;
|
||||
setParameter("Intranet", intranet);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getIntranetSlbId()const
|
||||
{
|
||||
return intranetSlbId_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setIntranetSlbId(const std::string& intranetSlbId)
|
||||
{
|
||||
intranetSlbId_ = intranetSlbId;
|
||||
setParameter("IntranetSlbId", intranetSlbId);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getInternetSlbId()const
|
||||
{
|
||||
return internetSlbId_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setInternetSlbId(const std::string& internetSlbId)
|
||||
{
|
||||
internetSlbId_ = internetSlbId;
|
||||
setParameter("InternetSlbId", internetSlbId);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getInternet()const
|
||||
{
|
||||
return internet_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setInternet(const std::string& internet)
|
||||
{
|
||||
internet_ = internet;
|
||||
setParameter("Internet", internet);
|
||||
}
|
||||
|
||||
87
sae/src/model/BindSlbResult.cc
Normal file
87
sae/src/model/BindSlbResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/BindSlbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
BindSlbResult::BindSlbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BindSlbResult::BindSlbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BindSlbResult::~BindSlbResult()
|
||||
{}
|
||||
|
||||
void BindSlbResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BindSlbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string BindSlbResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
BindSlbResult::Data BindSlbResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string BindSlbResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string BindSlbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool BindSlbResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/ConfirmPipelineBatchRequest.cc
Normal file
52
sae/src/model/ConfirmPipelineBatchRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ConfirmPipelineBatchRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ConfirmPipelineBatchRequest;
|
||||
|
||||
ConfirmPipelineBatchRequest::ConfirmPipelineBatchRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/ConfirmPipelineBatch");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ConfirmPipelineBatchRequest::~ConfirmPipelineBatchRequest()
|
||||
{}
|
||||
|
||||
bool ConfirmPipelineBatchRequest::getConfirm()const
|
||||
{
|
||||
return confirm_;
|
||||
}
|
||||
|
||||
void ConfirmPipelineBatchRequest::setConfirm(bool confirm)
|
||||
{
|
||||
confirm_ = confirm;
|
||||
setParameter("Confirm", confirm ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ConfirmPipelineBatchRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void ConfirmPipelineBatchRequest::setPipelineId(const std::string& pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", pipelineId);
|
||||
}
|
||||
|
||||
87
sae/src/model/ConfirmPipelineBatchResult.cc
Normal file
87
sae/src/model/ConfirmPipelineBatchResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ConfirmPipelineBatchResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ConfirmPipelineBatchResult::ConfirmPipelineBatchResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConfirmPipelineBatchResult::ConfirmPipelineBatchResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConfirmPipelineBatchResult::~ConfirmPipelineBatchResult()
|
||||
{}
|
||||
|
||||
void ConfirmPipelineBatchResult::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["PipelineId"].isNull())
|
||||
data_.pipelineId = dataNode["PipelineId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ConfirmPipelineBatchResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ConfirmPipelineBatchResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ConfirmPipelineBatchResult::Data ConfirmPipelineBatchResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ConfirmPipelineBatchResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ConfirmPipelineBatchResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ConfirmPipelineBatchResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
470
sae/src/model/CreateApplicationRequest.cc
Normal file
470
sae/src/model/CreateApplicationRequest.cc
Normal file
@@ -0,0 +1,470 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateApplicationRequest;
|
||||
|
||||
CreateApplicationRequest::CreateApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/createApplication");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationRequest::~CreateApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string CreateApplicationRequest::getNasId()const
|
||||
{
|
||||
return nasId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setNasId(const std::string& nasId)
|
||||
{
|
||||
nasId_ = nasId;
|
||||
setParameter("NasId", nasId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getWebContainer()const
|
||||
{
|
||||
return webContainer_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setWebContainer(const std::string& webContainer)
|
||||
{
|
||||
webContainer_ = webContainer;
|
||||
setParameter("WebContainer", webContainer);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJarStartArgs()const
|
||||
{
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
|
||||
{
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter("JarStartArgs", jarStartArgs);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getMemory()const
|
||||
{
|
||||
return memory_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMemory(int memory)
|
||||
{
|
||||
memory_ = memory;
|
||||
setParameter("Memory", std::to_string(memory));
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSlsConfigs()const
|
||||
{
|
||||
return slsConfigs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
|
||||
{
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter("SlsConfigs", slsConfigs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCommandArgs()const
|
||||
{
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCommandArgs(const std::string& commandArgs)
|
||||
{
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter("CommandArgs", commandArgs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getReadiness()const
|
||||
{
|
||||
return readiness_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setReadiness(const std::string& readiness)
|
||||
{
|
||||
readiness_ = readiness;
|
||||
setParameter("Readiness", readiness);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getTimezone()const
|
||||
{
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTimezone(const std::string& timezone)
|
||||
{
|
||||
timezone_ = timezone;
|
||||
setParameter("Timezone", timezone);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMountHost()const
|
||||
{
|
||||
return mountHost_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMountHost(const std::string& mountHost)
|
||||
{
|
||||
mountHost_ = mountHost;
|
||||
setParameter("MountHost", mountHost);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getAutoConfig()const
|
||||
{
|
||||
return autoConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAutoConfig(bool autoConfig)
|
||||
{
|
||||
autoConfig_ = autoConfig;
|
||||
setParameter("AutoConfig", autoConfig ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getLiveness()const
|
||||
{
|
||||
return liveness_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setLiveness(const std::string& liveness)
|
||||
{
|
||||
liveness_ = liveness;
|
||||
setParameter("Liveness", liveness);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getEnvs()const
|
||||
{
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setEnvs(const std::string& envs)
|
||||
{
|
||||
envs_ = envs;
|
||||
setParameter("Envs", envs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpArmsConfigLocation()const
|
||||
{
|
||||
return phpArmsConfigLocation_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
|
||||
{
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageVersion()const
|
||||
{
|
||||
return packageVersion_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageVersion(const std::string& packageVersion)
|
||||
{
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter("PackageVersion", packageVersion);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getTomcatConfig()const
|
||||
{
|
||||
return tomcatConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
|
||||
{
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter("TomcatConfig", tomcatConfig);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCustomHostAlias()const
|
||||
{
|
||||
return customHostAlias_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
|
||||
{
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter("CustomHostAlias", customHostAlias);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getDeploy()const
|
||||
{
|
||||
return deploy_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setDeploy(bool deploy)
|
||||
{
|
||||
deploy_ = deploy;
|
||||
setParameter("Deploy", deploy ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getWarStartOptions()const
|
||||
{
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
|
||||
{
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter("WarStartOptions", warStartOptions);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJarStartOptions()const
|
||||
{
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
|
||||
{
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter("JarStartOptions", jarStartOptions);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getEdasContainerVersion()const
|
||||
{
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
|
||||
{
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter("EdasContainerVersion", edasContainerVersion);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageUrl()const
|
||||
{
|
||||
return packageUrl_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageUrl(const std::string& packageUrl)
|
||||
{
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter("PackageUrl", packageUrl);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getTerminationGracePeriodSeconds()const
|
||||
{
|
||||
return terminationGracePeriodSeconds_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
|
||||
{
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getConfigMapMountDesc()const
|
||||
{
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
|
||||
{
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpConfig()const
|
||||
{
|
||||
return phpConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpConfig(const std::string& phpConfig)
|
||||
{
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter("PhpConfig", phpConfig);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPreStop()const
|
||||
{
|
||||
return preStop_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPreStop(const std::string& preStop)
|
||||
{
|
||||
preStop_ = preStop;
|
||||
setParameter("PreStop", preStop);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getReplicas()const
|
||||
{
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setReplicas(int replicas)
|
||||
{
|
||||
replicas_ = replicas;
|
||||
setParameter("Replicas", std::to_string(replicas));
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCpu(int cpu)
|
||||
{
|
||||
cpu_ = cpu;
|
||||
setParameter("Cpu", std::to_string(cpu));
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMountDesc()const
|
||||
{
|
||||
return mountDesc_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMountDesc(const std::string& mountDesc)
|
||||
{
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter("MountDesc", mountDesc);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJdk()const
|
||||
{
|
||||
return jdk_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJdk(const std::string& jdk)
|
||||
{
|
||||
jdk_ = jdk;
|
||||
setParameter("Jdk", jdk);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAppDescription()const
|
||||
{
|
||||
return appDescription_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAppDescription(const std::string& appDescription)
|
||||
{
|
||||
appDescription_ = appDescription;
|
||||
setParameter("AppDescription", appDescription);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setParameter("PackageType", packageType);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpConfigLocation()const
|
||||
{
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
|
||||
{
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter("PhpConfigLocation", phpConfigLocation);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPostStart()const
|
||||
{
|
||||
return postStart_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPostStart(const std::string& postStart)
|
||||
{
|
||||
postStart_ = postStart;
|
||||
setParameter("PostStart", postStart);
|
||||
}
|
||||
|
||||
89
sae/src/model/CreateApplicationResult.cc
Normal file
89
sae/src/model/CreateApplicationResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
CreateApplicationResult::CreateApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateApplicationResult::CreateApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateApplicationResult::~CreateApplicationResult()
|
||||
{}
|
||||
|
||||
void CreateApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateApplicationResult::Data CreateApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
74
sae/src/model/CreateConfigMapRequest.cc
Normal file
74
sae/src/model/CreateConfigMapRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateConfigMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateConfigMapRequest;
|
||||
|
||||
CreateConfigMapRequest::CreateConfigMapRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/configmap/configMap");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateConfigMapRequest::~CreateConfigMapRequest()
|
||||
{}
|
||||
|
||||
std::string CreateConfigMapRequest::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setBodyParameter("Data", data);
|
||||
}
|
||||
|
||||
std::string CreateConfigMapRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateConfigMapRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::string CreateConfigMapRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
87
sae/src/model/CreateConfigMapResult.cc
Normal file
87
sae/src/model/CreateConfigMapResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateConfigMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
CreateConfigMapResult::CreateConfigMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateConfigMapResult::CreateConfigMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateConfigMapResult::~CreateConfigMapResult()
|
||||
{}
|
||||
|
||||
void CreateConfigMapResult::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["ConfigMapId"].isNull())
|
||||
data_.configMapId = std::stol(dataNode["ConfigMapId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateConfigMapResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateConfigMapResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateConfigMapResult::Data CreateConfigMapResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateConfigMapResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateConfigMapResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateConfigMapResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
107
sae/src/model/CreateIngressRequest.cc
Normal file
107
sae/src/model/CreateIngressRequest.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateIngressRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateIngressRequest;
|
||||
|
||||
CreateIngressRequest::CreateIngressRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/ingress/Ingress");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIngressRequest::~CreateIngressRequest()
|
||||
{}
|
||||
|
||||
int CreateIngressRequest::getListenerPort()const
|
||||
{
|
||||
return listenerPort_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setListenerPort(int listenerPort)
|
||||
{
|
||||
listenerPort_ = listenerPort;
|
||||
setParameter("ListenerPort", std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getSlbId()const
|
||||
{
|
||||
return slbId_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setSlbId(const std::string& slbId)
|
||||
{
|
||||
slbId_ = slbId;
|
||||
setParameter("SlbId", slbId);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setRules(const std::string& rules)
|
||||
{
|
||||
rules_ = rules;
|
||||
setBodyParameter("Rules", rules);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getCertId()const
|
||||
{
|
||||
return certId_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setCertId(const std::string& certId)
|
||||
{
|
||||
certId_ = certId;
|
||||
setParameter("CertId", certId);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getDefaultRule()const
|
||||
{
|
||||
return defaultRule_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setDefaultRule(const std::string& defaultRule)
|
||||
{
|
||||
defaultRule_ = defaultRule;
|
||||
setParameter("DefaultRule", defaultRule);
|
||||
}
|
||||
|
||||
87
sae/src/model/CreateIngressResult.cc
Normal file
87
sae/src/model/CreateIngressResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateIngressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
CreateIngressResult::CreateIngressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateIngressResult::CreateIngressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateIngressResult::~CreateIngressResult()
|
||||
{}
|
||||
|
||||
void CreateIngressResult::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["IngressId"].isNull())
|
||||
data_.ingressId = std::stol(dataNode["IngressId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateIngressResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateIngressResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateIngressResult::Data CreateIngressResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateIngressResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateIngressResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateIngressResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
sae/src/model/CreateNamespaceRequest.cc
Normal file
63
sae/src/model/CreateNamespaceRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateNamespaceRequest;
|
||||
|
||||
CreateNamespaceRequest::CreateNamespaceRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/namespace");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateNamespaceRequest::getNamespaceName()const
|
||||
{
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setParameter("NamespaceName", namespaceName);
|
||||
}
|
||||
|
||||
std::string CreateNamespaceRequest::getNamespaceDescription()const
|
||||
{
|
||||
return namespaceDescription_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceDescription(const std::string& namespaceDescription)
|
||||
{
|
||||
namespaceDescription_ = namespaceDescription;
|
||||
setParameter("NamespaceDescription", namespaceDescription);
|
||||
}
|
||||
|
||||
std::string CreateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
93
sae/src/model/CreateNamespaceResult.cc
Normal file
93
sae/src/model/CreateNamespaceResult.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/sae/model/CreateNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateNamespaceResult::CreateNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateNamespaceResult::~CreateNamespaceResult()
|
||||
{}
|
||||
|
||||
void CreateNamespaceResult::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["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["NamespaceName"].isNull())
|
||||
data_.namespaceName = dataNode["NamespaceName"].asString();
|
||||
if(!dataNode["NamespaceDescription"].isNull())
|
||||
data_.namespaceDescription = dataNode["NamespaceDescription"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
CreateNamespaceResult::Data CreateNamespaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateNamespaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DeleteApplicationRequest.cc
Normal file
41
sae/src/model/DeleteApplicationRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteApplicationRequest;
|
||||
|
||||
DeleteApplicationRequest::DeleteApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/deleteApplication");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteApplicationRequest::~DeleteApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
87
sae/src/model/DeleteApplicationResult.cc
Normal file
87
sae/src/model/DeleteApplicationResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteApplicationResult::DeleteApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteApplicationResult::DeleteApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteApplicationResult::~DeleteApplicationResult()
|
||||
{}
|
||||
|
||||
void DeleteApplicationResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteApplicationResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DeleteApplicationResult::Data DeleteApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteApplicationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DeleteConfigMapRequest.cc
Normal file
41
sae/src/model/DeleteConfigMapRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteConfigMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteConfigMapRequest;
|
||||
|
||||
DeleteConfigMapRequest::DeleteConfigMapRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/configmap/configMap");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConfigMapRequest::~DeleteConfigMapRequest()
|
||||
{}
|
||||
|
||||
long DeleteConfigMapRequest::getConfigMapId()const
|
||||
{
|
||||
return configMapId_;
|
||||
}
|
||||
|
||||
void DeleteConfigMapRequest::setConfigMapId(long configMapId)
|
||||
{
|
||||
configMapId_ = configMapId;
|
||||
setParameter("ConfigMapId", std::to_string(configMapId));
|
||||
}
|
||||
|
||||
87
sae/src/model/DeleteConfigMapResult.cc
Normal file
87
sae/src/model/DeleteConfigMapResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteConfigMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteConfigMapResult::DeleteConfigMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteConfigMapResult::DeleteConfigMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteConfigMapResult::~DeleteConfigMapResult()
|
||||
{}
|
||||
|
||||
void DeleteConfigMapResult::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["ConfigMapId"].isNull())
|
||||
data_.configMapId = std::stol(dataNode["ConfigMapId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteConfigMapResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigMapResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DeleteConfigMapResult::Data DeleteConfigMapResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigMapResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteConfigMapResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteConfigMapResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DeleteIngressRequest.cc
Normal file
41
sae/src/model/DeleteIngressRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteIngressRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteIngressRequest;
|
||||
|
||||
DeleteIngressRequest::DeleteIngressRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/ingress/Ingress");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteIngressRequest::~DeleteIngressRequest()
|
||||
{}
|
||||
|
||||
long DeleteIngressRequest::getIngressId()const
|
||||
{
|
||||
return ingressId_;
|
||||
}
|
||||
|
||||
void DeleteIngressRequest::setIngressId(long ingressId)
|
||||
{
|
||||
ingressId_ = ingressId;
|
||||
setParameter("IngressId", std::to_string(ingressId));
|
||||
}
|
||||
|
||||
87
sae/src/model/DeleteIngressResult.cc
Normal file
87
sae/src/model/DeleteIngressResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteIngressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteIngressResult::DeleteIngressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIngressResult::DeleteIngressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIngressResult::~DeleteIngressResult()
|
||||
{}
|
||||
|
||||
void DeleteIngressResult::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["IngressId"].isNull())
|
||||
data_.ingressId = std::stol(dataNode["IngressId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteIngressResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteIngressResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DeleteIngressResult::Data DeleteIngressResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteIngressResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteIngressResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteIngressResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DeleteNamespaceRequest.cc
Normal file
41
sae/src/model/DeleteNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteNamespaceRequest;
|
||||
|
||||
DeleteNamespaceRequest::DeleteNamespaceRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/namespace");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
79
sae/src/model/DeleteNamespaceResult.cc
Normal file
79
sae/src/model/DeleteNamespaceResult.cc
Normal file
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteNamespaceResult::DeleteNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteNamespaceResult::~DeleteNamespaceResult()
|
||||
{}
|
||||
|
||||
void DeleteNamespaceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeleteNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteNamespaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
415
sae/src/model/DeployApplicationRequest.cc
Normal file
415
sae/src/model/DeployApplicationRequest.cc
Normal file
@@ -0,0 +1,415 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeployApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeployApplicationRequest;
|
||||
|
||||
DeployApplicationRequest::DeployApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/deployApplication");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeployApplicationRequest::~DeployApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string DeployApplicationRequest::getNasId()const
|
||||
{
|
||||
return nasId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setNasId(const std::string& nasId)
|
||||
{
|
||||
nasId_ = nasId;
|
||||
setParameter("NasId", nasId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getWebContainer()const
|
||||
{
|
||||
return webContainer_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setWebContainer(const std::string& webContainer)
|
||||
{
|
||||
webContainer_ = webContainer;
|
||||
setParameter("WebContainer", webContainer);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJarStartArgs()const
|
||||
{
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
|
||||
{
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter("JarStartArgs", jarStartArgs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEnableAhas()const
|
||||
{
|
||||
return enableAhas_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEnableAhas(const std::string& enableAhas)
|
||||
{
|
||||
enableAhas_ = enableAhas;
|
||||
setParameter("EnableAhas", enableAhas);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getSlsConfigs()const
|
||||
{
|
||||
return slsConfigs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
|
||||
{
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter("SlsConfigs", slsConfigs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCommandArgs()const
|
||||
{
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setCommandArgs(const std::string& commandArgs)
|
||||
{
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter("CommandArgs", commandArgs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getReadiness()const
|
||||
{
|
||||
return readiness_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setReadiness(const std::string& readiness)
|
||||
{
|
||||
readiness_ = readiness;
|
||||
setParameter("Readiness", readiness);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getTimezone()const
|
||||
{
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setTimezone(const std::string& timezone)
|
||||
{
|
||||
timezone_ = timezone;
|
||||
setParameter("Timezone", timezone);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getMountHost()const
|
||||
{
|
||||
return mountHost_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMountHost(const std::string& mountHost)
|
||||
{
|
||||
mountHost_ = mountHost;
|
||||
setParameter("MountHost", mountHost);
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getBatchWaitTime()const
|
||||
{
|
||||
return batchWaitTime_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime)
|
||||
{
|
||||
batchWaitTime_ = batchWaitTime;
|
||||
setParameter("BatchWaitTime", std::to_string(batchWaitTime));
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getLiveness()const
|
||||
{
|
||||
return liveness_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setLiveness(const std::string& liveness)
|
||||
{
|
||||
liveness_ = liveness;
|
||||
setParameter("Liveness", liveness);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEnvs()const
|
||||
{
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEnvs(const std::string& envs)
|
||||
{
|
||||
envs_ = envs;
|
||||
setParameter("Envs", envs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpArmsConfigLocation()const
|
||||
{
|
||||
return phpArmsConfigLocation_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
|
||||
{
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPackageVersion()const
|
||||
{
|
||||
return packageVersion_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPackageVersion(const std::string& packageVersion)
|
||||
{
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter("PackageVersion", packageVersion);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getTomcatConfig()const
|
||||
{
|
||||
return tomcatConfig_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
|
||||
{
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter("TomcatConfig", tomcatConfig);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCustomHostAlias()const
|
||||
{
|
||||
return customHostAlias_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
|
||||
{
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter("CustomHostAlias", customHostAlias);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getWarStartOptions()const
|
||||
{
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
|
||||
{
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter("WarStartOptions", warStartOptions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJarStartOptions()const
|
||||
{
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
|
||||
{
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter("JarStartOptions", jarStartOptions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEdasContainerVersion()const
|
||||
{
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
|
||||
{
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter("EdasContainerVersion", edasContainerVersion);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPackageUrl()const
|
||||
{
|
||||
return packageUrl_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPackageUrl(const std::string& packageUrl)
|
||||
{
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter("PackageUrl", packageUrl);
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getTerminationGracePeriodSeconds()const
|
||||
{
|
||||
return terminationGracePeriodSeconds_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
|
||||
{
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getConfigMapMountDesc()const
|
||||
{
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
|
||||
{
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpConfig()const
|
||||
{
|
||||
return phpConfig_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpConfig(const std::string& phpConfig)
|
||||
{
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter("PhpConfig", phpConfig);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPreStop()const
|
||||
{
|
||||
return preStop_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPreStop(const std::string& preStop)
|
||||
{
|
||||
preStop_ = preStop;
|
||||
setParameter("PreStop", preStop);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setParameter("Command", command);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getUpdateStrategy()const
|
||||
{
|
||||
return updateStrategy_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setUpdateStrategy(const std::string& updateStrategy)
|
||||
{
|
||||
updateStrategy_ = updateStrategy;
|
||||
setParameter("UpdateStrategy", updateStrategy);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getMountDesc()const
|
||||
{
|
||||
return mountDesc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMountDesc(const std::string& mountDesc)
|
||||
{
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter("MountDesc", mountDesc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJdk()const
|
||||
{
|
||||
return jdk_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setJdk(const std::string& jdk)
|
||||
{
|
||||
jdk_ = jdk;
|
||||
setParameter("Jdk", jdk);
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getMinReadyInstances()const
|
||||
{
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getChangeOrderDesc()const
|
||||
{
|
||||
return changeOrderDesc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setChangeOrderDesc(const std::string& changeOrderDesc)
|
||||
{
|
||||
changeOrderDesc_ = changeOrderDesc;
|
||||
setParameter("ChangeOrderDesc", changeOrderDesc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getAutoEnableApplicationScalingRule()const
|
||||
{
|
||||
return autoEnableApplicationScalingRule_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule)
|
||||
{
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpConfigLocation()const
|
||||
{
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
|
||||
{
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter("PhpConfigLocation", phpConfigLocation);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPostStart()const
|
||||
{
|
||||
return postStart_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPostStart(const std::string& postStart)
|
||||
{
|
||||
postStart_ = postStart;
|
||||
setParameter("PostStart", postStart);
|
||||
}
|
||||
|
||||
89
sae/src/model/DeployApplicationResult.cc
Normal file
89
sae/src/model/DeployApplicationResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeployApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DeployApplicationResult::DeployApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeployApplicationResult::DeployApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeployApplicationResult::~DeployApplicationResult()
|
||||
{}
|
||||
|
||||
void DeployApplicationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeployApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeployApplicationResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DeployApplicationResult::Data DeployApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeployApplicationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DeployApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeployApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/DescribeApplicationConfigRequest.cc
Normal file
52
sae/src/model/DescribeApplicationConfigRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationConfigRequest;
|
||||
|
||||
DescribeApplicationConfigRequest::DescribeApplicationConfigRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/describeApplicationConfig");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationConfigRequest::~DescribeApplicationConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationConfigRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationConfigRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string DescribeApplicationConfigRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationConfigRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
201
sae/src/model/DescribeApplicationConfigResult.cc
Normal file
201
sae/src/model/DescribeApplicationConfigResult.cc
Normal file
@@ -0,0 +1,201 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeApplicationConfigResult::DescribeApplicationConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationConfigResult::DescribeApplicationConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationConfigResult::~DescribeApplicationConfigResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationConfigResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["AppName"].isNull())
|
||||
data_.appName = dataNode["AppName"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["AppDescription"].isNull())
|
||||
data_.appDescription = dataNode["AppDescription"].asString();
|
||||
if(!dataNode["VpcId"].isNull())
|
||||
data_.vpcId = dataNode["VpcId"].asString();
|
||||
if(!dataNode["VSwitchId"].isNull())
|
||||
data_.vSwitchId = dataNode["VSwitchId"].asString();
|
||||
if(!dataNode["PackageType"].isNull())
|
||||
data_.packageType = dataNode["PackageType"].asString();
|
||||
if(!dataNode["PackageVersion"].isNull())
|
||||
data_.packageVersion = dataNode["PackageVersion"].asString();
|
||||
if(!dataNode["PackageUrl"].isNull())
|
||||
data_.packageUrl = dataNode["PackageUrl"].asString();
|
||||
if(!dataNode["ImageUrl"].isNull())
|
||||
data_.imageUrl = dataNode["ImageUrl"].asString();
|
||||
if(!dataNode["Jdk"].isNull())
|
||||
data_.jdk = dataNode["Jdk"].asString();
|
||||
if(!dataNode["WebContainer"].isNull())
|
||||
data_.webContainer = dataNode["WebContainer"].asString();
|
||||
if(!dataNode["Cpu"].isNull())
|
||||
data_.cpu = std::stoi(dataNode["Cpu"].asString());
|
||||
if(!dataNode["Memory"].isNull())
|
||||
data_.memory = std::stoi(dataNode["Memory"].asString());
|
||||
if(!dataNode["Replicas"].isNull())
|
||||
data_.replicas = std::stoi(dataNode["Replicas"].asString());
|
||||
if(!dataNode["Command"].isNull())
|
||||
data_.command = dataNode["Command"].asString();
|
||||
if(!dataNode["CommandArgs"].isNull())
|
||||
data_.commandArgs = dataNode["CommandArgs"].asString();
|
||||
if(!dataNode["Envs"].isNull())
|
||||
data_.envs = dataNode["Envs"].asString();
|
||||
if(!dataNode["CustomHostAlias"].isNull())
|
||||
data_.customHostAlias = dataNode["CustomHostAlias"].asString();
|
||||
if(!dataNode["JarStartOptions"].isNull())
|
||||
data_.jarStartOptions = dataNode["JarStartOptions"].asString();
|
||||
if(!dataNode["JarStartArgs"].isNull())
|
||||
data_.jarStartArgs = dataNode["JarStartArgs"].asString();
|
||||
if(!dataNode["Liveness"].isNull())
|
||||
data_.liveness = dataNode["Liveness"].asString();
|
||||
if(!dataNode["Readiness"].isNull())
|
||||
data_.readiness = dataNode["Readiness"].asString();
|
||||
if(!dataNode["MinReadyInstances"].isNull())
|
||||
data_.minReadyInstances = std::stoi(dataNode["MinReadyInstances"].asString());
|
||||
if(!dataNode["BatchWaitTime"].isNull())
|
||||
data_.batchWaitTime = std::stoi(dataNode["BatchWaitTime"].asString());
|
||||
if(!dataNode["EdasContainerVersion"].isNull())
|
||||
data_.edasContainerVersion = dataNode["EdasContainerVersion"].asString();
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["SlsConfigs"].isNull())
|
||||
data_.slsConfigs = dataNode["SlsConfigs"].asString();
|
||||
if(!dataNode["Timezone"].isNull())
|
||||
data_.timezone = dataNode["Timezone"].asString();
|
||||
if(!dataNode["NasId"].isNull())
|
||||
data_.nasId = dataNode["NasId"].asString();
|
||||
if(!dataNode["MountHost"].isNull())
|
||||
data_.mountHost = dataNode["MountHost"].asString();
|
||||
if(!dataNode["PreStop"].isNull())
|
||||
data_.preStop = dataNode["PreStop"].asString();
|
||||
if(!dataNode["PostStart"].isNull())
|
||||
data_.postStart = dataNode["PostStart"].asString();
|
||||
if(!dataNode["WarStartOptions"].isNull())
|
||||
data_.warStartOptions = dataNode["WarStartOptions"].asString();
|
||||
if(!dataNode["SecurityGroupId"].isNull())
|
||||
data_.securityGroupId = dataNode["SecurityGroupId"].asString();
|
||||
if(!dataNode["TerminationGracePeriodSeconds"].isNull())
|
||||
data_.terminationGracePeriodSeconds = std::stoi(dataNode["TerminationGracePeriodSeconds"].asString());
|
||||
if(!dataNode["EnableAhas"].isNull())
|
||||
data_.enableAhas = dataNode["EnableAhas"].asString();
|
||||
if(!dataNode["PhpArmsConfigLocation"].isNull())
|
||||
data_.phpArmsConfigLocation = dataNode["PhpArmsConfigLocation"].asString();
|
||||
if(!dataNode["PhpConfigLocation"].isNull())
|
||||
data_.phpConfigLocation = dataNode["PhpConfigLocation"].asString();
|
||||
if(!dataNode["PhpConfig"].isNull())
|
||||
data_.phpConfig = dataNode["PhpConfig"].asString();
|
||||
if(!dataNode["TomcatConfig"].isNull())
|
||||
data_.tomcatConfig = dataNode["TomcatConfig"].asString();
|
||||
auto allMountDescNode = dataNode["MountDesc"]["MountDescItem"];
|
||||
for (auto dataNodeMountDescMountDescItem : allMountDescNode)
|
||||
{
|
||||
Data::MountDescItem mountDescItemObject;
|
||||
if(!dataNodeMountDescMountDescItem["NasPath"].isNull())
|
||||
mountDescItemObject.nasPath = dataNodeMountDescMountDescItem["NasPath"].asString();
|
||||
if(!dataNodeMountDescMountDescItem["MountPath"].isNull())
|
||||
mountDescItemObject.mountPath = dataNodeMountDescMountDescItem["MountPath"].asString();
|
||||
data_.mountDesc.push_back(mountDescItemObject);
|
||||
}
|
||||
auto allTagsNode = dataNode["Tags"]["Tag"];
|
||||
for (auto dataNodeTagsTag : allTagsNode)
|
||||
{
|
||||
Data::Tag tagObject;
|
||||
if(!dataNodeTagsTag["Key"].isNull())
|
||||
tagObject.key = dataNodeTagsTag["Key"].asString();
|
||||
if(!dataNodeTagsTag["Value"].isNull())
|
||||
tagObject.value = dataNodeTagsTag["Value"].asString();
|
||||
data_.tags.push_back(tagObject);
|
||||
}
|
||||
auto allConfigMapMountDescNode = dataNode["ConfigMapMountDesc"]["ConfigMapMountDescItem"];
|
||||
for (auto dataNodeConfigMapMountDescConfigMapMountDescItem : allConfigMapMountDescNode)
|
||||
{
|
||||
Data::ConfigMapMountDescItem configMapMountDescItemObject;
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapId"].isNull())
|
||||
configMapMountDescItemObject.configMapId = std::stol(dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapId"].asString());
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapName"].isNull())
|
||||
configMapMountDescItemObject.configMapName = dataNodeConfigMapMountDescConfigMapMountDescItem["ConfigMapName"].asString();
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["Key"].isNull())
|
||||
configMapMountDescItemObject.key = dataNodeConfigMapMountDescConfigMapMountDescItem["Key"].asString();
|
||||
if(!dataNodeConfigMapMountDescConfigMapMountDescItem["MountPath"].isNull())
|
||||
configMapMountDescItemObject.mountPath = dataNodeConfigMapMountDescConfigMapMountDescItem["MountPath"].asString();
|
||||
data_.configMapMountDesc.push_back(configMapMountDescItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationConfigResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationConfigResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeApplicationConfigResult::Data DescribeApplicationConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationConfigResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationConfigResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationConfigResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
sae/src/model/DescribeApplicationGroupsRequest.cc
Normal file
63
sae/src/model/DescribeApplicationGroupsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationGroupsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationGroupsRequest;
|
||||
|
||||
DescribeApplicationGroupsRequest::DescribeApplicationGroupsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/describeApplicationGroups");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationGroupsRequest::~DescribeApplicationGroupsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationGroupsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int DescribeApplicationGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeApplicationGroupsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
114
sae/src/model/DescribeApplicationGroupsResult.cc
Normal file
114
sae/src/model/DescribeApplicationGroupsResult.cc
Normal file
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationGroupsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeApplicationGroupsResult::DescribeApplicationGroupsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationGroupsResult::DescribeApplicationGroupsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationGroupsResult::~DescribeApplicationGroupsResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationGroupsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ApplicationGroup"];
|
||||
for (auto valueDataApplicationGroup : allDataNode)
|
||||
{
|
||||
ApplicationGroup dataObject;
|
||||
if(!valueDataApplicationGroup["GroupId"].isNull())
|
||||
dataObject.groupId = valueDataApplicationGroup["GroupId"].asString();
|
||||
if(!valueDataApplicationGroup["GroupName"].isNull())
|
||||
dataObject.groupName = valueDataApplicationGroup["GroupName"].asString();
|
||||
if(!valueDataApplicationGroup["GroupType"].isNull())
|
||||
dataObject.groupType = std::stoi(valueDataApplicationGroup["GroupType"].asString());
|
||||
if(!valueDataApplicationGroup["PackageType"].isNull())
|
||||
dataObject.packageType = valueDataApplicationGroup["PackageType"].asString();
|
||||
if(!valueDataApplicationGroup["PackageVersion"].isNull())
|
||||
dataObject.packageVersion = valueDataApplicationGroup["PackageVersion"].asString();
|
||||
if(!valueDataApplicationGroup["ImageUrl"].isNull())
|
||||
dataObject.imageUrl = valueDataApplicationGroup["ImageUrl"].asString();
|
||||
if(!valueDataApplicationGroup["PackageUrl"].isNull())
|
||||
dataObject.packageUrl = valueDataApplicationGroup["PackageUrl"].asString();
|
||||
if(!valueDataApplicationGroup["Jdk"].isNull())
|
||||
dataObject.jdk = valueDataApplicationGroup["Jdk"].asString();
|
||||
if(!valueDataApplicationGroup["WebContainer"].isNull())
|
||||
dataObject.webContainer = valueDataApplicationGroup["WebContainer"].asString();
|
||||
if(!valueDataApplicationGroup["EdasContainerVersion"].isNull())
|
||||
dataObject.edasContainerVersion = valueDataApplicationGroup["EdasContainerVersion"].asString();
|
||||
if(!valueDataApplicationGroup["Replicas"].isNull())
|
||||
dataObject.replicas = std::stoi(valueDataApplicationGroup["Replicas"].asString());
|
||||
if(!valueDataApplicationGroup["RunningInstances"].isNull())
|
||||
dataObject.runningInstances = std::stoi(valueDataApplicationGroup["RunningInstances"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationGroupsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationGroupsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeApplicationGroupsResult::ApplicationGroup> DescribeApplicationGroupsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationGroupsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationGroupsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationGroupsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/DescribeApplicationImageRequest.cc
Normal file
52
sae/src/model/DescribeApplicationImageRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationImageRequest;
|
||||
|
||||
DescribeApplicationImageRequest::DescribeApplicationImageRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/container/describeApplicationImage");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationImageRequest::~DescribeApplicationImageRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationImageRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationImageRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeApplicationImageRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void DescribeApplicationImageRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter("ImageUrl", imageUrl);
|
||||
}
|
||||
|
||||
103
sae/src/model/DescribeApplicationImageResult.cc
Normal file
103
sae/src/model/DescribeApplicationImageResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeApplicationImageResult::DescribeApplicationImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationImageResult::DescribeApplicationImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationImageResult::~DescribeApplicationImageResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationImageResult::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["CrUrl"].isNull())
|
||||
data_.crUrl = dataNode["CrUrl"].asString();
|
||||
if(!dataNode["Logo"].isNull())
|
||||
data_.logo = dataNode["Logo"].asString();
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["RepoId"].isNull())
|
||||
data_.repoId = std::stoi(dataNode["RepoId"].asString());
|
||||
if(!dataNode["RepoName"].isNull())
|
||||
data_.repoName = dataNode["RepoName"].asString();
|
||||
if(!dataNode["RepoNamespace"].isNull())
|
||||
data_.repoNamespace = dataNode["RepoNamespace"].asString();
|
||||
if(!dataNode["RepoOriginType"].isNull())
|
||||
data_.repoOriginType = dataNode["RepoOriginType"].asString();
|
||||
if(!dataNode["RepoType"].isNull())
|
||||
data_.repoType = dataNode["RepoType"].asString();
|
||||
if(!dataNode["RepoTag"].isNull())
|
||||
data_.repoTag = dataNode["RepoTag"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationImageResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationImageResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeApplicationImageResult::Data DescribeApplicationImageResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationImageResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationImageResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationImageResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
74
sae/src/model/DescribeApplicationInstancesRequest.cc
Normal file
74
sae/src/model/DescribeApplicationInstancesRequest.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationInstancesRequest;
|
||||
|
||||
DescribeApplicationInstancesRequest::DescribeApplicationInstancesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/describeApplicationInstances");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationInstancesRequest::~DescribeApplicationInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationInstancesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
int DescribeApplicationInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeApplicationInstancesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
113
sae/src/model/DescribeApplicationInstancesResult.cc
Normal file
113
sae/src/model/DescribeApplicationInstancesResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeApplicationInstancesResult::DescribeApplicationInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationInstancesResult::DescribeApplicationInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationInstancesResult::~DescribeApplicationInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationInstancesResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allInstancesNode = dataNode["Instances"]["Instance"];
|
||||
for (auto dataNodeInstancesInstance : allInstancesNode)
|
||||
{
|
||||
Data::Instance instanceObject;
|
||||
if(!dataNodeInstancesInstance["GroupId"].isNull())
|
||||
instanceObject.groupId = dataNodeInstancesInstance["GroupId"].asString();
|
||||
if(!dataNodeInstancesInstance["InstanceId"].isNull())
|
||||
instanceObject.instanceId = dataNodeInstancesInstance["InstanceId"].asString();
|
||||
if(!dataNodeInstancesInstance["InstanceContainerStatus"].isNull())
|
||||
instanceObject.instanceContainerStatus = dataNodeInstancesInstance["InstanceContainerStatus"].asString();
|
||||
if(!dataNodeInstancesInstance["InstanceContainerIp"].isNull())
|
||||
instanceObject.instanceContainerIp = dataNodeInstancesInstance["InstanceContainerIp"].asString();
|
||||
if(!dataNodeInstancesInstance["CreateTimeStamp"].isNull())
|
||||
instanceObject.createTimeStamp = std::stol(dataNodeInstancesInstance["CreateTimeStamp"].asString());
|
||||
if(!dataNodeInstancesInstance["GroupId"].isNull())
|
||||
instanceObject.groupId1 = dataNodeInstancesInstance["GroupId"].asString();
|
||||
if(!dataNodeInstancesInstance["VSwitchId"].isNull())
|
||||
instanceObject.vSwitchId = dataNodeInstancesInstance["VSwitchId"].asString();
|
||||
if(!dataNodeInstancesInstance["InstanceContainerRestarts"].isNull())
|
||||
instanceObject.instanceContainerRestarts = std::stol(dataNodeInstancesInstance["InstanceContainerRestarts"].asString());
|
||||
data_.instances.push_back(instanceObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeApplicationInstancesResult::Data DescribeApplicationInstancesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationInstancesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeApplicationSlbsRequest.cc
Normal file
41
sae/src/model/DescribeApplicationSlbsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationSlbsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationSlbsRequest;
|
||||
|
||||
DescribeApplicationSlbsRequest::DescribeApplicationSlbsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/slb");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationSlbsRequest::~DescribeApplicationSlbsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationSlbsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationSlbsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
121
sae/src/model/DescribeApplicationSlbsResult.cc
Normal file
121
sae/src/model/DescribeApplicationSlbsResult.cc
Normal file
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationSlbsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeApplicationSlbsResult::DescribeApplicationSlbsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationSlbsResult::DescribeApplicationSlbsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationSlbsResult::~DescribeApplicationSlbsResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationSlbsResult::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["InternetIp"].isNull())
|
||||
data_.internetIp = dataNode["InternetIp"].asString();
|
||||
if(!dataNode["IntranetIp"].isNull())
|
||||
data_.intranetIp = dataNode["IntranetIp"].asString();
|
||||
if(!dataNode["InternetSlbId"].isNull())
|
||||
data_.internetSlbId = dataNode["InternetSlbId"].asString();
|
||||
if(!dataNode["IntranetSlbId"].isNull())
|
||||
data_.intranetSlbId = dataNode["IntranetSlbId"].asString();
|
||||
auto allInternetNode = dataNode["Internet"]["InternetItem"];
|
||||
for (auto dataNodeInternetInternetItem : allInternetNode)
|
||||
{
|
||||
Data::InternetItem internetItemObject;
|
||||
if(!dataNodeInternetInternetItem["Port"].isNull())
|
||||
internetItemObject.port = std::stoi(dataNodeInternetInternetItem["Port"].asString());
|
||||
if(!dataNodeInternetInternetItem["Protocol"].isNull())
|
||||
internetItemObject.protocol = dataNodeInternetInternetItem["Protocol"].asString();
|
||||
if(!dataNodeInternetInternetItem["TargetPort"].isNull())
|
||||
internetItemObject.targetPort = std::stoi(dataNodeInternetInternetItem["TargetPort"].asString());
|
||||
if(!dataNodeInternetInternetItem["HttpsCertId"].isNull())
|
||||
internetItemObject.httpsCertId = dataNodeInternetInternetItem["HttpsCertId"].asString();
|
||||
data_.internet.push_back(internetItemObject);
|
||||
}
|
||||
auto allIntranetNode = dataNode["Intranet"]["IntranetItem"];
|
||||
for (auto dataNodeIntranetIntranetItem : allIntranetNode)
|
||||
{
|
||||
Data::IntranetItem intranetItemObject;
|
||||
if(!dataNodeIntranetIntranetItem["Port"].isNull())
|
||||
intranetItemObject.port = std::stoi(dataNodeIntranetIntranetItem["Port"].asString());
|
||||
if(!dataNodeIntranetIntranetItem["Protocol"].isNull())
|
||||
intranetItemObject.protocol = dataNodeIntranetIntranetItem["Protocol"].asString();
|
||||
if(!dataNodeIntranetIntranetItem["TargetPort"].isNull())
|
||||
intranetItemObject.targetPort = std::stoi(dataNodeIntranetIntranetItem["TargetPort"].asString());
|
||||
if(!dataNodeIntranetIntranetItem["HttpsCertId"].isNull())
|
||||
intranetItemObject.httpsCertId = dataNodeIntranetIntranetItem["HttpsCertId"].asString();
|
||||
data_.intranet.push_back(intranetItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationSlbsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationSlbsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeApplicationSlbsResult::Data DescribeApplicationSlbsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationSlbsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationSlbsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationSlbsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeApplicationStatusRequest.cc
Normal file
41
sae/src/model/DescribeApplicationStatusRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationStatusRequest;
|
||||
|
||||
DescribeApplicationStatusRequest::DescribeApplicationStatusRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/describeApplicationStatus");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationStatusRequest::~DescribeApplicationStatusRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationStatusRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationStatusRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
103
sae/src/model/DescribeApplicationStatusResult.cc
Normal file
103
sae/src/model/DescribeApplicationStatusResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeApplicationStatusResult::DescribeApplicationStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeApplicationStatusResult::DescribeApplicationStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeApplicationStatusResult::~DescribeApplicationStatusResult()
|
||||
{}
|
||||
|
||||
void DescribeApplicationStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AppId"].isNull())
|
||||
data_.appId = dataNode["AppId"].asString();
|
||||
if(!dataNode["LastChangeOrderId"].isNull())
|
||||
data_.lastChangeOrderId = dataNode["LastChangeOrderId"].asString();
|
||||
if(!dataNode["LastChangeOrderStatus"].isNull())
|
||||
data_.lastChangeOrderStatus = dataNode["LastChangeOrderStatus"].asString();
|
||||
if(!dataNode["LastChangeOrderRunning"].isNull())
|
||||
data_.lastChangeOrderRunning = dataNode["LastChangeOrderRunning"].asString() == "true";
|
||||
if(!dataNode["CurrentStatus"].isNull())
|
||||
data_.currentStatus = dataNode["CurrentStatus"].asString();
|
||||
if(!dataNode["ArmsApmInfo"].isNull())
|
||||
data_.armsApmInfo = dataNode["ArmsApmInfo"].asString();
|
||||
if(!dataNode["RunningInstances"].isNull())
|
||||
data_.runningInstances = std::stoi(dataNode["RunningInstances"].asString());
|
||||
if(!dataNode["ArmsAdvancedEnabled"].isNull())
|
||||
data_.armsAdvancedEnabled = dataNode["ArmsAdvancedEnabled"].asString();
|
||||
if(!dataNode["CreateTime"].isNull())
|
||||
data_.createTime = dataNode["CreateTime"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeApplicationStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationStatusResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeApplicationStatusResult::Data DescribeApplicationStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationStatusResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeChangeOrderRequest.cc
Normal file
41
sae/src/model/DescribeChangeOrderRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeChangeOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeChangeOrderRequest;
|
||||
|
||||
DescribeChangeOrderRequest::DescribeChangeOrderRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/DescribeChangeOrder");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeChangeOrderRequest::~DescribeChangeOrderRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeChangeOrderRequest::getChangeOrderId()const
|
||||
{
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void DescribeChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
}
|
||||
|
||||
138
sae/src/model/DescribeChangeOrderResult.cc
Normal file
138
sae/src/model/DescribeChangeOrderResult.cc
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeChangeOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeChangeOrderResult::DescribeChangeOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeChangeOrderResult::DescribeChangeOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeChangeOrderResult::~DescribeChangeOrderResult()
|
||||
{}
|
||||
|
||||
void DescribeChangeOrderResult::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["AppName"].isNull())
|
||||
data_.appName = dataNode["AppName"].asString();
|
||||
if(!dataNode["Auto"].isNull())
|
||||
data_._auto = dataNode["Auto"].asString() == "true";
|
||||
if(!dataNode["BatchCount"].isNull())
|
||||
data_.batchCount = std::stoi(dataNode["BatchCount"].asString());
|
||||
if(!dataNode["BatchType"].isNull())
|
||||
data_.batchType = dataNode["BatchType"].asString();
|
||||
if(!dataNode["BatchWaitTime"].isNull())
|
||||
data_.batchWaitTime = std::stoi(dataNode["BatchWaitTime"].asString());
|
||||
if(!dataNode["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!dataNode["CoType"].isNull())
|
||||
data_.coType = dataNode["CoType"].asString();
|
||||
if(!dataNode["CoTypeCode"].isNull())
|
||||
data_.coTypeCode = dataNode["CoTypeCode"].asString();
|
||||
if(!dataNode["CreateTime"].isNull())
|
||||
data_.createTime = dataNode["CreateTime"].asString();
|
||||
if(!dataNode["CurrentPipelineId"].isNull())
|
||||
data_.currentPipelineId = dataNode["CurrentPipelineId"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Status"].isNull())
|
||||
data_.status = std::stoi(dataNode["Status"].asString());
|
||||
if(!dataNode["SupportAbortFreeze"].isNull())
|
||||
data_.supportAbortFreeze = dataNode["SupportAbortFreeze"].asString() == "true";
|
||||
if(!dataNode["SupportRollback"].isNull())
|
||||
data_.supportRollback = dataNode["SupportRollback"].asString() == "true";
|
||||
if(!dataNode["ErrorMessage"].isNull())
|
||||
data_.errorMessage = dataNode["ErrorMessage"].asString();
|
||||
auto allPipelinesNode = dataNode["Pipelines"]["Pipeline"];
|
||||
for (auto dataNodePipelinesPipeline : allPipelinesNode)
|
||||
{
|
||||
Data::Pipeline pipelineObject;
|
||||
if(!dataNodePipelinesPipeline["BatchType"].isNull())
|
||||
pipelineObject.batchType = std::stoi(dataNodePipelinesPipeline["BatchType"].asString());
|
||||
if(!dataNodePipelinesPipeline["ParallelCount"].isNull())
|
||||
pipelineObject.parallelCount = std::stoi(dataNodePipelinesPipeline["ParallelCount"].asString());
|
||||
if(!dataNodePipelinesPipeline["PipelineId"].isNull())
|
||||
pipelineObject.pipelineId = dataNodePipelinesPipeline["PipelineId"].asString();
|
||||
if(!dataNodePipelinesPipeline["PipelineName"].isNull())
|
||||
pipelineObject.pipelineName = dataNodePipelinesPipeline["PipelineName"].asString();
|
||||
if(!dataNodePipelinesPipeline["StartTime"].isNull())
|
||||
pipelineObject.startTime = std::stol(dataNodePipelinesPipeline["StartTime"].asString());
|
||||
if(!dataNodePipelinesPipeline["Status"].isNull())
|
||||
pipelineObject.status = std::stoi(dataNodePipelinesPipeline["Status"].asString());
|
||||
if(!dataNodePipelinesPipeline["UpdateTime"].isNull())
|
||||
pipelineObject.updateTime = std::stol(dataNodePipelinesPipeline["UpdateTime"].asString());
|
||||
data_.pipelines.push_back(pipelineObject);
|
||||
}
|
||||
auto allCoTargets = dataNode["CoTargets"]["CoTarget"];
|
||||
for (auto value : allCoTargets)
|
||||
data_.coTargets.push_back(value.asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeChangeOrderResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeChangeOrderResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeChangeOrderResult::Data DescribeChangeOrderResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeChangeOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeChangeOrderResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeChangeOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/DescribeComponentsRequest.cc
Normal file
52
sae/src/model/DescribeComponentsRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeComponentsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeComponentsRequest;
|
||||
|
||||
DescribeComponentsRequest::DescribeComponentsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/resource/components");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeComponentsRequest::~DescribeComponentsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeComponentsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeComponentsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string DescribeComponentsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeComponentsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
98
sae/src/model/DescribeComponentsResult.cc
Normal file
98
sae/src/model/DescribeComponentsResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeComponentsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeComponentsResult::DescribeComponentsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeComponentsResult::DescribeComponentsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeComponentsResult::~DescribeComponentsResult()
|
||||
{}
|
||||
|
||||
void DescribeComponentsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["ComponentKey"].isNull())
|
||||
dataObject.componentKey = valueDataDataItem["ComponentKey"].asString();
|
||||
if(!valueDataDataItem["ComponentDescription"].isNull())
|
||||
dataObject.componentDescription = valueDataDataItem["ComponentDescription"].asString();
|
||||
if(!valueDataDataItem["Expired"].isNull())
|
||||
dataObject.expired = valueDataDataItem["Expired"].asString() == "true";
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeComponentsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeComponentsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeComponentsResult::DataItem> DescribeComponentsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeComponentsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeComponentsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeComponentsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeConfigMapRequest.cc
Normal file
41
sae/src/model/DescribeConfigMapRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeConfigMapRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeConfigMapRequest;
|
||||
|
||||
DescribeConfigMapRequest::DescribeConfigMapRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/configmap/configMap");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigMapRequest::~DescribeConfigMapRequest()
|
||||
{}
|
||||
|
||||
long DescribeConfigMapRequest::getConfigMapId()const
|
||||
{
|
||||
return configMapId_;
|
||||
}
|
||||
|
||||
void DescribeConfigMapRequest::setConfigMapId(long configMapId)
|
||||
{
|
||||
configMapId_ = configMapId;
|
||||
setParameter("ConfigMapId", std::to_string(configMapId));
|
||||
}
|
||||
|
||||
109
sae/src/model/DescribeConfigMapResult.cc
Normal file
109
sae/src/model/DescribeConfigMapResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeConfigMapResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeConfigMapResult::DescribeConfigMapResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeConfigMapResult::DescribeConfigMapResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeConfigMapResult::~DescribeConfigMapResult()
|
||||
{}
|
||||
|
||||
void DescribeConfigMapResult::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["ConfigMapId"].isNull())
|
||||
data_.configMapId = std::stol(dataNode["ConfigMapId"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["Data"].isNull())
|
||||
data_.data = dataNode["Data"].asString();
|
||||
if(!dataNode["CreateTime"].isNull())
|
||||
data_.createTime = std::stol(dataNode["CreateTime"].asString());
|
||||
if(!dataNode["UpdateTime"].isNull())
|
||||
data_.updateTime = std::stol(dataNode["UpdateTime"].asString());
|
||||
auto allRelateAppsNode = dataNode["RelateApps"]["RelateApp"];
|
||||
for (auto dataNodeRelateAppsRelateApp : allRelateAppsNode)
|
||||
{
|
||||
Data::RelateApp relateAppObject;
|
||||
if(!dataNodeRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppObject.appId = dataNodeRelateAppsRelateApp["AppId"].asString();
|
||||
if(!dataNodeRelateAppsRelateApp["AppName"].isNull())
|
||||
relateAppObject.appName = dataNodeRelateAppsRelateApp["AppName"].asString();
|
||||
data_.relateApps.push_back(relateAppObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeConfigMapResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigMapResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeConfigMapResult::Data DescribeConfigMapResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigMapResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeConfigMapResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeConfigMapResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
30
sae/src/model/DescribeEdasContainersRequest.cc
Normal file
30
sae/src/model/DescribeEdasContainersRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeEdasContainersRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeEdasContainersRequest;
|
||||
|
||||
DescribeEdasContainersRequest::DescribeEdasContainersRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/resource/edasContainers");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeEdasContainersRequest::~DescribeEdasContainersRequest()
|
||||
{}
|
||||
|
||||
94
sae/src/model/DescribeEdasContainersResult.cc
Normal file
94
sae/src/model/DescribeEdasContainersResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeEdasContainersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeEdasContainersResult::DescribeEdasContainersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeEdasContainersResult::DescribeEdasContainersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeEdasContainersResult::~DescribeEdasContainersResult()
|
||||
{}
|
||||
|
||||
void DescribeEdasContainersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Disabled"].isNull())
|
||||
dataObject.disabled = valueDataDataItem["Disabled"].asString() == "true";
|
||||
if(!valueDataDataItem["EdasContainerVersion"].isNull())
|
||||
dataObject.edasContainerVersion = valueDataDataItem["EdasContainerVersion"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeEdasContainersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeEdasContainersResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeEdasContainersResult::DataItem> DescribeEdasContainersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeEdasContainersResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeEdasContainersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeEdasContainersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeIngressRequest.cc
Normal file
41
sae/src/model/DescribeIngressRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeIngressRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeIngressRequest;
|
||||
|
||||
DescribeIngressRequest::DescribeIngressRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/ingress/Ingress");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeIngressRequest::~DescribeIngressRequest()
|
||||
{}
|
||||
|
||||
long DescribeIngressRequest::getIngressId()const
|
||||
{
|
||||
return ingressId_;
|
||||
}
|
||||
|
||||
void DescribeIngressRequest::setIngressId(long ingressId)
|
||||
{
|
||||
ingressId_ = ingressId;
|
||||
setParameter("IngressId", std::to_string(ingressId));
|
||||
}
|
||||
|
||||
124
sae/src/model/DescribeIngressResult.cc
Normal file
124
sae/src/model/DescribeIngressResult.cc
Normal file
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeIngressResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeIngressResult::DescribeIngressResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIngressResult::DescribeIngressResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIngressResult::~DescribeIngressResult()
|
||||
{}
|
||||
|
||||
void DescribeIngressResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["SlbId"].isNull())
|
||||
data_.slbId = dataNode["SlbId"].asString();
|
||||
if(!dataNode["ListenerPort"].isNull())
|
||||
data_.listenerPort = std::stoi(dataNode["ListenerPort"].asString());
|
||||
if(!dataNode["CertId"].isNull())
|
||||
data_.certId = dataNode["CertId"].asString();
|
||||
if(!dataNode["SlbType"].isNull())
|
||||
data_.slbType = dataNode["SlbType"].asString();
|
||||
auto allRulesNode = dataNode["Rules"]["Rule"];
|
||||
for (auto dataNodeRulesRule : allRulesNode)
|
||||
{
|
||||
Data::Rule ruleObject;
|
||||
if(!dataNodeRulesRule["AppId"].isNull())
|
||||
ruleObject.appId = dataNodeRulesRule["AppId"].asString();
|
||||
if(!dataNodeRulesRule["ContainerPort"].isNull())
|
||||
ruleObject.containerPort = std::stoi(dataNodeRulesRule["ContainerPort"].asString());
|
||||
if(!dataNodeRulesRule["Domain"].isNull())
|
||||
ruleObject.domain = dataNodeRulesRule["Domain"].asString();
|
||||
if(!dataNodeRulesRule["Path"].isNull())
|
||||
ruleObject.path = dataNodeRulesRule["Path"].asString();
|
||||
if(!dataNodeRulesRule["AppName"].isNull())
|
||||
ruleObject.appName = dataNodeRulesRule["AppName"].asString();
|
||||
data_.rules.push_back(ruleObject);
|
||||
}
|
||||
auto defaultRuleNode = dataNode["DefaultRule"];
|
||||
if(!defaultRuleNode["AppId"].isNull())
|
||||
data_.defaultRule.appId = defaultRuleNode["AppId"].asString();
|
||||
if(!defaultRuleNode["ContainerPort"].isNull())
|
||||
data_.defaultRule.containerPort = std::stoi(defaultRuleNode["ContainerPort"].asString());
|
||||
if(!defaultRuleNode["AppName"].isNull())
|
||||
data_.defaultRule.appName = defaultRuleNode["AppName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIngressResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeIngressResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeIngressResult::Data DescribeIngressResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeIngressResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeIngressResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeIngressResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeInstanceLogRequest.cc
Normal file
41
sae/src/model/DescribeInstanceLogRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeInstanceLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeInstanceLogRequest;
|
||||
|
||||
DescribeInstanceLogRequest::DescribeInstanceLogRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/instance/describeInstanceLog");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeInstanceLogRequest::~DescribeInstanceLogRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstanceLogRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceLogRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
86
sae/src/model/DescribeInstanceLogResult.cc
Normal file
86
sae/src/model/DescribeInstanceLogResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeInstanceLogResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeInstanceLogResult::DescribeInstanceLogResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceLogResult::DescribeInstanceLogResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceLogResult::~DescribeInstanceLogResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceLogResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeInstanceLogResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceLogResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceLogResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceLogResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceLogResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceLogResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
30
sae/src/model/DescribeInstanceSpecificationsRequest.cc
Normal file
30
sae/src/model/DescribeInstanceSpecificationsRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeInstanceSpecificationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeInstanceSpecificationsRequest;
|
||||
|
||||
DescribeInstanceSpecificationsRequest::DescribeInstanceSpecificationsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/quota/instanceSpecifications");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeInstanceSpecificationsRequest::~DescribeInstanceSpecificationsRequest()
|
||||
{}
|
||||
|
||||
102
sae/src/model/DescribeInstanceSpecificationsResult.cc
Normal file
102
sae/src/model/DescribeInstanceSpecificationsResult.cc
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeInstanceSpecificationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeInstanceSpecificationsResult::DescribeInstanceSpecificationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceSpecificationsResult::DescribeInstanceSpecificationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceSpecificationsResult::~DescribeInstanceSpecificationsResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceSpecificationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Cpu"].isNull())
|
||||
dataObject.cpu = std::stoi(valueDataDataItem["Cpu"].asString());
|
||||
if(!valueDataDataItem["Enable"].isNull())
|
||||
dataObject.enable = valueDataDataItem["Enable"].asString() == "true";
|
||||
if(!valueDataDataItem["Id"].isNull())
|
||||
dataObject.id = std::stoi(valueDataDataItem["Id"].asString());
|
||||
if(!valueDataDataItem["Memory"].isNull())
|
||||
dataObject.memory = std::stoi(valueDataDataItem["Memory"].asString());
|
||||
if(!valueDataDataItem["SpecInfo"].isNull())
|
||||
dataObject.specInfo = valueDataDataItem["SpecInfo"].asString();
|
||||
if(!valueDataDataItem["Version"].isNull())
|
||||
dataObject.version = std::stoi(valueDataDataItem["Version"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeInstanceSpecificationsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceSpecificationsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeInstanceSpecificationsResult::DataItem> DescribeInstanceSpecificationsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceSpecificationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceSpecificationsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceSpecificationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/DescribeNamespaceListRequest.cc
Normal file
52
sae/src/model/DescribeNamespaceListRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeNamespaceListRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeNamespaceListRequest;
|
||||
|
||||
DescribeNamespaceListRequest::DescribeNamespaceListRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/namespace/describeNamespaceList");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceListRequest::~DescribeNamespaceListRequest()
|
||||
{}
|
||||
|
||||
bool DescribeNamespaceListRequest::getHybridCloudExclude()const
|
||||
{
|
||||
return hybridCloudExclude_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceListRequest::setHybridCloudExclude(bool hybridCloudExclude)
|
||||
{
|
||||
hybridCloudExclude_ = hybridCloudExclude;
|
||||
setParameter("HybridCloudExclude", hybridCloudExclude ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeNamespaceListRequest::getContainCustom()const
|
||||
{
|
||||
return containCustom_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceListRequest::setContainCustom(bool containCustom)
|
||||
{
|
||||
containCustom_ = containCustom;
|
||||
setParameter("ContainCustom", containCustom ? "true" : "false");
|
||||
}
|
||||
|
||||
110
sae/src/model/DescribeNamespaceListResult.cc
Normal file
110
sae/src/model/DescribeNamespaceListResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeNamespaceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeNamespaceListResult::DescribeNamespaceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceListResult::DescribeNamespaceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceListResult::~DescribeNamespaceListResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["RegionList"];
|
||||
for (auto valueDataRegionList : allDataNode)
|
||||
{
|
||||
RegionList dataObject;
|
||||
if(!valueDataRegionList["NamespaceName"].isNull())
|
||||
dataObject.namespaceName = valueDataRegionList["NamespaceName"].asString();
|
||||
if(!valueDataRegionList["NamespaceId"].isNull())
|
||||
dataObject.namespaceId = valueDataRegionList["NamespaceId"].asString();
|
||||
if(!valueDataRegionList["AgentInstall"].isNull())
|
||||
dataObject.agentInstall = valueDataRegionList["AgentInstall"].asString();
|
||||
if(!valueDataRegionList["Current"].isNull())
|
||||
dataObject.current = valueDataRegionList["Current"].asString() == "true";
|
||||
if(!valueDataRegionList["Custom"].isNull())
|
||||
dataObject.custom = valueDataRegionList["Custom"].asString() == "true";
|
||||
if(!valueDataRegionList["RegionId"].isNull())
|
||||
dataObject.regionId = valueDataRegionList["RegionId"].asString();
|
||||
if(!valueDataRegionList["HybridCloudEnable"].isNull())
|
||||
dataObject.hybridCloudEnable = valueDataRegionList["HybridCloudEnable"].asString() == "true";
|
||||
if(!valueDataRegionList["VpcId"].isNull())
|
||||
dataObject.vpcId = valueDataRegionList["VpcId"].asString();
|
||||
if(!valueDataRegionList["VSwitchId"].isNull())
|
||||
dataObject.vSwitchId = valueDataRegionList["VSwitchId"].asString();
|
||||
if(!valueDataRegionList["SecurityGroupId"].isNull())
|
||||
dataObject.securityGroupId = valueDataRegionList["SecurityGroupId"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceListResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<DescribeNamespaceListResult::RegionList> DescribeNamespaceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceListResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNamespaceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeNamespaceRequest.cc
Normal file
41
sae/src/model/DescribeNamespaceRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeNamespaceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeNamespaceRequest;
|
||||
|
||||
DescribeNamespaceRequest::DescribeNamespaceRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/namespace");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
41
sae/src/model/DescribeNamespaceResourcesRequest.cc
Normal file
41
sae/src/model/DescribeNamespaceResourcesRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeNamespaceResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeNamespaceResourcesRequest;
|
||||
|
||||
DescribeNamespaceResourcesRequest::DescribeNamespaceResourcesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/namespace/describeNamespaceResources");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespaceResourcesRequest::~DescribeNamespaceResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeNamespaceResourcesRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceResourcesRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
117
sae/src/model/DescribeNamespaceResourcesResult.cc
Normal file
117
sae/src/model/DescribeNamespaceResourcesResult.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/sae/model/DescribeNamespaceResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeNamespaceResourcesResult::DescribeNamespaceResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResourcesResult::DescribeNamespaceResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResourcesResult::~DescribeNamespaceResourcesResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResourcesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["NamespaceName"].isNull())
|
||||
data_.namespaceName = dataNode["NamespaceName"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["BelongRegion"].isNull())
|
||||
data_.belongRegion = dataNode["BelongRegion"].asString();
|
||||
if(!dataNode["TenantId"].isNull())
|
||||
data_.tenantId = dataNode["TenantId"].asString();
|
||||
if(!dataNode["VpcId"].isNull())
|
||||
data_.vpcId = dataNode["VpcId"].asString();
|
||||
if(!dataNode["VSwitchId"].isNull())
|
||||
data_.vSwitchId = dataNode["VSwitchId"].asString();
|
||||
if(!dataNode["SecurityGroupId"].isNull())
|
||||
data_.securityGroupId = dataNode["SecurityGroupId"].asString();
|
||||
if(!dataNode["AppCount"].isNull())
|
||||
data_.appCount = std::stol(dataNode["AppCount"].asString());
|
||||
if(!dataNode["LastChangeOrderId"].isNull())
|
||||
data_.lastChangeOrderId = dataNode["LastChangeOrderId"].asString();
|
||||
if(!dataNode["LastChangeOrderStatus"].isNull())
|
||||
data_.lastChangeOrderStatus = dataNode["LastChangeOrderStatus"].asString();
|
||||
if(!dataNode["LastChangeOrderRunning"].isNull())
|
||||
data_.lastChangeOrderRunning = dataNode["LastChangeOrderRunning"].asString() == "true";
|
||||
if(!dataNode["VpcName"].isNull())
|
||||
data_.vpcName = dataNode["VpcName"].asString();
|
||||
if(!dataNode["VSwitchName"].isNull())
|
||||
data_.vSwitchName = dataNode["VSwitchName"].asString();
|
||||
if(!dataNode["NotificationExpired"].isNull())
|
||||
data_.notificationExpired = dataNode["NotificationExpired"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResourcesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResourcesResult::Data DescribeNamespaceResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResourcesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNamespaceResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
93
sae/src/model/DescribeNamespaceResult.cc
Normal file
93
sae/src/model/DescribeNamespaceResult.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/sae/model/DescribeNamespaceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespaceResult::DescribeNamespaceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::~DescribeNamespaceResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespaceResult::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["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["NamespaceName"].isNull())
|
||||
data_.namespaceName = dataNode["NamespaceName"].asString();
|
||||
if(!dataNode["NamespaceDescription"].isNull())
|
||||
data_.namespaceDescription = dataNode["NamespaceDescription"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeNamespaceResult::Data DescribeNamespaceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespaceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNamespaceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/DescribeNamespacesRequest.cc
Normal file
52
sae/src/model/DescribeNamespacesRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeNamespacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeNamespacesRequest;
|
||||
|
||||
DescribeNamespacesRequest::DescribeNamespacesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/namespaces");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeNamespacesRequest::~DescribeNamespacesRequest()
|
||||
{}
|
||||
|
||||
int DescribeNamespacesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeNamespacesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeNamespacesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeNamespacesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
113
sae/src/model/DescribeNamespacesResult.cc
Normal file
113
sae/src/model/DescribeNamespacesResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeNamespacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeNamespacesResult::DescribeNamespacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeNamespacesResult::~DescribeNamespacesResult()
|
||||
{}
|
||||
|
||||
void DescribeNamespacesResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allNamespacesNode = dataNode["Namespaces"]["Namespace"];
|
||||
for (auto dataNodeNamespacesNamespace : allNamespacesNode)
|
||||
{
|
||||
Data::_Namespace _namespaceObject;
|
||||
if(!dataNodeNamespacesNamespace["AccessKey"].isNull())
|
||||
_namespaceObject.accessKey = dataNodeNamespacesNamespace["AccessKey"].asString();
|
||||
if(!dataNodeNamespacesNamespace["AddressServerHost"].isNull())
|
||||
_namespaceObject.addressServerHost = dataNodeNamespacesNamespace["AddressServerHost"].asString();
|
||||
if(!dataNodeNamespacesNamespace["SecretKey"].isNull())
|
||||
_namespaceObject.secretKey = dataNodeNamespacesNamespace["SecretKey"].asString();
|
||||
if(!dataNodeNamespacesNamespace["TenantId"].isNull())
|
||||
_namespaceObject.tenantId = dataNodeNamespacesNamespace["TenantId"].asString();
|
||||
if(!dataNodeNamespacesNamespace["RegionId"].isNull())
|
||||
_namespaceObject.regionId = dataNodeNamespacesNamespace["RegionId"].asString();
|
||||
if(!dataNodeNamespacesNamespace["NamespaceId"].isNull())
|
||||
_namespaceObject.namespaceId = dataNodeNamespacesNamespace["NamespaceId"].asString();
|
||||
if(!dataNodeNamespacesNamespace["NamespaceName"].isNull())
|
||||
_namespaceObject.namespaceName = dataNodeNamespacesNamespace["NamespaceName"].asString();
|
||||
if(!dataNodeNamespacesNamespace["NamespaceDescription"].isNull())
|
||||
_namespaceObject.namespaceDescription = dataNodeNamespacesNamespace["NamespaceDescription"].asString();
|
||||
data_.namespaces.push_back(_namespaceObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
DescribeNamespacesResult::Data DescribeNamespacesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string DescribeNamespacesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeNamespacesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
30
sae/src/model/DescribeRegionsRequest.cc
Normal file
30
sae/src/model/DescribeRegionsRequest.cc
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/regionConfig");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
75
sae/src/model/DescribeRegionsResult.cc
Normal file
75
sae/src/model/DescribeRegionsResult.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeRegionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeRegionsResult::~DescribeRegionsResult()
|
||||
{}
|
||||
|
||||
void DescribeRegionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegionsNode = value["Regions"]["Region"];
|
||||
for (auto valueRegionsRegion : allRegionsNode)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!valueRegionsRegion["RegionId"].isNull())
|
||||
regionsObject.regionId = valueRegionsRegion["RegionId"].asString();
|
||||
if(!valueRegionsRegion["RegionEndpoint"].isNull())
|
||||
regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString();
|
||||
if(!valueRegionsRegion["LocalName"].isNull())
|
||||
regionsObject.localName = valueRegionsRegion["LocalName"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeRegionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeRegionsResult::Region> DescribeRegionsResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
int DescribeRegionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
118
sae/src/model/ListAppEventsRequest.cc
Normal file
118
sae/src/model/ListAppEventsRequest.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListAppEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListAppEventsRequest;
|
||||
|
||||
ListAppEventsRequest::ListAppEventsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/listAppEvents");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppEventsRequest::~ListAppEventsRequest()
|
||||
{}
|
||||
|
||||
std::string ListAppEventsRequest::getReason()const
|
||||
{
|
||||
return reason_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setReason(const std::string& reason)
|
||||
{
|
||||
reason_ = reason;
|
||||
setParameter("Reason", reason);
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getObjectKind()const
|
||||
{
|
||||
return objectKind_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setObjectKind(const std::string& objectKind)
|
||||
{
|
||||
objectKind_ = objectKind;
|
||||
setParameter("ObjectKind", objectKind);
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int ListAppEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getObjectName()const
|
||||
{
|
||||
return objectName_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setObjectName(const std::string& objectName)
|
||||
{
|
||||
objectName_ = objectName;
|
||||
setParameter("ObjectName", objectName);
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int ListAppEventsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setParameter("EventType", eventType);
|
||||
}
|
||||
|
||||
104
sae/src/model/ListAppEventsResult.cc
Normal file
104
sae/src/model/ListAppEventsResult.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/sae/model/ListAppEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListAppEventsResult::ListAppEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppEventsResult::ListAppEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppEventsResult::~ListAppEventsResult()
|
||||
{}
|
||||
|
||||
void ListAppEventsResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allAppEventEntityNode = dataNode["AppEventEntity"]["AppEventEntityItem"];
|
||||
for (auto dataNodeAppEventEntityAppEventEntityItem : allAppEventEntityNode)
|
||||
{
|
||||
Data::AppEventEntityItem appEventEntityItemObject;
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["ObjectKind"].isNull())
|
||||
appEventEntityItemObject.objectKind = dataNodeAppEventEntityAppEventEntityItem["ObjectKind"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["ObjectName"].isNull())
|
||||
appEventEntityItemObject.objectName = dataNodeAppEventEntityAppEventEntityItem["ObjectName"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["EventType"].isNull())
|
||||
appEventEntityItemObject.eventType = dataNodeAppEventEntityAppEventEntityItem["EventType"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["Message"].isNull())
|
||||
appEventEntityItemObject.message = dataNodeAppEventEntityAppEventEntityItem["Message"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["FirstTimestamp"].isNull())
|
||||
appEventEntityItemObject.firstTimestamp = dataNodeAppEventEntityAppEventEntityItem["FirstTimestamp"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["LastTimestamp"].isNull())
|
||||
appEventEntityItemObject.lastTimestamp = dataNodeAppEventEntityAppEventEntityItem["LastTimestamp"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["Reason"].isNull())
|
||||
appEventEntityItemObject.reason = dataNodeAppEventEntityAppEventEntityItem["Reason"].asString();
|
||||
data_.appEventEntity.push_back(appEventEntityItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListAppEventsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListAppEventsResult::Data ListAppEventsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAppEventsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/ListAppVersionsRequest.cc
Normal file
41
sae/src/model/ListAppVersionsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListAppVersionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListAppVersionsRequest;
|
||||
|
||||
ListAppVersionsRequest::ListAppVersionsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/listAppVersions");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppVersionsRequest::~ListAppVersionsRequest()
|
||||
{}
|
||||
|
||||
std::string ListAppVersionsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListAppVersionsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
93
sae/src/model/ListAppVersionsResult.cc
Normal file
93
sae/src/model/ListAppVersionsResult.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/sae/model/ListAppVersionsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListAppVersionsResult::ListAppVersionsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListAppVersionsResult::ListAppVersionsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListAppVersionsResult::~ListAppVersionsResult()
|
||||
{}
|
||||
|
||||
void ListAppVersionsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["PackageVersionEntity"];
|
||||
for (auto valueDataPackageVersionEntity : allDataNode)
|
||||
{
|
||||
PackageVersionEntity dataObject;
|
||||
if(!valueDataPackageVersionEntity["Id"].isNull())
|
||||
dataObject.id = valueDataPackageVersionEntity["Id"].asString();
|
||||
if(!valueDataPackageVersionEntity["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataPackageVersionEntity["CreateTime"].asString();
|
||||
if(!valueDataPackageVersionEntity["WarUrl"].isNull())
|
||||
dataObject.warUrl = valueDataPackageVersionEntity["WarUrl"].asString();
|
||||
if(!valueDataPackageVersionEntity["Type"].isNull())
|
||||
dataObject.type = valueDataPackageVersionEntity["Type"].asString();
|
||||
if(!valueDataPackageVersionEntity["BuildPackageUrl"].isNull())
|
||||
dataObject.buildPackageUrl = valueDataPackageVersionEntity["BuildPackageUrl"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListAppVersionsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ListAppVersionsResult::PackageVersionEntity> ListAppVersionsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListAppVersionsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListAppVersionsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListAppVersionsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
85
sae/src/model/ListApplicationsRequest.cc
Normal file
85
sae/src/model/ListApplicationsRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListApplicationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListApplicationsRequest;
|
||||
|
||||
ListApplicationsRequest::ListApplicationsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/listApplications");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListApplicationsRequest::~ListApplicationsRequest()
|
||||
{}
|
||||
|
||||
std::string ListApplicationsRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
int ListApplicationsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListApplicationsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
}
|
||||
|
||||
118
sae/src/model/ListApplicationsResult.cc
Normal file
118
sae/src/model/ListApplicationsResult.cc
Normal file
@@ -0,0 +1,118 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListApplicationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListApplicationsResult::ListApplicationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListApplicationsResult::ListApplicationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListApplicationsResult::~ListApplicationsResult()
|
||||
{}
|
||||
|
||||
void ListApplicationsResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allApplicationsNode = dataNode["Applications"]["Application"];
|
||||
for (auto dataNodeApplicationsApplication : allApplicationsNode)
|
||||
{
|
||||
Data::Application applicationObject;
|
||||
if(!dataNodeApplicationsApplication["AppDeletingStatus"].isNull())
|
||||
applicationObject.appDeletingStatus = dataNodeApplicationsApplication["AppDeletingStatus"].asString() == "true";
|
||||
if(!dataNodeApplicationsApplication["AppId"].isNull())
|
||||
applicationObject.appId = dataNodeApplicationsApplication["AppId"].asString();
|
||||
if(!dataNodeApplicationsApplication["AppName"].isNull())
|
||||
applicationObject.appName = dataNodeApplicationsApplication["AppName"].asString();
|
||||
if(!dataNodeApplicationsApplication["RegionId"].isNull())
|
||||
applicationObject.regionId = dataNodeApplicationsApplication["RegionId"].asString();
|
||||
if(!dataNodeApplicationsApplication["RunningInstances"].isNull())
|
||||
applicationObject.runningInstances = std::stoi(dataNodeApplicationsApplication["RunningInstances"].asString());
|
||||
if(!dataNodeApplicationsApplication["Instances"].isNull())
|
||||
applicationObject.instances = std::stoi(dataNodeApplicationsApplication["Instances"].asString());
|
||||
if(!dataNodeApplicationsApplication["NamespaceId"].isNull())
|
||||
applicationObject.namespaceId = dataNodeApplicationsApplication["NamespaceId"].asString();
|
||||
if(!dataNodeApplicationsApplication["ScaleRuleType"].isNull())
|
||||
applicationObject.scaleRuleType = dataNodeApplicationsApplication["ScaleRuleType"].asString();
|
||||
if(!dataNodeApplicationsApplication["ScaleRuleEnabled"].isNull())
|
||||
applicationObject.scaleRuleEnabled = dataNodeApplicationsApplication["ScaleRuleEnabled"].asString() == "true";
|
||||
auto allTagsNode = allApplicationsNode["Tags"]["TagsItem"];
|
||||
for (auto allApplicationsNodeTagsTagsItem : allTagsNode)
|
||||
{
|
||||
Data::Application::TagsItem tagsObject;
|
||||
if(!allApplicationsNodeTagsTagsItem["Key"].isNull())
|
||||
tagsObject.key = allApplicationsNodeTagsTagsItem["Key"].asString();
|
||||
if(!allApplicationsNodeTagsTagsItem["Value"].isNull())
|
||||
tagsObject.value = allApplicationsNodeTagsTagsItem["Value"].asString();
|
||||
applicationObject.tags.push_back(tagsObject);
|
||||
}
|
||||
data_.applications.push_back(applicationObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListApplicationsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListApplicationsResult::Data ListApplicationsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListApplicationsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
96
sae/src/model/ListChangeOrdersRequest.cc
Normal file
96
sae/src/model/ListChangeOrdersRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListChangeOrdersRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListChangeOrdersRequest;
|
||||
|
||||
ListChangeOrdersRequest::ListChangeOrdersRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/ListChangeOrders");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListChangeOrdersRequest::~ListChangeOrdersRequest()
|
||||
{}
|
||||
|
||||
std::string ListChangeOrdersRequest::getCoType()const
|
||||
{
|
||||
return coType_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setCoType(const std::string& coType)
|
||||
{
|
||||
coType_ = coType;
|
||||
setParameter("CoType", coType);
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int ListChangeOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListChangeOrdersRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersRequest::getCoStatus()const
|
||||
{
|
||||
return coStatus_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setCoStatus(const std::string& coStatus)
|
||||
{
|
||||
coStatus_ = coStatus;
|
||||
setParameter("CoStatus", coStatus);
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
127
sae/src/model/ListChangeOrdersResult.cc
Normal file
127
sae/src/model/ListChangeOrdersResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListChangeOrdersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListChangeOrdersResult::ListChangeOrdersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListChangeOrdersResult::ListChangeOrdersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListChangeOrdersResult::~ListChangeOrdersResult()
|
||||
{}
|
||||
|
||||
void ListChangeOrdersResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allChangeOrderListNode = dataNode["ChangeOrderList"]["ChangeOrder"];
|
||||
for (auto dataNodeChangeOrderListChangeOrder : allChangeOrderListNode)
|
||||
{
|
||||
Data::ChangeOrder changeOrderObject;
|
||||
if(!dataNodeChangeOrderListChangeOrder["AppId"].isNull())
|
||||
changeOrderObject.appId = dataNodeChangeOrderListChangeOrder["AppId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchCount"].isNull())
|
||||
changeOrderObject.batchCount = std::stoi(dataNodeChangeOrderListChangeOrder["BatchCount"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull())
|
||||
changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull())
|
||||
changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull())
|
||||
changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull())
|
||||
changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull())
|
||||
changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Description"].isNull())
|
||||
changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["FinishTime"].isNull())
|
||||
changeOrderObject.finishTime = dataNodeChangeOrderListChangeOrder["FinishTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull())
|
||||
changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Pipelines"].isNull())
|
||||
changeOrderObject.pipelines = dataNodeChangeOrderListChangeOrder["Pipelines"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Source"].isNull())
|
||||
changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Status"].isNull())
|
||||
changeOrderObject.status = std::stoi(dataNodeChangeOrderListChangeOrder["Status"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["UserId"].isNull())
|
||||
changeOrderObject.userId = dataNodeChangeOrderListChangeOrder["UserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull())
|
||||
changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString();
|
||||
data_.changeOrderList.push_back(changeOrderObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListChangeOrdersResult::Data ListChangeOrdersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListChangeOrdersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/ListConsumedServicesRequest.cc
Normal file
41
sae/src/model/ListConsumedServicesRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListConsumedServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListConsumedServicesRequest;
|
||||
|
||||
ListConsumedServicesRequest::ListConsumedServicesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/service/listConsumedServices");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListConsumedServicesRequest::~ListConsumedServicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListConsumedServicesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListConsumedServicesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
106
sae/src/model/ListConsumedServicesResult.cc
Normal file
106
sae/src/model/ListConsumedServicesResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListConsumedServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListConsumedServicesResult::ListConsumedServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListConsumedServicesResult::ListConsumedServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListConsumedServicesResult::~ListConsumedServicesResult()
|
||||
{}
|
||||
|
||||
void ListConsumedServicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["ListConsumedServices"];
|
||||
for (auto valueDataListConsumedServices : allDataNode)
|
||||
{
|
||||
ListConsumedServices dataObject;
|
||||
if(!valueDataListConsumedServices["AppId"].isNull())
|
||||
dataObject.appId = valueDataListConsumedServices["AppId"].asString();
|
||||
if(!valueDataListConsumedServices["Group2Ip"].isNull())
|
||||
dataObject.group2Ip = valueDataListConsumedServices["Group2Ip"].asString();
|
||||
if(!valueDataListConsumedServices["Name"].isNull())
|
||||
dataObject.name = valueDataListConsumedServices["Name"].asString();
|
||||
if(!valueDataListConsumedServices["Type"].isNull())
|
||||
dataObject.type = valueDataListConsumedServices["Type"].asString();
|
||||
if(!valueDataListConsumedServices["Version"].isNull())
|
||||
dataObject.version = valueDataListConsumedServices["Version"].asString();
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
for (auto value : allGroups)
|
||||
dataObject.groups.push_back(value.asString());
|
||||
auto allIps = value["Ips"]["Ip"];
|
||||
for (auto value : allIps)
|
||||
dataObject.ips.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListConsumedServicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListConsumedServicesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<ListConsumedServicesResult::ListConsumedServices> ListConsumedServicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListConsumedServicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListConsumedServicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListConsumedServicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/ListIngressesRequest.cc
Normal file
52
sae/src/model/ListIngressesRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListIngressesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListIngressesRequest;
|
||||
|
||||
ListIngressesRequest::ListIngressesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/ingress/IngressList");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListIngressesRequest::~ListIngressesRequest()
|
||||
{}
|
||||
|
||||
std::string ListIngressesRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListIngressesRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
std::string ListIngressesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListIngressesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
107
sae/src/model/ListIngressesResult.cc
Normal file
107
sae/src/model/ListIngressesResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListIngressesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListIngressesResult::ListIngressesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListIngressesResult::ListIngressesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListIngressesResult::~ListIngressesResult()
|
||||
{}
|
||||
|
||||
void ListIngressesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allIngressListNode = dataNode["IngressList"]["Ingress"];
|
||||
for (auto dataNodeIngressListIngress : allIngressListNode)
|
||||
{
|
||||
Data::Ingress ingressObject;
|
||||
if(!dataNodeIngressListIngress["Id"].isNull())
|
||||
ingressObject.id = std::stol(dataNodeIngressListIngress["Id"].asString());
|
||||
if(!dataNodeIngressListIngress["Name"].isNull())
|
||||
ingressObject.name = dataNodeIngressListIngress["Name"].asString();
|
||||
if(!dataNodeIngressListIngress["NamespaceId"].isNull())
|
||||
ingressObject.namespaceId = dataNodeIngressListIngress["NamespaceId"].asString();
|
||||
if(!dataNodeIngressListIngress["SlbId"].isNull())
|
||||
ingressObject.slbId = dataNodeIngressListIngress["SlbId"].asString();
|
||||
if(!dataNodeIngressListIngress["ListenerPort"].isNull())
|
||||
ingressObject.listenerPort = dataNodeIngressListIngress["ListenerPort"].asString();
|
||||
if(!dataNodeIngressListIngress["CertId"].isNull())
|
||||
ingressObject.certId = dataNodeIngressListIngress["CertId"].asString();
|
||||
if(!dataNodeIngressListIngress["Description"].isNull())
|
||||
ingressObject.description = dataNodeIngressListIngress["Description"].asString();
|
||||
if(!dataNodeIngressListIngress["SlbType"].isNull())
|
||||
ingressObject.slbType = dataNodeIngressListIngress["SlbType"].asString();
|
||||
data_.ingressList.push_back(ingressObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListIngressesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListIngressesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListIngressesResult::Data ListIngressesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListIngressesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListIngressesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListIngressesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
sae/src/model/ListLogConfigsRequest.cc
Normal file
63
sae/src/model/ListLogConfigsRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListLogConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListLogConfigsRequest;
|
||||
|
||||
ListLogConfigsRequest::ListLogConfigsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/log/listLogConfigs");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListLogConfigsRequest::~ListLogConfigsRequest()
|
||||
{}
|
||||
|
||||
std::string ListLogConfigsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int ListLogConfigsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListLogConfigsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
113
sae/src/model/ListLogConfigsResult.cc
Normal file
113
sae/src/model/ListLogConfigsResult.cc
Normal file
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListLogConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListLogConfigsResult::ListLogConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListLogConfigsResult::ListLogConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListLogConfigsResult::~ListLogConfigsResult()
|
||||
{}
|
||||
|
||||
void ListLogConfigsResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allLogConfigsNode = dataNode["LogConfigs"]["LogConfig"];
|
||||
for (auto dataNodeLogConfigsLogConfig : allLogConfigsNode)
|
||||
{
|
||||
Data::LogConfig logConfigObject;
|
||||
if(!dataNodeLogConfigsLogConfig["ConfigName"].isNull())
|
||||
logConfigObject.configName = dataNodeLogConfigsLogConfig["ConfigName"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["LogDir"].isNull())
|
||||
logConfigObject.logDir = dataNodeLogConfigsLogConfig["LogDir"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["SlsProject"].isNull())
|
||||
logConfigObject.slsProject = dataNodeLogConfigsLogConfig["SlsProject"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["SlsLogStore"].isNull())
|
||||
logConfigObject.slsLogStore = dataNodeLogConfigsLogConfig["SlsLogStore"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["StoreType"].isNull())
|
||||
logConfigObject.storeType = dataNodeLogConfigsLogConfig["StoreType"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["LogType"].isNull())
|
||||
logConfigObject.logType = dataNodeLogConfigsLogConfig["LogType"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["RegionId"].isNull())
|
||||
logConfigObject.regionId = dataNodeLogConfigsLogConfig["RegionId"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["CreateTime"].isNull())
|
||||
logConfigObject.createTime = dataNodeLogConfigsLogConfig["CreateTime"].asString();
|
||||
data_.logConfigs.push_back(logConfigObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListLogConfigsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListLogConfigsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListLogConfigsResult::Data ListLogConfigsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListLogConfigsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListLogConfigsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListLogConfigsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
96
sae/src/model/ListNamespaceChangeOrdersRequest.cc
Normal file
96
sae/src/model/ListNamespaceChangeOrdersRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListNamespaceChangeOrdersRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListNamespaceChangeOrdersRequest;
|
||||
|
||||
ListNamespaceChangeOrdersRequest::ListNamespaceChangeOrdersRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/listNamespaceChangeOrders");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListNamespaceChangeOrdersRequest::~ListNamespaceChangeOrdersRequest()
|
||||
{}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getCoType()const
|
||||
{
|
||||
return coType_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setCoType(const std::string& coType)
|
||||
{
|
||||
coType_ = coType;
|
||||
setParameter("CoType", coType);
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
int ListNamespaceChangeOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int ListNamespaceChangeOrdersRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getCoStatus()const
|
||||
{
|
||||
return coStatus_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setCoStatus(const std::string& coStatus)
|
||||
{
|
||||
coStatus_ = coStatus;
|
||||
setParameter("CoStatus", coStatus);
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
}
|
||||
|
||||
127
sae/src/model/ListNamespaceChangeOrdersResult.cc
Normal file
127
sae/src/model/ListNamespaceChangeOrdersResult.cc
Normal file
@@ -0,0 +1,127 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListNamespaceChangeOrdersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListNamespaceChangeOrdersResult::ListNamespaceChangeOrdersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListNamespaceChangeOrdersResult::ListNamespaceChangeOrdersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListNamespaceChangeOrdersResult::~ListNamespaceChangeOrdersResult()
|
||||
{}
|
||||
|
||||
void ListNamespaceChangeOrdersResult::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["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
auto allChangeOrderListNode = dataNode["ChangeOrderList"]["ChangeOrder"];
|
||||
for (auto dataNodeChangeOrderListChangeOrder : allChangeOrderListNode)
|
||||
{
|
||||
Data::ChangeOrder changeOrderObject;
|
||||
if(!dataNodeChangeOrderListChangeOrder["NamespaceId"].isNull())
|
||||
changeOrderObject.namespaceId = dataNodeChangeOrderListChangeOrder["NamespaceId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchCount"].isNull())
|
||||
changeOrderObject.batchCount = std::stoi(dataNodeChangeOrderListChangeOrder["BatchCount"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull())
|
||||
changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull())
|
||||
changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull())
|
||||
changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull())
|
||||
changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull())
|
||||
changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Description"].isNull())
|
||||
changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["FinishTime"].isNull())
|
||||
changeOrderObject.finishTime = dataNodeChangeOrderListChangeOrder["FinishTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull())
|
||||
changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Pipelines"].isNull())
|
||||
changeOrderObject.pipelines = dataNodeChangeOrderListChangeOrder["Pipelines"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Source"].isNull())
|
||||
changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Status"].isNull())
|
||||
changeOrderObject.status = std::stoi(dataNodeChangeOrderListChangeOrder["Status"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull())
|
||||
changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["UserId"].isNull())
|
||||
changeOrderObject.userId = dataNodeChangeOrderListChangeOrder["UserId"].asString();
|
||||
data_.changeOrderList.push_back(changeOrderObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListNamespaceChangeOrdersResult::Data ListNamespaceChangeOrdersResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListNamespaceChangeOrdersResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/ListNamespacedConfigMapsRequest.cc
Normal file
41
sae/src/model/ListNamespacedConfigMapsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListNamespacedConfigMapsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListNamespacedConfigMapsRequest;
|
||||
|
||||
ListNamespacedConfigMapsRequest::ListNamespacedConfigMapsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/configmap/listNamespacedConfigMaps");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListNamespacedConfigMapsRequest::~ListNamespacedConfigMapsRequest()
|
||||
{}
|
||||
|
||||
std::string ListNamespacedConfigMapsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListNamespacedConfigMapsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
}
|
||||
|
||||
115
sae/src/model/ListNamespacedConfigMapsResult.cc
Normal file
115
sae/src/model/ListNamespacedConfigMapsResult.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/sae/model/ListNamespacedConfigMapsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListNamespacedConfigMapsResult::ListNamespacedConfigMapsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListNamespacedConfigMapsResult::ListNamespacedConfigMapsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListNamespacedConfigMapsResult::~ListNamespacedConfigMapsResult()
|
||||
{}
|
||||
|
||||
void ListNamespacedConfigMapsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allConfigMapsNode = dataNode["ConfigMaps"]["ConfigMap"];
|
||||
for (auto dataNodeConfigMapsConfigMap : allConfigMapsNode)
|
||||
{
|
||||
Data::ConfigMap configMapObject;
|
||||
if(!dataNodeConfigMapsConfigMap["ConfigMapId"].isNull())
|
||||
configMapObject.configMapId = std::stol(dataNodeConfigMapsConfigMap["ConfigMapId"].asString());
|
||||
if(!dataNodeConfigMapsConfigMap["Name"].isNull())
|
||||
configMapObject.name = dataNodeConfigMapsConfigMap["Name"].asString();
|
||||
if(!dataNodeConfigMapsConfigMap["NamespaceId"].isNull())
|
||||
configMapObject.namespaceId = dataNodeConfigMapsConfigMap["NamespaceId"].asString();
|
||||
if(!dataNodeConfigMapsConfigMap["Description"].isNull())
|
||||
configMapObject.description = dataNodeConfigMapsConfigMap["Description"].asString();
|
||||
if(!dataNodeConfigMapsConfigMap["Data"].isNull())
|
||||
configMapObject.data = dataNodeConfigMapsConfigMap["Data"].asString();
|
||||
if(!dataNodeConfigMapsConfigMap["CreateTime"].isNull())
|
||||
configMapObject.createTime = std::stol(dataNodeConfigMapsConfigMap["CreateTime"].asString());
|
||||
if(!dataNodeConfigMapsConfigMap["UpdateTime"].isNull())
|
||||
configMapObject.updateTime = std::stol(dataNodeConfigMapsConfigMap["UpdateTime"].asString());
|
||||
auto allRelateAppsNode = allConfigMapsNode["RelateApps"]["RelateApp"];
|
||||
for (auto allConfigMapsNodeRelateAppsRelateApp : allRelateAppsNode)
|
||||
{
|
||||
Data::ConfigMap::RelateApp relateAppsObject;
|
||||
if(!allConfigMapsNodeRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppsObject.appId = allConfigMapsNodeRelateAppsRelateApp["AppId"].asString();
|
||||
if(!allConfigMapsNodeRelateAppsRelateApp["AppName"].isNull())
|
||||
relateAppsObject.appName = allConfigMapsNodeRelateAppsRelateApp["AppName"].asString();
|
||||
configMapObject.relateApps.push_back(relateAppsObject);
|
||||
}
|
||||
data_.configMaps.push_back(configMapObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string ListNamespacedConfigMapsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListNamespacedConfigMapsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListNamespacedConfigMapsResult::Data ListNamespacedConfigMapsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListNamespacedConfigMapsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListNamespacedConfigMapsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListNamespacedConfigMapsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/ListPublishedServicesRequest.cc
Normal file
41
sae/src/model/ListPublishedServicesRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListPublishedServicesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListPublishedServicesRequest;
|
||||
|
||||
ListPublishedServicesRequest::ListPublishedServicesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/service/listPublishedServices");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListPublishedServicesRequest::~ListPublishedServicesRequest()
|
||||
{}
|
||||
|
||||
std::string ListPublishedServicesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListPublishedServicesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
106
sae/src/model/ListPublishedServicesResult.cc
Normal file
106
sae/src/model/ListPublishedServicesResult.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListPublishedServicesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListPublishedServicesResult::ListPublishedServicesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPublishedServicesResult::ListPublishedServicesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPublishedServicesResult::~ListPublishedServicesResult()
|
||||
{}
|
||||
|
||||
void ListPublishedServicesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataNode = value["Data"]["DataItem"];
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["AppId"].isNull())
|
||||
dataObject.appId = valueDataDataItem["AppId"].asString();
|
||||
if(!valueDataDataItem["Group2Ip"].isNull())
|
||||
dataObject.group2Ip = valueDataDataItem["Group2Ip"].asString();
|
||||
if(!valueDataDataItem["Name"].isNull())
|
||||
dataObject.name = valueDataDataItem["Name"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["Version"].isNull())
|
||||
dataObject.version = valueDataDataItem["Version"].asString();
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
for (auto value : allGroups)
|
||||
dataObject.groups.push_back(value.asString());
|
||||
auto allIps = value["Ips"]["Ip"];
|
||||
for (auto value : allIps)
|
||||
dataObject.ips.push_back(value.asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListPublishedServicesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListPublishedServicesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::vector<ListPublishedServicesResult::DataItem> ListPublishedServicesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListPublishedServicesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListPublishedServicesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListPublishedServicesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
85
sae/src/model/ListTagResourcesRequest.cc
Normal file
85
sae/src/model/ListTagResourcesRequest.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/tags");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceIds(const std::string& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter("ResourceIds", resourceIds);
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
}
|
||||
|
||||
101
sae/src/model/ListTagResourcesResult.cc
Normal file
101
sae/src/model/ListTagResourcesResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListTagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListTagResourcesResult::~ListTagResourcesResult()
|
||||
{}
|
||||
|
||||
void ListTagResourcesResult::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["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
auto allTagResourcesNode = dataNode["TagResources"]["TagResource"];
|
||||
for (auto dataNodeTagResourcesTagResource : allTagResourcesNode)
|
||||
{
|
||||
Data::TagResource tagResourceObject;
|
||||
if(!dataNodeTagResourcesTagResource["TagKey"].isNull())
|
||||
tagResourceObject.tagKey = dataNodeTagResourcesTagResource["TagKey"].asString();
|
||||
if(!dataNodeTagResourcesTagResource["TagValue"].isNull())
|
||||
tagResourceObject.tagValue = dataNodeTagResourcesTagResource["TagValue"].asString();
|
||||
if(!dataNodeTagResourcesTagResource["ResourceId"].isNull())
|
||||
tagResourceObject.resourceId = dataNodeTagResourcesTagResource["ResourceId"].asString();
|
||||
if(!dataNodeTagResourcesTagResource["ResourceType"].isNull())
|
||||
tagResourceObject.resourceType = dataNodeTagResourcesTagResource["ResourceType"].asString();
|
||||
data_.tagResources.push_back(tagResourceObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
ListTagResourcesResult::Data ListTagResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListTagResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/QueryResourceStaticsRequest.cc
Normal file
41
sae/src/model/QueryResourceStaticsRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/QueryResourceStaticsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::QueryResourceStaticsRequest;
|
||||
|
||||
QueryResourceStaticsRequest::QueryResourceStaticsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/quota/queryResourceStatics");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
QueryResourceStaticsRequest::~QueryResourceStaticsRequest()
|
||||
{}
|
||||
|
||||
std::string QueryResourceStaticsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void QueryResourceStaticsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
95
sae/src/model/QueryResourceStaticsResult.cc
Normal file
95
sae/src/model/QueryResourceStaticsResult.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/sae/model/QueryResourceStaticsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
QueryResourceStaticsResult::QueryResourceStaticsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryResourceStaticsResult::QueryResourceStaticsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryResourceStaticsResult::~QueryResourceStaticsResult()
|
||||
{}
|
||||
|
||||
void QueryResourceStaticsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto realTimeResNode = dataNode["RealTimeRes"];
|
||||
if(!realTimeResNode["Cpu"].isNull())
|
||||
data_.realTimeRes.cpu = std::stof(realTimeResNode["Cpu"].asString());
|
||||
if(!realTimeResNode["Memory"].isNull())
|
||||
data_.realTimeRes.memory = std::stof(realTimeResNode["Memory"].asString());
|
||||
auto summaryNode = dataNode["Summary"];
|
||||
if(!summaryNode["Cpu"].isNull())
|
||||
data_.summary.cpu = std::stof(summaryNode["Cpu"].asString());
|
||||
if(!summaryNode["Memory"].isNull())
|
||||
data_.summary.memory = std::stof(summaryNode["Memory"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryResourceStaticsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryResourceStaticsResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
QueryResourceStaticsResult::Data QueryResourceStaticsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryResourceStaticsResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string QueryResourceStaticsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryResourceStaticsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
sae/src/model/RescaleApplicationRequest.cc
Normal file
63
sae/src/model/RescaleApplicationRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RescaleApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::RescaleApplicationRequest;
|
||||
|
||||
RescaleApplicationRequest::RescaleApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/rescaleApplication");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
RescaleApplicationRequest::~RescaleApplicationRequest()
|
||||
{}
|
||||
|
||||
int RescaleApplicationRequest::getMinReadyInstances()const
|
||||
{
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
int RescaleApplicationRequest::getReplicas()const
|
||||
{
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setReplicas(int replicas)
|
||||
{
|
||||
replicas_ = replicas;
|
||||
setParameter("Replicas", std::to_string(replicas));
|
||||
}
|
||||
|
||||
std::string RescaleApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
80
sae/src/model/RescaleApplicationResult.cc
Normal file
80
sae/src/model/RescaleApplicationResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RescaleApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
RescaleApplicationResult::RescaleApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RescaleApplicationResult::RescaleApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RescaleApplicationResult::~RescaleApplicationResult()
|
||||
{}
|
||||
|
||||
void RescaleApplicationResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RescaleApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
RescaleApplicationResult::Data RescaleApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RescaleApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
63
sae/src/model/RescaleApplicationVerticallyRequest.cc
Normal file
63
sae/src/model/RescaleApplicationVerticallyRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RescaleApplicationVerticallyRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::RescaleApplicationVerticallyRequest;
|
||||
|
||||
RescaleApplicationVerticallyRequest::RescaleApplicationVerticallyRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/rescaleApplicationVertically");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
RescaleApplicationVerticallyRequest::~RescaleApplicationVerticallyRequest()
|
||||
{}
|
||||
|
||||
std::string RescaleApplicationVerticallyRequest::getMemory()const
|
||||
{
|
||||
return memory_;
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setMemory(const std::string& memory)
|
||||
{
|
||||
memory_ = memory;
|
||||
setParameter("Memory", memory);
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyRequest::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setCpu(const std::string& cpu)
|
||||
{
|
||||
cpu_ = cpu;
|
||||
setParameter("Cpu", cpu);
|
||||
}
|
||||
|
||||
87
sae/src/model/RescaleApplicationVerticallyResult.cc
Normal file
87
sae/src/model/RescaleApplicationVerticallyResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RescaleApplicationVerticallyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
RescaleApplicationVerticallyResult::RescaleApplicationVerticallyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RescaleApplicationVerticallyResult::RescaleApplicationVerticallyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RescaleApplicationVerticallyResult::~RescaleApplicationVerticallyResult()
|
||||
{}
|
||||
|
||||
void RescaleApplicationVerticallyResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
RescaleApplicationVerticallyResult::Data RescaleApplicationVerticallyResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RescaleApplicationVerticallyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
52
sae/src/model/RestartApplicationRequest.cc
Normal file
52
sae/src/model/RestartApplicationRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RestartApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::RestartApplicationRequest;
|
||||
|
||||
RestartApplicationRequest::RestartApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/restartApplication");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
RestartApplicationRequest::~RestartApplicationRequest()
|
||||
{}
|
||||
|
||||
int RestartApplicationRequest::getMinReadyInstances()const
|
||||
{
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
void RestartApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
std::string RestartApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void RestartApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
87
sae/src/model/RestartApplicationResult.cc
Normal file
87
sae/src/model/RestartApplicationResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RestartApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
RestartApplicationResult::RestartApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RestartApplicationResult::RestartApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RestartApplicationResult::~RestartApplicationResult()
|
||||
{}
|
||||
|
||||
void RestartApplicationResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RestartApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RestartApplicationResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
RestartApplicationResult::Data RestartApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RestartApplicationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RestartApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RestartApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
96
sae/src/model/RollbackApplicationRequest.cc
Normal file
96
sae/src/model/RollbackApplicationRequest.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RollbackApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::RollbackApplicationRequest;
|
||||
|
||||
RollbackApplicationRequest::RollbackApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/rollbackApplication");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
RollbackApplicationRequest::~RollbackApplicationRequest()
|
||||
{}
|
||||
|
||||
int RollbackApplicationRequest::getMinReadyInstances()const
|
||||
{
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
void RollbackApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
std::string RollbackApplicationRequest::getVersionId()const
|
||||
{
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
void RollbackApplicationRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
}
|
||||
|
||||
std::string RollbackApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void RollbackApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
int RollbackApplicationRequest::getBatchWaitTime()const
|
||||
{
|
||||
return batchWaitTime_;
|
||||
}
|
||||
|
||||
void RollbackApplicationRequest::setBatchWaitTime(int batchWaitTime)
|
||||
{
|
||||
batchWaitTime_ = batchWaitTime;
|
||||
setParameter("BatchWaitTime", std::to_string(batchWaitTime));
|
||||
}
|
||||
|
||||
std::string RollbackApplicationRequest::getAutoEnableApplicationScalingRule()const
|
||||
{
|
||||
return autoEnableApplicationScalingRule_;
|
||||
}
|
||||
|
||||
void RollbackApplicationRequest::setAutoEnableApplicationScalingRule(const std::string& autoEnableApplicationScalingRule)
|
||||
{
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule);
|
||||
}
|
||||
|
||||
std::string RollbackApplicationRequest::getUpdateStrategy()const
|
||||
{
|
||||
return updateStrategy_;
|
||||
}
|
||||
|
||||
void RollbackApplicationRequest::setUpdateStrategy(const std::string& updateStrategy)
|
||||
{
|
||||
updateStrategy_ = updateStrategy;
|
||||
setParameter("UpdateStrategy", updateStrategy);
|
||||
}
|
||||
|
||||
87
sae/src/model/RollbackApplicationResult.cc
Normal file
87
sae/src/model/RollbackApplicationResult.cc
Normal file
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RollbackApplicationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Sae;
|
||||
using namespace AlibabaCloud::Sae::Model;
|
||||
|
||||
RollbackApplicationResult::RollbackApplicationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
RollbackApplicationResult::RollbackApplicationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
RollbackApplicationResult::~RollbackApplicationResult()
|
||||
{}
|
||||
|
||||
void RollbackApplicationResult::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["ChangeOrderId"].isNull())
|
||||
data_.changeOrderId = dataNode["ChangeOrderId"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["TraceId"].isNull())
|
||||
traceId_ = value["TraceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string RollbackApplicationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string RollbackApplicationResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
RollbackApplicationResult::Data RollbackApplicationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string RollbackApplicationResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string RollbackApplicationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool RollbackApplicationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
41
sae/src/model/StartApplicationRequest.cc
Normal file
41
sae/src/model/StartApplicationRequest.cc
Normal file
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/StartApplicationRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::StartApplicationRequest;
|
||||
|
||||
StartApplicationRequest::StartApplicationRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/startApplication");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
StartApplicationRequest::~StartApplicationRequest()
|
||||
{}
|
||||
|
||||
std::string StartApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void StartApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user