Support UpdateApplicationVswitches and DescribeComponents.
This commit is contained in:
@@ -1635,42 +1635,6 @@ SaeClient::DisableApplicationScalingRuleOutcomeCallable SaeClient::disableApplic
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::DownloadFilesOutcome SaeClient::downloadFiles(const DownloadFilesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DownloadFilesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DownloadFilesOutcome(DownloadFilesResult(outcome.result()));
|
||||
else
|
||||
return DownloadFilesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::downloadFilesAsync(const DownloadFilesRequest& request, const DownloadFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, downloadFiles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::DownloadFilesOutcomeCallable SaeClient::downloadFilesCallable(const DownloadFilesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DownloadFilesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->downloadFiles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::EnableApplicationScalingRuleOutcome SaeClient::enableApplicationScalingRule(const EnableApplicationScalingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2679,6 +2643,42 @@ SaeClient::UpdateAppSecurityGroupOutcomeCallable SaeClient::updateAppSecurityGro
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateApplicationDescriptionOutcome SaeClient::updateApplicationDescription(const UpdateApplicationDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateApplicationDescriptionOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateApplicationDescriptionOutcome(UpdateApplicationDescriptionResult(outcome.result()));
|
||||
else
|
||||
return UpdateApplicationDescriptionOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::updateApplicationDescriptionAsync(const UpdateApplicationDescriptionRequest& request, const UpdateApplicationDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateApplicationDescription(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::UpdateApplicationDescriptionOutcomeCallable SaeClient::updateApplicationDescriptionCallable(const UpdateApplicationDescriptionRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateApplicationDescriptionOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateApplicationDescription(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateApplicationScalingRuleOutcome SaeClient::updateApplicationScalingRule(const UpdateApplicationScalingRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2715,6 +2715,42 @@ SaeClient::UpdateApplicationScalingRuleOutcomeCallable SaeClient::updateApplicat
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateApplicationVswitchesOutcome SaeClient::updateApplicationVswitches(const UpdateApplicationVswitchesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateApplicationVswitchesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateApplicationVswitchesOutcome(UpdateApplicationVswitchesResult(outcome.result()));
|
||||
else
|
||||
return UpdateApplicationVswitchesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::updateApplicationVswitchesAsync(const UpdateApplicationVswitchesRequest& request, const UpdateApplicationVswitchesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateApplicationVswitches(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::UpdateApplicationVswitchesOutcomeCallable SaeClient::updateApplicationVswitchesCallable(const UpdateApplicationVswitchesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateApplicationVswitchesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateApplicationVswitches(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UpdateConfigMapOutcome SaeClient::updateConfigMap(const UpdateConfigMapRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2895,39 +2931,3 @@ SaeClient::UpdateNamespaceVpcOutcomeCallable SaeClient::updateNamespaceVpcCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
SaeClient::UploadFilesOutcome SaeClient::uploadFiles(const UploadFilesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UploadFilesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UploadFilesOutcome(UploadFilesResult(outcome.result()));
|
||||
else
|
||||
return UploadFilesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void SaeClient::uploadFilesAsync(const UploadFilesRequest& request, const UploadFilesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, uploadFiles(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
SaeClient::UploadFilesOutcomeCallable SaeClient::uploadFilesCallable(const UploadFilesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UploadFilesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->uploadFiles(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void AbortAndRollbackChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
AbortAndRollbackChangeOrderRequest::~AbortAndRollbackChangeOrderRequest() {}
|
||||
|
||||
std::string AbortAndRollbackChangeOrderRequest::getChangeOrderId() const {
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void AbortAndRollbackChangeOrderRequest::setChangeOrderId(const std::string &changeOrderId) {
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter(std::string("ChangeOrderId"), changeOrderId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,16 +42,16 @@ void AbortAndRollbackChangeOrderResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void AbortChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
AbortChangeOrderRequest::~AbortChangeOrderRequest() {}
|
||||
|
||||
std::string AbortChangeOrderRequest::getChangeOrderId() const {
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void AbortChangeOrderRequest::setChangeOrderId(const std::string &changeOrderId) {
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter(std::string("ChangeOrderId"), changeOrderId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,16 +42,16 @@ void AbortChangeOrderResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void BatchStartApplicationsRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
BatchStartApplicationsRequest::~BatchStartApplicationsRequest() {}
|
||||
|
||||
std::string BatchStartApplicationsRequest::getAppIds() const {
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
std::string BatchStartApplicationsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void BatchStartApplicationsRequest::setAppIds(const std::string &appIds) {
|
||||
appIds_ = appIds;
|
||||
setParameter(std::string("AppIds"), appIds);
|
||||
}
|
||||
|
||||
void BatchStartApplicationsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string BatchStartApplicationsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void BatchStartApplicationsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ void BatchStartApplicationsResult::parse(const std::string &payload)
|
||||
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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void BatchStopApplicationsRequest::setAppIds(const std::string& appIds)
|
||||
{
|
||||
appIds_ = appIds;
|
||||
setParameter("AppIds", appIds);
|
||||
BatchStopApplicationsRequest::~BatchStopApplicationsRequest() {}
|
||||
|
||||
std::string BatchStopApplicationsRequest::getAppIds() const {
|
||||
return appIds_;
|
||||
}
|
||||
|
||||
std::string BatchStopApplicationsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void BatchStopApplicationsRequest::setAppIds(const std::string &appIds) {
|
||||
appIds_ = appIds;
|
||||
setParameter(std::string("AppIds"), appIds);
|
||||
}
|
||||
|
||||
void BatchStopApplicationsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string BatchStopApplicationsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void BatchStopApplicationsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,14 +42,14 @@ void BatchStopApplicationsResult::parse(const std::string &payload)
|
||||
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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -1,85 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void BindSlbRequest::setIntranet(const std::string& intranet)
|
||||
{
|
||||
intranet_ = intranet;
|
||||
setParameter("Intranet", intranet);
|
||||
BindSlbRequest::~BindSlbRequest() {}
|
||||
|
||||
std::string BindSlbRequest::getIntranet() const {
|
||||
return intranet_;
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getIntranetSlbId()const
|
||||
{
|
||||
return intranetSlbId_;
|
||||
void BindSlbRequest::setIntranet(const std::string &intranet) {
|
||||
intranet_ = intranet;
|
||||
setParameter(std::string("Intranet"), intranet);
|
||||
}
|
||||
|
||||
void BindSlbRequest::setIntranetSlbId(const std::string& intranetSlbId)
|
||||
{
|
||||
intranetSlbId_ = intranetSlbId;
|
||||
setParameter("IntranetSlbId", intranetSlbId);
|
||||
std::string BindSlbRequest::getIntranetSlbId() const {
|
||||
return intranetSlbId_;
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getInternetSlbId()const
|
||||
{
|
||||
return internetSlbId_;
|
||||
void BindSlbRequest::setIntranetSlbId(const std::string &intranetSlbId) {
|
||||
intranetSlbId_ = intranetSlbId;
|
||||
setParameter(std::string("IntranetSlbId"), intranetSlbId);
|
||||
}
|
||||
|
||||
void BindSlbRequest::setInternetSlbId(const std::string& internetSlbId)
|
||||
{
|
||||
internetSlbId_ = internetSlbId;
|
||||
setParameter("InternetSlbId", internetSlbId);
|
||||
std::string BindSlbRequest::getInternetSlbId() const {
|
||||
return internetSlbId_;
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void BindSlbRequest::setInternetSlbId(const std::string &internetSlbId) {
|
||||
internetSlbId_ = internetSlbId;
|
||||
setParameter(std::string("InternetSlbId"), internetSlbId);
|
||||
}
|
||||
|
||||
void BindSlbRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string BindSlbRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string BindSlbRequest::getInternet()const
|
||||
{
|
||||
return internet_;
|
||||
void BindSlbRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void BindSlbRequest::setInternet(const std::string& internet)
|
||||
{
|
||||
internet_ = internet;
|
||||
setParameter("Internet", internet);
|
||||
std::string BindSlbRequest::getInternet() const {
|
||||
return internet_;
|
||||
}
|
||||
|
||||
void BindSlbRequest::setInternet(const std::string &internet) {
|
||||
internet_ = internet;
|
||||
setParameter(std::string("Internet"), internet);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ConfirmPipelineBatchRequest::setConfirm(bool confirm)
|
||||
{
|
||||
confirm_ = confirm;
|
||||
setParameter("Confirm", confirm ? "true" : "false");
|
||||
ConfirmPipelineBatchRequest::~ConfirmPipelineBatchRequest() {}
|
||||
|
||||
bool ConfirmPipelineBatchRequest::getConfirm() const {
|
||||
return confirm_;
|
||||
}
|
||||
|
||||
std::string ConfirmPipelineBatchRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void ConfirmPipelineBatchRequest::setConfirm(bool confirm) {
|
||||
confirm_ = confirm;
|
||||
setParameter(std::string("Confirm"), confirm ? "true" : "false");
|
||||
}
|
||||
|
||||
void ConfirmPipelineBatchRequest::setPipelineId(const std::string& pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", pipelineId);
|
||||
std::string ConfirmPipelineBatchRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void ConfirmPipelineBatchRequest::setPipelineId(const std::string &pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), pipelineId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,16 +42,16 @@ void ConfirmPipelineBatchResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,613 +1,532 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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(std::string("NasId"), nasId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJarStartArgs() const {
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJarStartArgs(const std::string &jarStartArgs) {
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter(std::string("JarStartArgs"), jarStartArgs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getOssAkSecret() const {
|
||||
return ossAkSecret_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setOssAkSecret(const std::string &ossAkSecret) {
|
||||
ossAkSecret_ = ossAkSecret;
|
||||
setBodyParameter(std::string("OssAkSecret"), ossAkSecret);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMountHost() const {
|
||||
return mountHost_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setNasId(const std::string& nasId)
|
||||
{
|
||||
nasId_ = nasId;
|
||||
setParameter("NasId", nasId);
|
||||
void CreateApplicationRequest::setMountHost(const std::string &mountHost) {
|
||||
mountHost_ = mountHost;
|
||||
setParameter(std::string("MountHost"), mountHost);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJarStartArgs()const
|
||||
{
|
||||
return jarStartArgs_;
|
||||
bool CreateApplicationRequest::getAutoConfig() const {
|
||||
return autoConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
|
||||
{
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter("JarStartArgs", jarStartArgs);
|
||||
void CreateApplicationRequest::setAutoConfig(bool autoConfig) {
|
||||
autoConfig_ = autoConfig;
|
||||
setParameter(std::string("AutoConfig"), autoConfig ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getOssAkSecret()const
|
||||
{
|
||||
return ossAkSecret_;
|
||||
std::string CreateApplicationRequest::getEnvs() const {
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setOssAkSecret(const std::string& ossAkSecret)
|
||||
{
|
||||
ossAkSecret_ = ossAkSecret;
|
||||
setBodyParameter("OssAkSecret", ossAkSecret);
|
||||
void CreateApplicationRequest::setEnvs(const std::string &envs) {
|
||||
envs_ = envs;
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMountHost()const
|
||||
{
|
||||
return mountHost_;
|
||||
std::string CreateApplicationRequest::getKafkaInstanceId() const {
|
||||
return kafkaInstanceId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMountHost(const std::string& mountHost)
|
||||
{
|
||||
mountHost_ = mountHost;
|
||||
setParameter("MountHost", mountHost);
|
||||
void CreateApplicationRequest::setKafkaInstanceId(const std::string &kafkaInstanceId) {
|
||||
kafkaInstanceId_ = kafkaInstanceId;
|
||||
setParameter(std::string("KafkaInstanceId"), kafkaInstanceId);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getAutoConfig()const
|
||||
{
|
||||
return autoConfig_;
|
||||
std::string CreateApplicationRequest::getPhpPECLExtensions() const {
|
||||
return phpPECLExtensions_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAutoConfig(bool autoConfig)
|
||||
{
|
||||
autoConfig_ = autoConfig;
|
||||
setParameter("AutoConfig", autoConfig ? "true" : "false");
|
||||
void CreateApplicationRequest::setPhpPECLExtensions(const std::string &phpPECLExtensions) {
|
||||
phpPECLExtensions_ = phpPECLExtensions;
|
||||
setBodyParameter(std::string("PhpPECLExtensions"), phpPECLExtensions);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getEnvs()const
|
||||
{
|
||||
return envs_;
|
||||
std::string CreateApplicationRequest::getPhpArmsConfigLocation() const {
|
||||
return phpArmsConfigLocation_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setEnvs(const std::string& envs)
|
||||
{
|
||||
envs_ = envs;
|
||||
setParameter("Envs", envs);
|
||||
void CreateApplicationRequest::setPhpArmsConfigLocation(const std::string &phpArmsConfigLocation) {
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter(std::string("PhpArmsConfigLocation"), phpArmsConfigLocation);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getKafkaInstanceId()const
|
||||
{
|
||||
return kafkaInstanceId_;
|
||||
std::string CreateApplicationRequest::getProgrammingLanguage() const {
|
||||
return programmingLanguage_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setKafkaInstanceId(const std::string& kafkaInstanceId)
|
||||
{
|
||||
kafkaInstanceId_ = kafkaInstanceId;
|
||||
setParameter("KafkaInstanceId", kafkaInstanceId);
|
||||
void CreateApplicationRequest::setProgrammingLanguage(const std::string &programmingLanguage) {
|
||||
programmingLanguage_ = programmingLanguage;
|
||||
setParameter(std::string("ProgrammingLanguage"), programmingLanguage);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpPECLExtensions()const
|
||||
{
|
||||
return phpPECLExtensions_;
|
||||
std::string CreateApplicationRequest::getCustomHostAlias() const {
|
||||
return customHostAlias_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpPECLExtensions(const std::string& phpPECLExtensions)
|
||||
{
|
||||
phpPECLExtensions_ = phpPECLExtensions;
|
||||
setBodyParameter("PhpPECLExtensions", phpPECLExtensions);
|
||||
void CreateApplicationRequest::setCustomHostAlias(const std::string &customHostAlias) {
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter(std::string("CustomHostAlias"), customHostAlias);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpArmsConfigLocation()const
|
||||
{
|
||||
return phpArmsConfigLocation_;
|
||||
bool CreateApplicationRequest::getDeploy() const {
|
||||
return deploy_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
|
||||
{
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
|
||||
void CreateApplicationRequest::setDeploy(bool deploy) {
|
||||
deploy_ = deploy;
|
||||
setParameter(std::string("Deploy"), deploy ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCustomHostAlias()const
|
||||
{
|
||||
return customHostAlias_;
|
||||
std::string CreateApplicationRequest::getJarStartOptions() const {
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
|
||||
{
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter("CustomHostAlias", customHostAlias);
|
||||
void CreateApplicationRequest::setJarStartOptions(const std::string &jarStartOptions) {
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter(std::string("JarStartOptions"), jarStartOptions);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getDeploy()const
|
||||
{
|
||||
return deploy_;
|
||||
std::string CreateApplicationRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setDeploy(bool deploy)
|
||||
{
|
||||
deploy_ = deploy;
|
||||
setParameter("Deploy", deploy ? "true" : "false");
|
||||
void CreateApplicationRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJarStartOptions()const
|
||||
{
|
||||
return jarStartOptions_;
|
||||
std::string CreateApplicationRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
|
||||
{
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter("JarStartOptions", jarStartOptions);
|
||||
void CreateApplicationRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
bool CreateApplicationRequest::getPurchaseEip() const {
|
||||
return purchaseEip_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
void CreateApplicationRequest::setPurchaseEip(bool purchaseEip) {
|
||||
purchaseEip_ = purchaseEip;
|
||||
setParameter(std::string("PurchaseEip"), purchaseEip ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
std::string CreateApplicationRequest::getConfigMapMountDesc() const {
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
void CreateApplicationRequest::setConfigMapMountDesc(const std::string &configMapMountDesc) {
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter(std::string("ConfigMapMountDesc"), configMapMountDesc);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getConfigMapMountDesc()const
|
||||
{
|
||||
return configMapMountDesc_;
|
||||
std::string CreateApplicationRequest::getOssMountDescs() const {
|
||||
return ossMountDescs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
|
||||
{
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
|
||||
void CreateApplicationRequest::setOssMountDescs(const std::string &ossMountDescs) {
|
||||
ossMountDescs_ = ossMountDescs;
|
||||
setBodyParameter(std::string("OssMountDescs"), ossMountDescs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getOssMountDescs()const
|
||||
{
|
||||
return ossMountDescs_;
|
||||
std::string CreateApplicationRequest::getKafkaEndpoint() const {
|
||||
return kafkaEndpoint_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setOssMountDescs(const std::string& ossMountDescs)
|
||||
{
|
||||
ossMountDescs_ = ossMountDescs;
|
||||
setBodyParameter("OssMountDescs", ossMountDescs);
|
||||
void CreateApplicationRequest::setKafkaEndpoint(const std::string &kafkaEndpoint) {
|
||||
kafkaEndpoint_ = kafkaEndpoint;
|
||||
setParameter(std::string("KafkaEndpoint"), kafkaEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getKafkaEndpoint()const
|
||||
{
|
||||
return kafkaEndpoint_;
|
||||
std::string CreateApplicationRequest::getPreStop() const {
|
||||
return preStop_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setKafkaEndpoint(const std::string& kafkaEndpoint)
|
||||
{
|
||||
kafkaEndpoint_ = kafkaEndpoint;
|
||||
setParameter("KafkaEndpoint", kafkaEndpoint);
|
||||
void CreateApplicationRequest::setPreStop(const std::string &preStop) {
|
||||
preStop_ = preStop;
|
||||
setParameter(std::string("PreStop"), preStop);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPreStop()const
|
||||
{
|
||||
return preStop_;
|
||||
int CreateApplicationRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPreStop(const std::string& preStop)
|
||||
{
|
||||
preStop_ = preStop;
|
||||
setParameter("PreStop", preStop);
|
||||
void CreateApplicationRequest::setCpu(int cpu) {
|
||||
cpu_ = cpu;
|
||||
setParameter(std::string("Cpu"), std::to_string(cpu));
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
std::string CreateApplicationRequest::getVSwitchId() const {
|
||||
return vSwitchId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCpu(int cpu)
|
||||
{
|
||||
cpu_ = cpu;
|
||||
setParameter("Cpu", std::to_string(cpu));
|
||||
void CreateApplicationRequest::setVSwitchId(const std::string &vSwitchId) {
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter(std::string("VSwitchId"), vSwitchId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getVSwitchId()const
|
||||
{
|
||||
return vSwitchId_;
|
||||
std::string CreateApplicationRequest::getPackageType() const {
|
||||
return packageType_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setVSwitchId(const std::string& vSwitchId)
|
||||
{
|
||||
vSwitchId_ = vSwitchId;
|
||||
setParameter("VSwitchId", vSwitchId);
|
||||
void CreateApplicationRequest::setPackageType(const std::string &packageType) {
|
||||
packageType_ = packageType;
|
||||
setParameter(std::string("PackageType"), packageType);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageType()const
|
||||
{
|
||||
return packageType_;
|
||||
std::string CreateApplicationRequest::getPostStart() const {
|
||||
return postStart_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageType(const std::string& packageType)
|
||||
{
|
||||
packageType_ = packageType;
|
||||
setParameter("PackageType", packageType);
|
||||
void CreateApplicationRequest::setPostStart(const std::string &postStart) {
|
||||
postStart_ = postStart;
|
||||
setParameter(std::string("PostStart"), postStart);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPostStart()const
|
||||
{
|
||||
return postStart_;
|
||||
std::string CreateApplicationRequest::getPhpExtensions() const {
|
||||
return phpExtensions_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPostStart(const std::string& postStart)
|
||||
{
|
||||
postStart_ = postStart;
|
||||
setParameter("PostStart", postStart);
|
||||
void CreateApplicationRequest::setPhpExtensions(const std::string &phpExtensions) {
|
||||
phpExtensions_ = phpExtensions;
|
||||
setBodyParameter(std::string("PhpExtensions"), phpExtensions);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpExtensions()const
|
||||
{
|
||||
return phpExtensions_;
|
||||
bool CreateApplicationRequest::getAssociateEip() const {
|
||||
return associateEip_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpExtensions(const std::string& phpExtensions)
|
||||
{
|
||||
phpExtensions_ = phpExtensions;
|
||||
setBodyParameter("PhpExtensions", phpExtensions);
|
||||
void CreateApplicationRequest::setAssociateEip(bool associateEip) {
|
||||
associateEip_ = associateEip;
|
||||
setBodyParameter(std::string("AssociateEip"), associateEip ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getAssociateEip()const
|
||||
{
|
||||
return associateEip_;
|
||||
std::string CreateApplicationRequest::getWebContainer() const {
|
||||
return webContainer_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAssociateEip(bool associateEip)
|
||||
{
|
||||
associateEip_ = associateEip;
|
||||
setBodyParameter("AssociateEip", associateEip ? "true" : "false");
|
||||
void CreateApplicationRequest::setWebContainer(const std::string &webContainer) {
|
||||
webContainer_ = webContainer;
|
||||
setParameter(std::string("WebContainer"), webContainer);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getWebContainer()const
|
||||
{
|
||||
return webContainer_;
|
||||
int CreateApplicationRequest::getMemory() const {
|
||||
return memory_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setWebContainer(const std::string& webContainer)
|
||||
{
|
||||
webContainer_ = webContainer;
|
||||
setParameter("WebContainer", webContainer);
|
||||
void CreateApplicationRequest::setMemory(int memory) {
|
||||
memory_ = memory;
|
||||
setParameter(std::string("Memory"), std::to_string(memory));
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getMemory()const
|
||||
{
|
||||
return memory_;
|
||||
std::string CreateApplicationRequest::getSlsConfigs() const {
|
||||
return slsConfigs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMemory(int memory)
|
||||
{
|
||||
memory_ = memory;
|
||||
setParameter("Memory", std::to_string(memory));
|
||||
void CreateApplicationRequest::setSlsConfigs(const std::string &slsConfigs) {
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter(std::string("SlsConfigs"), slsConfigs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSlsConfigs()const
|
||||
{
|
||||
return slsConfigs_;
|
||||
std::string CreateApplicationRequest::getKafkaConfigs() const {
|
||||
return kafkaConfigs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
|
||||
{
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter("SlsConfigs", slsConfigs);
|
||||
void CreateApplicationRequest::setKafkaConfigs(const std::string &kafkaConfigs) {
|
||||
kafkaConfigs_ = kafkaConfigs;
|
||||
setParameter(std::string("KafkaConfigs"), kafkaConfigs);
|
||||
}
|
||||
|
||||
bool CreateApplicationRequest::getOpenCollectToKafka()const
|
||||
{
|
||||
return openCollectToKafka_;
|
||||
bool CreateApplicationRequest::getOpenCollectToKafka() const {
|
||||
return openCollectToKafka_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka)
|
||||
{
|
||||
openCollectToKafka_ = openCollectToKafka;
|
||||
setParameter("OpenCollectToKafka", openCollectToKafka ? "true" : "false");
|
||||
void CreateApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka) {
|
||||
openCollectToKafka_ = openCollectToKafka;
|
||||
setParameter(std::string("OpenCollectToKafka"), openCollectToKafka ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCommandArgs()const
|
||||
{
|
||||
return commandArgs_;
|
||||
std::string CreateApplicationRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCommandArgs(const std::string& commandArgs)
|
||||
{
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter("CommandArgs", commandArgs);
|
||||
void CreateApplicationRequest::setCommandArgs(const std::string &commandArgs) {
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter(std::string("CommandArgs"), commandArgs);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAcrAssumeRoleArn()const
|
||||
{
|
||||
return acrAssumeRoleArn_;
|
||||
std::string CreateApplicationRequest::getAcrAssumeRoleArn() const {
|
||||
return acrAssumeRoleArn_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAcrAssumeRoleArn(const std::string& acrAssumeRoleArn)
|
||||
{
|
||||
acrAssumeRoleArn_ = acrAssumeRoleArn;
|
||||
setParameter("AcrAssumeRoleArn", acrAssumeRoleArn);
|
||||
void CreateApplicationRequest::setAcrAssumeRoleArn(const std::string &acrAssumeRoleArn) {
|
||||
acrAssumeRoleArn_ = acrAssumeRoleArn;
|
||||
setParameter(std::string("AcrAssumeRoleArn"), acrAssumeRoleArn);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getReadiness()const
|
||||
{
|
||||
return readiness_;
|
||||
std::string CreateApplicationRequest::getReadiness() const {
|
||||
return readiness_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setReadiness(const std::string& readiness)
|
||||
{
|
||||
readiness_ = readiness;
|
||||
setParameter("Readiness", readiness);
|
||||
void CreateApplicationRequest::setReadiness(const std::string &readiness) {
|
||||
readiness_ = readiness;
|
||||
setParameter(std::string("Readiness"), readiness);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getTimezone()const
|
||||
{
|
||||
return timezone_;
|
||||
std::string CreateApplicationRequest::getTimezone() const {
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTimezone(const std::string& timezone)
|
||||
{
|
||||
timezone_ = timezone;
|
||||
setParameter("Timezone", timezone);
|
||||
void CreateApplicationRequest::setTimezone(const std::string &timezone) {
|
||||
timezone_ = timezone;
|
||||
setParameter(std::string("Timezone"), timezone);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getOssAkId()const
|
||||
{
|
||||
return ossAkId_;
|
||||
std::string CreateApplicationRequest::getOssAkId() const {
|
||||
return ossAkId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setOssAkId(const std::string& ossAkId)
|
||||
{
|
||||
ossAkId_ = ossAkId;
|
||||
setBodyParameter("OssAkId", ossAkId);
|
||||
void CreateApplicationRequest::setOssAkId(const std::string &ossAkId) {
|
||||
ossAkId_ = ossAkId;
|
||||
setBodyParameter(std::string("OssAkId"), ossAkId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getLiveness()const
|
||||
{
|
||||
return liveness_;
|
||||
std::string CreateApplicationRequest::getLiveness() const {
|
||||
return liveness_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setLiveness(const std::string& liveness)
|
||||
{
|
||||
liveness_ = liveness;
|
||||
setParameter("Liveness", liveness);
|
||||
void CreateApplicationRequest::setLiveness(const std::string &liveness) {
|
||||
liveness_ = liveness;
|
||||
setParameter(std::string("Liveness"), liveness);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getSecurityGroupId()const
|
||||
{
|
||||
return securityGroupId_;
|
||||
std::string CreateApplicationRequest::getSecurityGroupId() const {
|
||||
return securityGroupId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setSecurityGroupId(const std::string& securityGroupId)
|
||||
{
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter("SecurityGroupId", securityGroupId);
|
||||
void CreateApplicationRequest::setSecurityGroupId(const std::string &securityGroupId) {
|
||||
securityGroupId_ = securityGroupId;
|
||||
setParameter(std::string("SecurityGroupId"), securityGroupId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageVersion()const
|
||||
{
|
||||
return packageVersion_;
|
||||
std::string CreateApplicationRequest::getPackageVersion() const {
|
||||
return packageVersion_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageVersion(const std::string& packageVersion)
|
||||
{
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter("PackageVersion", packageVersion);
|
||||
void CreateApplicationRequest::setPackageVersion(const std::string &packageVersion) {
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter(std::string("PackageVersion"), packageVersion);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getTomcatConfig()const
|
||||
{
|
||||
return tomcatConfig_;
|
||||
std::string CreateApplicationRequest::getTomcatConfig() const {
|
||||
return tomcatConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
|
||||
{
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter("TomcatConfig", tomcatConfig);
|
||||
void CreateApplicationRequest::setTomcatConfig(const std::string &tomcatConfig) {
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter(std::string("TomcatConfig"), tomcatConfig);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getWarStartOptions()const
|
||||
{
|
||||
return warStartOptions_;
|
||||
std::string CreateApplicationRequest::getWarStartOptions() const {
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
|
||||
{
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter("WarStartOptions", warStartOptions);
|
||||
void CreateApplicationRequest::setWarStartOptions(const std::string &warStartOptions) {
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getEdasContainerVersion()const
|
||||
{
|
||||
return edasContainerVersion_;
|
||||
std::string CreateApplicationRequest::getEdasContainerVersion() const {
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
|
||||
{
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter("EdasContainerVersion", edasContainerVersion);
|
||||
void CreateApplicationRequest::setEdasContainerVersion(const std::string &edasContainerVersion) {
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter(std::string("EdasContainerVersion"), edasContainerVersion);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPackageUrl()const
|
||||
{
|
||||
return packageUrl_;
|
||||
std::string CreateApplicationRequest::getPackageUrl() const {
|
||||
return packageUrl_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPackageUrl(const std::string& packageUrl)
|
||||
{
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter("PackageUrl", packageUrl);
|
||||
void CreateApplicationRequest::setPackageUrl(const std::string &packageUrl) {
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter(std::string("PackageUrl"), packageUrl);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getTerminationGracePeriodSeconds()const
|
||||
{
|
||||
return terminationGracePeriodSeconds_;
|
||||
int CreateApplicationRequest::getTerminationGracePeriodSeconds() const {
|
||||
return terminationGracePeriodSeconds_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
|
||||
{
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
|
||||
void CreateApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds) {
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter(std::string("TerminationGracePeriodSeconds"), std::to_string(terminationGracePeriodSeconds));
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpConfig()const
|
||||
{
|
||||
return phpConfig_;
|
||||
std::string CreateApplicationRequest::getPhpConfig() const {
|
||||
return phpConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpConfig(const std::string& phpConfig)
|
||||
{
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter("PhpConfig", phpConfig);
|
||||
void CreateApplicationRequest::setPhpConfig(const std::string &phpConfig) {
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter(std::string("PhpConfig"), phpConfig);
|
||||
}
|
||||
|
||||
int CreateApplicationRequest::getReplicas()const
|
||||
{
|
||||
return replicas_;
|
||||
int CreateApplicationRequest::getReplicas() const {
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setReplicas(int replicas)
|
||||
{
|
||||
replicas_ = replicas;
|
||||
setParameter("Replicas", std::to_string(replicas));
|
||||
void CreateApplicationRequest::setReplicas(int replicas) {
|
||||
replicas_ = replicas;
|
||||
setParameter(std::string("Replicas"), std::to_string(replicas));
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
std::string CreateApplicationRequest::getCommand() const {
|
||||
return command_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setParameter("Command", command);
|
||||
void CreateApplicationRequest::setCommand(const std::string &command) {
|
||||
command_ = command;
|
||||
setParameter(std::string("Command"), command);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getMountDesc()const
|
||||
{
|
||||
return mountDesc_;
|
||||
std::string CreateApplicationRequest::getMountDesc() const {
|
||||
return mountDesc_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setMountDesc(const std::string& mountDesc)
|
||||
{
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter("MountDesc", mountDesc);
|
||||
void CreateApplicationRequest::setMountDesc(const std::string &mountDesc) {
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter(std::string("MountDesc"), mountDesc);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getJdk()const
|
||||
{
|
||||
return jdk_;
|
||||
std::string CreateApplicationRequest::getJdk() const {
|
||||
return jdk_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setJdk(const std::string& jdk)
|
||||
{
|
||||
jdk_ = jdk;
|
||||
setParameter("Jdk", jdk);
|
||||
void CreateApplicationRequest::setJdk(const std::string &jdk) {
|
||||
jdk_ = jdk;
|
||||
setParameter(std::string("Jdk"), jdk);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAppDescription()const
|
||||
{
|
||||
return appDescription_;
|
||||
std::string CreateApplicationRequest::getAppDescription() const {
|
||||
return appDescription_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAppDescription(const std::string& appDescription)
|
||||
{
|
||||
appDescription_ = appDescription;
|
||||
setParameter("AppDescription", appDescription);
|
||||
void CreateApplicationRequest::setAppDescription(const std::string &appDescription) {
|
||||
appDescription_ = appDescription;
|
||||
setParameter(std::string("AppDescription"), appDescription);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getKafkaLogfileConfig()const
|
||||
{
|
||||
return kafkaLogfileConfig_;
|
||||
std::string CreateApplicationRequest::getKafkaLogfileConfig() const {
|
||||
return kafkaLogfileConfig_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setKafkaLogfileConfig(const std::string& kafkaLogfileConfig)
|
||||
{
|
||||
kafkaLogfileConfig_ = kafkaLogfileConfig;
|
||||
setParameter("KafkaLogfileConfig", kafkaLogfileConfig);
|
||||
void CreateApplicationRequest::setKafkaLogfileConfig(const std::string &kafkaLogfileConfig) {
|
||||
kafkaLogfileConfig_ = kafkaLogfileConfig;
|
||||
setParameter(std::string("KafkaLogfileConfig"), kafkaLogfileConfig);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getAcrInstanceId()const
|
||||
{
|
||||
return acrInstanceId_;
|
||||
std::string CreateApplicationRequest::getAcrInstanceId() const {
|
||||
return acrInstanceId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setAcrInstanceId(const std::string& acrInstanceId)
|
||||
{
|
||||
acrInstanceId_ = acrInstanceId;
|
||||
setBodyParameter("AcrInstanceId", acrInstanceId);
|
||||
void CreateApplicationRequest::setAcrInstanceId(const std::string &acrInstanceId) {
|
||||
acrInstanceId_ = acrInstanceId;
|
||||
setBodyParameter(std::string("AcrInstanceId"), acrInstanceId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getVpcId()const
|
||||
{
|
||||
return vpcId_;
|
||||
std::string CreateApplicationRequest::getVpcId() const {
|
||||
return vpcId_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setVpcId(const std::string& vpcId)
|
||||
{
|
||||
vpcId_ = vpcId;
|
||||
setParameter("VpcId", vpcId);
|
||||
void CreateApplicationRequest::setVpcId(const std::string &vpcId) {
|
||||
vpcId_ = vpcId;
|
||||
setParameter(std::string("VpcId"), vpcId);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
std::string CreateApplicationRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter("ImageUrl", imageUrl);
|
||||
void CreateApplicationRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhp()const
|
||||
{
|
||||
return php_;
|
||||
std::string CreateApplicationRequest::getPhp() const {
|
||||
return php_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhp(const std::string& php)
|
||||
{
|
||||
php_ = php;
|
||||
setBodyParameter("Php", php);
|
||||
void CreateApplicationRequest::setPhp(const std::string &php) {
|
||||
php_ = php;
|
||||
setBodyParameter(std::string("Php"), php);
|
||||
}
|
||||
|
||||
std::string CreateApplicationRequest::getPhpConfigLocation()const
|
||||
{
|
||||
return phpConfigLocation_;
|
||||
std::string CreateApplicationRequest::getPhpConfigLocation() const {
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
void CreateApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
|
||||
{
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter("PhpConfigLocation", phpConfigLocation);
|
||||
void CreateApplicationRequest::setPhpConfigLocation(const std::string &phpConfigLocation) {
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter(std::string("PhpConfigLocation"), phpConfigLocation);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,118 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateApplicationScalingRuleRequest;
|
||||
|
||||
CreateApplicationScalingRuleRequest::CreateApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRule");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateApplicationScalingRuleRequest::~CreateApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateApplicationScalingRuleRequest;
|
||||
|
||||
CreateApplicationScalingRuleRequest::CreateApplicationScalingRuleRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRule"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
CreateApplicationScalingRuleRequest::~CreateApplicationScalingRuleRequest() {}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleName() const {
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
int CreateApplicationScalingRuleRequest::getMinReadyInstances()const
|
||||
{
|
||||
return minReadyInstances_;
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleName(const std::string &scalingRuleName) {
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter(std::string("ScalingRuleName"), scalingRuleName);
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
int CreateApplicationScalingRuleRequest::getMinReadyInstances() const {
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
bool CreateApplicationScalingRuleRequest::getScalingRuleEnable()const
|
||||
{
|
||||
return scalingRuleEnable_;
|
||||
void CreateApplicationScalingRuleRequest::setMinReadyInstances(int minReadyInstances) {
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter(std::string("MinReadyInstances"), std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleEnable(bool scalingRuleEnable)
|
||||
{
|
||||
scalingRuleEnable_ = scalingRuleEnable;
|
||||
setParameter("ScalingRuleEnable", scalingRuleEnable ? "true" : "false");
|
||||
bool CreateApplicationScalingRuleRequest::getScalingRuleEnable() const {
|
||||
return scalingRuleEnable_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleTimer()const
|
||||
{
|
||||
return scalingRuleTimer_;
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleEnable(bool scalingRuleEnable) {
|
||||
scalingRuleEnable_ = scalingRuleEnable;
|
||||
setParameter(std::string("ScalingRuleEnable"), scalingRuleEnable ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleTimer(const std::string& scalingRuleTimer)
|
||||
{
|
||||
scalingRuleTimer_ = scalingRuleTimer;
|
||||
setParameter("ScalingRuleTimer", scalingRuleTimer);
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleTimer() const {
|
||||
return scalingRuleTimer_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleMetric()const
|
||||
{
|
||||
return scalingRuleMetric_;
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleTimer(const std::string &scalingRuleTimer) {
|
||||
scalingRuleTimer_ = scalingRuleTimer;
|
||||
setParameter(std::string("ScalingRuleTimer"), scalingRuleTimer);
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleMetric(const std::string& scalingRuleMetric)
|
||||
{
|
||||
scalingRuleMetric_ = scalingRuleMetric;
|
||||
setParameter("ScalingRuleMetric", scalingRuleMetric);
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleMetric() const {
|
||||
return scalingRuleMetric_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleMetric(const std::string &scalingRuleMetric) {
|
||||
scalingRuleMetric_ = scalingRuleMetric;
|
||||
setParameter(std::string("ScalingRuleMetric"), scalingRuleMetric);
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string CreateApplicationScalingRuleRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int CreateApplicationScalingRuleRequest::getMinReadyInstanceRatio()const
|
||||
{
|
||||
return minReadyInstanceRatio_;
|
||||
void CreateApplicationScalingRuleRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio)
|
||||
{
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter("MinReadyInstanceRatio", std::to_string(minReadyInstanceRatio));
|
||||
int CreateApplicationScalingRuleRequest::getMinReadyInstanceRatio() const {
|
||||
return minReadyInstanceRatio_;
|
||||
}
|
||||
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleType()const
|
||||
{
|
||||
return scalingRuleType_;
|
||||
void CreateApplicationScalingRuleRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio) {
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter(std::string("MinReadyInstanceRatio"), std::to_string(minReadyInstanceRatio));
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleType(const std::string& scalingRuleType)
|
||||
{
|
||||
scalingRuleType_ = scalingRuleType;
|
||||
setParameter("ScalingRuleType", scalingRuleType);
|
||||
std::string CreateApplicationScalingRuleRequest::getScalingRuleType() const {
|
||||
return scalingRuleType_;
|
||||
}
|
||||
|
||||
void CreateApplicationScalingRuleRequest::setScalingRuleType(const std::string &scalingRuleType) {
|
||||
scalingRuleType_ = scalingRuleType;
|
||||
setParameter(std::string("ScalingRuleType"), scalingRuleType);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,74 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setData(const std::string& data)
|
||||
{
|
||||
data_ = data;
|
||||
setBodyParameter("Data", data);
|
||||
CreateConfigMapRequest::~CreateConfigMapRequest() {}
|
||||
|
||||
std::string CreateConfigMapRequest::getData() const {
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateConfigMapRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void CreateConfigMapRequest::setData(const std::string &data) {
|
||||
data_ = data;
|
||||
setBodyParameter(std::string("Data"), data);
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string CreateConfigMapRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateConfigMapRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateConfigMapRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreateConfigMapRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateConfigMapRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateConfigMapRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateConfigMapRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateConfigMapRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,85 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateGreyTagRouteRequest;
|
||||
|
||||
CreateGreyTagRouteRequest::CreateGreyTagRouteRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRoute");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateGreyTagRouteRequest::~CreateGreyTagRouteRequest()
|
||||
{}
|
||||
|
||||
std::string CreateGreyTagRouteRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/CreateGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::CreateGreyTagRouteRequest;
|
||||
|
||||
CreateGreyTagRouteRequest::CreateGreyTagRouteRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRoute"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateGreyTagRouteRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
CreateGreyTagRouteRequest::~CreateGreyTagRouteRequest() {}
|
||||
|
||||
std::string CreateGreyTagRouteRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string CreateGreyTagRouteRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
void CreateGreyTagRouteRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void CreateGreyTagRouteRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
std::string CreateGreyTagRouteRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
std::string CreateGreyTagRouteRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateGreyTagRouteRequest::setName(const std::string &name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("Name"), name);
|
||||
}
|
||||
|
||||
void CreateGreyTagRouteRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateGreyTagRouteRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateGreyTagRouteRequest::getDubboRules()const
|
||||
{
|
||||
return dubboRules_;
|
||||
void CreateGreyTagRouteRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateGreyTagRouteRequest::setDubboRules(const std::string& dubboRules)
|
||||
{
|
||||
dubboRules_ = dubboRules;
|
||||
setParameter("DubboRules", dubboRules);
|
||||
std::string CreateGreyTagRouteRequest::getDubboRules() const {
|
||||
return dubboRules_;
|
||||
}
|
||||
|
||||
std::string CreateGreyTagRouteRequest::getScRules()const
|
||||
{
|
||||
return scRules_;
|
||||
void CreateGreyTagRouteRequest::setDubboRules(const std::string &dubboRules) {
|
||||
dubboRules_ = dubboRules;
|
||||
setParameter(std::string("DubboRules"), dubboRules);
|
||||
}
|
||||
|
||||
void CreateGreyTagRouteRequest::setScRules(const std::string& scRules)
|
||||
{
|
||||
scRules_ = scRules;
|
||||
setParameter("ScRules", scRules);
|
||||
std::string CreateGreyTagRouteRequest::getScRules() const {
|
||||
return scRules_;
|
||||
}
|
||||
|
||||
void CreateGreyTagRouteRequest::setScRules(const std::string &scRules) {
|
||||
scRules_ = scRules;
|
||||
setParameter(std::string("ScRules"), scRules);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,107 +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/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setListenerPort(int listenerPort)
|
||||
{
|
||||
listenerPort_ = listenerPort;
|
||||
setParameter("ListenerPort", std::to_string(listenerPort));
|
||||
CreateIngressRequest::~CreateIngressRequest() {}
|
||||
|
||||
int CreateIngressRequest::getListenerPort() const {
|
||||
return listenerPort_;
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getSlbId()const
|
||||
{
|
||||
return slbId_;
|
||||
void CreateIngressRequest::setListenerPort(int listenerPort) {
|
||||
listenerPort_ = listenerPort;
|
||||
setParameter(std::string("ListenerPort"), std::to_string(listenerPort));
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setSlbId(const std::string& slbId)
|
||||
{
|
||||
slbId_ = slbId;
|
||||
setParameter("SlbId", slbId);
|
||||
std::string CreateIngressRequest::getSlbId() const {
|
||||
return slbId_;
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void CreateIngressRequest::setSlbId(const std::string &slbId) {
|
||||
slbId_ = slbId;
|
||||
setParameter(std::string("SlbId"), slbId);
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string CreateIngressRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
void CreateIngressRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
std::string CreateIngressRequest::getDescription() const {
|
||||
return description_;
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getRules()const
|
||||
{
|
||||
return rules_;
|
||||
void CreateIngressRequest::setDescription(const std::string &description) {
|
||||
description_ = description;
|
||||
setParameter(std::string("Description"), description);
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setRules(const std::string& rules)
|
||||
{
|
||||
rules_ = rules;
|
||||
setBodyParameter("Rules", rules);
|
||||
std::string CreateIngressRequest::getLoadBalanceType() const {
|
||||
return loadBalanceType_;
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getCertId()const
|
||||
{
|
||||
return certId_;
|
||||
void CreateIngressRequest::setLoadBalanceType(const std::string &loadBalanceType) {
|
||||
loadBalanceType_ = loadBalanceType;
|
||||
setParameter(std::string("LoadBalanceType"), loadBalanceType);
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setCertId(const std::string& certId)
|
||||
{
|
||||
certId_ = certId;
|
||||
setParameter("CertId", certId);
|
||||
std::string CreateIngressRequest::getRules() const {
|
||||
return rules_;
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getDefaultRule()const
|
||||
{
|
||||
return defaultRule_;
|
||||
void CreateIngressRequest::setRules(const std::string &rules) {
|
||||
rules_ = rules;
|
||||
setBodyParameter(std::string("Rules"), rules);
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setDefaultRule(const std::string& defaultRule)
|
||||
{
|
||||
defaultRule_ = defaultRule;
|
||||
setParameter("DefaultRule", defaultRule);
|
||||
std::string CreateIngressRequest::getCertId() const {
|
||||
return certId_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setCertId(const std::string &certId) {
|
||||
certId_ = certId;
|
||||
setParameter(std::string("CertId"), certId);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getListenerProtocol() const {
|
||||
return listenerProtocol_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setListenerProtocol(const std::string &listenerProtocol) {
|
||||
listenerProtocol_ = listenerProtocol;
|
||||
setParameter(std::string("ListenerProtocol"), listenerProtocol);
|
||||
}
|
||||
|
||||
std::string CreateIngressRequest::getDefaultRule() const {
|
||||
return defaultRule_;
|
||||
}
|
||||
|
||||
void CreateIngressRequest::setDefaultRule(const std::string &defaultRule) {
|
||||
defaultRule_ = defaultRule;
|
||||
setParameter(std::string("DefaultRule"), defaultRule);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceName(const std::string& namespaceName)
|
||||
{
|
||||
namespaceName_ = namespaceName;
|
||||
setParameter("NamespaceName", namespaceName);
|
||||
CreateNamespaceRequest::~CreateNamespaceRequest() {}
|
||||
|
||||
std::string CreateNamespaceRequest::getNamespaceName() const {
|
||||
return namespaceName_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceRequest::getNamespaceDescription()const
|
||||
{
|
||||
return namespaceDescription_;
|
||||
void CreateNamespaceRequest::setNamespaceName(const std::string &namespaceName) {
|
||||
namespaceName_ = namespaceName;
|
||||
setParameter(std::string("NamespaceName"), namespaceName);
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceDescription(const std::string& namespaceDescription)
|
||||
{
|
||||
namespaceDescription_ = namespaceDescription;
|
||||
setParameter("NamespaceDescription", namespaceDescription);
|
||||
std::string CreateNamespaceRequest::getNamespaceDescription() const {
|
||||
return namespaceDescription_;
|
||||
}
|
||||
|
||||
std::string CreateNamespaceRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void CreateNamespaceRequest::setNamespaceDescription(const std::string &namespaceDescription) {
|
||||
namespaceDescription_ = namespaceDescription;
|
||||
setParameter(std::string("NamespaceDescription"), namespaceDescription);
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string CreateNamespaceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void CreateNamespaceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DeleteApplicationRequest::~DeleteApplicationRequest() {}
|
||||
|
||||
std::string DeleteApplicationRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,16 +42,16 @@ void DeleteApplicationResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteApplicationScalingRuleRequest;
|
||||
|
||||
DeleteApplicationScalingRuleRequest::DeleteApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRule");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteApplicationScalingRuleRequest::~DeleteApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteApplicationScalingRuleRequest;
|
||||
|
||||
DeleteApplicationScalingRuleRequest::DeleteApplicationScalingRuleRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRule"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
DeleteApplicationScalingRuleRequest::~DeleteApplicationScalingRuleRequest() {}
|
||||
|
||||
std::string DeleteApplicationScalingRuleRequest::getScalingRuleName() const {
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
std::string DeleteApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DeleteApplicationScalingRuleRequest::setScalingRuleName(const std::string &scalingRuleName) {
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter(std::string("ScalingRuleName"), scalingRuleName);
|
||||
}
|
||||
|
||||
void DeleteApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DeleteApplicationScalingRuleRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeleteApplicationScalingRuleRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DeleteConfigMapRequest::setConfigMapId(long configMapId)
|
||||
{
|
||||
configMapId_ = configMapId;
|
||||
setParameter("ConfigMapId", std::to_string(configMapId));
|
||||
DeleteConfigMapRequest::~DeleteConfigMapRequest() {}
|
||||
|
||||
long DeleteConfigMapRequest::getConfigMapId() const {
|
||||
return configMapId_;
|
||||
}
|
||||
|
||||
void DeleteConfigMapRequest::setConfigMapId(long configMapId) {
|
||||
configMapId_ = configMapId;
|
||||
setParameter(std::string("ConfigMapId"), std::to_string(configMapId));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,12 +44,12 @@ void DeleteConfigMapResult::parse(const std::string &payload)
|
||||
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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DeleteGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteGreyTagRouteRequest;
|
||||
|
||||
DeleteGreyTagRouteRequest::DeleteGreyTagRouteRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRoute");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteGreyTagRouteRequest::~DeleteGreyTagRouteRequest()
|
||||
{}
|
||||
|
||||
long DeleteGreyTagRouteRequest::getGreyTagRouteId()const
|
||||
{
|
||||
return greyTagRouteId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DeleteGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DeleteGreyTagRouteRequest;
|
||||
|
||||
DeleteGreyTagRouteRequest::DeleteGreyTagRouteRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRoute"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteGreyTagRouteRequest::setGreyTagRouteId(long greyTagRouteId)
|
||||
{
|
||||
greyTagRouteId_ = greyTagRouteId;
|
||||
setParameter("GreyTagRouteId", std::to_string(greyTagRouteId));
|
||||
DeleteGreyTagRouteRequest::~DeleteGreyTagRouteRequest() {}
|
||||
|
||||
long DeleteGreyTagRouteRequest::getGreyTagRouteId() const {
|
||||
return greyTagRouteId_;
|
||||
}
|
||||
|
||||
void DeleteGreyTagRouteRequest::setGreyTagRouteId(long greyTagRouteId) {
|
||||
greyTagRouteId_ = greyTagRouteId;
|
||||
setParameter(std::string("GreyTagRouteId"), std::to_string(greyTagRouteId));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DeleteIngressRequest::setIngressId(long ingressId)
|
||||
{
|
||||
ingressId_ = ingressId;
|
||||
setParameter("IngressId", std::to_string(ingressId));
|
||||
DeleteIngressRequest::~DeleteIngressRequest() {}
|
||||
|
||||
long DeleteIngressRequest::getIngressId() const {
|
||||
return ingressId_;
|
||||
}
|
||||
|
||||
void DeleteIngressRequest::setIngressId(long ingressId) {
|
||||
ingressId_ = ingressId;
|
||||
setParameter(std::string("IngressId"), std::to_string(ingressId));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
DeleteNamespaceRequest::~DeleteNamespaceRequest() {}
|
||||
|
||||
std::string DeleteNamespaceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DeleteNamespaceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,580 +1,487 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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(std::string("NasId"), nasId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJarStartArgs() const {
|
||||
return jarStartArgs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setNasId(const std::string& nasId)
|
||||
{
|
||||
nasId_ = nasId;
|
||||
setParameter("NasId", nasId);
|
||||
void DeployApplicationRequest::setJarStartArgs(const std::string &jarStartArgs) {
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter(std::string("JarStartArgs"), jarStartArgs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJarStartArgs()const
|
||||
{
|
||||
return jarStartArgs_;
|
||||
std::string DeployApplicationRequest::getOssAkSecret() const {
|
||||
return ossAkSecret_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setJarStartArgs(const std::string& jarStartArgs)
|
||||
{
|
||||
jarStartArgs_ = jarStartArgs;
|
||||
setParameter("JarStartArgs", jarStartArgs);
|
||||
void DeployApplicationRequest::setOssAkSecret(const std::string &ossAkSecret) {
|
||||
ossAkSecret_ = ossAkSecret;
|
||||
setBodyParameter(std::string("OssAkSecret"), ossAkSecret);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getOssAkSecret()const
|
||||
{
|
||||
return ossAkSecret_;
|
||||
std::string DeployApplicationRequest::getMountHost() const {
|
||||
return mountHost_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setOssAkSecret(const std::string& ossAkSecret)
|
||||
{
|
||||
ossAkSecret_ = ossAkSecret;
|
||||
setBodyParameter("OssAkSecret", ossAkSecret);
|
||||
void DeployApplicationRequest::setMountHost(const std::string &mountHost) {
|
||||
mountHost_ = mountHost;
|
||||
setParameter(std::string("MountHost"), mountHost);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getMountHost()const
|
||||
{
|
||||
return mountHost_;
|
||||
int DeployApplicationRequest::getBatchWaitTime() const {
|
||||
return batchWaitTime_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMountHost(const std::string& mountHost)
|
||||
{
|
||||
mountHost_ = mountHost;
|
||||
setParameter("MountHost", mountHost);
|
||||
void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime) {
|
||||
batchWaitTime_ = batchWaitTime;
|
||||
setParameter(std::string("BatchWaitTime"), std::to_string(batchWaitTime));
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getBatchWaitTime()const
|
||||
{
|
||||
return batchWaitTime_;
|
||||
std::string DeployApplicationRequest::getEnvs() const {
|
||||
return envs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setBatchWaitTime(int batchWaitTime)
|
||||
{
|
||||
batchWaitTime_ = batchWaitTime;
|
||||
setParameter("BatchWaitTime", std::to_string(batchWaitTime));
|
||||
void DeployApplicationRequest::setEnvs(const std::string &envs) {
|
||||
envs_ = envs;
|
||||
setParameter(std::string("Envs"), envs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEnvs()const
|
||||
{
|
||||
return envs_;
|
||||
std::string DeployApplicationRequest::getKafkaInstanceId() const {
|
||||
return kafkaInstanceId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEnvs(const std::string& envs)
|
||||
{
|
||||
envs_ = envs;
|
||||
setParameter("Envs", envs);
|
||||
void DeployApplicationRequest::setKafkaInstanceId(const std::string &kafkaInstanceId) {
|
||||
kafkaInstanceId_ = kafkaInstanceId;
|
||||
setParameter(std::string("KafkaInstanceId"), kafkaInstanceId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getKafkaInstanceId()const
|
||||
{
|
||||
return kafkaInstanceId_;
|
||||
std::string DeployApplicationRequest::getPhpPECLExtensions() const {
|
||||
return phpPECLExtensions_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setKafkaInstanceId(const std::string& kafkaInstanceId)
|
||||
{
|
||||
kafkaInstanceId_ = kafkaInstanceId;
|
||||
setParameter("KafkaInstanceId", kafkaInstanceId);
|
||||
void DeployApplicationRequest::setPhpPECLExtensions(const std::string &phpPECLExtensions) {
|
||||
phpPECLExtensions_ = phpPECLExtensions;
|
||||
setBodyParameter(std::string("PhpPECLExtensions"), phpPECLExtensions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpPECLExtensions()const
|
||||
{
|
||||
return phpPECLExtensions_;
|
||||
std::string DeployApplicationRequest::getPhpArmsConfigLocation() const {
|
||||
return phpArmsConfigLocation_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpPECLExtensions(const std::string& phpPECLExtensions)
|
||||
{
|
||||
phpPECLExtensions_ = phpPECLExtensions;
|
||||
setBodyParameter("PhpPECLExtensions", phpPECLExtensions);
|
||||
void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string &phpArmsConfigLocation) {
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter(std::string("PhpArmsConfigLocation"), phpArmsConfigLocation);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpArmsConfigLocation()const
|
||||
{
|
||||
return phpArmsConfigLocation_;
|
||||
std::string DeployApplicationRequest::getCustomHostAlias() const {
|
||||
return customHostAlias_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpArmsConfigLocation(const std::string& phpArmsConfigLocation)
|
||||
{
|
||||
phpArmsConfigLocation_ = phpArmsConfigLocation;
|
||||
setParameter("PhpArmsConfigLocation", phpArmsConfigLocation);
|
||||
void DeployApplicationRequest::setCustomHostAlias(const std::string &customHostAlias) {
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter(std::string("CustomHostAlias"), customHostAlias);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCustomHostAlias()const
|
||||
{
|
||||
return customHostAlias_;
|
||||
std::string DeployApplicationRequest::getJarStartOptions() const {
|
||||
return jarStartOptions_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setCustomHostAlias(const std::string& customHostAlias)
|
||||
{
|
||||
customHostAlias_ = customHostAlias;
|
||||
setParameter("CustomHostAlias", customHostAlias);
|
||||
void DeployApplicationRequest::setJarStartOptions(const std::string &jarStartOptions) {
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter(std::string("JarStartOptions"), jarStartOptions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJarStartOptions()const
|
||||
{
|
||||
return jarStartOptions_;
|
||||
std::string DeployApplicationRequest::getConfigMapMountDesc() const {
|
||||
return configMapMountDesc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setJarStartOptions(const std::string& jarStartOptions)
|
||||
{
|
||||
jarStartOptions_ = jarStartOptions;
|
||||
setParameter("JarStartOptions", jarStartOptions);
|
||||
void DeployApplicationRequest::setConfigMapMountDesc(const std::string &configMapMountDesc) {
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter(std::string("ConfigMapMountDesc"), configMapMountDesc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getConfigMapMountDesc()const
|
||||
{
|
||||
return configMapMountDesc_;
|
||||
std::string DeployApplicationRequest::getOssMountDescs() const {
|
||||
return ossMountDescs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setConfigMapMountDesc(const std::string& configMapMountDesc)
|
||||
{
|
||||
configMapMountDesc_ = configMapMountDesc;
|
||||
setBodyParameter("ConfigMapMountDesc", configMapMountDesc);
|
||||
void DeployApplicationRequest::setOssMountDescs(const std::string &ossMountDescs) {
|
||||
ossMountDescs_ = ossMountDescs;
|
||||
setBodyParameter(std::string("OssMountDescs"), ossMountDescs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getOssMountDescs()const
|
||||
{
|
||||
return ossMountDescs_;
|
||||
std::string DeployApplicationRequest::getKafkaEndpoint() const {
|
||||
return kafkaEndpoint_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setOssMountDescs(const std::string& ossMountDescs)
|
||||
{
|
||||
ossMountDescs_ = ossMountDescs;
|
||||
setBodyParameter("OssMountDescs", ossMountDescs);
|
||||
void DeployApplicationRequest::setKafkaEndpoint(const std::string &kafkaEndpoint) {
|
||||
kafkaEndpoint_ = kafkaEndpoint;
|
||||
setParameter(std::string("KafkaEndpoint"), kafkaEndpoint);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getKafkaEndpoint()const
|
||||
{
|
||||
return kafkaEndpoint_;
|
||||
std::string DeployApplicationRequest::getPreStop() const {
|
||||
return preStop_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setKafkaEndpoint(const std::string& kafkaEndpoint)
|
||||
{
|
||||
kafkaEndpoint_ = kafkaEndpoint;
|
||||
setParameter("KafkaEndpoint", kafkaEndpoint);
|
||||
void DeployApplicationRequest::setPreStop(const std::string &preStop) {
|
||||
preStop_ = preStop;
|
||||
setParameter(std::string("PreStop"), preStop);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPreStop()const
|
||||
{
|
||||
return preStop_;
|
||||
std::string DeployApplicationRequest::getUpdateStrategy() const {
|
||||
return updateStrategy_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPreStop(const std::string& preStop)
|
||||
{
|
||||
preStop_ = preStop;
|
||||
setParameter("PreStop", preStop);
|
||||
void DeployApplicationRequest::setUpdateStrategy(const std::string &updateStrategy) {
|
||||
updateStrategy_ = updateStrategy;
|
||||
setParameter(std::string("UpdateStrategy"), updateStrategy);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getUpdateStrategy()const
|
||||
{
|
||||
return updateStrategy_;
|
||||
std::string DeployApplicationRequest::getChangeOrderDesc() const {
|
||||
return changeOrderDesc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setUpdateStrategy(const std::string& updateStrategy)
|
||||
{
|
||||
updateStrategy_ = updateStrategy;
|
||||
setParameter("UpdateStrategy", updateStrategy);
|
||||
void DeployApplicationRequest::setChangeOrderDesc(const std::string &changeOrderDesc) {
|
||||
changeOrderDesc_ = changeOrderDesc;
|
||||
setParameter(std::string("ChangeOrderDesc"), changeOrderDesc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getChangeOrderDesc()const
|
||||
{
|
||||
return changeOrderDesc_;
|
||||
int DeployApplicationRequest::getMinReadyInstanceRatio() const {
|
||||
return minReadyInstanceRatio_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setChangeOrderDesc(const std::string& changeOrderDesc)
|
||||
{
|
||||
changeOrderDesc_ = changeOrderDesc;
|
||||
setParameter("ChangeOrderDesc", changeOrderDesc);
|
||||
void DeployApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio) {
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter(std::string("MinReadyInstanceRatio"), std::to_string(minReadyInstanceRatio));
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getMinReadyInstanceRatio()const
|
||||
{
|
||||
return minReadyInstanceRatio_;
|
||||
bool DeployApplicationRequest::getAutoEnableApplicationScalingRule() const {
|
||||
return autoEnableApplicationScalingRule_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio)
|
||||
{
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter("MinReadyInstanceRatio", std::to_string(minReadyInstanceRatio));
|
||||
void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule) {
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter(std::string("AutoEnableApplicationScalingRule"), autoEnableApplicationScalingRule ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getAutoEnableApplicationScalingRule()const
|
||||
{
|
||||
return autoEnableApplicationScalingRule_;
|
||||
std::string DeployApplicationRequest::getPostStart() const {
|
||||
return postStart_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule)
|
||||
{
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false");
|
||||
void DeployApplicationRequest::setPostStart(const std::string &postStart) {
|
||||
postStart_ = postStart;
|
||||
setParameter(std::string("PostStart"), postStart);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPostStart()const
|
||||
{
|
||||
return postStart_;
|
||||
std::string DeployApplicationRequest::getPhpExtensions() const {
|
||||
return phpExtensions_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPostStart(const std::string& postStart)
|
||||
{
|
||||
postStart_ = postStart;
|
||||
setParameter("PostStart", postStart);
|
||||
void DeployApplicationRequest::setPhpExtensions(const std::string &phpExtensions) {
|
||||
phpExtensions_ = phpExtensions;
|
||||
setBodyParameter(std::string("PhpExtensions"), phpExtensions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpExtensions()const
|
||||
{
|
||||
return phpExtensions_;
|
||||
bool DeployApplicationRequest::getAssociateEip() const {
|
||||
return associateEip_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpExtensions(const std::string& phpExtensions)
|
||||
{
|
||||
phpExtensions_ = phpExtensions;
|
||||
setBodyParameter("PhpExtensions", phpExtensions);
|
||||
void DeployApplicationRequest::setAssociateEip(bool associateEip) {
|
||||
associateEip_ = associateEip;
|
||||
setBodyParameter(std::string("AssociateEip"), associateEip ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getAssociateEip()const
|
||||
{
|
||||
return associateEip_;
|
||||
std::string DeployApplicationRequest::getWebContainer() const {
|
||||
return webContainer_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAssociateEip(bool associateEip)
|
||||
{
|
||||
associateEip_ = associateEip;
|
||||
setBodyParameter("AssociateEip", associateEip ? "true" : "false");
|
||||
void DeployApplicationRequest::setWebContainer(const std::string &webContainer) {
|
||||
webContainer_ = webContainer;
|
||||
setParameter(std::string("WebContainer"), webContainer);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getWebContainer()const
|
||||
{
|
||||
return webContainer_;
|
||||
std::string DeployApplicationRequest::getEnableAhas() const {
|
||||
return enableAhas_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setWebContainer(const std::string& webContainer)
|
||||
{
|
||||
webContainer_ = webContainer;
|
||||
setParameter("WebContainer", webContainer);
|
||||
void DeployApplicationRequest::setEnableAhas(const std::string &enableAhas) {
|
||||
enableAhas_ = enableAhas;
|
||||
setParameter(std::string("EnableAhas"), enableAhas);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEnableAhas()const
|
||||
{
|
||||
return enableAhas_;
|
||||
std::string DeployApplicationRequest::getSlsConfigs() const {
|
||||
return slsConfigs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEnableAhas(const std::string& enableAhas)
|
||||
{
|
||||
enableAhas_ = enableAhas;
|
||||
setParameter("EnableAhas", enableAhas);
|
||||
void DeployApplicationRequest::setSlsConfigs(const std::string &slsConfigs) {
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter(std::string("SlsConfigs"), slsConfigs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getSlsConfigs()const
|
||||
{
|
||||
return slsConfigs_;
|
||||
std::string DeployApplicationRequest::getKafkaConfigs() const {
|
||||
return kafkaConfigs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setSlsConfigs(const std::string& slsConfigs)
|
||||
{
|
||||
slsConfigs_ = slsConfigs;
|
||||
setParameter("SlsConfigs", slsConfigs);
|
||||
void DeployApplicationRequest::setKafkaConfigs(const std::string &kafkaConfigs) {
|
||||
kafkaConfigs_ = kafkaConfigs;
|
||||
setParameter(std::string("KafkaConfigs"), kafkaConfigs);
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getOpenCollectToKafka()const
|
||||
{
|
||||
return openCollectToKafka_;
|
||||
bool DeployApplicationRequest::getOpenCollectToKafka() const {
|
||||
return openCollectToKafka_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka)
|
||||
{
|
||||
openCollectToKafka_ = openCollectToKafka;
|
||||
setParameter("OpenCollectToKafka", openCollectToKafka ? "true" : "false");
|
||||
void DeployApplicationRequest::setOpenCollectToKafka(bool openCollectToKafka) {
|
||||
openCollectToKafka_ = openCollectToKafka;
|
||||
setParameter(std::string("OpenCollectToKafka"), openCollectToKafka ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCommandArgs()const
|
||||
{
|
||||
return commandArgs_;
|
||||
std::string DeployApplicationRequest::getCommandArgs() const {
|
||||
return commandArgs_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setCommandArgs(const std::string& commandArgs)
|
||||
{
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter("CommandArgs", commandArgs);
|
||||
void DeployApplicationRequest::setCommandArgs(const std::string &commandArgs) {
|
||||
commandArgs_ = commandArgs;
|
||||
setParameter(std::string("CommandArgs"), commandArgs);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getAcrAssumeRoleArn()const
|
||||
{
|
||||
return acrAssumeRoleArn_;
|
||||
std::string DeployApplicationRequest::getAcrAssumeRoleArn() const {
|
||||
return acrAssumeRoleArn_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAcrAssumeRoleArn(const std::string& acrAssumeRoleArn)
|
||||
{
|
||||
acrAssumeRoleArn_ = acrAssumeRoleArn;
|
||||
setParameter("AcrAssumeRoleArn", acrAssumeRoleArn);
|
||||
void DeployApplicationRequest::setAcrAssumeRoleArn(const std::string &acrAssumeRoleArn) {
|
||||
acrAssumeRoleArn_ = acrAssumeRoleArn;
|
||||
setParameter(std::string("AcrAssumeRoleArn"), acrAssumeRoleArn);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getReadiness()const
|
||||
{
|
||||
return readiness_;
|
||||
std::string DeployApplicationRequest::getReadiness() const {
|
||||
return readiness_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setReadiness(const std::string& readiness)
|
||||
{
|
||||
readiness_ = readiness;
|
||||
setParameter("Readiness", readiness);
|
||||
void DeployApplicationRequest::setReadiness(const std::string &readiness) {
|
||||
readiness_ = readiness;
|
||||
setParameter(std::string("Readiness"), readiness);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getTimezone()const
|
||||
{
|
||||
return timezone_;
|
||||
std::string DeployApplicationRequest::getTimezone() const {
|
||||
return timezone_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setTimezone(const std::string& timezone)
|
||||
{
|
||||
timezone_ = timezone;
|
||||
setParameter("Timezone", timezone);
|
||||
void DeployApplicationRequest::setTimezone(const std::string &timezone) {
|
||||
timezone_ = timezone;
|
||||
setParameter(std::string("Timezone"), timezone);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getOssAkId()const
|
||||
{
|
||||
return ossAkId_;
|
||||
std::string DeployApplicationRequest::getOssAkId() const {
|
||||
return ossAkId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setOssAkId(const std::string& ossAkId)
|
||||
{
|
||||
ossAkId_ = ossAkId;
|
||||
setBodyParameter("OssAkId", ossAkId);
|
||||
void DeployApplicationRequest::setOssAkId(const std::string &ossAkId) {
|
||||
ossAkId_ = ossAkId;
|
||||
setBodyParameter(std::string("OssAkId"), ossAkId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getLiveness()const
|
||||
{
|
||||
return liveness_;
|
||||
std::string DeployApplicationRequest::getLiveness() const {
|
||||
return liveness_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setLiveness(const std::string& liveness)
|
||||
{
|
||||
liveness_ = liveness;
|
||||
setParameter("Liveness", liveness);
|
||||
void DeployApplicationRequest::setLiveness(const std::string &liveness) {
|
||||
liveness_ = liveness;
|
||||
setParameter(std::string("Liveness"), liveness);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPackageVersion()const
|
||||
{
|
||||
return packageVersion_;
|
||||
std::string DeployApplicationRequest::getPackageVersion() const {
|
||||
return packageVersion_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPackageVersion(const std::string& packageVersion)
|
||||
{
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter("PackageVersion", packageVersion);
|
||||
void DeployApplicationRequest::setPackageVersion(const std::string &packageVersion) {
|
||||
packageVersion_ = packageVersion;
|
||||
setParameter(std::string("PackageVersion"), packageVersion);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getTomcatConfig()const
|
||||
{
|
||||
return tomcatConfig_;
|
||||
std::string DeployApplicationRequest::getTomcatConfig() const {
|
||||
return tomcatConfig_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setTomcatConfig(const std::string& tomcatConfig)
|
||||
{
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter("TomcatConfig", tomcatConfig);
|
||||
void DeployApplicationRequest::setTomcatConfig(const std::string &tomcatConfig) {
|
||||
tomcatConfig_ = tomcatConfig;
|
||||
setParameter(std::string("TomcatConfig"), tomcatConfig);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getWarStartOptions()const
|
||||
{
|
||||
return warStartOptions_;
|
||||
std::string DeployApplicationRequest::getWarStartOptions() const {
|
||||
return warStartOptions_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setWarStartOptions(const std::string& warStartOptions)
|
||||
{
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter("WarStartOptions", warStartOptions);
|
||||
void DeployApplicationRequest::setWarStartOptions(const std::string &warStartOptions) {
|
||||
warStartOptions_ = warStartOptions;
|
||||
setParameter(std::string("WarStartOptions"), warStartOptions);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getEdasContainerVersion()const
|
||||
{
|
||||
return edasContainerVersion_;
|
||||
std::string DeployApplicationRequest::getEdasContainerVersion() const {
|
||||
return edasContainerVersion_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEdasContainerVersion(const std::string& edasContainerVersion)
|
||||
{
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter("EdasContainerVersion", edasContainerVersion);
|
||||
void DeployApplicationRequest::setEdasContainerVersion(const std::string &edasContainerVersion) {
|
||||
edasContainerVersion_ = edasContainerVersion;
|
||||
setParameter(std::string("EdasContainerVersion"), edasContainerVersion);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPackageUrl()const
|
||||
{
|
||||
return packageUrl_;
|
||||
std::string DeployApplicationRequest::getPackageUrl() const {
|
||||
return packageUrl_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPackageUrl(const std::string& packageUrl)
|
||||
{
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter("PackageUrl", packageUrl);
|
||||
void DeployApplicationRequest::setPackageUrl(const std::string &packageUrl) {
|
||||
packageUrl_ = packageUrl;
|
||||
setParameter(std::string("PackageUrl"), packageUrl);
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getTerminationGracePeriodSeconds()const
|
||||
{
|
||||
return terminationGracePeriodSeconds_;
|
||||
int DeployApplicationRequest::getTerminationGracePeriodSeconds() const {
|
||||
return terminationGracePeriodSeconds_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds)
|
||||
{
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter("TerminationGracePeriodSeconds", std::to_string(terminationGracePeriodSeconds));
|
||||
void DeployApplicationRequest::setTerminationGracePeriodSeconds(int terminationGracePeriodSeconds) {
|
||||
terminationGracePeriodSeconds_ = terminationGracePeriodSeconds;
|
||||
setParameter(std::string("TerminationGracePeriodSeconds"), std::to_string(terminationGracePeriodSeconds));
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpConfig()const
|
||||
{
|
||||
return phpConfig_;
|
||||
std::string DeployApplicationRequest::getPhpConfig() const {
|
||||
return phpConfig_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpConfig(const std::string& phpConfig)
|
||||
{
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter("PhpConfig", phpConfig);
|
||||
void DeployApplicationRequest::setPhpConfig(const std::string &phpConfig) {
|
||||
phpConfig_ = phpConfig;
|
||||
setBodyParameter(std::string("PhpConfig"), phpConfig);
|
||||
}
|
||||
|
||||
bool DeployApplicationRequest::getEnableGreyTagRoute()const
|
||||
{
|
||||
return enableGreyTagRoute_;
|
||||
bool DeployApplicationRequest::getEnableGreyTagRoute() const {
|
||||
return enableGreyTagRoute_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setEnableGreyTagRoute(bool enableGreyTagRoute)
|
||||
{
|
||||
enableGreyTagRoute_ = enableGreyTagRoute;
|
||||
setParameter("EnableGreyTagRoute", enableGreyTagRoute ? "true" : "false");
|
||||
void DeployApplicationRequest::setEnableGreyTagRoute(bool enableGreyTagRoute) {
|
||||
enableGreyTagRoute_ = enableGreyTagRoute;
|
||||
setParameter(std::string("EnableGreyTagRoute"), enableGreyTagRoute ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getCommand()const
|
||||
{
|
||||
return command_;
|
||||
std::string DeployApplicationRequest::getCommand() const {
|
||||
return command_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setCommand(const std::string& command)
|
||||
{
|
||||
command_ = command;
|
||||
setParameter("Command", command);
|
||||
void DeployApplicationRequest::setCommand(const std::string &command) {
|
||||
command_ = command;
|
||||
setParameter(std::string("Command"), command);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getMountDesc()const
|
||||
{
|
||||
return mountDesc_;
|
||||
std::string DeployApplicationRequest::getMountDesc() const {
|
||||
return mountDesc_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMountDesc(const std::string& mountDesc)
|
||||
{
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter("MountDesc", mountDesc);
|
||||
void DeployApplicationRequest::setMountDesc(const std::string &mountDesc) {
|
||||
mountDesc_ = mountDesc;
|
||||
setParameter(std::string("MountDesc"), mountDesc);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getJdk()const
|
||||
{
|
||||
return jdk_;
|
||||
std::string DeployApplicationRequest::getJdk() const {
|
||||
return jdk_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setJdk(const std::string& jdk)
|
||||
{
|
||||
jdk_ = jdk;
|
||||
setParameter("Jdk", jdk);
|
||||
void DeployApplicationRequest::setJdk(const std::string &jdk) {
|
||||
jdk_ = jdk;
|
||||
setParameter(std::string("Jdk"), jdk);
|
||||
}
|
||||
|
||||
int DeployApplicationRequest::getMinReadyInstances()const
|
||||
{
|
||||
return minReadyInstances_;
|
||||
int DeployApplicationRequest::getMinReadyInstances() const {
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
void DeployApplicationRequest::setMinReadyInstances(int minReadyInstances) {
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter(std::string("MinReadyInstances"), std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getKafkaLogfileConfig()const
|
||||
{
|
||||
return kafkaLogfileConfig_;
|
||||
std::string DeployApplicationRequest::getKafkaLogfileConfig() const {
|
||||
return kafkaLogfileConfig_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setKafkaLogfileConfig(const std::string& kafkaLogfileConfig)
|
||||
{
|
||||
kafkaLogfileConfig_ = kafkaLogfileConfig;
|
||||
setParameter("KafkaLogfileConfig", kafkaLogfileConfig);
|
||||
void DeployApplicationRequest::setKafkaLogfileConfig(const std::string &kafkaLogfileConfig) {
|
||||
kafkaLogfileConfig_ = kafkaLogfileConfig;
|
||||
setParameter(std::string("KafkaLogfileConfig"), kafkaLogfileConfig);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getAcrInstanceId()const
|
||||
{
|
||||
return acrInstanceId_;
|
||||
std::string DeployApplicationRequest::getAcrInstanceId() const {
|
||||
return acrInstanceId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAcrInstanceId(const std::string& acrInstanceId)
|
||||
{
|
||||
acrInstanceId_ = acrInstanceId;
|
||||
setBodyParameter("AcrInstanceId", acrInstanceId);
|
||||
void DeployApplicationRequest::setAcrInstanceId(const std::string &acrInstanceId) {
|
||||
acrInstanceId_ = acrInstanceId;
|
||||
setBodyParameter(std::string("AcrInstanceId"), acrInstanceId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
std::string DeployApplicationRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
void DeployApplicationRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
std::string DeployApplicationRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter("ImageUrl", imageUrl);
|
||||
void DeployApplicationRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhp()const
|
||||
{
|
||||
return php_;
|
||||
std::string DeployApplicationRequest::getPhp() const {
|
||||
return php_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhp(const std::string& php)
|
||||
{
|
||||
php_ = php;
|
||||
setBodyParameter("Php", php);
|
||||
void DeployApplicationRequest::setPhp(const std::string &php) {
|
||||
php_ = php;
|
||||
setBodyParameter(std::string("Php"), php);
|
||||
}
|
||||
|
||||
std::string DeployApplicationRequest::getPhpConfigLocation()const
|
||||
{
|
||||
return phpConfigLocation_;
|
||||
std::string DeployApplicationRequest::getPhpConfigLocation() const {
|
||||
return phpConfigLocation_;
|
||||
}
|
||||
|
||||
void DeployApplicationRequest::setPhpConfigLocation(const std::string& phpConfigLocation)
|
||||
{
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter("PhpConfigLocation", phpConfigLocation);
|
||||
void DeployApplicationRequest::setPhpConfigLocation(const std::string &phpConfigLocation) {
|
||||
phpConfigLocation_ = phpConfigLocation;
|
||||
setParameter(std::string("PhpConfigLocation"), phpConfigLocation);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,85 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeAppServiceDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeAppServiceDetailRequest;
|
||||
|
||||
DescribeAppServiceDetailRequest::DescribeAppServiceDetailRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/service/describeAppServiceDetail");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeAppServiceDetailRequest::~DescribeAppServiceDetailRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAppServiceDetailRequest::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeAppServiceDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeAppServiceDetailRequest;
|
||||
|
||||
DescribeAppServiceDetailRequest::DescribeAppServiceDetailRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/service/describeAppServiceDetail"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeAppServiceDetailRequest::setServiceType(const std::string& serviceType)
|
||||
{
|
||||
serviceType_ = serviceType;
|
||||
setParameter("ServiceType", serviceType);
|
||||
DescribeAppServiceDetailRequest::~DescribeAppServiceDetailRequest() {}
|
||||
|
||||
std::string DescribeAppServiceDetailRequest::getServiceType() const {
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
std::string DescribeAppServiceDetailRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DescribeAppServiceDetailRequest::setServiceType(const std::string &serviceType) {
|
||||
serviceType_ = serviceType;
|
||||
setParameter(std::string("ServiceType"), serviceType);
|
||||
}
|
||||
|
||||
void DescribeAppServiceDetailRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DescribeAppServiceDetailRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string DescribeAppServiceDetailRequest::getServiceVersion()const
|
||||
{
|
||||
return serviceVersion_;
|
||||
void DescribeAppServiceDetailRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void DescribeAppServiceDetailRequest::setServiceVersion(const std::string& serviceVersion)
|
||||
{
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter("ServiceVersion", serviceVersion);
|
||||
std::string DescribeAppServiceDetailRequest::getServiceVersion() const {
|
||||
return serviceVersion_;
|
||||
}
|
||||
|
||||
std::string DescribeAppServiceDetailRequest::getServiceName()const
|
||||
{
|
||||
return serviceName_;
|
||||
void DescribeAppServiceDetailRequest::setServiceVersion(const std::string &serviceVersion) {
|
||||
serviceVersion_ = serviceVersion;
|
||||
setParameter(std::string("ServiceVersion"), serviceVersion);
|
||||
}
|
||||
|
||||
void DescribeAppServiceDetailRequest::setServiceName(const std::string& serviceName)
|
||||
{
|
||||
serviceName_ = serviceName;
|
||||
setParameter("ServiceName", serviceName);
|
||||
std::string DescribeAppServiceDetailRequest::getServiceName() const {
|
||||
return serviceName_;
|
||||
}
|
||||
|
||||
std::string DescribeAppServiceDetailRequest::getServiceGroup()const
|
||||
{
|
||||
return serviceGroup_;
|
||||
void DescribeAppServiceDetailRequest::setServiceName(const std::string &serviceName) {
|
||||
serviceName_ = serviceName;
|
||||
setParameter(std::string("ServiceName"), serviceName);
|
||||
}
|
||||
|
||||
void DescribeAppServiceDetailRequest::setServiceGroup(const std::string& serviceGroup)
|
||||
{
|
||||
serviceGroup_ = serviceGroup;
|
||||
setParameter("ServiceGroup", serviceGroup);
|
||||
std::string DescribeAppServiceDetailRequest::getServiceGroup() const {
|
||||
return serviceGroup_;
|
||||
}
|
||||
|
||||
void DescribeAppServiceDetailRequest::setServiceGroup(const std::string &serviceGroup) {
|
||||
serviceGroup_ = serviceGroup;
|
||||
setParameter(std::string("ServiceGroup"), serviceGroup);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeApplicationConfigRequest::setVersionId(const std::string& versionId)
|
||||
{
|
||||
versionId_ = versionId;
|
||||
setParameter("VersionId", versionId);
|
||||
DescribeApplicationConfigRequest::~DescribeApplicationConfigRequest() {}
|
||||
|
||||
std::string DescribeApplicationConfigRequest::getVersionId() const {
|
||||
return versionId_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationConfigRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DescribeApplicationConfigRequest::setVersionId(const std::string &versionId) {
|
||||
versionId_ = versionId;
|
||||
setParameter(std::string("VersionId"), versionId);
|
||||
}
|
||||
|
||||
void DescribeApplicationConfigRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DescribeApplicationConfigRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationConfigRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -148,6 +148,8 @@ void DescribeApplicationConfigResult::parse(const std::string &payload)
|
||||
data_.associateEip = dataNode["AssociateEip"].asString() == "true";
|
||||
if(!dataNode["KafkaConfigs"].isNull())
|
||||
data_.kafkaConfigs = dataNode["KafkaConfigs"].asString();
|
||||
if(!dataNode["ProgrammingLanguage"].isNull())
|
||||
data_.programmingLanguage = dataNode["ProgrammingLanguage"].asString();
|
||||
auto allConfigMapMountDescNode = dataNode["ConfigMapMountDesc"]["ConfigMapMountDescItem"];
|
||||
for (auto dataNodeConfigMapMountDescConfigMapMountDescItem : allConfigMapMountDescNode)
|
||||
{
|
||||
|
||||
@@ -1,63 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DescribeApplicationGroupsRequest::~DescribeApplicationGroupsRequest() {}
|
||||
|
||||
std::string DescribeApplicationGroupsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int DescribeApplicationGroupsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeApplicationGroupsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeApplicationGroupsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeApplicationGroupsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void DescribeApplicationGroupsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int DescribeApplicationGroupsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeApplicationGroupsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,42 +43,42 @@ void DescribeApplicationGroupsResult::parse(const std::string &payload)
|
||||
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["Jdk"].isNull())
|
||||
dataObject.jdk = valueDataApplicationGroup["Jdk"].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["PackageType"].isNull())
|
||||
dataObject.packageType = valueDataApplicationGroup["PackageType"].asString();
|
||||
if(!valueDataApplicationGroup["PackageVersion"].isNull())
|
||||
dataObject.packageVersion = valueDataApplicationGroup["PackageVersion"].asString();
|
||||
if(!valueDataApplicationGroup["GroupName"].isNull())
|
||||
dataObject.groupName = valueDataApplicationGroup["GroupName"].asString();
|
||||
if(!valueDataApplicationGroup["GroupId"].isNull())
|
||||
dataObject.groupId = valueDataApplicationGroup["GroupId"].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["EdasContainerVersion"].isNull())
|
||||
dataObject.edasContainerVersion = valueDataApplicationGroup["EdasContainerVersion"].asString();
|
||||
if(!valueDataApplicationGroup["RunningInstances"].isNull())
|
||||
dataObject.runningInstances = std::stoi(valueDataApplicationGroup["RunningInstances"].asString());
|
||||
if(!valueDataApplicationGroup["GroupType"].isNull())
|
||||
dataObject.groupType = std::stoi(valueDataApplicationGroup["GroupType"].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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeApplicationImageRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DescribeApplicationImageRequest::~DescribeApplicationImageRequest() {}
|
||||
|
||||
std::string DescribeApplicationImageRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationImageRequest::getImageUrl()const
|
||||
{
|
||||
return imageUrl_;
|
||||
void DescribeApplicationImageRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void DescribeApplicationImageRequest::setImageUrl(const std::string& imageUrl)
|
||||
{
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter("ImageUrl", imageUrl);
|
||||
std::string DescribeApplicationImageRequest::getImageUrl() const {
|
||||
return imageUrl_;
|
||||
}
|
||||
|
||||
void DescribeApplicationImageRequest::setImageUrl(const std::string &imageUrl) {
|
||||
imageUrl_ = imageUrl;
|
||||
setParameter(std::string("ImageUrl"), imageUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void DescribeApplicationImageResult::parse(const std::string &payload)
|
||||
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["Logo"].isNull())
|
||||
data_.logo = dataNode["Logo"].asString();
|
||||
if(!dataNode["RepoOriginType"].isNull())
|
||||
data_.repoOriginType = dataNode["RepoOriginType"].asString();
|
||||
if(!dataNode["CrUrl"].isNull())
|
||||
data_.crUrl = dataNode["CrUrl"].asString();
|
||||
if(!dataNode["RepoTag"].isNull())
|
||||
data_.repoTag = dataNode["RepoTag"].asString();
|
||||
if(!dataNode["RepoType"].isNull())
|
||||
data_.repoType = dataNode["RepoType"].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(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,96 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setJobId(const std::string& jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", jobId);
|
||||
DescribeApplicationInstancesRequest::~DescribeApplicationInstancesRequest() {}
|
||||
|
||||
std::string DescribeApplicationInstancesRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DescribeApplicationInstancesRequest::setJobId(const std::string &jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), jobId);
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DescribeApplicationInstancesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
void DescribeApplicationInstancesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
std::string DescribeApplicationInstancesRequest::getGroupId() const {
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
int DescribeApplicationInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void DescribeApplicationInstancesRequest::setGroupId(const std::string &groupId) {
|
||||
groupId_ = groupId;
|
||||
setParameter(std::string("GroupId"), groupId);
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int DescribeApplicationInstancesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeApplicationInstancesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void DescribeApplicationInstancesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int DescribeApplicationInstancesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
bool DescribeApplicationInstancesRequest::getReverse()const
|
||||
{
|
||||
return reverse_;
|
||||
void DescribeApplicationInstancesRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setParameter("Reverse", reverse ? "true" : "false");
|
||||
bool DescribeApplicationInstancesRequest::getReverse() const {
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
void DescribeApplicationInstancesRequest::setReverse(bool reverse) {
|
||||
reverse_ = reverse;
|
||||
setParameter(std::string("Reverse"), reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationScalingRuleRequest;
|
||||
|
||||
DescribeApplicationScalingRuleRequest::DescribeApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRule");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationScalingRuleRequest::~DescribeApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationScalingRuleRequest;
|
||||
|
||||
DescribeApplicationScalingRuleRequest::DescribeApplicationScalingRuleRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRule"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
DescribeApplicationScalingRuleRequest::~DescribeApplicationScalingRuleRequest() {}
|
||||
|
||||
std::string DescribeApplicationScalingRuleRequest::getScalingRuleName() const {
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
std::string DescribeApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DescribeApplicationScalingRuleRequest::setScalingRuleName(const std::string &scalingRuleName) {
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter(std::string("ScalingRuleName"), scalingRuleName);
|
||||
}
|
||||
|
||||
void DescribeApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DescribeApplicationScalingRuleRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationScalingRuleRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeApplicationScalingRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationScalingRulesRequest;
|
||||
|
||||
DescribeApplicationScalingRulesRequest::DescribeApplicationScalingRulesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRules");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApplicationScalingRulesRequest::~DescribeApplicationScalingRulesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApplicationScalingRulesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeApplicationScalingRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeApplicationScalingRulesRequest;
|
||||
|
||||
DescribeApplicationScalingRulesRequest::DescribeApplicationScalingRulesRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/scale/applicationScalingRules"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeApplicationScalingRulesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DescribeApplicationScalingRulesRequest::~DescribeApplicationScalingRulesRequest() {}
|
||||
|
||||
std::string DescribeApplicationScalingRulesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationScalingRulesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeApplicationSlbsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DescribeApplicationSlbsRequest::~DescribeApplicationSlbsRequest() {}
|
||||
|
||||
std::string DescribeApplicationSlbsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationSlbsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,50 +42,50 @@ void DescribeApplicationSlbsResult::parse(const std::string &payload)
|
||||
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);
|
||||
}
|
||||
if(!dataNode["IntranetIp"].isNull())
|
||||
data_.intranetIp = dataNode["IntranetIp"].asString();
|
||||
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["HttpsCertId"].isNull())
|
||||
intranetItemObject.httpsCertId = dataNodeIntranetIntranetItem["HttpsCertId"].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();
|
||||
if(!dataNodeIntranetIntranetItem["Port"].isNull())
|
||||
intranetItemObject.port = std::stoi(dataNodeIntranetIntranetItem["Port"].asString());
|
||||
data_.intranet.push_back(intranetItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
auto allInternetNode = dataNode["Internet"]["InternetItem"];
|
||||
for (auto dataNodeInternetInternetItem : allInternetNode)
|
||||
{
|
||||
Data::InternetItem internetItemObject;
|
||||
if(!dataNodeInternetInternetItem["HttpsCertId"].isNull())
|
||||
internetItemObject.httpsCertId = dataNodeInternetInternetItem["HttpsCertId"].asString();
|
||||
if(!dataNodeInternetInternetItem["Protocol"].isNull())
|
||||
internetItemObject.protocol = dataNodeInternetInternetItem["Protocol"].asString();
|
||||
if(!dataNodeInternetInternetItem["TargetPort"].isNull())
|
||||
internetItemObject.targetPort = std::stoi(dataNodeInternetInternetItem["TargetPort"].asString());
|
||||
if(!dataNodeInternetInternetItem["Port"].isNull())
|
||||
internetItemObject.port = std::stoi(dataNodeInternetInternetItem["Port"].asString());
|
||||
data_.internet.push_back(internetItemObject);
|
||||
}
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeApplicationStatusRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DescribeApplicationStatusRequest::~DescribeApplicationStatusRequest() {}
|
||||
|
||||
std::string DescribeApplicationStatusRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DescribeApplicationStatusRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeChangeOrderRequest::setChangeOrderId(const std::string& changeOrderId)
|
||||
{
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter("ChangeOrderId", changeOrderId);
|
||||
DescribeChangeOrderRequest::~DescribeChangeOrderRequest() {}
|
||||
|
||||
std::string DescribeChangeOrderRequest::getChangeOrderId() const {
|
||||
return changeOrderId_;
|
||||
}
|
||||
|
||||
void DescribeChangeOrderRequest::setChangeOrderId(const std::string &changeOrderId) {
|
||||
changeOrderId_ = changeOrderId;
|
||||
setParameter(std::string("ChangeOrderId"), changeOrderId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeComponentsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
DescribeComponentsRequest::~DescribeComponentsRequest() {}
|
||||
|
||||
std::string DescribeComponentsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string DescribeComponentsRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
void DescribeComponentsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void DescribeComponentsRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
std::string DescribeComponentsRequest::getType() const {
|
||||
return type_;
|
||||
}
|
||||
|
||||
void DescribeComponentsRequest::setType(const std::string &type) {
|
||||
type_ = type;
|
||||
setParameter(std::string("Type"), type);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void DescribeComponentsResult::parse(const std::string &payload)
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeConfigMapRequest::setConfigMapId(long configMapId)
|
||||
{
|
||||
configMapId_ = configMapId;
|
||||
setParameter("ConfigMapId", std::to_string(configMapId));
|
||||
DescribeConfigMapRequest::~DescribeConfigMapRequest() {}
|
||||
|
||||
long DescribeConfigMapRequest::getConfigMapId() const {
|
||||
return configMapId_;
|
||||
}
|
||||
|
||||
void DescribeConfigMapRequest::setConfigMapId(long configMapId) {
|
||||
configMapId_ = configMapId;
|
||||
setParameter(std::string("ConfigMapId"), std::to_string(configMapId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,38 +40,38 @@ void DescribeConfigMapResult::parse(const std::string &payload)
|
||||
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["UpdateTime"].isNull())
|
||||
data_.updateTime = std::stol(dataNode["UpdateTime"].asString());
|
||||
if(!dataNode["Data"].isNull())
|
||||
data_.data = dataNode["Data"].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());
|
||||
if(!dataNode["ConfigMapId"].isNull())
|
||||
data_.configMapId = std::stol(dataNode["ConfigMapId"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].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();
|
||||
if(!dataNodeRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppObject.appId = dataNodeRelateAppsRelateApp["AppId"].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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeConfigurationPriceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeConfigurationPriceRequest;
|
||||
|
||||
DescribeConfigurationPriceRequest::DescribeConfigurationPriceRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/paas/configurationPrice");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConfigurationPriceRequest::~DescribeConfigurationPriceRequest()
|
||||
{}
|
||||
|
||||
int DescribeConfigurationPriceRequest::getMemory()const
|
||||
{
|
||||
return memory_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeConfigurationPriceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeConfigurationPriceRequest;
|
||||
|
||||
DescribeConfigurationPriceRequest::DescribeConfigurationPriceRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/paas/configurationPrice"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeConfigurationPriceRequest::setMemory(int memory)
|
||||
{
|
||||
memory_ = memory;
|
||||
setParameter("Memory", std::to_string(memory));
|
||||
DescribeConfigurationPriceRequest::~DescribeConfigurationPriceRequest() {}
|
||||
|
||||
int DescribeConfigurationPriceRequest::getMemory() const {
|
||||
return memory_;
|
||||
}
|
||||
|
||||
int DescribeConfigurationPriceRequest::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
void DescribeConfigurationPriceRequest::setMemory(int memory) {
|
||||
memory_ = memory;
|
||||
setParameter(std::string("Memory"), std::to_string(memory));
|
||||
}
|
||||
|
||||
void DescribeConfigurationPriceRequest::setCpu(int cpu)
|
||||
{
|
||||
cpu_ = cpu;
|
||||
setParameter("Cpu", std::to_string(cpu));
|
||||
int DescribeConfigurationPriceRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void DescribeConfigurationPriceRequest::setCpu(int cpu) {
|
||||
cpu_ = cpu;
|
||||
setParameter(std::string("Cpu"), std::to_string(cpu));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#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() {}
|
||||
|
||||
|
||||
@@ -49,16 +49,16 @@ void DescribeEdasContainersResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribeGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeGreyTagRouteRequest;
|
||||
|
||||
DescribeGreyTagRouteRequest::DescribeGreyTagRouteRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRoute");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeGreyTagRouteRequest::~DescribeGreyTagRouteRequest()
|
||||
{}
|
||||
|
||||
long DescribeGreyTagRouteRequest::getGreyTagRouteId()const
|
||||
{
|
||||
return greyTagRouteId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribeGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribeGreyTagRouteRequest;
|
||||
|
||||
DescribeGreyTagRouteRequest::DescribeGreyTagRouteRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRoute"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeGreyTagRouteRequest::setGreyTagRouteId(long greyTagRouteId)
|
||||
{
|
||||
greyTagRouteId_ = greyTagRouteId;
|
||||
setParameter("GreyTagRouteId", std::to_string(greyTagRouteId));
|
||||
DescribeGreyTagRouteRequest::~DescribeGreyTagRouteRequest() {}
|
||||
|
||||
long DescribeGreyTagRouteRequest::getGreyTagRouteId() const {
|
||||
return greyTagRouteId_;
|
||||
}
|
||||
|
||||
void DescribeGreyTagRouteRequest::setGreyTagRouteId(long greyTagRouteId) {
|
||||
greyTagRouteId_ = greyTagRouteId;
|
||||
setParameter(std::string("GreyTagRouteId"), std::to_string(greyTagRouteId));
|
||||
}
|
||||
|
||||
|
||||
@@ -60,24 +60,24 @@ void DescribeGreyTagRouteResult::parse(const std::string &payload)
|
||||
scRuleObject.path = dataNodeScRulesscRule["path"].asString();
|
||||
if(!dataNodeScRulesscRule["condition"].isNull())
|
||||
scRuleObject.condition = dataNodeScRulesscRule["condition"].asString();
|
||||
auto allitemsNode = dataNodeScRulesscRule["items"]["item"];
|
||||
for (auto dataNodeScRulesscRuleitemsitem : allitemsNode)
|
||||
auto allitemsNode = dataNodeScRulesscRule["items"]["Scrulesitem"];
|
||||
for (auto dataNodeScRulesscRuleitemsScrulesitem : allitemsNode)
|
||||
{
|
||||
Data::ScRule::Item itemsObject;
|
||||
if(!dataNodeScRulesscRuleitemsitem["index"].isNull())
|
||||
itemsObject.index = std::stoi(dataNodeScRulesscRuleitemsitem["index"].asString());
|
||||
if(!dataNodeScRulesscRuleitemsitem["expr"].isNull())
|
||||
itemsObject.expr = dataNodeScRulesscRuleitemsitem["expr"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsitem["operator"].isNull())
|
||||
itemsObject._operator = dataNodeScRulesscRuleitemsitem["operator"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsitem["value"].isNull())
|
||||
itemsObject.value = dataNodeScRulesscRuleitemsitem["value"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsitem["cond"].isNull())
|
||||
itemsObject.cond = dataNodeScRulesscRuleitemsitem["cond"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsitem["type"].isNull())
|
||||
itemsObject.type = dataNodeScRulesscRuleitemsitem["type"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsitem["name"].isNull())
|
||||
itemsObject.name = dataNodeScRulesscRuleitemsitem["name"].asString();
|
||||
Data::ScRule::Scrulesitem itemsObject;
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["type"].isNull())
|
||||
itemsObject.type = dataNodeScRulesscRuleitemsScrulesitem["type"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["name"].isNull())
|
||||
itemsObject.name = dataNodeScRulesscRuleitemsScrulesitem["name"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["operator"].isNull())
|
||||
itemsObject._operator = dataNodeScRulesscRuleitemsScrulesitem["operator"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["value"].isNull())
|
||||
itemsObject.value = dataNodeScRulesscRuleitemsScrulesitem["value"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["cond"].isNull())
|
||||
itemsObject.cond = dataNodeScRulesscRuleitemsScrulesitem["cond"].asString();
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["index"].isNull())
|
||||
itemsObject.index = std::stoi(dataNodeScRulesscRuleitemsScrulesitem["index"].asString());
|
||||
if(!dataNodeScRulesscRuleitemsScrulesitem["expr"].isNull())
|
||||
itemsObject.expr = dataNodeScRulesscRuleitemsScrulesitem["expr"].asString();
|
||||
scRuleObject.items.push_back(itemsObject);
|
||||
}
|
||||
data_.scRules.push_back(scRuleObject);
|
||||
@@ -99,7 +99,7 @@ void DescribeGreyTagRouteResult::parse(const std::string &payload)
|
||||
auto allitems1Node = dataNodeDubboRulesdubboRule["items"]["item"];
|
||||
for (auto dataNodeDubboRulesdubboRuleitemsitem : allitems1Node)
|
||||
{
|
||||
Data::DubboRule::Item2 items1Object;
|
||||
Data::DubboRule::Item items1Object;
|
||||
if(!dataNodeDubboRulesdubboRuleitemsitem["index"].isNull())
|
||||
items1Object.index = std::stoi(dataNodeDubboRulesdubboRuleitemsitem["index"].asString());
|
||||
if(!dataNodeDubboRulesdubboRuleitemsitem["expr"].isNull())
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeIngressRequest::setIngressId(long ingressId)
|
||||
{
|
||||
ingressId_ = ingressId;
|
||||
setParameter("IngressId", std::to_string(ingressId));
|
||||
DescribeIngressRequest::~DescribeIngressRequest() {}
|
||||
|
||||
long DescribeIngressRequest::getIngressId() const {
|
||||
return ingressId_;
|
||||
}
|
||||
|
||||
void DescribeIngressRequest::setIngressId(long ingressId) {
|
||||
ingressId_ = ingressId;
|
||||
setParameter(std::string("IngressId"), std::to_string(ingressId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,55 +40,59 @@ void DescribeIngressResult::parse(const std::string &payload)
|
||||
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["SlbId"].isNull())
|
||||
data_.slbId = dataNode["SlbId"].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();
|
||||
if(!dataNode["CertId"].isNull())
|
||||
data_.certId = dataNode["CertId"].asString();
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["LoadBalanceType"].isNull())
|
||||
data_.loadBalanceType = dataNode["LoadBalanceType"].asString();
|
||||
if(!dataNode["ListenerProtocol"].isNull())
|
||||
data_.listenerProtocol = dataNode["ListenerProtocol"].asString();
|
||||
auto allRulesNode = dataNode["Rules"]["Rule"];
|
||||
for (auto dataNodeRulesRule : allRulesNode)
|
||||
{
|
||||
Data::Rule ruleObject;
|
||||
if(!dataNodeRulesRule["AppId"].isNull())
|
||||
ruleObject.appId = dataNodeRulesRule["AppId"].asString();
|
||||
if(!dataNodeRulesRule["AppName"].isNull())
|
||||
ruleObject.appName = dataNodeRulesRule["AppName"].asString();
|
||||
if(!dataNodeRulesRule["ContainerPort"].isNull())
|
||||
ruleObject.containerPort = std::stoi(dataNodeRulesRule["ContainerPort"].asString());
|
||||
if(!dataNodeRulesRule["Domain"].isNull())
|
||||
ruleObject.domain = dataNodeRulesRule["Domain"].asString();
|
||||
if(!dataNodeRulesRule["AppId"].isNull())
|
||||
ruleObject.appId = dataNodeRulesRule["AppId"].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(!defaultRuleNode["AppId"].isNull())
|
||||
data_.defaultRule.appId = defaultRuleNode["AppId"].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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeInstanceLogRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeInstanceLogRequest::~DescribeInstanceLogRequest() {}
|
||||
|
||||
std::string DescribeInstanceLogRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceLogRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,18 +39,18 @@ void DescribeInstanceLogResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#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() {}
|
||||
|
||||
|
||||
@@ -45,28 +45,28 @@ void DescribeInstanceSpecificationsResult::parse(const std::string &payload)
|
||||
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["Version"].isNull())
|
||||
dataObject.version = std::stoi(valueDataDataItem["Version"].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());
|
||||
if(!valueDataDataItem["Id"].isNull())
|
||||
dataObject.id = std::stoi(valueDataDataItem["Id"].asString());
|
||||
if(!valueDataDataItem["Enable"].isNull())
|
||||
dataObject.enable = valueDataDataItem["Enable"].asString() == "true";
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeNamespaceListRequest::setHybridCloudExclude(bool hybridCloudExclude)
|
||||
{
|
||||
hybridCloudExclude_ = hybridCloudExclude;
|
||||
setParameter("HybridCloudExclude", hybridCloudExclude ? "true" : "false");
|
||||
DescribeNamespaceListRequest::~DescribeNamespaceListRequest() {}
|
||||
|
||||
bool DescribeNamespaceListRequest::getHybridCloudExclude() const {
|
||||
return hybridCloudExclude_;
|
||||
}
|
||||
|
||||
bool DescribeNamespaceListRequest::getContainCustom()const
|
||||
{
|
||||
return containCustom_;
|
||||
void DescribeNamespaceListRequest::setHybridCloudExclude(bool hybridCloudExclude) {
|
||||
hybridCloudExclude_ = hybridCloudExclude;
|
||||
setParameter(std::string("HybridCloudExclude"), hybridCloudExclude ? "true" : "false");
|
||||
}
|
||||
|
||||
void DescribeNamespaceListRequest::setContainCustom(bool containCustom)
|
||||
{
|
||||
containCustom_ = containCustom;
|
||||
setParameter("ContainCustom", containCustom ? "true" : "false");
|
||||
bool DescribeNamespaceListRequest::getContainCustom() const {
|
||||
return containCustom_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceListRequest::setContainCustom(bool containCustom) {
|
||||
containCustom_ = containCustom;
|
||||
setParameter(std::string("ContainCustom"), containCustom ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -43,38 +43,38 @@ void DescribeNamespaceListResult::parse(const std::string &payload)
|
||||
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["Custom"].isNull())
|
||||
dataObject.custom = valueDataRegionList["Custom"].asString() == "true";
|
||||
if(!valueDataRegionList["AgentInstall"].isNull())
|
||||
dataObject.agentInstall = valueDataRegionList["AgentInstall"].asString();
|
||||
if(!valueDataRegionList["NamespaceId"].isNull())
|
||||
dataObject.namespaceId = valueDataRegionList["NamespaceId"].asString();
|
||||
if(!valueDataRegionList["HybridCloudEnable"].isNull())
|
||||
dataObject.hybridCloudEnable = valueDataRegionList["HybridCloudEnable"].asString() == "true";
|
||||
if(!valueDataRegionList["SecurityGroupId"].isNull())
|
||||
dataObject.securityGroupId = valueDataRegionList["SecurityGroupId"].asString();
|
||||
if(!valueDataRegionList["Current"].isNull())
|
||||
dataObject.current = valueDataRegionList["Current"].asString() == "true";
|
||||
if(!valueDataRegionList["NamespaceName"].isNull())
|
||||
dataObject.namespaceName = valueDataRegionList["NamespaceName"].asString();
|
||||
if(!valueDataRegionList["RegionId"].isNull())
|
||||
dataObject.regionId = valueDataRegionList["RegionId"].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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
DescribeNamespaceRequest::~DescribeNamespaceRequest() {}
|
||||
|
||||
std::string DescribeNamespaceRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeNamespaceResourcesRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
DescribeNamespaceResourcesRequest::~DescribeNamespaceResourcesRequest() {}
|
||||
|
||||
std::string DescribeNamespaceResourcesRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void DescribeNamespaceResourcesRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,46 +40,48 @@ void DescribeNamespaceResourcesResult::parse(const std::string &payload)
|
||||
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["BelongRegion"].isNull())
|
||||
data_.belongRegion = dataNode["BelongRegion"].asString();
|
||||
if(!dataNode["NamespaceId"].isNull())
|
||||
data_.namespaceId = dataNode["NamespaceId"].asString();
|
||||
if(!dataNode["SecurityGroupId"].isNull())
|
||||
data_.securityGroupId = dataNode["SecurityGroupId"].asString();
|
||||
if(!dataNode["UserId"].isNull())
|
||||
data_.userId = dataNode["UserId"].asString();
|
||||
if(!dataNode["NamespaceName"].isNull())
|
||||
data_.namespaceName = dataNode["NamespaceName"].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["VSwitchId"].isNull())
|
||||
data_.vSwitchId = dataNode["VSwitchId"].asString();
|
||||
if(!dataNode["Description"].isNull())
|
||||
data_.description = dataNode["Description"].asString();
|
||||
if(!dataNode["LastChangeOrderRunning"].isNull())
|
||||
data_.lastChangeOrderRunning = dataNode["LastChangeOrderRunning"].asString() == "true";
|
||||
if(!dataNode["AppCount"].isNull())
|
||||
data_.appCount = std::stol(dataNode["AppCount"].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(!dataNode["TenantId"].isNull())
|
||||
data_.tenantId = dataNode["TenantId"].asString();
|
||||
if(!dataNode["JumpServerAppId"].isNull())
|
||||
data_.jumpServerAppId = dataNode["JumpServerAppId"].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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void DescribeNamespaceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].asString();
|
||||
if(!dataNode["NamespaceDescription"].isNull())
|
||||
data_.namespaceDescription = dataNode["NamespaceDescription"].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(!dataNode["RegionId"].isNull())
|
||||
data_.regionId = dataNode["RegionId"].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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void DescribeNamespacesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
DescribeNamespacesRequest::~DescribeNamespacesRequest() {}
|
||||
|
||||
int DescribeNamespacesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeNamespacesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void DescribeNamespacesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void DescribeNamespacesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int DescribeNamespacesRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeNamespacesRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DescribePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribePipelineRequest;
|
||||
|
||||
DescribePipelineRequest::DescribePipelineRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/changeorder/DescribePipeline");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribePipelineRequest::~DescribePipelineRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePipelineRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DescribePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DescribePipelineRequest;
|
||||
|
||||
DescribePipelineRequest::DescribePipelineRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/changeorder/DescribePipeline"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribePipelineRequest::setPipelineId(const std::string& pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", pipelineId);
|
||||
DescribePipelineRequest::~DescribePipelineRequest() {}
|
||||
|
||||
std::string DescribePipelineRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void DescribePipelineRequest::setPipelineId(const std::string &pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), pipelineId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#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() {}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DisableApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DisableApplicationScalingRuleRequest;
|
||||
|
||||
DisableApplicationScalingRuleRequest::DisableApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/scale/disableApplicationScalingRule");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
DisableApplicationScalingRuleRequest::~DisableApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DisableApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/DisableApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DisableApplicationScalingRuleRequest;
|
||||
|
||||
DisableApplicationScalingRuleRequest::DisableApplicationScalingRuleRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/scale/disableApplicationScalingRule"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
void DisableApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
DisableApplicationScalingRuleRequest::~DisableApplicationScalingRuleRequest() {}
|
||||
|
||||
std::string DisableApplicationScalingRuleRequest::getScalingRuleName() const {
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
std::string DisableApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void DisableApplicationScalingRuleRequest::setScalingRuleName(const std::string &scalingRuleName) {
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter(std::string("ScalingRuleName"), scalingRuleName);
|
||||
}
|
||||
|
||||
void DisableApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string DisableApplicationScalingRuleRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DisableApplicationScalingRuleRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/DownloadFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::DownloadFilesRequest;
|
||||
|
||||
DownloadFilesRequest::DownloadFilesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/downloadFiles");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DownloadFilesRequest::~DownloadFilesRequest()
|
||||
{}
|
||||
|
||||
std::string DownloadFilesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DownloadFilesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DownloadFilesRequest::getLocalpath()const
|
||||
{
|
||||
return localpath_;
|
||||
}
|
||||
|
||||
void DownloadFilesRequest::setLocalpath(const std::string& localpath)
|
||||
{
|
||||
localpath_ = localpath;
|
||||
setParameter("Localpath", localpath);
|
||||
}
|
||||
|
||||
std::string DownloadFilesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void DownloadFilesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/EnableApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::EnableApplicationScalingRuleRequest;
|
||||
|
||||
EnableApplicationScalingRuleRequest::EnableApplicationScalingRuleRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/scale/enableApplicationScalingRule");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
EnableApplicationScalingRuleRequest::~EnableApplicationScalingRuleRequest()
|
||||
{}
|
||||
|
||||
std::string EnableApplicationScalingRuleRequest::getScalingRuleName()const
|
||||
{
|
||||
return scalingRuleName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/EnableApplicationScalingRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::EnableApplicationScalingRuleRequest;
|
||||
|
||||
EnableApplicationScalingRuleRequest::EnableApplicationScalingRuleRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/scale/enableApplicationScalingRule"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
void EnableApplicationScalingRuleRequest::setScalingRuleName(const std::string& scalingRuleName)
|
||||
{
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter("ScalingRuleName", scalingRuleName);
|
||||
EnableApplicationScalingRuleRequest::~EnableApplicationScalingRuleRequest() {}
|
||||
|
||||
std::string EnableApplicationScalingRuleRequest::getScalingRuleName() const {
|
||||
return scalingRuleName_;
|
||||
}
|
||||
|
||||
std::string EnableApplicationScalingRuleRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void EnableApplicationScalingRuleRequest::setScalingRuleName(const std::string &scalingRuleName) {
|
||||
scalingRuleName_ = scalingRuleName;
|
||||
setParameter(std::string("ScalingRuleName"), scalingRuleName);
|
||||
}
|
||||
|
||||
void EnableApplicationScalingRuleRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string EnableApplicationScalingRuleRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void EnableApplicationScalingRuleRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,118 +1,100 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setReason(const std::string& reason)
|
||||
{
|
||||
reason_ = reason;
|
||||
setParameter("Reason", reason);
|
||||
ListAppEventsRequest::~ListAppEventsRequest() {}
|
||||
|
||||
std::string ListAppEventsRequest::getReason() const {
|
||||
return reason_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getObjectKind()const
|
||||
{
|
||||
return objectKind_;
|
||||
void ListAppEventsRequest::setReason(const std::string &reason) {
|
||||
reason_ = reason;
|
||||
setParameter(std::string("Reason"), reason);
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setObjectKind(const std::string& objectKind)
|
||||
{
|
||||
objectKind_ = objectKind;
|
||||
setParameter("ObjectKind", objectKind);
|
||||
std::string ListAppEventsRequest::getObjectKind() const {
|
||||
return objectKind_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void ListAppEventsRequest::setObjectKind(const std::string &objectKind) {
|
||||
objectKind_ = objectKind;
|
||||
setParameter(std::string("ObjectKind"), objectKind);
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string ListAppEventsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int ListAppEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListAppEventsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListAppEventsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getObjectName()const
|
||||
{
|
||||
return objectName_;
|
||||
void ListAppEventsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setObjectName(const std::string& objectName)
|
||||
{
|
||||
objectName_ = objectName;
|
||||
setParameter("ObjectName", objectName);
|
||||
std::string ListAppEventsRequest::getObjectName() const {
|
||||
return objectName_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
void ListAppEventsRequest::setObjectName(const std::string &objectName) {
|
||||
objectName_ = objectName;
|
||||
setParameter(std::string("ObjectName"), objectName);
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
std::string ListAppEventsRequest::get_Namespace() const {
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
int ListAppEventsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void ListAppEventsRequest::set_Namespace(const std::string &_namespace) {
|
||||
_namespace_ = _namespace;
|
||||
setParameter(std::string("Namespace"), _namespace);
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int ListAppEventsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string ListAppEventsRequest::getEventType()const
|
||||
{
|
||||
return eventType_;
|
||||
void ListAppEventsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setEventType(const std::string& eventType)
|
||||
{
|
||||
eventType_ = eventType;
|
||||
setParameter("EventType", eventType);
|
||||
std::string ListAppEventsRequest::getEventType() const {
|
||||
return eventType_;
|
||||
}
|
||||
|
||||
void ListAppEventsRequest::setEventType(const std::string &eventType) {
|
||||
eventType_ = eventType;
|
||||
setParameter(std::string("EventType"), eventType);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,38 +42,38 @@ void ListAppEventsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].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["Message"].isNull())
|
||||
appEventEntityItemObject.message = dataNodeAppEventEntityAppEventEntityItem["Message"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["ObjectName"].isNull())
|
||||
appEventEntityItemObject.objectName = dataNodeAppEventEntityAppEventEntityItem["ObjectName"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["Reason"].isNull())
|
||||
appEventEntityItemObject.reason = dataNodeAppEventEntityAppEventEntityItem["Reason"].asString();
|
||||
if(!dataNodeAppEventEntityAppEventEntityItem["FirstTimestamp"].isNull())
|
||||
appEventEntityItemObject.firstTimestamp = dataNodeAppEventEntityAppEventEntityItem["FirstTimestamp"].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();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,74 +1,64 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ListAppServicesPageRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListAppServicesPageRequest;
|
||||
|
||||
ListAppServicesPageRequest::ListAppServicesPageRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/service/listAppServicesPage");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListAppServicesPageRequest::~ListAppServicesPageRequest()
|
||||
{}
|
||||
|
||||
std::string ListAppServicesPageRequest::getServiceType()const
|
||||
{
|
||||
return serviceType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListAppServicesPageRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListAppServicesPageRequest;
|
||||
|
||||
ListAppServicesPageRequest::ListAppServicesPageRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/service/listAppServicesPage"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListAppServicesPageRequest::setServiceType(const std::string& serviceType)
|
||||
{
|
||||
serviceType_ = serviceType;
|
||||
setParameter("ServiceType", serviceType);
|
||||
ListAppServicesPageRequest::~ListAppServicesPageRequest() {}
|
||||
|
||||
std::string ListAppServicesPageRequest::getServiceType() const {
|
||||
return serviceType_;
|
||||
}
|
||||
|
||||
std::string ListAppServicesPageRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void ListAppServicesPageRequest::setServiceType(const std::string &serviceType) {
|
||||
serviceType_ = serviceType;
|
||||
setParameter(std::string("ServiceType"), serviceType);
|
||||
}
|
||||
|
||||
void ListAppServicesPageRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string ListAppServicesPageRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int ListAppServicesPageRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListAppServicesPageRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void ListAppServicesPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListAppServicesPageRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListAppServicesPageRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void ListAppServicesPageRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListAppServicesPageRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int ListAppServicesPageRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void ListAppServicesPageRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListAppVersionsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
ListAppVersionsRequest::~ListAppVersionsRequest() {}
|
||||
|
||||
std::string ListAppVersionsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListAppVersionsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,26 +43,26 @@ void ListAppVersionsResult::parse(const std::string &payload)
|
||||
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["CreateTime"].isNull())
|
||||
dataObject.createTime = valueDataPackageVersionEntity["CreateTime"].asString();
|
||||
if(!valueDataPackageVersionEntity["BuildPackageUrl"].isNull())
|
||||
dataObject.buildPackageUrl = valueDataPackageVersionEntity["BuildPackageUrl"].asString();
|
||||
if(!valueDataPackageVersionEntity["WarUrl"].isNull())
|
||||
dataObject.warUrl = valueDataPackageVersionEntity["WarUrl"].asString();
|
||||
if(!valueDataPackageVersionEntity["Id"].isNull())
|
||||
dataObject.id = valueDataPackageVersionEntity["Id"].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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,129 +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/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setAppName(const std::string& appName)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
ListApplicationsRequest::~ListApplicationsRequest() {}
|
||||
|
||||
std::string ListApplicationsRequest::getAppName() const {
|
||||
return appName_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void ListApplicationsRequest::setAppName(const std::string &appName) {
|
||||
appName_ = appName;
|
||||
setParameter(std::string("AppName"), appName);
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string ListApplicationsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
int ListApplicationsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListApplicationsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListApplicationsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getOrderBy()const
|
||||
{
|
||||
return orderBy_;
|
||||
void ListApplicationsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setParameter("OrderBy", orderBy);
|
||||
std::string ListApplicationsRequest::getOrderBy() const {
|
||||
return orderBy_;
|
||||
}
|
||||
|
||||
int ListApplicationsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void ListApplicationsRequest::setOrderBy(const std::string &orderBy) {
|
||||
orderBy_ = orderBy;
|
||||
setParameter(std::string("OrderBy"), orderBy);
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int ListApplicationsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getFieldValue()const
|
||||
{
|
||||
return fieldValue_;
|
||||
void ListApplicationsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setFieldValue(const std::string& fieldValue)
|
||||
{
|
||||
fieldValue_ = fieldValue;
|
||||
setParameter("FieldValue", fieldValue);
|
||||
std::string ListApplicationsRequest::getFieldValue() const {
|
||||
return fieldValue_;
|
||||
}
|
||||
|
||||
bool ListApplicationsRequest::getReverse()const
|
||||
{
|
||||
return reverse_;
|
||||
void ListApplicationsRequest::setFieldValue(const std::string &fieldValue) {
|
||||
fieldValue_ = fieldValue;
|
||||
setParameter(std::string("FieldValue"), fieldValue);
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setReverse(bool reverse)
|
||||
{
|
||||
reverse_ = reverse;
|
||||
setParameter("Reverse", reverse ? "true" : "false");
|
||||
bool ListApplicationsRequest::getReverse() const {
|
||||
return reverse_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getFieldType()const
|
||||
{
|
||||
return fieldType_;
|
||||
void ListApplicationsRequest::setReverse(bool reverse) {
|
||||
reverse_ = reverse;
|
||||
setParameter(std::string("Reverse"), reverse ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setFieldType(const std::string& fieldType)
|
||||
{
|
||||
fieldType_ = fieldType;
|
||||
setParameter("FieldType", fieldType);
|
||||
std::string ListApplicationsRequest::getFieldType() const {
|
||||
return fieldType_;
|
||||
}
|
||||
|
||||
std::string ListApplicationsRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListApplicationsRequest::setFieldType(const std::string &fieldType) {
|
||||
fieldType_ = fieldType;
|
||||
setParameter(std::string("FieldType"), fieldType);
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string ListApplicationsRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListApplicationsRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,96 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setCoType(const std::string& coType)
|
||||
{
|
||||
coType_ = coType;
|
||||
setParameter("CoType", coType);
|
||||
ListChangeOrdersRequest::~ListChangeOrdersRequest() {}
|
||||
|
||||
std::string ListChangeOrdersRequest::getCoType() const {
|
||||
return coType_;
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void ListChangeOrdersRequest::setCoType(const std::string &coType) {
|
||||
coType_ = coType;
|
||||
setParameter(std::string("CoType"), coType);
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string ListChangeOrdersRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int ListChangeOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListChangeOrdersRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListChangeOrdersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListChangeOrdersRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void ListChangeOrdersRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int ListChangeOrdersRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersRequest::getCoStatus()const
|
||||
{
|
||||
return coStatus_;
|
||||
void ListChangeOrdersRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setCoStatus(const std::string& coStatus)
|
||||
{
|
||||
coStatus_ = coStatus;
|
||||
setParameter("CoStatus", coStatus);
|
||||
std::string ListChangeOrdersRequest::getCoStatus() const {
|
||||
return coStatus_;
|
||||
}
|
||||
|
||||
std::string ListChangeOrdersRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
void ListChangeOrdersRequest::setCoStatus(const std::string &coStatus) {
|
||||
coStatus_ = coStatus;
|
||||
setParameter(std::string("CoStatus"), coStatus);
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
std::string ListChangeOrdersRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ListChangeOrdersRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,44 +40,44 @@ void ListChangeOrdersResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["CurrentPage"].isNull())
|
||||
data_.currentPage = std::stoi(dataNode["CurrentPage"].asString());
|
||||
if(!dataNode["TotalSize"].isNull())
|
||||
data_.totalSize = std::stoi(dataNode["TotalSize"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allChangeOrderListNode = dataNode["ChangeOrderList"]["ChangeOrder"];
|
||||
for (auto dataNodeChangeOrderListChangeOrder : allChangeOrderListNode)
|
||||
{
|
||||
Data::ChangeOrder changeOrderObject;
|
||||
if(!dataNodeChangeOrderListChangeOrder["Status"].isNull())
|
||||
changeOrderObject.status = std::stoi(dataNodeChangeOrderListChangeOrder["Status"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["Description"].isNull())
|
||||
changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull())
|
||||
changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull())
|
||||
changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull())
|
||||
changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull())
|
||||
changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Source"].isNull())
|
||||
changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull())
|
||||
changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["AppId"].isNull())
|
||||
changeOrderObject.appId = dataNodeChangeOrderListChangeOrder["AppId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull())
|
||||
changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["FinishTime"].isNull())
|
||||
changeOrderObject.finishTime = dataNodeChangeOrderListChangeOrder["FinishTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull())
|
||||
changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["UserId"].isNull())
|
||||
changeOrderObject.userId = dataNodeChangeOrderListChangeOrder["UserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull())
|
||||
changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Source"].isNull())
|
||||
changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchCount"].isNull())
|
||||
changeOrderObject.batchCount = std::stoi(dataNodeChangeOrderListChangeOrder["BatchCount"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull())
|
||||
changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull())
|
||||
changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull())
|
||||
changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull())
|
||||
changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull())
|
||||
changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Description"].isNull())
|
||||
changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull())
|
||||
changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["AppId"].isNull())
|
||||
changeOrderObject.appId = dataNodeChangeOrderListChangeOrder["AppId"].asString();
|
||||
data_.changeOrderList.push_back(changeOrderObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListConsumedServicesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
ListConsumedServicesRequest::~ListConsumedServicesRequest() {}
|
||||
|
||||
std::string ListConsumedServicesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListConsumedServicesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,14 +43,14 @@ void ListConsumedServicesResult::parse(const std::string &payload)
|
||||
for (auto valueDataListConsumedServices : allDataNode)
|
||||
{
|
||||
ListConsumedServices dataObject;
|
||||
if(!valueDataListConsumedServices["Group2Ip"].isNull())
|
||||
dataObject.group2Ip = valueDataListConsumedServices["Group2Ip"].asString();
|
||||
if(!valueDataListConsumedServices["Type"].isNull())
|
||||
dataObject.type = valueDataListConsumedServices["Type"].asString();
|
||||
if(!valueDataListConsumedServices["AppId"].isNull())
|
||||
dataObject.appId = valueDataListConsumedServices["AppId"].asString();
|
||||
if(!valueDataListConsumedServices["Version"].isNull())
|
||||
dataObject.version = valueDataListConsumedServices["Version"].asString();
|
||||
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();
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ListGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListGreyTagRouteRequest;
|
||||
|
||||
ListGreyTagRouteRequest::ListGreyTagRouteRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRouteList");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListGreyTagRouteRequest::~ListGreyTagRouteRequest()
|
||||
{}
|
||||
|
||||
std::string ListGreyTagRouteRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListGreyTagRouteRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListGreyTagRouteRequest;
|
||||
|
||||
ListGreyTagRouteRequest::ListGreyTagRouteRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/tagroute/greyTagRouteList"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListGreyTagRouteRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
ListGreyTagRouteRequest::~ListGreyTagRouteRequest() {}
|
||||
|
||||
std::string ListGreyTagRouteRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListGreyTagRouteRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,26 +40,26 @@ void ListGreyTagRouteResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
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::stol(dataNode["TotalSize"].asString());
|
||||
auto allResultNode = dataNode["Result"]["resultItem"];
|
||||
for (auto dataNodeResultresultItem : allResultNode)
|
||||
{
|
||||
Data::ResultItem resultItemObject;
|
||||
if(!dataNodeResultresultItem["Description"].isNull())
|
||||
resultItemObject.description = dataNodeResultresultItem["Description"].asString();
|
||||
if(!dataNodeResultresultItem["GreyTagRouteId"].isNull())
|
||||
resultItemObject.greyTagRouteId = std::stol(dataNodeResultresultItem["GreyTagRouteId"].asString());
|
||||
if(!dataNodeResultresultItem["Name"].isNull())
|
||||
resultItemObject.name = dataNodeResultresultItem["Name"].asString();
|
||||
if(!dataNodeResultresultItem["Description"].isNull())
|
||||
resultItemObject.description = dataNodeResultresultItem["Description"].asString();
|
||||
if(!dataNodeResultresultItem["CreateTime"].isNull())
|
||||
resultItemObject.createTime = std::stol(dataNodeResultresultItem["CreateTime"].asString());
|
||||
if(!dataNodeResultresultItem["UpdateTime"].isNull())
|
||||
resultItemObject.updateTime = std::stol(dataNodeResultresultItem["UpdateTime"].asString());
|
||||
if(!dataNodeResultresultItem["Name"].isNull())
|
||||
resultItemObject.name = dataNodeResultresultItem["Name"].asString();
|
||||
auto allScRulesNode = dataNodeResultresultItem["ScRules"]["scRule"];
|
||||
for (auto dataNodeResultresultItemScRulesscRule : allScRulesNode)
|
||||
{
|
||||
@@ -72,20 +72,20 @@ void ListGreyTagRouteResult::parse(const std::string &payload)
|
||||
for (auto dataNodeResultresultItemScRulesscRuleitemsitem : allitemsNode)
|
||||
{
|
||||
Data::ResultItem::ScRule::Item itemsObject;
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["type"].isNull())
|
||||
itemsObject.type = dataNodeResultresultItemScRulesscRuleitemsitem["type"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["name"].isNull())
|
||||
itemsObject.name = dataNodeResultresultItemScRulesscRuleitemsitem["name"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["operator"].isNull())
|
||||
itemsObject._operator = dataNodeResultresultItemScRulesscRuleitemsitem["operator"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["value"].isNull())
|
||||
itemsObject.value = dataNodeResultresultItemScRulesscRuleitemsitem["value"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["cond"].isNull())
|
||||
itemsObject.cond = dataNodeResultresultItemScRulesscRuleitemsitem["cond"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["index"].isNull())
|
||||
itemsObject.index = std::stoi(dataNodeResultresultItemScRulesscRuleitemsitem["index"].asString());
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["expr"].isNull())
|
||||
itemsObject.expr = dataNodeResultresultItemScRulesscRuleitemsitem["expr"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["type"].isNull())
|
||||
itemsObject.type = dataNodeResultresultItemScRulesscRuleitemsitem["type"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["cond"].isNull())
|
||||
itemsObject.cond = dataNodeResultresultItemScRulesscRuleitemsitem["cond"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["value"].isNull())
|
||||
itemsObject.value = dataNodeResultresultItemScRulesscRuleitemsitem["value"].asString();
|
||||
if(!dataNodeResultresultItemScRulesscRuleitemsitem["operator"].isNull())
|
||||
itemsObject._operator = dataNodeResultresultItemScRulesscRuleitemsitem["operator"].asString();
|
||||
scRulesObject.items.push_back(itemsObject);
|
||||
}
|
||||
resultItemObject.scRules.push_back(scRulesObject);
|
||||
@@ -94,34 +94,34 @@ void ListGreyTagRouteResult::parse(const std::string &payload)
|
||||
for (auto dataNodeResultresultItemDubboRulesdubboRule : allDubboRulesNode)
|
||||
{
|
||||
Data::ResultItem::DubboRule dubboRulesObject;
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["condition"].isNull())
|
||||
dubboRulesObject.condition = dataNodeResultresultItemDubboRulesdubboRule["condition"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["methodName"].isNull())
|
||||
dubboRulesObject.methodName = dataNodeResultresultItemDubboRulesdubboRule["methodName"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["serviceName"].isNull())
|
||||
dubboRulesObject.serviceName = dataNodeResultresultItemDubboRulesdubboRule["serviceName"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["version"].isNull())
|
||||
dubboRulesObject.version = dataNodeResultresultItemDubboRulesdubboRule["version"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["group"].isNull())
|
||||
dubboRulesObject.group = dataNodeResultresultItemDubboRulesdubboRule["group"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["version"].isNull())
|
||||
dubboRulesObject.version = dataNodeResultresultItemDubboRulesdubboRule["version"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["methodName"].isNull())
|
||||
dubboRulesObject.methodName = dataNodeResultresultItemDubboRulesdubboRule["methodName"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRule["condition"].isNull())
|
||||
dubboRulesObject.condition = dataNodeResultresultItemDubboRulesdubboRule["condition"].asString();
|
||||
auto allitems1Node = dataNodeResultresultItemDubboRulesdubboRule["items"]["item"];
|
||||
for (auto dataNodeResultresultItemDubboRulesdubboRuleitemsitem : allitems1Node)
|
||||
{
|
||||
Data::ResultItem::DubboRule::Item2 items1Object;
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["name"].isNull())
|
||||
items1Object.name = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["name"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["index"].isNull())
|
||||
items1Object.index = std::stoi(dataNodeResultresultItemDubboRulesdubboRuleitemsitem["index"].asString());
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["expr"].isNull())
|
||||
items1Object.expr = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["expr"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["type"].isNull())
|
||||
items1Object.type = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["type"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["cond"].isNull())
|
||||
items1Object.cond = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["cond"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["value"].isNull())
|
||||
items1Object.value = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["value"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["operator"].isNull())
|
||||
items1Object._operator = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["operator"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["value"].isNull())
|
||||
items1Object.value = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["value"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["cond"].isNull())
|
||||
items1Object.cond = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["cond"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["type"].isNull())
|
||||
items1Object.type = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["type"].asString();
|
||||
if(!dataNodeResultresultItemDubboRulesdubboRuleitemsitem["name"].isNull())
|
||||
items1Object.name = dataNodeResultresultItemDubboRulesdubboRuleitemsitem["name"].asString();
|
||||
dubboRulesObject.items1.push_back(items1Object);
|
||||
}
|
||||
resultItemObject.dubboRules.push_back(dubboRulesObject);
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListIngressesRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
ListIngressesRequest::~ListIngressesRequest() {}
|
||||
|
||||
std::string ListIngressesRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
std::string ListIngressesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void ListIngressesRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
void ListIngressesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string ListIngressesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListIngressesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,34 +44,38 @@ void ListIngressesResult::parse(const std::string &payload)
|
||||
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["NamespaceId"].isNull())
|
||||
ingressObject.namespaceId = dataNodeIngressListIngress["NamespaceId"].asString();
|
||||
if(!dataNodeIngressListIngress["Description"].isNull())
|
||||
ingressObject.description = dataNodeIngressListIngress["Description"].asString();
|
||||
if(!dataNodeIngressListIngress["ListenerPort"].isNull())
|
||||
ingressObject.listenerPort = dataNodeIngressListIngress["ListenerPort"].asString();
|
||||
if(!dataNodeIngressListIngress["SlbType"].isNull())
|
||||
ingressObject.slbType = dataNodeIngressListIngress["SlbType"].asString();
|
||||
if(!dataNodeIngressListIngress["CertId"].isNull())
|
||||
ingressObject.certId = dataNodeIngressListIngress["CertId"].asString();
|
||||
if(!dataNodeIngressListIngress["Name"].isNull())
|
||||
ingressObject.name = dataNodeIngressListIngress["Name"].asString();
|
||||
if(!dataNodeIngressListIngress["Id"].isNull())
|
||||
ingressObject.id = std::stol(dataNodeIngressListIngress["Id"].asString());
|
||||
if(!dataNodeIngressListIngress["LoadBalanceType"].isNull())
|
||||
ingressObject.loadBalanceType = dataNodeIngressListIngress["LoadBalanceType"].asString();
|
||||
if(!dataNodeIngressListIngress["ListenerProtocol"].isNull())
|
||||
ingressObject.listenerProtocol = dataNodeIngressListIngress["ListenerProtocol"].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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
ListLogConfigsRequest::~ListLogConfigsRequest() {}
|
||||
|
||||
std::string ListLogConfigsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int ListLogConfigsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListLogConfigsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListLogConfigsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListLogConfigsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void ListLogConfigsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int ListLogConfigsRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void ListLogConfigsRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@ void ListLogConfigsResult::parse(const std::string &payload)
|
||||
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());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
auto allLogConfigsNode = dataNode["LogConfigs"]["LogConfig"];
|
||||
for (auto dataNodeLogConfigsLogConfig : allLogConfigsNode)
|
||||
{
|
||||
@@ -54,30 +54,30 @@ void ListLogConfigsResult::parse(const std::string &payload)
|
||||
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["CreateTime"].isNull())
|
||||
logConfigObject.createTime = dataNodeLogConfigsLogConfig["CreateTime"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["StoreType"].isNull())
|
||||
logConfigObject.storeType = dataNodeLogConfigsLogConfig["StoreType"].asString();
|
||||
if(!dataNodeLogConfigsLogConfig["SlsProject"].isNull())
|
||||
logConfigObject.slsProject = dataNodeLogConfigsLogConfig["SlsProject"].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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,96 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setCoType(const std::string& coType)
|
||||
{
|
||||
coType_ = coType;
|
||||
setParameter("CoType", coType);
|
||||
ListNamespaceChangeOrdersRequest::~ListNamespaceChangeOrdersRequest() {}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getCoType() const {
|
||||
return coType_;
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getNamespaceId()const
|
||||
{
|
||||
return namespaceId_;
|
||||
void ListNamespaceChangeOrdersRequest::setCoType(const std::string &coType) {
|
||||
coType_ = coType;
|
||||
setParameter(std::string("CoType"), coType);
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
std::string ListNamespaceChangeOrdersRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
int ListNamespaceChangeOrdersRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListNamespaceChangeOrdersRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListNamespaceChangeOrdersRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int ListNamespaceChangeOrdersRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
void ListNamespaceChangeOrdersRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
int ListNamespaceChangeOrdersRequest::getCurrentPage() const {
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getCoStatus()const
|
||||
{
|
||||
return coStatus_;
|
||||
void ListNamespaceChangeOrdersRequest::setCurrentPage(int currentPage) {
|
||||
currentPage_ = currentPage;
|
||||
setParameter(std::string("CurrentPage"), std::to_string(currentPage));
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setCoStatus(const std::string& coStatus)
|
||||
{
|
||||
coStatus_ = coStatus;
|
||||
setParameter("CoStatus", coStatus);
|
||||
std::string ListNamespaceChangeOrdersRequest::getCoStatus() const {
|
||||
return coStatus_;
|
||||
}
|
||||
|
||||
std::string ListNamespaceChangeOrdersRequest::getKey()const
|
||||
{
|
||||
return key_;
|
||||
void ListNamespaceChangeOrdersRequest::setCoStatus(const std::string &coStatus) {
|
||||
coStatus_ = coStatus;
|
||||
setParameter(std::string("CoStatus"), coStatus);
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setKey(const std::string& key)
|
||||
{
|
||||
key_ = key;
|
||||
setParameter("Key", key);
|
||||
std::string ListNamespaceChangeOrdersRequest::getKey() const {
|
||||
return key_;
|
||||
}
|
||||
|
||||
void ListNamespaceChangeOrdersRequest::setKey(const std::string &key) {
|
||||
key_ = key;
|
||||
setParameter(std::string("Key"), key);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,48 +50,48 @@ void ListNamespaceChangeOrdersResult::parse(const std::string &payload)
|
||||
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["FinishTime"].isNull())
|
||||
changeOrderObject.finishTime = dataNodeChangeOrderListChangeOrder["FinishTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["NamespaceId"].isNull())
|
||||
changeOrderObject.namespaceId = dataNodeChangeOrderListChangeOrder["NamespaceId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateTime"].isNull())
|
||||
changeOrderObject.createTime = dataNodeChangeOrderListChangeOrder["CreateTime"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["UserId"].isNull())
|
||||
changeOrderObject.userId = dataNodeChangeOrderListChangeOrder["UserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Source"].isNull())
|
||||
changeOrderObject.source = dataNodeChangeOrderListChangeOrder["Source"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CreateUserId"].isNull())
|
||||
changeOrderObject.createUserId = dataNodeChangeOrderListChangeOrder["CreateUserId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchCount"].isNull())
|
||||
changeOrderObject.batchCount = std::stoi(dataNodeChangeOrderListChangeOrder["BatchCount"].asString());
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoTypeCode"].isNull())
|
||||
changeOrderObject.coTypeCode = dataNodeChangeOrderListChangeOrder["CoTypeCode"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["ChangeOrderId"].isNull())
|
||||
changeOrderObject.changeOrderId = dataNodeChangeOrderListChangeOrder["ChangeOrderId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["BatchType"].isNull())
|
||||
changeOrderObject.batchType = dataNodeChangeOrderListChangeOrder["BatchType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Description"].isNull())
|
||||
changeOrderObject.description = dataNodeChangeOrderListChangeOrder["Description"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["GroupId"].isNull())
|
||||
changeOrderObject.groupId = dataNodeChangeOrderListChangeOrder["GroupId"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["CoType"].isNull())
|
||||
changeOrderObject.coType = dataNodeChangeOrderListChangeOrder["CoType"].asString();
|
||||
if(!dataNodeChangeOrderListChangeOrder["Pipelines"].isNull())
|
||||
changeOrderObject.pipelines = dataNodeChangeOrderListChangeOrder["Pipelines"].asString();
|
||||
data_.changeOrderList.push_back(changeOrderObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].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";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListNamespacedConfigMapsRequest::setNamespaceId(const std::string& namespaceId)
|
||||
{
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter("NamespaceId", namespaceId);
|
||||
ListNamespacedConfigMapsRequest::~ListNamespacedConfigMapsRequest() {}
|
||||
|
||||
std::string ListNamespacedConfigMapsRequest::getNamespaceId() const {
|
||||
return namespaceId_;
|
||||
}
|
||||
|
||||
void ListNamespacedConfigMapsRequest::setNamespaceId(const std::string &namespaceId) {
|
||||
namespaceId_ = namespaceId;
|
||||
setParameter(std::string("NamespaceId"), namespaceId);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,40 +44,40 @@ void ListNamespacedConfigMapsResult::parse(const std::string &payload)
|
||||
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["UpdateTime"].isNull())
|
||||
configMapObject.updateTime = std::stol(dataNodeConfigMapsConfigMap["UpdateTime"].asString());
|
||||
if(!dataNodeConfigMapsConfigMap["Data"].isNull())
|
||||
configMapObject.data = dataNodeConfigMapsConfigMap["Data"].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());
|
||||
if(!dataNodeConfigMapsConfigMap["ConfigMapId"].isNull())
|
||||
configMapObject.configMapId = std::stol(dataNodeConfigMapsConfigMap["ConfigMapId"].asString());
|
||||
if(!dataNodeConfigMapsConfigMap["Name"].isNull())
|
||||
configMapObject.name = dataNodeConfigMapsConfigMap["Name"].asString();
|
||||
auto allRelateAppsNode = dataNodeConfigMapsConfigMap["RelateApps"]["RelateApp"];
|
||||
for (auto dataNodeConfigMapsConfigMapRelateAppsRelateApp : allRelateAppsNode)
|
||||
{
|
||||
Data::ConfigMap::RelateApp relateAppsObject;
|
||||
if(!dataNodeConfigMapsConfigMapRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppsObject.appId = dataNodeConfigMapsConfigMapRelateAppsRelateApp["AppId"].asString();
|
||||
if(!dataNodeConfigMapsConfigMapRelateAppsRelateApp["AppName"].isNull())
|
||||
relateAppsObject.appName = dataNodeConfigMapsConfigMapRelateAppsRelateApp["AppName"].asString();
|
||||
if(!dataNodeConfigMapsConfigMapRelateAppsRelateApp["AppId"].isNull())
|
||||
relateAppsObject.appId = dataNodeConfigMapsConfigMapRelateAppsRelateApp["AppId"].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["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void ListPublishedServicesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
ListPublishedServicesRequest::~ListPublishedServicesRequest() {}
|
||||
|
||||
std::string ListPublishedServicesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ListPublishedServicesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,14 +43,14 @@ void ListPublishedServicesResult::parse(const std::string &payload)
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["Group2Ip"].isNull())
|
||||
dataObject.group2Ip = valueDataDataItem["Group2Ip"].asString();
|
||||
if(!valueDataDataItem["Type"].isNull())
|
||||
dataObject.type = valueDataDataItem["Type"].asString();
|
||||
if(!valueDataDataItem["AppId"].isNull())
|
||||
dataObject.appId = valueDataDataItem["AppId"].asString();
|
||||
if(!valueDataDataItem["Version"].isNull())
|
||||
dataObject.version = valueDataDataItem["Version"].asString();
|
||||
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();
|
||||
auto allGroups = value["Groups"]["Group"];
|
||||
|
||||
@@ -1,85 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ListTagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ListTagResourcesRequest;
|
||||
|
||||
ListTagResourcesRequest::ListTagResourcesRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/tags"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
ListTagResourcesRequest::~ListTagResourcesRequest() {}
|
||||
|
||||
std::string ListTagResourcesRequest::getRegionId() const {
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
void ListTagResourcesRequest::setRegionId(const std::string ®ionId) {
|
||||
regionId_ = regionId;
|
||||
setParameter(std::string("RegionId"), regionId);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
std::string ListTagResourcesRequest::getNextToken() const {
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
void ListTagResourcesRequest::setNextToken(const std::string &nextToken) {
|
||||
nextToken_ = nextToken;
|
||||
setParameter(std::string("NextToken"), nextToken);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
std::string ListTagResourcesRequest::getResourceType() const {
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getResourceIds()const
|
||||
{
|
||||
return resourceIds_;
|
||||
void ListTagResourcesRequest::setResourceType(const std::string &resourceType) {
|
||||
resourceType_ = resourceType;
|
||||
setParameter(std::string("ResourceType"), resourceType);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setResourceIds(const std::string& resourceIds)
|
||||
{
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter("ResourceIds", resourceIds);
|
||||
std::string ListTagResourcesRequest::getResourceIds() const {
|
||||
return resourceIds_;
|
||||
}
|
||||
|
||||
std::string ListTagResourcesRequest::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
void ListTagResourcesRequest::setResourceIds(const std::string &resourceIds) {
|
||||
resourceIds_ = resourceIds;
|
||||
setParameter(std::string("ResourceIds"), resourceIds);
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTags(const std::string& tags)
|
||||
{
|
||||
tags_ = tags;
|
||||
setParameter("Tags", tags);
|
||||
std::string ListTagResourcesRequest::getTags() const {
|
||||
return tags_;
|
||||
}
|
||||
|
||||
void ListTagResourcesRequest::setTags(const std::string &tags) {
|
||||
tags_ = tags;
|
||||
setParameter(std::string("Tags"), tags);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,28 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/OpenSaeServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::OpenSaeServiceRequest;
|
||||
|
||||
OpenSaeServiceRequest::OpenSaeServiceRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/service/open");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenSaeServiceRequest::~OpenSaeServiceRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/OpenSaeServiceRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::OpenSaeServiceRequest;
|
||||
|
||||
OpenSaeServiceRequest::OpenSaeServiceRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/service/open"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
OpenSaeServiceRequest::~OpenSaeServiceRequest() {}
|
||||
|
||||
|
||||
@@ -1,41 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void QueryResourceStaticsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
QueryResourceStaticsRequest::~QueryResourceStaticsRequest() {}
|
||||
|
||||
std::string QueryResourceStaticsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void QueryResourceStaticsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/ReduceApplicationCapacityByInstanceIdsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ReduceApplicationCapacityByInstanceIdsRequest;
|
||||
|
||||
ReduceApplicationCapacityByInstanceIdsRequest::ReduceApplicationCapacityByInstanceIdsRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/ScaleInApplicationWithInstanceIds");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
ReduceApplicationCapacityByInstanceIdsRequest::~ReduceApplicationCapacityByInstanceIdsRequest()
|
||||
{}
|
||||
|
||||
std::string ReduceApplicationCapacityByInstanceIdsRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/ReduceApplicationCapacityByInstanceIdsRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::ReduceApplicationCapacityByInstanceIdsRequest;
|
||||
|
||||
ReduceApplicationCapacityByInstanceIdsRequest::ReduceApplicationCapacityByInstanceIdsRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/app/ScaleInApplicationWithInstanceIds"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
void ReduceApplicationCapacityByInstanceIdsRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
ReduceApplicationCapacityByInstanceIdsRequest::~ReduceApplicationCapacityByInstanceIdsRequest() {}
|
||||
|
||||
std::string ReduceApplicationCapacityByInstanceIdsRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
std::string ReduceApplicationCapacityByInstanceIdsRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void ReduceApplicationCapacityByInstanceIdsRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
void ReduceApplicationCapacityByInstanceIdsRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string ReduceApplicationCapacityByInstanceIdsRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void ReduceApplicationCapacityByInstanceIdsRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,85 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
RescaleApplicationRequest::~RescaleApplicationRequest() {}
|
||||
|
||||
int RescaleApplicationRequest::getMinReadyInstances() const {
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
int RescaleApplicationRequest::getReplicas()const
|
||||
{
|
||||
return replicas_;
|
||||
void RescaleApplicationRequest::setMinReadyInstances(int minReadyInstances) {
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter(std::string("MinReadyInstances"), std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setReplicas(int replicas)
|
||||
{
|
||||
replicas_ = replicas;
|
||||
setParameter("Replicas", std::to_string(replicas));
|
||||
int RescaleApplicationRequest::getReplicas() const {
|
||||
return replicas_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void RescaleApplicationRequest::setReplicas(int replicas) {
|
||||
replicas_ = replicas;
|
||||
setParameter(std::string("Replicas"), std::to_string(replicas));
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string RescaleApplicationRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int RescaleApplicationRequest::getMinReadyInstanceRatio()const
|
||||
{
|
||||
return minReadyInstanceRatio_;
|
||||
void RescaleApplicationRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio)
|
||||
{
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter("MinReadyInstanceRatio", std::to_string(minReadyInstanceRatio));
|
||||
int RescaleApplicationRequest::getMinReadyInstanceRatio() const {
|
||||
return minReadyInstanceRatio_;
|
||||
}
|
||||
|
||||
bool RescaleApplicationRequest::getAutoEnableApplicationScalingRule()const
|
||||
{
|
||||
return autoEnableApplicationScalingRule_;
|
||||
void RescaleApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio) {
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter(std::string("MinReadyInstanceRatio"), std::to_string(minReadyInstanceRatio));
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule)
|
||||
{
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter("AutoEnableApplicationScalingRule", autoEnableApplicationScalingRule ? "true" : "false");
|
||||
bool RescaleApplicationRequest::getAutoEnableApplicationScalingRule() const {
|
||||
return autoEnableApplicationScalingRule_;
|
||||
}
|
||||
|
||||
void RescaleApplicationRequest::setAutoEnableApplicationScalingRule(bool autoEnableApplicationScalingRule) {
|
||||
autoEnableApplicationScalingRule_ = autoEnableApplicationScalingRule;
|
||||
setParameter(std::string("AutoEnableApplicationScalingRule"), autoEnableApplicationScalingRule ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setMemory(const std::string& memory)
|
||||
{
|
||||
memory_ = memory;
|
||||
setParameter("Memory", memory);
|
||||
RescaleApplicationVerticallyRequest::~RescaleApplicationVerticallyRequest() {}
|
||||
|
||||
std::string RescaleApplicationVerticallyRequest::getMemory() const {
|
||||
return memory_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void RescaleApplicationVerticallyRequest::setMemory(const std::string &memory) {
|
||||
memory_ = memory;
|
||||
setParameter(std::string("Memory"), memory);
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string RescaleApplicationVerticallyRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
std::string RescaleApplicationVerticallyRequest::getCpu()const
|
||||
{
|
||||
return cpu_;
|
||||
void RescaleApplicationVerticallyRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setCpu(const std::string& cpu)
|
||||
{
|
||||
cpu_ = cpu;
|
||||
setParameter("Cpu", cpu);
|
||||
std::string RescaleApplicationVerticallyRequest::getCpu() const {
|
||||
return cpu_;
|
||||
}
|
||||
|
||||
void RescaleApplicationVerticallyRequest::setCpu(const std::string &cpu) {
|
||||
cpu_ = cpu;
|
||||
setParameter(std::string("Cpu"), cpu);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,16 +42,16 @@ void RescaleApplicationVerticallyResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +1,55 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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_;
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
void RestartApplicationRequest::setMinReadyInstances(int minReadyInstances)
|
||||
{
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter("MinReadyInstances", std::to_string(minReadyInstances));
|
||||
RestartApplicationRequest::~RestartApplicationRequest() {}
|
||||
|
||||
int RestartApplicationRequest::getMinReadyInstances() const {
|
||||
return minReadyInstances_;
|
||||
}
|
||||
|
||||
std::string RestartApplicationRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void RestartApplicationRequest::setMinReadyInstances(int minReadyInstances) {
|
||||
minReadyInstances_ = minReadyInstances;
|
||||
setParameter(std::string("MinReadyInstances"), std::to_string(minReadyInstances));
|
||||
}
|
||||
|
||||
void RestartApplicationRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string RestartApplicationRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
int RestartApplicationRequest::getMinReadyInstanceRatio()const
|
||||
{
|
||||
return minReadyInstanceRatio_;
|
||||
void RestartApplicationRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
void RestartApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio)
|
||||
{
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter("MinReadyInstanceRatio", std::to_string(minReadyInstanceRatio));
|
||||
int RestartApplicationRequest::getMinReadyInstanceRatio() const {
|
||||
return minReadyInstanceRatio_;
|
||||
}
|
||||
|
||||
void RestartApplicationRequest::setMinReadyInstanceRatio(int minReadyInstanceRatio) {
|
||||
minReadyInstanceRatio_ = minReadyInstanceRatio;
|
||||
setParameter(std::string("MinReadyInstanceRatio"), std::to_string(minReadyInstanceRatio));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +1,46 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR 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/RestartInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::RestartInstancesRequest;
|
||||
|
||||
RestartInstancesRequest::RestartInstancesRequest() :
|
||||
RoaServiceRequest("sae", "2019-05-06")
|
||||
{
|
||||
setResourcePath("/pop/v1/sam/app/restartInstances");
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
RestartInstancesRequest::~RestartInstancesRequest()
|
||||
{}
|
||||
|
||||
std::string RestartInstancesRequest::getInstanceIds()const
|
||||
{
|
||||
return instanceIds_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/sae/model/RestartInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Sae::Model::RestartInstancesRequest;
|
||||
|
||||
RestartInstancesRequest::RestartInstancesRequest()
|
||||
: RoaServiceRequest("sae", "2019-05-06") {
|
||||
setResourcePath("/pop/v1/sam/app/restartInstances"};
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
}
|
||||
|
||||
void RestartInstancesRequest::setInstanceIds(const std::string& instanceIds)
|
||||
{
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter("InstanceIds", instanceIds);
|
||||
RestartInstancesRequest::~RestartInstancesRequest() {}
|
||||
|
||||
std::string RestartInstancesRequest::getInstanceIds() const {
|
||||
return instanceIds_;
|
||||
}
|
||||
|
||||
std::string RestartInstancesRequest::getAppId()const
|
||||
{
|
||||
return appId_;
|
||||
void RestartInstancesRequest::setInstanceIds(const std::string &instanceIds) {
|
||||
instanceIds_ = instanceIds;
|
||||
setParameter(std::string("InstanceIds"), instanceIds);
|
||||
}
|
||||
|
||||
void RestartInstancesRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setParameter("AppId", appId);
|
||||
std::string RestartInstancesRequest::getAppId() const {
|
||||
return appId_;
|
||||
}
|
||||
|
||||
void RestartInstancesRequest::setAppId(const std::string &appId) {
|
||||
appId_ = appId;
|
||||
setParameter(std::string("AppId"), appId);
|
||||
}
|
||||
|
||||
|
||||
@@ -42,16 +42,16 @@ void RestartInstancesResult::parse(const std::string &payload)
|
||||
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();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user