Add RenewInstance.
This commit is contained in:
@@ -31,10 +31,6 @@ set(elasticsearch_public_header_model
|
||||
include/alibabacloud/elasticsearch/model/CancelTaskResult.h
|
||||
include/alibabacloud/elasticsearch/model/CloseHttpsRequest.h
|
||||
include/alibabacloud/elasticsearch/model/CloseHttpsResult.h
|
||||
include/alibabacloud/elasticsearch/model/ConvertLogstashPayTypeRequest.h
|
||||
include/alibabacloud/elasticsearch/model/ConvertLogstashPayTypeResult.h
|
||||
include/alibabacloud/elasticsearch/model/ConvertPayTypeRequest.h
|
||||
include/alibabacloud/elasticsearch/model/ConvertPayTypeResult.h
|
||||
include/alibabacloud/elasticsearch/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/elasticsearch/model/CreateInstanceResult.h
|
||||
include/alibabacloud/elasticsearch/model/CreateLogstashRequest.h
|
||||
@@ -109,6 +105,10 @@ set(elasticsearch_public_header_model
|
||||
include/alibabacloud/elasticsearch/model/MoveResourceGroupResult.h
|
||||
include/alibabacloud/elasticsearch/model/OpenHttpsRequest.h
|
||||
include/alibabacloud/elasticsearch/model/OpenHttpsResult.h
|
||||
include/alibabacloud/elasticsearch/model/RenewInstanceRequest.h
|
||||
include/alibabacloud/elasticsearch/model/RenewInstanceResult.h
|
||||
include/alibabacloud/elasticsearch/model/RenewLogstashRequest.h
|
||||
include/alibabacloud/elasticsearch/model/RenewLogstashResult.h
|
||||
include/alibabacloud/elasticsearch/model/RestartInstanceRequest.h
|
||||
include/alibabacloud/elasticsearch/model/RestartInstanceResult.h
|
||||
include/alibabacloud/elasticsearch/model/RestartLogstashRequest.h
|
||||
@@ -147,6 +147,8 @@ set(elasticsearch_public_header_model
|
||||
include/alibabacloud/elasticsearch/model/UpdateHotIkDictsResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateInstanceRequest.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateInstanceResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeRequest.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateInstanceSettingsRequest.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateInstanceSettingsResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateKibanaSettingsRequest.h
|
||||
@@ -155,6 +157,8 @@ set(elasticsearch_public_header_model
|
||||
include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashRequest.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeRequest.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashDescriptionRequest.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashDescriptionResult.h
|
||||
include/alibabacloud/elasticsearch/model/UpdateLogstashSettingsRequest.h
|
||||
@@ -190,10 +194,6 @@ set(elasticsearch_src
|
||||
src/model/CancelTaskResult.cc
|
||||
src/model/CloseHttpsRequest.cc
|
||||
src/model/CloseHttpsResult.cc
|
||||
src/model/ConvertLogstashPayTypeRequest.cc
|
||||
src/model/ConvertLogstashPayTypeResult.cc
|
||||
src/model/ConvertPayTypeRequest.cc
|
||||
src/model/ConvertPayTypeResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateLogstashRequest.cc
|
||||
@@ -268,6 +268,10 @@ set(elasticsearch_src
|
||||
src/model/MoveResourceGroupResult.cc
|
||||
src/model/OpenHttpsRequest.cc
|
||||
src/model/OpenHttpsResult.cc
|
||||
src/model/RenewInstanceRequest.cc
|
||||
src/model/RenewInstanceResult.cc
|
||||
src/model/RenewLogstashRequest.cc
|
||||
src/model/RenewLogstashResult.cc
|
||||
src/model/RestartInstanceRequest.cc
|
||||
src/model/RestartInstanceResult.cc
|
||||
src/model/RestartLogstashRequest.cc
|
||||
@@ -306,6 +310,8 @@ set(elasticsearch_src
|
||||
src/model/UpdateHotIkDictsResult.cc
|
||||
src/model/UpdateInstanceRequest.cc
|
||||
src/model/UpdateInstanceResult.cc
|
||||
src/model/UpdateInstanceChargeTypeRequest.cc
|
||||
src/model/UpdateInstanceChargeTypeResult.cc
|
||||
src/model/UpdateInstanceSettingsRequest.cc
|
||||
src/model/UpdateInstanceSettingsResult.cc
|
||||
src/model/UpdateKibanaSettingsRequest.cc
|
||||
@@ -314,6 +320,8 @@ set(elasticsearch_src
|
||||
src/model/UpdateKibanaWhiteIpsResult.cc
|
||||
src/model/UpdateLogstashRequest.cc
|
||||
src/model/UpdateLogstashResult.cc
|
||||
src/model/UpdateLogstashChargeTypeRequest.cc
|
||||
src/model/UpdateLogstashChargeTypeResult.cc
|
||||
src/model/UpdateLogstashDescriptionRequest.cc
|
||||
src/model/UpdateLogstashDescriptionResult.cc
|
||||
src/model/UpdateLogstashSettingsRequest.cc
|
||||
|
||||
@@ -32,10 +32,6 @@
|
||||
#include "model/CancelTaskResult.h"
|
||||
#include "model/CloseHttpsRequest.h"
|
||||
#include "model/CloseHttpsResult.h"
|
||||
#include "model/ConvertLogstashPayTypeRequest.h"
|
||||
#include "model/ConvertLogstashPayTypeResult.h"
|
||||
#include "model/ConvertPayTypeRequest.h"
|
||||
#include "model/ConvertPayTypeResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateLogstashRequest.h"
|
||||
@@ -110,6 +106,10 @@
|
||||
#include "model/MoveResourceGroupResult.h"
|
||||
#include "model/OpenHttpsRequest.h"
|
||||
#include "model/OpenHttpsResult.h"
|
||||
#include "model/RenewInstanceRequest.h"
|
||||
#include "model/RenewInstanceResult.h"
|
||||
#include "model/RenewLogstashRequest.h"
|
||||
#include "model/RenewLogstashResult.h"
|
||||
#include "model/RestartInstanceRequest.h"
|
||||
#include "model/RestartInstanceResult.h"
|
||||
#include "model/RestartLogstashRequest.h"
|
||||
@@ -148,6 +148,8 @@
|
||||
#include "model/UpdateHotIkDictsResult.h"
|
||||
#include "model/UpdateInstanceRequest.h"
|
||||
#include "model/UpdateInstanceResult.h"
|
||||
#include "model/UpdateInstanceChargeTypeRequest.h"
|
||||
#include "model/UpdateInstanceChargeTypeResult.h"
|
||||
#include "model/UpdateInstanceSettingsRequest.h"
|
||||
#include "model/UpdateInstanceSettingsResult.h"
|
||||
#include "model/UpdateKibanaSettingsRequest.h"
|
||||
@@ -156,6 +158,8 @@
|
||||
#include "model/UpdateKibanaWhiteIpsResult.h"
|
||||
#include "model/UpdateLogstashRequest.h"
|
||||
#include "model/UpdateLogstashResult.h"
|
||||
#include "model/UpdateLogstashChargeTypeRequest.h"
|
||||
#include "model/UpdateLogstashChargeTypeResult.h"
|
||||
#include "model/UpdateLogstashDescriptionRequest.h"
|
||||
#include "model/UpdateLogstashDescriptionResult.h"
|
||||
#include "model/UpdateLogstashSettingsRequest.h"
|
||||
@@ -202,12 +206,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CloseHttpsResult> CloseHttpsOutcome;
|
||||
typedef std::future<CloseHttpsOutcome> CloseHttpsOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::CloseHttpsRequest&, const CloseHttpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CloseHttpsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConvertLogstashPayTypeResult> ConvertLogstashPayTypeOutcome;
|
||||
typedef std::future<ConvertLogstashPayTypeOutcome> ConvertLogstashPayTypeOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::ConvertLogstashPayTypeRequest&, const ConvertLogstashPayTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConvertLogstashPayTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ConvertPayTypeResult> ConvertPayTypeOutcome;
|
||||
typedef std::future<ConvertPayTypeOutcome> ConvertPayTypeOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::ConvertPayTypeRequest&, const ConvertPayTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ConvertPayTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
@@ -319,6 +317,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::OpenHttpsResult> OpenHttpsOutcome;
|
||||
typedef std::future<OpenHttpsOutcome> OpenHttpsOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::OpenHttpsRequest&, const OpenHttpsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenHttpsAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewInstanceResult> RenewInstanceOutcome;
|
||||
typedef std::future<RenewInstanceOutcome> RenewInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::RenewInstanceRequest&, const RenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewLogstashResult> RenewLogstashOutcome;
|
||||
typedef std::future<RenewLogstashOutcome> RenewLogstashOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::RenewLogstashRequest&, const RenewLogstashOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewLogstashAsyncHandler;
|
||||
typedef Outcome<Error, Model::RestartInstanceResult> RestartInstanceOutcome;
|
||||
typedef std::future<RestartInstanceOutcome> RestartInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::RestartInstanceRequest&, const RestartInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RestartInstanceAsyncHandler;
|
||||
@@ -376,6 +380,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateInstanceResult> UpdateInstanceOutcome;
|
||||
typedef std::future<UpdateInstanceOutcome> UpdateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::UpdateInstanceRequest&, const UpdateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateInstanceChargeTypeResult> UpdateInstanceChargeTypeOutcome;
|
||||
typedef std::future<UpdateInstanceChargeTypeOutcome> UpdateInstanceChargeTypeOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::UpdateInstanceChargeTypeRequest&, const UpdateInstanceChargeTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceChargeTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateInstanceSettingsResult> UpdateInstanceSettingsOutcome;
|
||||
typedef std::future<UpdateInstanceSettingsOutcome> UpdateInstanceSettingsOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::UpdateInstanceSettingsRequest&, const UpdateInstanceSettingsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateInstanceSettingsAsyncHandler;
|
||||
@@ -388,6 +395,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateLogstashResult> UpdateLogstashOutcome;
|
||||
typedef std::future<UpdateLogstashOutcome> UpdateLogstashOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::UpdateLogstashRequest&, const UpdateLogstashOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLogstashAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLogstashChargeTypeResult> UpdateLogstashChargeTypeOutcome;
|
||||
typedef std::future<UpdateLogstashChargeTypeOutcome> UpdateLogstashChargeTypeOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::UpdateLogstashChargeTypeRequest&, const UpdateLogstashChargeTypeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLogstashChargeTypeAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateLogstashDescriptionResult> UpdateLogstashDescriptionOutcome;
|
||||
typedef std::future<UpdateLogstashDescriptionOutcome> UpdateLogstashDescriptionOutcomeCallable;
|
||||
typedef std::function<void(const ElasticsearchClient*, const Model::UpdateLogstashDescriptionRequest&, const UpdateLogstashDescriptionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateLogstashDescriptionAsyncHandler;
|
||||
@@ -441,12 +451,6 @@ namespace AlibabaCloud
|
||||
CloseHttpsOutcome closeHttps(const Model::CloseHttpsRequest &request)const;
|
||||
void closeHttpsAsync(const Model::CloseHttpsRequest& request, const CloseHttpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CloseHttpsOutcomeCallable closeHttpsCallable(const Model::CloseHttpsRequest& request) const;
|
||||
ConvertLogstashPayTypeOutcome convertLogstashPayType(const Model::ConvertLogstashPayTypeRequest &request)const;
|
||||
void convertLogstashPayTypeAsync(const Model::ConvertLogstashPayTypeRequest& request, const ConvertLogstashPayTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConvertLogstashPayTypeOutcomeCallable convertLogstashPayTypeCallable(const Model::ConvertLogstashPayTypeRequest& request) const;
|
||||
ConvertPayTypeOutcome convertPayType(const Model::ConvertPayTypeRequest &request)const;
|
||||
void convertPayTypeAsync(const Model::ConvertPayTypeRequest& request, const ConvertPayTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ConvertPayTypeOutcomeCallable convertPayTypeCallable(const Model::ConvertPayTypeRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
@@ -558,6 +562,12 @@ namespace AlibabaCloud
|
||||
OpenHttpsOutcome openHttps(const Model::OpenHttpsRequest &request)const;
|
||||
void openHttpsAsync(const Model::OpenHttpsRequest& request, const OpenHttpsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenHttpsOutcomeCallable openHttpsCallable(const Model::OpenHttpsRequest& request) const;
|
||||
RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const;
|
||||
void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const;
|
||||
RenewLogstashOutcome renewLogstash(const Model::RenewLogstashRequest &request)const;
|
||||
void renewLogstashAsync(const Model::RenewLogstashRequest& request, const RenewLogstashAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewLogstashOutcomeCallable renewLogstashCallable(const Model::RenewLogstashRequest& request) const;
|
||||
RestartInstanceOutcome restartInstance(const Model::RestartInstanceRequest &request)const;
|
||||
void restartInstanceAsync(const Model::RestartInstanceRequest& request, const RestartInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RestartInstanceOutcomeCallable restartInstanceCallable(const Model::RestartInstanceRequest& request) const;
|
||||
@@ -615,6 +625,9 @@ namespace AlibabaCloud
|
||||
UpdateInstanceOutcome updateInstance(const Model::UpdateInstanceRequest &request)const;
|
||||
void updateInstanceAsync(const Model::UpdateInstanceRequest& request, const UpdateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceOutcomeCallable updateInstanceCallable(const Model::UpdateInstanceRequest& request) const;
|
||||
UpdateInstanceChargeTypeOutcome updateInstanceChargeType(const Model::UpdateInstanceChargeTypeRequest &request)const;
|
||||
void updateInstanceChargeTypeAsync(const Model::UpdateInstanceChargeTypeRequest& request, const UpdateInstanceChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceChargeTypeOutcomeCallable updateInstanceChargeTypeCallable(const Model::UpdateInstanceChargeTypeRequest& request) const;
|
||||
UpdateInstanceSettingsOutcome updateInstanceSettings(const Model::UpdateInstanceSettingsRequest &request)const;
|
||||
void updateInstanceSettingsAsync(const Model::UpdateInstanceSettingsRequest& request, const UpdateInstanceSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateInstanceSettingsOutcomeCallable updateInstanceSettingsCallable(const Model::UpdateInstanceSettingsRequest& request) const;
|
||||
@@ -627,6 +640,9 @@ namespace AlibabaCloud
|
||||
UpdateLogstashOutcome updateLogstash(const Model::UpdateLogstashRequest &request)const;
|
||||
void updateLogstashAsync(const Model::UpdateLogstashRequest& request, const UpdateLogstashAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLogstashOutcomeCallable updateLogstashCallable(const Model::UpdateLogstashRequest& request) const;
|
||||
UpdateLogstashChargeTypeOutcome updateLogstashChargeType(const Model::UpdateLogstashChargeTypeRequest &request)const;
|
||||
void updateLogstashChargeTypeAsync(const Model::UpdateLogstashChargeTypeRequest& request, const UpdateLogstashChargeTypeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLogstashChargeTypeOutcomeCallable updateLogstashChargeTypeCallable(const Model::UpdateLogstashChargeTypeRequest& request) const;
|
||||
UpdateLogstashDescriptionOutcome updateLogstashDescription(const Model::UpdateLogstashDescriptionRequest &request)const;
|
||||
void updateLogstashDescriptionAsync(const Model::UpdateLogstashDescriptionRequest& request, const UpdateLogstashDescriptionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateLogstashDescriptionOutcomeCallable updateLogstashDescriptionCallable(const Model::UpdateLogstashDescriptionRequest& request) const;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTPAYTYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTPAYTYPEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT ConvertPayTypeRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewInstanceRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConvertPayTypeRequest();
|
||||
~ConvertPayTypeRequest();
|
||||
RenewInstanceRequest();
|
||||
~RenewInstanceRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTPAYTYPEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTPAYTYPERESULT_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTPAYTYPERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCERESULT_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,14 +29,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT ConvertPayTypeResult : public ServiceResult
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewInstanceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ConvertPayTypeResult();
|
||||
explicit ConvertPayTypeResult(const std::string &payload);
|
||||
~ConvertPayTypeResult();
|
||||
RenewInstanceResult();
|
||||
explicit RenewInstanceResult(const std::string &payload);
|
||||
~RenewInstanceResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTPAYTYPERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCERESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTLOGSTASHPAYTYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTLOGSTASHPAYTYPEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,12 +28,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT ConvertLogstashPayTypeRequest : public RoaServiceRequest
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewLogstashRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ConvertLogstashPayTypeRequest();
|
||||
~ConvertLogstashPayTypeRequest();
|
||||
RenewLogstashRequest();
|
||||
~RenewLogstashRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTLOGSTASHPAYTYPEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTLOGSTASHPAYTYPERESULT_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTLOGSTASHPAYTYPERESULT_H_
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHRESULT_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,14 +29,14 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT ConvertLogstashPayTypeResult : public ServiceResult
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewLogstashResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ConvertLogstashPayTypeResult();
|
||||
explicit ConvertLogstashPayTypeResult(const std::string &payload);
|
||||
~ConvertLogstashPayTypeResult();
|
||||
RenewLogstashResult();
|
||||
explicit RenewLogstashResult(const std::string &payload);
|
||||
~RenewLogstashResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
@@ -48,4 +48,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CONVERTLOGSTASHPAYTYPERESULT_H_
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHRESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/elasticsearch/ElasticsearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Elasticsearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceChargeTypeRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateInstanceChargeTypeRequest();
|
||||
~UpdateInstanceChargeTypeRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string clientToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPERESULT_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/elasticsearch/ElasticsearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Elasticsearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceChargeTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateInstanceChargeTypeResult();
|
||||
explicit UpdateInstanceChargeTypeResult(const std::string &payload);
|
||||
~UpdateInstanceChargeTypeResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPERESULT_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RoaServiceRequest.h>
|
||||
#include <alibabacloud/elasticsearch/ElasticsearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Elasticsearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashChargeTypeRequest : public RoaServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateLogstashChargeTypeRequest();
|
||||
~UpdateLogstashChargeTypeRequest();
|
||||
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getClientToken()const;
|
||||
void setClientToken(const std::string& clientToken);
|
||||
|
||||
private:
|
||||
std::string instanceId_;
|
||||
std::string clientToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPERESULT_H_
|
||||
#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/elasticsearch/ElasticsearchExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Elasticsearch
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashChargeTypeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateLogstashChargeTypeResult();
|
||||
explicit UpdateLogstashChargeTypeResult(const std::string &payload);
|
||||
~UpdateLogstashChargeTypeResult();
|
||||
bool getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPERESULT_H_
|
||||
@@ -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