Add RenewInstance.
This commit is contained in:
@@ -231,78 +231,6 @@ ElasticsearchClient::CloseHttpsOutcomeCallable ElasticsearchClient::closeHttpsCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ConvertLogstashPayTypeOutcome ElasticsearchClient::convertLogstashPayType(const ConvertLogstashPayTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConvertLogstashPayTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConvertLogstashPayTypeOutcome(ConvertLogstashPayTypeResult(outcome.result()));
|
||||
else
|
||||
return ConvertLogstashPayTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::convertLogstashPayTypeAsync(const ConvertLogstashPayTypeRequest& request, const ConvertLogstashPayTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, convertLogstashPayType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::ConvertLogstashPayTypeOutcomeCallable ElasticsearchClient::convertLogstashPayTypeCallable(const ConvertLogstashPayTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConvertLogstashPayTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->convertLogstashPayType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ConvertPayTypeOutcome ElasticsearchClient::convertPayType(const ConvertPayTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ConvertPayTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ConvertPayTypeOutcome(ConvertPayTypeResult(outcome.result()));
|
||||
else
|
||||
return ConvertPayTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::convertPayTypeAsync(const ConvertPayTypeRequest& request, const ConvertPayTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, convertPayType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::ConvertPayTypeOutcomeCallable ElasticsearchClient::convertPayTypeCallable(const ConvertPayTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ConvertPayTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->convertPayType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::CreateInstanceOutcome ElasticsearchClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1635,6 +1563,78 @@ ElasticsearchClient::OpenHttpsOutcomeCallable ElasticsearchClient::openHttpsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::RenewInstanceOutcome ElasticsearchClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RenewInstanceOutcome(RenewInstanceResult(outcome.result()));
|
||||
else
|
||||
return RenewInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, renewInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::RenewInstanceOutcomeCallable ElasticsearchClient::renewInstanceCallable(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RenewInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->renewInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::RenewLogstashOutcome ElasticsearchClient::renewLogstash(const RenewLogstashRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewLogstashOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RenewLogstashOutcome(RenewLogstashResult(outcome.result()));
|
||||
else
|
||||
return RenewLogstashOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::renewLogstashAsync(const RenewLogstashRequest& request, const RenewLogstashAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, renewLogstash(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::RenewLogstashOutcomeCallable ElasticsearchClient::renewLogstashCallable(const RenewLogstashRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RenewLogstashOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->renewLogstash(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::RestartInstanceOutcome ElasticsearchClient::restartInstance(const RestartInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2319,6 +2319,42 @@ ElasticsearchClient::UpdateInstanceOutcomeCallable ElasticsearchClient::updateIn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateInstanceChargeTypeOutcome ElasticsearchClient::updateInstanceChargeType(const UpdateInstanceChargeTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateInstanceChargeTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateInstanceChargeTypeOutcome(UpdateInstanceChargeTypeResult(outcome.result()));
|
||||
else
|
||||
return UpdateInstanceChargeTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::updateInstanceChargeTypeAsync(const UpdateInstanceChargeTypeRequest& request, const UpdateInstanceChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateInstanceChargeType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateInstanceChargeTypeOutcomeCallable ElasticsearchClient::updateInstanceChargeTypeCallable(const UpdateInstanceChargeTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateInstanceChargeTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateInstanceChargeType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateInstanceSettingsOutcome ElasticsearchClient::updateInstanceSettings(const UpdateInstanceSettingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2463,6 +2499,42 @@ ElasticsearchClient::UpdateLogstashOutcomeCallable ElasticsearchClient::updateLo
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateLogstashChargeTypeOutcome ElasticsearchClient::updateLogstashChargeType(const UpdateLogstashChargeTypeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateLogstashChargeTypeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateLogstashChargeTypeOutcome(UpdateLogstashChargeTypeResult(outcome.result()));
|
||||
else
|
||||
return UpdateLogstashChargeTypeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::updateLogstashChargeTypeAsync(const UpdateLogstashChargeTypeRequest& request, const UpdateLogstashChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateLogstashChargeType(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateLogstashChargeTypeOutcomeCallable ElasticsearchClient::updateLogstashChargeTypeCallable(const UpdateLogstashChargeTypeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateLogstashChargeTypeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateLogstashChargeType(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateLogstashDescriptionOutcome ElasticsearchClient::updateLogstashDescription(const UpdateLogstashDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -14,37 +14,37 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/ConvertPayTypeRequest.h>
|
||||
#include <alibabacloud/elasticsearch/model/RenewInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::ConvertPayTypeRequest;
|
||||
using AlibabaCloud::Elasticsearch::Model::RenewInstanceRequest;
|
||||
|
||||
ConvertPayTypeRequest::ConvertPayTypeRequest() :
|
||||
RenewInstanceRequest::RenewInstanceRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/convert-pay-type");
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/renew");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConvertPayTypeRequest::~ConvertPayTypeRequest()
|
||||
RenewInstanceRequest::~RenewInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string ConvertPayTypeRequest::getInstanceId()const
|
||||
std::string RenewInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ConvertPayTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
void RenewInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ConvertPayTypeRequest::getClientToken()const
|
||||
std::string RenewInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ConvertPayTypeRequest::setClientToken(const std::string& clientToken)
|
||||
void RenewInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/ConvertPayTypeResult.h>
|
||||
#include <alibabacloud/elasticsearch/model/RenewInstanceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
ConvertPayTypeResult::ConvertPayTypeResult() :
|
||||
RenewInstanceResult::RenewInstanceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConvertPayTypeResult::ConvertPayTypeResult(const std::string &payload) :
|
||||
RenewInstanceResult::RenewInstanceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConvertPayTypeResult::~ConvertPayTypeResult()
|
||||
RenewInstanceResult::~RenewInstanceResult()
|
||||
{}
|
||||
|
||||
void ConvertPayTypeResult::parse(const std::string &payload)
|
||||
void RenewInstanceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void ConvertPayTypeResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
bool ConvertPayTypeResult::getResult()const
|
||||
bool RenewInstanceResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
@@ -14,37 +14,37 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/ConvertLogstashPayTypeRequest.h>
|
||||
#include <alibabacloud/elasticsearch/model/RenewLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::ConvertLogstashPayTypeRequest;
|
||||
using AlibabaCloud::Elasticsearch::Model::RenewLogstashRequest;
|
||||
|
||||
ConvertLogstashPayTypeRequest::ConvertLogstashPayTypeRequest() :
|
||||
RenewLogstashRequest::RenewLogstashRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/convert-pay-type");
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/actions/renew");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ConvertLogstashPayTypeRequest::~ConvertLogstashPayTypeRequest()
|
||||
RenewLogstashRequest::~RenewLogstashRequest()
|
||||
{}
|
||||
|
||||
std::string ConvertLogstashPayTypeRequest::getInstanceId()const
|
||||
std::string RenewLogstashRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void ConvertLogstashPayTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
void RenewLogstashRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string ConvertLogstashPayTypeRequest::getClientToken()const
|
||||
std::string RenewLogstashRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ConvertLogstashPayTypeRequest::setClientToken(const std::string& clientToken)
|
||||
void RenewLogstashRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/ConvertLogstashPayTypeResult.h>
|
||||
#include <alibabacloud/elasticsearch/model/RenewLogstashResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
ConvertLogstashPayTypeResult::ConvertLogstashPayTypeResult() :
|
||||
RenewLogstashResult::RenewLogstashResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ConvertLogstashPayTypeResult::ConvertLogstashPayTypeResult(const std::string &payload) :
|
||||
RenewLogstashResult::RenewLogstashResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ConvertLogstashPayTypeResult::~ConvertLogstashPayTypeResult()
|
||||
RenewLogstashResult::~RenewLogstashResult()
|
||||
{}
|
||||
|
||||
void ConvertLogstashPayTypeResult::parse(const std::string &payload)
|
||||
void RenewLogstashResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -44,7 +44,7 @@ void ConvertLogstashPayTypeResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
bool ConvertLogstashPayTypeResult::getResult()const
|
||||
bool RenewLogstashResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
52
elasticsearch/src/model/UpdateInstanceChargeTypeRequest.cc
Normal file
52
elasticsearch/src/model/UpdateInstanceChargeTypeRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::UpdateInstanceChargeTypeRequest;
|
||||
|
||||
UpdateInstanceChargeTypeRequest::UpdateInstanceChargeTypeRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/convert-pay-type");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateInstanceChargeTypeRequest::~UpdateInstanceChargeTypeRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateInstanceChargeTypeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpdateInstanceChargeTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpdateInstanceChargeTypeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateInstanceChargeTypeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
51
elasticsearch/src/model/UpdateInstanceChargeTypeResult.cc
Normal file
51
elasticsearch/src/model/UpdateInstanceChargeTypeResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
UpdateInstanceChargeTypeResult::UpdateInstanceChargeTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateInstanceChargeTypeResult::UpdateInstanceChargeTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateInstanceChargeTypeResult::~UpdateInstanceChargeTypeResult()
|
||||
{}
|
||||
|
||||
void UpdateInstanceChargeTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdateInstanceChargeTypeResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
52
elasticsearch/src/model/UpdateLogstashChargeTypeRequest.cc
Normal file
52
elasticsearch/src/model/UpdateLogstashChargeTypeRequest.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::UpdateLogstashChargeTypeRequest;
|
||||
|
||||
UpdateLogstashChargeTypeRequest::UpdateLogstashChargeTypeRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/actions/convert-pay-type");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateLogstashChargeTypeRequest::~UpdateLogstashChargeTypeRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateLogstashChargeTypeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void UpdateLogstashChargeTypeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string UpdateLogstashChargeTypeRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void UpdateLogstashChargeTypeRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setCoreParameter("ClientToken", clientToken);
|
||||
}
|
||||
|
||||
51
elasticsearch/src/model/UpdateLogstashChargeTypeResult.cc
Normal file
51
elasticsearch/src/model/UpdateLogstashChargeTypeResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
UpdateLogstashChargeTypeResult::UpdateLogstashChargeTypeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateLogstashChargeTypeResult::UpdateLogstashChargeTypeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateLogstashChargeTypeResult::~UpdateLogstashChargeTypeResult()
|
||||
{}
|
||||
|
||||
void UpdateLogstashChargeTypeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Result"].isNull())
|
||||
result_ = value["Result"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdateLogstashChargeTypeResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user