Complete Request Body.
This commit is contained in:
@@ -447,6 +447,42 @@ ElasticsearchClient::CreateCollectorOutcomeCallable ElasticsearchClient::createC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::CreateComponentIndexOutcome ElasticsearchClient::createComponentIndex(const CreateComponentIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateComponentIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateComponentIndexOutcome(CreateComponentIndexResult(outcome.result()));
|
||||
else
|
||||
return CreateComponentIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::createComponentIndexAsync(const CreateComponentIndexRequest& request, const CreateComponentIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createComponentIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::CreateComponentIndexOutcomeCallable ElasticsearchClient::createComponentIndexCallable(const CreateComponentIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateComponentIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createComponentIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::CreateDataStreamOutcome ElasticsearchClient::createDataStream(const CreateDataStreamRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -843,6 +879,42 @@ ElasticsearchClient::DeleteCollectorOutcomeCallable ElasticsearchClient::deleteC
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DeleteComponentIndexOutcome ElasticsearchClient::deleteComponentIndex(const DeleteComponentIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteComponentIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteComponentIndexOutcome(DeleteComponentIndexResult(outcome.result()));
|
||||
else
|
||||
return DeleteComponentIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::deleteComponentIndexAsync(const DeleteComponentIndexRequest& request, const DeleteComponentIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteComponentIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::DeleteComponentIndexOutcomeCallable ElasticsearchClient::deleteComponentIndexCallable(const DeleteComponentIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteComponentIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteComponentIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DeleteConnectedClusterOutcome ElasticsearchClient::deleteConnectedCluster(const DeleteConnectedClusterRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -951,6 +1023,42 @@ ElasticsearchClient::DeleteDataTaskOutcomeCallable ElasticsearchClient::deleteDa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DeleteDeprecatedTemplateOutcome ElasticsearchClient::deleteDeprecatedTemplate(const DeleteDeprecatedTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDeprecatedTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDeprecatedTemplateOutcome(DeleteDeprecatedTemplateResult(outcome.result()));
|
||||
else
|
||||
return DeleteDeprecatedTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::deleteDeprecatedTemplateAsync(const DeleteDeprecatedTemplateRequest& request, const DeleteDeprecatedTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDeprecatedTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::DeleteDeprecatedTemplateOutcomeCallable ElasticsearchClient::deleteDeprecatedTemplateCallable(const DeleteDeprecatedTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDeprecatedTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDeprecatedTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DeleteILMPolicyOutcome ElasticsearchClient::deleteILMPolicy(const DeleteILMPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,6 +1419,42 @@ ElasticsearchClient::DescribeCollectorOutcomeCallable ElasticsearchClient::descr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeComponentIndexOutcome ElasticsearchClient::describeComponentIndex(const DescribeComponentIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeComponentIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeComponentIndexOutcome(DescribeComponentIndexResult(outcome.result()));
|
||||
else
|
||||
return DescribeComponentIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::describeComponentIndexAsync(const DescribeComponentIndexRequest& request, const DescribeComponentIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeComponentIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeComponentIndexOutcomeCallable ElasticsearchClient::describeComponentIndexCallable(const DescribeComponentIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeComponentIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeComponentIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeConnectableClustersOutcome ElasticsearchClient::describeConnectableClusters(const DescribeConnectableClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1491,42 @@ ElasticsearchClient::DescribeConnectableClustersOutcomeCallable ElasticsearchCli
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeDeprecatedTemplateOutcome ElasticsearchClient::describeDeprecatedTemplate(const DescribeDeprecatedTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeprecatedTemplateOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeprecatedTemplateOutcome(DescribeDeprecatedTemplateResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeprecatedTemplateOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::describeDeprecatedTemplateAsync(const DescribeDeprecatedTemplateRequest& request, const DescribeDeprecatedTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeprecatedTemplate(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeDeprecatedTemplateOutcomeCallable ElasticsearchClient::describeDeprecatedTemplateCallable(const DescribeDeprecatedTemplateRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeprecatedTemplateOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeprecatedTemplate(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeDiagnoseReportOutcome ElasticsearchClient::describeDiagnoseReport(const DescribeDiagnoseReportRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1599,42 @@ ElasticsearchClient::DescribeDiagnosisSettingsOutcomeCallable ElasticsearchClien
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeDynamicSettingsOutcome ElasticsearchClient::describeDynamicSettings(const DescribeDynamicSettingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDynamicSettingsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDynamicSettingsOutcome(DescribeDynamicSettingsResult(outcome.result()));
|
||||
else
|
||||
return DescribeDynamicSettingsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::describeDynamicSettingsAsync(const DescribeDynamicSettingsRequest& request, const DescribeDynamicSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDynamicSettings(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeDynamicSettingsOutcomeCallable ElasticsearchClient::describeDynamicSettingsCallable(const DescribeDynamicSettingsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDynamicSettingsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDynamicSettings(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::DescribeElasticsearchHealthOutcome ElasticsearchClient::describeElasticsearchHealth(const DescribeElasticsearchHealthRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2643,6 +2859,42 @@ ElasticsearchClient::ListAckNamespacesOutcomeCallable ElasticsearchClient::listA
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListActionRecordsOutcome ElasticsearchClient::listActionRecords(const ListActionRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListActionRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListActionRecordsOutcome(ListActionRecordsResult(outcome.result()));
|
||||
else
|
||||
return ListActionRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::listActionRecordsAsync(const ListActionRecordsRequest& request, const ListActionRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listActionRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListActionRecordsOutcomeCallable ElasticsearchClient::listActionRecordsCallable(const ListActionRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListActionRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listActionRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListAllNodeOutcome ElasticsearchClient::listAllNode(const ListAllNodeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2823,6 +3075,42 @@ ElasticsearchClient::ListCollectorsOutcomeCallable ElasticsearchClient::listColl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListComponentIndicesOutcome ElasticsearchClient::listComponentIndices(const ListComponentIndicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListComponentIndicesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListComponentIndicesOutcome(ListComponentIndicesResult(outcome.result()));
|
||||
else
|
||||
return ListComponentIndicesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::listComponentIndicesAsync(const ListComponentIndicesRequest& request, const ListComponentIndicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listComponentIndices(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListComponentIndicesOutcomeCallable ElasticsearchClient::listComponentIndicesCallable(const ListComponentIndicesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListComponentIndicesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listComponentIndices(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListConnectedClustersOutcome ElasticsearchClient::listConnectedClusters(const ListConnectedClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2967,6 +3255,42 @@ ElasticsearchClient::ListDefaultCollectorConfigurationsOutcomeCallable Elasticse
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListDeprecatedTemplatesOutcome ElasticsearchClient::listDeprecatedTemplates(const ListDeprecatedTemplatesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListDeprecatedTemplatesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListDeprecatedTemplatesOutcome(ListDeprecatedTemplatesResult(outcome.result()));
|
||||
else
|
||||
return ListDeprecatedTemplatesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::listDeprecatedTemplatesAsync(const ListDeprecatedTemplatesRequest& request, const ListDeprecatedTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listDeprecatedTemplates(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListDeprecatedTemplatesOutcomeCallable ElasticsearchClient::listDeprecatedTemplatesCallable(const ListDeprecatedTemplatesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListDeprecatedTemplatesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listDeprecatedTemplates(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListDiagnoseIndicesOutcome ElasticsearchClient::listDiagnoseIndices(const ListDiagnoseIndicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3327,6 +3651,42 @@ ElasticsearchClient::ListInstanceOutcomeCallable ElasticsearchClient::listInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListInstanceHistoryEventsOutcome ElasticsearchClient::listInstanceHistoryEvents(const ListInstanceHistoryEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListInstanceHistoryEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListInstanceHistoryEventsOutcome(ListInstanceHistoryEventsResult(outcome.result()));
|
||||
else
|
||||
return ListInstanceHistoryEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::listInstanceHistoryEventsAsync(const ListInstanceHistoryEventsRequest& request, const ListInstanceHistoryEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listInstanceHistoryEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListInstanceHistoryEventsOutcomeCallable ElasticsearchClient::listInstanceHistoryEventsCallable(const ListInstanceHistoryEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListInstanceHistoryEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listInstanceHistoryEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::ListInstanceIndicesOutcome ElasticsearchClient::listInstanceIndices(const ListInstanceIndicesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5343,6 +5703,42 @@ ElasticsearchClient::UpdateCollectorNameOutcomeCallable ElasticsearchClient::upd
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateComponentIndexOutcome ElasticsearchClient::updateComponentIndex(const UpdateComponentIndexRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateComponentIndexOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateComponentIndexOutcome(UpdateComponentIndexResult(outcome.result()));
|
||||
else
|
||||
return UpdateComponentIndexOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::updateComponentIndexAsync(const UpdateComponentIndexRequest& request, const UpdateComponentIndexAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateComponentIndex(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateComponentIndexOutcomeCallable ElasticsearchClient::updateComponentIndexCallable(const UpdateComponentIndexRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateComponentIndexOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateComponentIndex(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateDescriptionOutcome ElasticsearchClient::updateDescription(const UpdateDescriptionRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -5451,6 +5847,42 @@ ElasticsearchClient::UpdateDictOutcomeCallable ElasticsearchClient::updateDictCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateDynamicSettingsOutcome ElasticsearchClient::updateDynamicSettings(const UpdateDynamicSettingsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateDynamicSettingsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateDynamicSettingsOutcome(UpdateDynamicSettingsResult(outcome.result()));
|
||||
else
|
||||
return UpdateDynamicSettingsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ElasticsearchClient::updateDynamicSettingsAsync(const UpdateDynamicSettingsRequest& request, const UpdateDynamicSettingsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateDynamicSettings(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateDynamicSettingsOutcomeCallable ElasticsearchClient::updateDynamicSettingsCallable(const UpdateDynamicSettingsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateDynamicSettingsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateDynamicSettings(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ElasticsearchClient::UpdateExtendConfigOutcome ElasticsearchClient::updateExtendConfig(const UpdateExtendConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/ActivateZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::ActivateZonesRequest;
|
||||
|
||||
ActivateZonesRequest::ActivateZonesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/recover-zones");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ActivateZonesRequest::~ActivateZonesRequest()
|
||||
{}
|
||||
|
||||
std::string ActivateZonesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/ActivateZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::ActivateZonesRequest;
|
||||
|
||||
ActivateZonesRequest::ActivateZonesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/recover-zones"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ActivateZonesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
ActivateZonesRequest::~ActivateZonesRequest() {}
|
||||
|
||||
string ActivateZonesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string ActivateZonesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void ActivateZonesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void ActivateZonesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string ActivateZonesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void ActivateZonesRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string ActivateZonesRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void ActivateZonesRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/AddConnectableClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::AddConnectableClusterRequest;
|
||||
|
||||
AddConnectableClusterRequest::AddConnectableClusterRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/connected-clusters");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddConnectableClusterRequest::~AddConnectableClusterRequest()
|
||||
{}
|
||||
|
||||
std::string AddConnectableClusterRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/AddConnectableClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::AddConnectableClusterRequest;
|
||||
|
||||
AddConnectableClusterRequest::AddConnectableClusterRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/connected-clusters"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddConnectableClusterRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
AddConnectableClusterRequest::~AddConnectableClusterRequest() {}
|
||||
|
||||
string AddConnectableClusterRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string AddConnectableClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void AddConnectableClusterRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void AddConnectableClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string AddConnectableClusterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void AddConnectableClusterRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string AddConnectableClusterRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void AddConnectableClusterRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/AddSnapshotRepoRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::AddSnapshotRepoRequest;
|
||||
|
||||
AddSnapshotRepoRequest::AddSnapshotRepoRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddSnapshotRepoRequest::~AddSnapshotRepoRequest()
|
||||
{}
|
||||
|
||||
std::string AddSnapshotRepoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/AddSnapshotRepoRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::AddSnapshotRepoRequest;
|
||||
|
||||
AddSnapshotRepoRequest::AddSnapshotRepoRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void AddSnapshotRepoRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
AddSnapshotRepoRequest::~AddSnapshotRepoRequest() {}
|
||||
|
||||
string AddSnapshotRepoRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void AddSnapshotRepoRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
string AddSnapshotRepoRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void AddSnapshotRepoRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CancelDeletionRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CancelDeletionRequest;
|
||||
|
||||
CancelDeletionRequest::CancelDeletionRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/cancel-deletion");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelDeletionRequest::~CancelDeletionRequest()
|
||||
{}
|
||||
|
||||
std::string CancelDeletionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CancelDeletionRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CancelDeletionRequest;
|
||||
|
||||
CancelDeletionRequest::CancelDeletionRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/cancel-deletion"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelDeletionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CancelDeletionRequest::~CancelDeletionRequest() {}
|
||||
|
||||
string CancelDeletionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CancelDeletionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CancelDeletionRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CancelDeletionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CancelDeletionRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CancelDeletionRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CancelLogstashDeletionRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CancelLogstashDeletionRequest;
|
||||
|
||||
CancelLogstashDeletionRequest::CancelLogstashDeletionRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/actions/cancel-deletion");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelLogstashDeletionRequest::~CancelLogstashDeletionRequest()
|
||||
{}
|
||||
|
||||
std::string CancelLogstashDeletionRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CancelLogstashDeletionRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CancelLogstashDeletionRequest;
|
||||
|
||||
CancelLogstashDeletionRequest::CancelLogstashDeletionRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/actions/cancel-deletion"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelLogstashDeletionRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CancelLogstashDeletionRequest::~CancelLogstashDeletionRequest() {}
|
||||
|
||||
string CancelLogstashDeletionRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CancelLogstashDeletionRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CancelLogstashDeletionRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CancelLogstashDeletionRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CancelLogstashDeletionRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CancelLogstashDeletionRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CancelTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CancelTaskRequest;
|
||||
|
||||
CancelTaskRequest::CancelTaskRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/cancel-task");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CancelTaskRequest::~CancelTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CancelTaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CancelTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CancelTaskRequest;
|
||||
|
||||
CancelTaskRequest::CancelTaskRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/cancel-task"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CancelTaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CancelTaskRequest::~CancelTaskRequest() {}
|
||||
|
||||
string CancelTaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CancelTaskRequest::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
void CancelTaskRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CancelTaskRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setParameter("TaskType", taskType);
|
||||
string CancelTaskRequest::getTaskType() const {
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
std::string CancelTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CancelTaskRequest::setTaskType(string taskType) {
|
||||
taskType_ = taskType;
|
||||
setParameter(std::string("taskType"), std::to_string(taskType));
|
||||
}
|
||||
|
||||
void CancelTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CancelTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CancelTaskRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CapacityPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CapacityPlanRequest;
|
||||
|
||||
CapacityPlanRequest::CapacityPlanRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/assist/actions/capacity-plan");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CapacityPlanRequest::~CapacityPlanRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CapacityPlanRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CapacityPlanRequest;
|
||||
|
||||
CapacityPlanRequest::CapacityPlanRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/assist/actions/capacity-plan"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CapacityPlanRequest::~CapacityPlanRequest() {}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CloseDiagnosisRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CloseDiagnosisRequest;
|
||||
|
||||
CloseDiagnosisRequest::CloseDiagnosisRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/actions/close-diagnosis");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseDiagnosisRequest::~CloseDiagnosisRequest()
|
||||
{}
|
||||
|
||||
std::string CloseDiagnosisRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CloseDiagnosisRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CloseDiagnosisRequest;
|
||||
|
||||
CloseDiagnosisRequest::CloseDiagnosisRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/actions/close-diagnosis"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CloseDiagnosisRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CloseDiagnosisRequest::~CloseDiagnosisRequest() {}
|
||||
|
||||
string CloseDiagnosisRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CloseDiagnosisRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CloseDiagnosisRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CloseDiagnosisRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CloseDiagnosisRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CloseDiagnosisRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void CloseDiagnosisRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void CloseDiagnosisRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
string CloseDiagnosisRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CloseDiagnosisRequest::setLang(string lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("lang"), std::to_string(lang));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CloseHttpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CloseHttpsRequest;
|
||||
|
||||
CloseHttpsRequest::CloseHttpsRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/close-https");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseHttpsRequest::~CloseHttpsRequest()
|
||||
{}
|
||||
|
||||
std::string CloseHttpsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CloseHttpsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CloseHttpsRequest;
|
||||
|
||||
CloseHttpsRequest::CloseHttpsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/close-https"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CloseHttpsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CloseHttpsRequest::~CloseHttpsRequest() {}
|
||||
|
||||
string CloseHttpsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CloseHttpsRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CloseHttpsRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CloseHttpsRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CloseHttpsRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CloseHttpsRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/CloseManagedIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CloseManagedIndexRequest;
|
||||
|
||||
CloseManagedIndexRequest::CloseManagedIndexRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/indices/[Index]/close-managed");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseManagedIndexRequest::~CloseManagedIndexRequest()
|
||||
{}
|
||||
|
||||
std::string CloseManagedIndexRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CloseManagedIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CloseManagedIndexRequest;
|
||||
|
||||
CloseManagedIndexRequest::CloseManagedIndexRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/indices/[Index]/close-managed"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CloseManagedIndexRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CloseManagedIndexRequest::~CloseManagedIndexRequest() {}
|
||||
|
||||
string CloseManagedIndexRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CloseManagedIndexRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CloseManagedIndexRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CloseManagedIndexRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CloseManagedIndexRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string CloseManagedIndexRequest::getIndex()const
|
||||
{
|
||||
return index_;
|
||||
void CloseManagedIndexRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void CloseManagedIndexRequest::setIndex(const std::string& index)
|
||||
{
|
||||
index_ = index;
|
||||
setParameter("Index", index);
|
||||
string CloseManagedIndexRequest::getIndex() const {
|
||||
return index_;
|
||||
}
|
||||
|
||||
void CloseManagedIndexRequest::setIndex(string index) {
|
||||
index_ = index;
|
||||
setParameter(std::string("Index"), std::to_string(index));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/CreateCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateCollectorRequest;
|
||||
|
||||
CreateCollectorRequest::CreateCollectorRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/collectors");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCollectorRequest::~CreateCollectorRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCollectorRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateCollectorRequest;
|
||||
|
||||
CreateCollectorRequest::CreateCollectorRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/collectors"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateCollectorRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateCollectorRequest::~CreateCollectorRequest() {}
|
||||
|
||||
string CreateCollectorRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateCollectorRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string CreateCollectorRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateCollectorRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
55
elasticsearch/src/model/CreateComponentIndexRequest.cc
Normal file
55
elasticsearch/src/model/CreateComponentIndexRequest.cc
Normal file
@@ -0,0 +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/elasticsearch/model/CreateComponentIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateComponentIndexRequest;
|
||||
|
||||
CreateComponentIndexRequest::CreateComponentIndexRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/component-index/[name]"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateComponentIndexRequest::~CreateComponentIndexRequest() {}
|
||||
|
||||
string CreateComponentIndexRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void CreateComponentIndexRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
string CreateComponentIndexRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateComponentIndexRequest::setName(string name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("name"), std::to_string(name));
|
||||
}
|
||||
|
||||
std::string CreateComponentIndexRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateComponentIndexRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
51
elasticsearch/src/model/CreateComponentIndexResult.cc
Normal file
51
elasticsearch/src/model/CreateComponentIndexResult.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/CreateComponentIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
CreateComponentIndexResult::CreateComponentIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateComponentIndexResult::CreateComponentIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateComponentIndexResult::~CreateComponentIndexResult()
|
||||
{}
|
||||
|
||||
void CreateComponentIndexResult::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 CreateComponentIndexResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/CreateDataStreamRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateDataStreamRequest;
|
||||
|
||||
CreateDataStreamRequest::CreateDataStreamRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-streams");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataStreamRequest::~CreateDataStreamRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataStreamRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateDataStreamRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateDataStreamRequest;
|
||||
|
||||
CreateDataStreamRequest::CreateDataStreamRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-streams"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataStreamRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateDataStreamRequest::~CreateDataStreamRequest() {}
|
||||
|
||||
string CreateDataStreamRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateDataStreamRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateDataStreamRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreateDataStreamRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreateDataStreamRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDataStreamRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string CreateDataStreamRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateDataStreamRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/CreateDataTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateDataTasksRequest;
|
||||
|
||||
CreateDataTasksRequest::CreateDataTasksRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-task");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataTasksRequest::~CreateDataTasksRequest()
|
||||
{}
|
||||
|
||||
std::string CreateDataTasksRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateDataTasksRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateDataTasksRequest;
|
||||
|
||||
CreateDataTasksRequest::CreateDataTasksRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-task"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataTasksRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateDataTasksRequest::~CreateDataTasksRequest() {}
|
||||
|
||||
string CreateDataTasksRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateDataTasksRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateDataTasksRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreateDataTasksRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreateDataTasksRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateDataTasksRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string CreateDataTasksRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateDataTasksRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -44,14 +44,8 @@ void CreateDataTasksResult::parse(const std::string &payload)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
auto sourceClusterNode = value["sourceCluster"];
|
||||
if(!sourceClusterNode["dataSourceType"].isNull())
|
||||
resultObject.sourceCluster.dataSourceType = sourceClusterNode["dataSourceType"].asString();
|
||||
if(!sourceClusterNode["vpcInstancePort"].isNull())
|
||||
resultObject.sourceCluster.vpcInstancePort = std::stoi(sourceClusterNode["vpcInstancePort"].asString());
|
||||
if(!sourceClusterNode["vpcId"].isNull())
|
||||
resultObject.sourceCluster.vpcId = sourceClusterNode["vpcId"].asString();
|
||||
if(!sourceClusterNode["vpcInstanceId"].isNull())
|
||||
resultObject.sourceCluster.vpcInstanceId = sourceClusterNode["vpcInstanceId"].asString();
|
||||
if(!sourceClusterNode["password"].isNull())
|
||||
resultObject.sourceCluster.password = sourceClusterNode["password"].asString();
|
||||
if(!sourceClusterNode["index"].isNull())
|
||||
resultObject.sourceCluster.index = sourceClusterNode["index"].asString();
|
||||
if(!sourceClusterNode["type"].isNull())
|
||||
@@ -60,31 +54,37 @@ void CreateDataTasksResult::parse(const std::string &payload)
|
||||
resultObject.sourceCluster.endpoint = sourceClusterNode["endpoint"].asString();
|
||||
if(!sourceClusterNode["username"].isNull())
|
||||
resultObject.sourceCluster.username = sourceClusterNode["username"].asString();
|
||||
if(!sourceClusterNode["password"].isNull())
|
||||
resultObject.sourceCluster.password = sourceClusterNode["password"].asString();
|
||||
if(!sourceClusterNode["vpcId"].isNull())
|
||||
resultObject.sourceCluster.vpcId = sourceClusterNode["vpcId"].asString();
|
||||
if(!sourceClusterNode["vpcInstanceId"].isNull())
|
||||
resultObject.sourceCluster.vpcInstanceId = sourceClusterNode["vpcInstanceId"].asString();
|
||||
if(!sourceClusterNode["vpcInstancePort"].isNull())
|
||||
resultObject.sourceCluster.vpcInstancePort = std::stoi(sourceClusterNode["vpcInstancePort"].asString());
|
||||
if(!sourceClusterNode["dataSourceType"].isNull())
|
||||
resultObject.sourceCluster.dataSourceType = sourceClusterNode["dataSourceType"].asString();
|
||||
auto sinkClusterNode = value["sinkCluster"];
|
||||
if(!sinkClusterNode["dataSourceType"].isNull())
|
||||
resultObject.sinkCluster.dataSourceType = sinkClusterNode["dataSourceType"].asString();
|
||||
if(!sinkClusterNode["password"].isNull())
|
||||
resultObject.sinkCluster.password = sinkClusterNode["password"].asString();
|
||||
if(!sinkClusterNode["index"].isNull())
|
||||
resultObject.sinkCluster.index = sinkClusterNode["index"].asString();
|
||||
if(!sinkClusterNode["type"].isNull())
|
||||
resultObject.sinkCluster.type = sinkClusterNode["type"].asString();
|
||||
if(!sinkClusterNode["settings"].isNull())
|
||||
resultObject.sinkCluster.settings = sinkClusterNode["settings"].asString();
|
||||
if(!sinkClusterNode["mapping"].isNull())
|
||||
resultObject.sinkCluster.mapping = sinkClusterNode["mapping"].asString();
|
||||
if(!sinkClusterNode["type"].isNull())
|
||||
resultObject.sinkCluster.type = sinkClusterNode["type"].asString();
|
||||
if(!sinkClusterNode["routing"].isNull())
|
||||
resultObject.sinkCluster.routing = sinkClusterNode["routing"].asString();
|
||||
if(!sinkClusterNode["vpcId"].isNull())
|
||||
resultObject.sinkCluster.vpcId = sinkClusterNode["vpcId"].asString();
|
||||
if(!sinkClusterNode["vpcInstanceId"].isNull())
|
||||
resultObject.sinkCluster.vpcInstanceId = sinkClusterNode["vpcInstanceId"].asString();
|
||||
if(!sinkClusterNode["vpcInstancePort"].isNull())
|
||||
resultObject.sinkCluster.vpcInstancePort = sinkClusterNode["vpcInstancePort"].asString();
|
||||
if(!sinkClusterNode["username"].isNull())
|
||||
resultObject.sinkCluster.username = sinkClusterNode["username"].asString();
|
||||
if(!sinkClusterNode["password"].isNull())
|
||||
resultObject.sinkCluster.password = sinkClusterNode["password"].asString();
|
||||
if(!sinkClusterNode["vpcId"].isNull())
|
||||
resultObject.sinkCluster.vpcId = sinkClusterNode["vpcId"].asString();
|
||||
if(!sinkClusterNode["vpcInstancePort"].isNull())
|
||||
resultObject.sinkCluster.vpcInstancePort = sinkClusterNode["vpcInstancePort"].asString();
|
||||
if(!sinkClusterNode["vpcInstanceId"].isNull())
|
||||
resultObject.sinkCluster.vpcInstanceId = sinkClusterNode["vpcInstanceId"].asString();
|
||||
if(!sinkClusterNode["dataSourceType"].isNull())
|
||||
resultObject.sinkCluster.dataSourceType = sinkClusterNode["dataSourceType"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/CreateILMPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateILMPolicyRequest;
|
||||
|
||||
CreateILMPolicyRequest::CreateILMPolicyRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/ilm-policies");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateILMPolicyRequest::~CreateILMPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string CreateILMPolicyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateILMPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateILMPolicyRequest;
|
||||
|
||||
CreateILMPolicyRequest::CreateILMPolicyRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/ilm-policies"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateILMPolicyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateILMPolicyRequest::~CreateILMPolicyRequest() {}
|
||||
|
||||
string CreateILMPolicyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateILMPolicyRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateILMPolicyRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreateILMPolicyRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreateILMPolicyRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateILMPolicyRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string CreateILMPolicyRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateILMPolicyRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/CreateIndexTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateIndexTemplateRequest;
|
||||
|
||||
CreateIndexTemplateRequest::CreateIndexTemplateRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/index-templates");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateIndexTemplateRequest::~CreateIndexTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string CreateIndexTemplateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateIndexTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateIndexTemplateRequest;
|
||||
|
||||
CreateIndexTemplateRequest::CreateIndexTemplateRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/index-templates"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateIndexTemplateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateIndexTemplateRequest::~CreateIndexTemplateRequest() {}
|
||||
|
||||
string CreateIndexTemplateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateIndexTemplateRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateIndexTemplateRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreateIndexTemplateRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreateIndexTemplateRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateIndexTemplateRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string CreateIndexTemplateRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateIndexTemplateRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateInstanceRequest::~CreateInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string CreateInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateInstanceRequest;
|
||||
|
||||
CreateInstanceRequest::CreateInstanceRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateInstanceRequest::~CreateInstanceRequest() {}
|
||||
|
||||
string CreateInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/CreateLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateLogstashRequest;
|
||||
|
||||
CreateLogstashRequest::CreateLogstashRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateLogstashRequest::~CreateLogstashRequest()
|
||||
{}
|
||||
|
||||
std::string CreateLogstashRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateLogstashRequest;
|
||||
|
||||
CreateLogstashRequest::CreateLogstashRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateLogstashRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
CreateLogstashRequest::~CreateLogstashRequest() {}
|
||||
|
||||
string CreateLogstashRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateLogstashRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
std::string CreateLogstashRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateLogstashRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,82 @@ void CreateLogstashResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["resourceGroupId"].isNull())
|
||||
result_.resourceGroupId = resultNode["resourceGroupId"].asString();
|
||||
if(!resultNode["endTime"].isNull())
|
||||
result_.endTime = std::stol(resultNode["endTime"].asString());
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["config"].isNull())
|
||||
result_.config = resultNode["config"].asString();
|
||||
if(!resultNode["createdAt"].isNull())
|
||||
result_.createdAt = resultNode["createdAt"].asString();
|
||||
if(!resultNode["nodeAmount"].isNull())
|
||||
result_.nodeAmount = std::stol(resultNode["nodeAmount"].asString());
|
||||
if(!resultNode["updatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["updatedAt"].asString();
|
||||
if(!resultNode["version"].isNull())
|
||||
result_.version = resultNode["version"].asString();
|
||||
if(!resultNode["dataNode"].isNull())
|
||||
result_.dataNode = resultNode["dataNode"].asString() == "true";
|
||||
if(!resultNode["paymentType"].isNull())
|
||||
result_.paymentType = resultNode["paymentType"].asString();
|
||||
if(!resultNode["protocol"].isNull())
|
||||
result_.protocol = resultNode["protocol"].asString();
|
||||
if(!resultNode["zoneCount"].isNull())
|
||||
result_.zoneCount = std::stol(resultNode["zoneCount"].asString());
|
||||
auto allendpointListNode = resultNode["endpointList"]["endpointListItem"];
|
||||
for (auto resultNodeendpointListendpointListItem : allendpointListNode)
|
||||
{
|
||||
Result::EndpointListItem endpointListItemObject;
|
||||
if(!resultNodeendpointListendpointListItem["host"].isNull())
|
||||
endpointListItemObject.host = resultNodeendpointListendpointListItem["host"].asString();
|
||||
if(!resultNodeendpointListendpointListItem["port"].isNull())
|
||||
endpointListItemObject.port = std::stol(resultNodeendpointListendpointListItem["port"].asString());
|
||||
if(!resultNodeendpointListendpointListItem["zoneId"].isNull())
|
||||
endpointListItemObject.zoneId = resultNodeendpointListendpointListItem["zoneId"].asString();
|
||||
result_.endpointList.push_back(endpointListItemObject);
|
||||
}
|
||||
auto allzoneInfosNode = resultNode["zoneInfos"]["zoneInfosItem"];
|
||||
for (auto resultNodezoneInfoszoneInfosItem : allzoneInfosNode)
|
||||
{
|
||||
Result::ZoneInfosItem zoneInfosItemObject;
|
||||
if(!resultNodezoneInfoszoneInfosItem["status"].isNull())
|
||||
zoneInfosItemObject.status = resultNodezoneInfoszoneInfosItem["status"].asString();
|
||||
if(!resultNodezoneInfoszoneInfosItem["zoneId"].isNull())
|
||||
zoneInfosItemObject.zoneId = resultNodezoneInfoszoneInfosItem["zoneId"].asString();
|
||||
result_.zoneInfos.push_back(zoneInfosItemObject);
|
||||
}
|
||||
auto alltagsNode = resultNode["tags"]["tagsItem"];
|
||||
for (auto resultNodetagstagsItem : alltagsNode)
|
||||
{
|
||||
Result::TagsItem tagsItemObject;
|
||||
if(!resultNodetagstagsItem["tagKey"].isNull())
|
||||
tagsItemObject.tagKey = resultNodetagstagsItem["tagKey"].asString();
|
||||
if(!resultNodetagstagsItem["tagValue"].isNull())
|
||||
tagsItemObject.tagValue = resultNodetagstagsItem["tagValue"].asString();
|
||||
result_.tags.push_back(tagsItemObject);
|
||||
}
|
||||
auto networkConfigNode = resultNode["networkConfig"];
|
||||
if(!networkConfigNode["type"].isNull())
|
||||
result_.networkConfig.type = networkConfigNode["type"].asString();
|
||||
if(!networkConfigNode["vpcId"].isNull())
|
||||
result_.networkConfig.vpcId = networkConfigNode["vpcId"].asString();
|
||||
if(!networkConfigNode["vsArea"].isNull())
|
||||
result_.networkConfig.vsArea = networkConfigNode["vsArea"].asString();
|
||||
if(!networkConfigNode["vswitchId"].isNull())
|
||||
result_.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString();
|
||||
auto nodeSpecNode = resultNode["nodeSpec"];
|
||||
if(!nodeSpecNode["disk"].isNull())
|
||||
result_.nodeSpec.disk = std::stol(nodeSpecNode["disk"].asString());
|
||||
if(!nodeSpecNode["diskType"].isNull())
|
||||
result_.nodeSpec.diskType = nodeSpecNode["diskType"].asString();
|
||||
if(!nodeSpecNode["spec"].isNull())
|
||||
result_.nodeSpec.spec = nodeSpecNode["spec"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +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/elasticsearch/model/CreatePipelinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreatePipelinesRequest;
|
||||
|
||||
CreatePipelinesRequest::CreatePipelinesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipelines");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePipelinesRequest::~CreatePipelinesRequest()
|
||||
{}
|
||||
|
||||
std::string CreatePipelinesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreatePipelinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreatePipelinesRequest;
|
||||
|
||||
CreatePipelinesRequest::CreatePipelinesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipelines"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreatePipelinesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreatePipelinesRequest::~CreatePipelinesRequest() {}
|
||||
|
||||
string CreatePipelinesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreatePipelinesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreatePipelinesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreatePipelinesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreatePipelinesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
bool CreatePipelinesRequest::getTrigger()const
|
||||
{
|
||||
return trigger_;
|
||||
void CreatePipelinesRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void CreatePipelinesRequest::setTrigger(bool trigger)
|
||||
{
|
||||
trigger_ = trigger;
|
||||
setParameter("Trigger", trigger ? "true" : "false");
|
||||
boolean CreatePipelinesRequest::getTrigger() const {
|
||||
return trigger_;
|
||||
}
|
||||
|
||||
void CreatePipelinesRequest::setTrigger(boolean trigger) {
|
||||
trigger_ = trigger;
|
||||
setParameter(std::string("trigger"), std::to_string(trigger));
|
||||
}
|
||||
|
||||
string CreatePipelinesRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreatePipelinesRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/CreateSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateSnapshotRequest;
|
||||
|
||||
CreateSnapshotRequest::CreateSnapshotRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshots");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSnapshotRequest::~CreateSnapshotRequest()
|
||||
{}
|
||||
|
||||
std::string CreateSnapshotRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateSnapshotRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateSnapshotRequest;
|
||||
|
||||
CreateSnapshotRequest::CreateSnapshotRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshots"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateSnapshotRequest::~CreateSnapshotRequest() {}
|
||||
|
||||
string CreateSnapshotRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string CreateSnapshotRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateSnapshotRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreateSnapshotRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string CreateSnapshotRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateSnapshotRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +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/elasticsearch/model/CreateVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateVpcEndpointRequest;
|
||||
|
||||
CreateVpcEndpointRequest::CreateVpcEndpointRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/vpc-endpoints");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateVpcEndpointRequest::~CreateVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/CreateVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::CreateVpcEndpointRequest;
|
||||
|
||||
CreateVpcEndpointRequest::CreateVpcEndpointRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/vpc-endpoints"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
CreateVpcEndpointRequest::~CreateVpcEndpointRequest() {}
|
||||
|
||||
string CreateVpcEndpointRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool CreateVpcEndpointRequest::getDryRun()const
|
||||
{
|
||||
return dryRun_;
|
||||
void CreateVpcEndpointRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setDryRun(bool dryRun)
|
||||
{
|
||||
dryRun_ = dryRun;
|
||||
setParameter("DryRun", dryRun ? "true" : "false");
|
||||
boolean CreateVpcEndpointRequest::getDryRun() const {
|
||||
return dryRun_;
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void CreateVpcEndpointRequest::setDryRun(boolean dryRun) {
|
||||
dryRun_ = dryRun;
|
||||
setParameter(std::string("dryRun"), std::to_string(dryRun));
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string CreateVpcEndpointRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
std::string CreateVpcEndpointRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateVpcEndpointRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void CreateVpcEndpointResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["endpointId"].isNull())
|
||||
result_.endpointId = resultNode["endpointId"].asString();
|
||||
if(!resultNode["endpointName"].isNull())
|
||||
result_.endpointName = resultNode["endpointName"].asString();
|
||||
if(!resultNode["serviceId"].isNull())
|
||||
result_.serviceId = resultNode["serviceId"].asString();
|
||||
if(!resultNode["endpointDomain"].isNull())
|
||||
result_.endpointDomain = resultNode["endpointDomain"].asString();
|
||||
if(!resultNode["endpointId"].isNull())
|
||||
result_.endpointId = resultNode["endpointId"].asString();
|
||||
if(!resultNode["endpointName"].isNull())
|
||||
result_.endpointName = resultNode["endpointName"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/DeactivateZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeactivateZonesRequest;
|
||||
|
||||
DeactivateZonesRequest::DeactivateZonesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/down-zones");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeactivateZonesRequest::~DeactivateZonesRequest()
|
||||
{}
|
||||
|
||||
std::string DeactivateZonesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeactivateZonesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeactivateZonesRequest;
|
||||
|
||||
DeactivateZonesRequest::DeactivateZonesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/actions/down-zones"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeactivateZonesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeactivateZonesRequest::~DeactivateZonesRequest() {}
|
||||
|
||||
string DeactivateZonesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeactivateZonesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeactivateZonesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeactivateZonesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeactivateZonesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeactivateZonesRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
string DeactivateZonesRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void DeactivateZonesRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteCollectorRequest;
|
||||
|
||||
DeleteCollectorRequest::DeleteCollectorRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/collectors/[ResId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteCollectorRequest::~DeleteCollectorRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteCollectorRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteCollectorRequest;
|
||||
|
||||
DeleteCollectorRequest::DeleteCollectorRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/collectors/[ResId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteCollectorRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
DeleteCollectorRequest::~DeleteCollectorRequest() {}
|
||||
|
||||
string DeleteCollectorRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteCollectorRequest::getResId()const
|
||||
{
|
||||
return resId_;
|
||||
void DeleteCollectorRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteCollectorRequest::setResId(const std::string& resId)
|
||||
{
|
||||
resId_ = resId;
|
||||
setParameter("ResId", resId);
|
||||
string DeleteCollectorRequest::getResId() const {
|
||||
return resId_;
|
||||
}
|
||||
|
||||
void DeleteCollectorRequest::setResId(string resId) {
|
||||
resId_ = resId;
|
||||
setParameter(std::string("ResId"), std::to_string(resId));
|
||||
}
|
||||
|
||||
|
||||
46
elasticsearch/src/model/DeleteComponentIndexRequest.cc
Normal file
46
elasticsearch/src/model/DeleteComponentIndexRequest.cc
Normal file
@@ -0,0 +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/elasticsearch/model/DeleteComponentIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteComponentIndexRequest;
|
||||
|
||||
DeleteComponentIndexRequest::DeleteComponentIndexRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/component-index/[name]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteComponentIndexRequest::~DeleteComponentIndexRequest() {}
|
||||
|
||||
string DeleteComponentIndexRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteComponentIndexRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
string DeleteComponentIndexRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteComponentIndexRequest::setName(string name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("name"), std::to_string(name));
|
||||
}
|
||||
|
||||
51
elasticsearch/src/model/DeleteComponentIndexResult.cc
Normal file
51
elasticsearch/src/model/DeleteComponentIndexResult.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/DeleteComponentIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
DeleteComponentIndexResult::DeleteComponentIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteComponentIndexResult::DeleteComponentIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteComponentIndexResult::~DeleteComponentIndexResult()
|
||||
{}
|
||||
|
||||
void DeleteComponentIndexResult::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 DeleteComponentIndexResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteConnectedClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteConnectedClusterRequest;
|
||||
|
||||
DeleteConnectedClusterRequest::DeleteConnectedClusterRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/connected-clusters");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteConnectedClusterRequest::~DeleteConnectedClusterRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteConnectedClusterRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteConnectedClusterRequest;
|
||||
|
||||
DeleteConnectedClusterRequest::DeleteConnectedClusterRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/connected-clusters"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteConnectedClusterRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteConnectedClusterRequest::~DeleteConnectedClusterRequest() {}
|
||||
|
||||
string DeleteConnectedClusterRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteConnectedClusterRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteConnectedClusterRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteConnectedClusterRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteConnectedClusterRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteConnectedClusterRequest::getConnectedInstanceId()const
|
||||
{
|
||||
return connectedInstanceId_;
|
||||
void DeleteConnectedClusterRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteConnectedClusterRequest::setConnectedInstanceId(const std::string& connectedInstanceId)
|
||||
{
|
||||
connectedInstanceId_ = connectedInstanceId;
|
||||
setParameter("ConnectedInstanceId", connectedInstanceId);
|
||||
string DeleteConnectedClusterRequest::getConnectedInstanceId() const {
|
||||
return connectedInstanceId_;
|
||||
}
|
||||
|
||||
void DeleteConnectedClusterRequest::setConnectedInstanceId(string connectedInstanceId) {
|
||||
connectedInstanceId_ = connectedInstanceId;
|
||||
setParameter(std::string("connectedInstanceId"), std::to_string(connectedInstanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteDataStreamRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteDataStreamRequest;
|
||||
|
||||
DeleteDataStreamRequest::DeleteDataStreamRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-streams/[DataStream]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteDataStreamRequest::~DeleteDataStreamRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDataStreamRequest::getDataStream()const
|
||||
{
|
||||
return dataStream_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteDataStreamRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteDataStreamRequest;
|
||||
|
||||
DeleteDataStreamRequest::DeleteDataStreamRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-streams/[DataStream]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteDataStreamRequest::setDataStream(const std::string& dataStream)
|
||||
{
|
||||
dataStream_ = dataStream;
|
||||
setParameter("DataStream", dataStream);
|
||||
DeleteDataStreamRequest::~DeleteDataStreamRequest() {}
|
||||
|
||||
string DeleteDataStreamRequest::getDataStream() const {
|
||||
return dataStream_;
|
||||
}
|
||||
|
||||
std::string DeleteDataStreamRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void DeleteDataStreamRequest::setDataStream(string dataStream) {
|
||||
dataStream_ = dataStream;
|
||||
setParameter(std::string("DataStream"), std::to_string(dataStream));
|
||||
}
|
||||
|
||||
void DeleteDataStreamRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
string DeleteDataStreamRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteDataStreamRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteDataStreamRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteDataStreamRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteDataStreamRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DeleteDataStreamRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteDataTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteDataTaskRequest;
|
||||
|
||||
DeleteDataTaskRequest::DeleteDataTaskRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-task");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteDataTaskRequest::~DeleteDataTaskRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDataTaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteDataTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteDataTaskRequest;
|
||||
|
||||
DeleteDataTaskRequest::DeleteDataTaskRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/data-task"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteDataTaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteDataTaskRequest::~DeleteDataTaskRequest() {}
|
||||
|
||||
string DeleteDataTaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteDataTaskRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteDataTaskRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteDataTaskRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteDataTaskRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteDataTaskRequest::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
void DeleteDataTaskRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteDataTaskRequest::setTaskId(const std::string& taskId)
|
||||
{
|
||||
taskId_ = taskId;
|
||||
setParameter("TaskId", taskId);
|
||||
string DeleteDataTaskRequest::getTaskId() const {
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
void DeleteDataTaskRequest::setTaskId(string taskId) {
|
||||
taskId_ = taskId;
|
||||
setParameter(std::string("taskId"), std::to_string(taskId));
|
||||
}
|
||||
|
||||
|
||||
46
elasticsearch/src/model/DeleteDeprecatedTemplateRequest.cc
Normal file
46
elasticsearch/src/model/DeleteDeprecatedTemplateRequest.cc
Normal file
@@ -0,0 +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/elasticsearch/model/DeleteDeprecatedTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteDeprecatedTemplateRequest;
|
||||
|
||||
DeleteDeprecatedTemplateRequest::DeleteDeprecatedTemplateRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/deprecated-templates/[name]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteDeprecatedTemplateRequest::~DeleteDeprecatedTemplateRequest() {}
|
||||
|
||||
string DeleteDeprecatedTemplateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DeleteDeprecatedTemplateRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
string DeleteDeprecatedTemplateRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DeleteDeprecatedTemplateRequest::setName(string name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("name"), std::to_string(name));
|
||||
}
|
||||
|
||||
51
elasticsearch/src/model/DeleteDeprecatedTemplateResult.cc
Normal file
51
elasticsearch/src/model/DeleteDeprecatedTemplateResult.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/DeleteDeprecatedTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
DeleteDeprecatedTemplateResult::DeleteDeprecatedTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDeprecatedTemplateResult::DeleteDeprecatedTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDeprecatedTemplateResult::~DeleteDeprecatedTemplateResult()
|
||||
{}
|
||||
|
||||
void DeleteDeprecatedTemplateResult::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 DeleteDeprecatedTemplateResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteILMPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteILMPolicyRequest;
|
||||
|
||||
DeleteILMPolicyRequest::DeleteILMPolicyRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/ilm-policies/[PolicyName]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteILMPolicyRequest::~DeleteILMPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteILMPolicyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteILMPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteILMPolicyRequest;
|
||||
|
||||
DeleteILMPolicyRequest::DeleteILMPolicyRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/ilm-policies/[PolicyName]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteILMPolicyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteILMPolicyRequest::~DeleteILMPolicyRequest() {}
|
||||
|
||||
string DeleteILMPolicyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteILMPolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
void DeleteILMPolicyRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteILMPolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
string DeleteILMPolicyRequest::getPolicyName() const {
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DeleteILMPolicyRequest::setPolicyName(string policyName) {
|
||||
policyName_ = policyName;
|
||||
setParameter(std::string("PolicyName"), std::to_string(policyName));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteIndexTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteIndexTemplateRequest;
|
||||
|
||||
DeleteIndexTemplateRequest::DeleteIndexTemplateRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/index-templates/[IndexTemplate]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteIndexTemplateRequest::~DeleteIndexTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteIndexTemplateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteIndexTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteIndexTemplateRequest;
|
||||
|
||||
DeleteIndexTemplateRequest::DeleteIndexTemplateRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/index-templates/[IndexTemplate]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteIndexTemplateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteIndexTemplateRequest::~DeleteIndexTemplateRequest() {}
|
||||
|
||||
string DeleteIndexTemplateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteIndexTemplateRequest::getIndexTemplate()const
|
||||
{
|
||||
return indexTemplate_;
|
||||
void DeleteIndexTemplateRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteIndexTemplateRequest::setIndexTemplate(const std::string& indexTemplate)
|
||||
{
|
||||
indexTemplate_ = indexTemplate;
|
||||
setParameter("IndexTemplate", indexTemplate);
|
||||
string DeleteIndexTemplateRequest::getIndexTemplate() const {
|
||||
return indexTemplate_;
|
||||
}
|
||||
|
||||
void DeleteIndexTemplateRequest::setIndexTemplate(string indexTemplate) {
|
||||
indexTemplate_ = indexTemplate;
|
||||
setParameter(std::string("IndexTemplate"), std::to_string(indexTemplate));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest() {}
|
||||
|
||||
string DeleteInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteInstanceRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getDeleteType()const
|
||||
{
|
||||
return deleteType_;
|
||||
void DeleteInstanceRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setDeleteType(const std::string& deleteType)
|
||||
{
|
||||
deleteType_ = deleteType;
|
||||
setParameter("DeleteType", deleteType);
|
||||
string DeleteInstanceRequest::getDeleteType() const {
|
||||
return deleteType_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setDeleteType(string deleteType) {
|
||||
deleteType_ = deleteType;
|
||||
setParameter(std::string("deleteType"), std::to_string(deleteType));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteLogstashRequest;
|
||||
|
||||
DeleteLogstashRequest::DeleteLogstashRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteLogstashRequest::~DeleteLogstashRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteLogstashRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteLogstashRequest;
|
||||
|
||||
DeleteLogstashRequest::DeleteLogstashRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteLogstashRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteLogstashRequest::~DeleteLogstashRequest() {}
|
||||
|
||||
string DeleteLogstashRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteLogstashRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteLogstashRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteLogstashRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteLogstashRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteLogstashRequest::getDeleteType()const
|
||||
{
|
||||
return deleteType_;
|
||||
void DeleteLogstashRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteLogstashRequest::setDeleteType(const std::string& deleteType)
|
||||
{
|
||||
deleteType_ = deleteType;
|
||||
setParameter("DeleteType", deleteType);
|
||||
string DeleteLogstashRequest::getDeleteType() const {
|
||||
return deleteType_;
|
||||
}
|
||||
|
||||
void DeleteLogstashRequest::setDeleteType(string deleteType) {
|
||||
deleteType_ = deleteType;
|
||||
setParameter(std::string("deleteType"), std::to_string(deleteType));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeletePipelinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeletePipelinesRequest;
|
||||
|
||||
DeletePipelinesRequest::DeletePipelinesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipelines");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeletePipelinesRequest::~DeletePipelinesRequest()
|
||||
{}
|
||||
|
||||
std::string DeletePipelinesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeletePipelinesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeletePipelinesRequest;
|
||||
|
||||
DeletePipelinesRequest::DeletePipelinesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipelines"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeletePipelinesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeletePipelinesRequest::~DeletePipelinesRequest() {}
|
||||
|
||||
string DeletePipelinesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeletePipelinesRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeletePipelinesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeletePipelinesRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeletePipelinesRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeletePipelinesRequest::getPipelineIds()const
|
||||
{
|
||||
return pipelineIds_;
|
||||
void DeletePipelinesRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeletePipelinesRequest::setPipelineIds(const std::string& pipelineIds)
|
||||
{
|
||||
pipelineIds_ = pipelineIds;
|
||||
setParameter("PipelineIds", pipelineIds);
|
||||
string DeletePipelinesRequest::getPipelineIds() const {
|
||||
return pipelineIds_;
|
||||
}
|
||||
|
||||
void DeletePipelinesRequest::setPipelineIds(string pipelineIds) {
|
||||
pipelineIds_ = pipelineIds;
|
||||
setParameter(std::string("pipelineIds"), std::to_string(pipelineIds));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteSnapshotRepoRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteSnapshotRepoRequest;
|
||||
|
||||
DeleteSnapshotRepoRequest::DeleteSnapshotRepoRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteSnapshotRepoRequest::~DeleteSnapshotRepoRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteSnapshotRepoRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteSnapshotRepoRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteSnapshotRepoRequest;
|
||||
|
||||
DeleteSnapshotRepoRequest::DeleteSnapshotRepoRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteSnapshotRepoRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteSnapshotRepoRequest::~DeleteSnapshotRepoRequest() {}
|
||||
|
||||
string DeleteSnapshotRepoRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteSnapshotRepoRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteSnapshotRepoRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteSnapshotRepoRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteSnapshotRepoRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteSnapshotRepoRequest::getRepoPath()const
|
||||
{
|
||||
return repoPath_;
|
||||
void DeleteSnapshotRepoRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteSnapshotRepoRequest::setRepoPath(const std::string& repoPath)
|
||||
{
|
||||
repoPath_ = repoPath;
|
||||
setParameter("RepoPath", repoPath);
|
||||
string DeleteSnapshotRepoRequest::getRepoPath() const {
|
||||
return repoPath_;
|
||||
}
|
||||
|
||||
void DeleteSnapshotRepoRequest::setRepoPath(string repoPath) {
|
||||
repoPath_ = repoPath;
|
||||
setParameter(std::string("repoPath"), std::to_string(repoPath));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DeleteVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteVpcEndpointRequest;
|
||||
|
||||
DeleteVpcEndpointRequest::DeleteVpcEndpointRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/vpc-endpoints/[EndpointId]");
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
DeleteVpcEndpointRequest::~DeleteVpcEndpointRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DeleteVpcEndpointRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DeleteVpcEndpointRequest;
|
||||
|
||||
DeleteVpcEndpointRequest::DeleteVpcEndpointRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/vpc-endpoints/[EndpointId]"};
|
||||
setMethod(HttpRequest::Method::Delete);
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DeleteVpcEndpointRequest::~DeleteVpcEndpointRequest() {}
|
||||
|
||||
string DeleteVpcEndpointRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DeleteVpcEndpointRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DeleteVpcEndpointRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DeleteVpcEndpointRequest::getEndpointId()const
|
||||
{
|
||||
return endpointId_;
|
||||
void DeleteVpcEndpointRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setEndpointId(const std::string& endpointId)
|
||||
{
|
||||
endpointId_ = endpointId;
|
||||
setParameter("EndpointId", endpointId);
|
||||
string DeleteVpcEndpointRequest::getEndpointId() const {
|
||||
return endpointId_;
|
||||
}
|
||||
|
||||
void DeleteVpcEndpointRequest::setEndpointId(string endpointId) {
|
||||
endpointId_ = endpointId;
|
||||
setParameter(std::string("EndpointId"), std::to_string(endpointId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeAckOperatorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeAckOperatorRequest;
|
||||
|
||||
DescribeAckOperatorRequest::DescribeAckOperatorRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/ack-clusters/[ClusterId]/operator");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeAckOperatorRequest::~DescribeAckOperatorRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAckOperatorRequest::getClusterId()const
|
||||
{
|
||||
return clusterId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeAckOperatorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeAckOperatorRequest;
|
||||
|
||||
DescribeAckOperatorRequest::DescribeAckOperatorRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/ack-clusters/[ClusterId]/operator"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeAckOperatorRequest::setClusterId(const std::string& clusterId)
|
||||
{
|
||||
clusterId_ = clusterId;
|
||||
setParameter("ClusterId", clusterId);
|
||||
DescribeAckOperatorRequest::~DescribeAckOperatorRequest() {}
|
||||
|
||||
string DescribeAckOperatorRequest::getClusterId() const {
|
||||
return clusterId_;
|
||||
}
|
||||
|
||||
void DescribeAckOperatorRequest::setClusterId(string clusterId) {
|
||||
clusterId_ = clusterId;
|
||||
setParameter(std::string("ClusterId"), std::to_string(clusterId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void DescribeAckOperatorResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["version"].isNull())
|
||||
result_.version = resultNode["version"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeApmRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeApmRequest;
|
||||
|
||||
DescribeApmRequest::DescribeApmRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/apm/[instanceId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeApmRequest::~DescribeApmRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeApmRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeApmRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeApmRequest;
|
||||
|
||||
DescribeApmRequest::DescribeApmRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/apm/[instanceId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeApmRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeApmRequest::~DescribeApmRequest() {}
|
||||
|
||||
string DescribeApmRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeApmRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("instanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeCollectorRequest;
|
||||
|
||||
DescribeCollectorRequest::DescribeCollectorRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/collectors/[ResId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeCollectorRequest::~DescribeCollectorRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCollectorRequest::getResId()const
|
||||
{
|
||||
return resId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeCollectorRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeCollectorRequest;
|
||||
|
||||
DescribeCollectorRequest::DescribeCollectorRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/collectors/[ResId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeCollectorRequest::setResId(const std::string& resId)
|
||||
{
|
||||
resId_ = resId;
|
||||
setParameter("ResId", resId);
|
||||
DescribeCollectorRequest::~DescribeCollectorRequest() {}
|
||||
|
||||
string DescribeCollectorRequest::getResId() const {
|
||||
return resId_;
|
||||
}
|
||||
|
||||
void DescribeCollectorRequest::setResId(string resId) {
|
||||
resId_ = resId;
|
||||
setParameter(std::string("ResId"), std::to_string(resId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,72 +40,72 @@ void DescribeCollectorResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["gmtCreatedTime"].isNull())
|
||||
result_.gmtCreatedTime = resultNode["gmtCreatedTime"].asString();
|
||||
if(!resultNode["gmtUpdateTime"].isNull())
|
||||
result_.gmtUpdateTime = resultNode["gmtUpdateTime"].asString();
|
||||
if(!resultNode["name"].isNull())
|
||||
result_.name = resultNode["name"].asString();
|
||||
if(!resultNode["resId"].isNull())
|
||||
result_.resId = resultNode["resId"].asString();
|
||||
if(!resultNode["resVersion"].isNull())
|
||||
result_.resVersion = resultNode["resVersion"].asString();
|
||||
if(!resultNode["gmtUpdateTime"].isNull())
|
||||
result_.gmtUpdateTime = resultNode["gmtUpdateTime"].asString();
|
||||
if(!resultNode["dryRun"].isNull())
|
||||
result_.dryRun = resultNode["dryRun"].asString() == "true";
|
||||
if(!resultNode["ownerId"].isNull())
|
||||
result_.ownerId = resultNode["ownerId"].asString();
|
||||
if(!resultNode["vpcId"].isNull())
|
||||
result_.vpcId = resultNode["vpcId"].asString();
|
||||
if(!resultNode["resType"].isNull())
|
||||
result_.resType = resultNode["resType"].asString();
|
||||
if(!resultNode["ownerId"].isNull())
|
||||
result_.ownerId = resultNode["ownerId"].asString();
|
||||
if(!resultNode["resVersion"].isNull())
|
||||
result_.resVersion = resultNode["resVersion"].asString();
|
||||
if(!resultNode["gmtCreatedTime"].isNull())
|
||||
result_.gmtCreatedTime = resultNode["gmtCreatedTime"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["dryRun"].isNull())
|
||||
result_.dryRun = resultNode["dryRun"].asString() == "true";
|
||||
if(!resultNode["name"].isNull())
|
||||
result_.name = resultNode["name"].asString();
|
||||
auto allconfigsNode = resultNode["configs"]["configsItem"];
|
||||
for (auto resultNodeconfigsconfigsItem : allconfigsNode)
|
||||
{
|
||||
Result::ConfigsItem configsItemObject;
|
||||
if(!resultNodeconfigsconfigsItem["fileName"].isNull())
|
||||
configsItemObject.fileName = resultNodeconfigsconfigsItem["fileName"].asString();
|
||||
if(!resultNodeconfigsconfigsItem["content"].isNull())
|
||||
configsItemObject.content = resultNodeconfigsconfigsItem["content"].asString();
|
||||
if(!resultNodeconfigsconfigsItem["fileName"].isNull())
|
||||
configsItemObject.fileName = resultNodeconfigsconfigsItem["fileName"].asString();
|
||||
result_.configs.push_back(configsItemObject);
|
||||
}
|
||||
auto allextendConfigsNode = resultNode["extendConfigs"]["extendConfigsItem"];
|
||||
for (auto resultNodeextendConfigsextendConfigsItem : allextendConfigsNode)
|
||||
{
|
||||
Result::ExtendConfigsItem extendConfigsItemObject;
|
||||
if(!resultNodeextendConfigsextendConfigsItem["configType"].isNull())
|
||||
extendConfigsItemObject.configType = resultNodeextendConfigsextendConfigsItem["configType"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["instanceId"].isNull())
|
||||
extendConfigsItemObject.instanceId = resultNodeextendConfigsextendConfigsItem["instanceId"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["instanceType"].isNull())
|
||||
extendConfigsItemObject.instanceType = resultNodeextendConfigsextendConfigsItem["instanceType"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["successPodsCount"].isNull())
|
||||
extendConfigsItemObject.successPodsCount = resultNodeextendConfigsextendConfigsItem["successPodsCount"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["protocol"].isNull())
|
||||
extendConfigsItemObject.protocol = resultNodeextendConfigsextendConfigsItem["protocol"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["userName"].isNull())
|
||||
extendConfigsItemObject.userName = resultNodeextendConfigsextendConfigsItem["userName"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["enableMonitoring"].isNull())
|
||||
extendConfigsItemObject.enableMonitoring = resultNodeextendConfigsextendConfigsItem["enableMonitoring"].asString() == "true";
|
||||
if(!resultNodeextendConfigsextendConfigsItem["totalPodsCount"].isNull())
|
||||
extendConfigsItemObject.totalPodsCount = resultNodeextendConfigsextendConfigsItem["totalPodsCount"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["type"].isNull())
|
||||
extendConfigsItemObject.type = resultNodeextendConfigsextendConfigsItem["type"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["kibanaHost"].isNull())
|
||||
extendConfigsItemObject.kibanaHost = resultNodeextendConfigsextendConfigsItem["kibanaHost"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["enableMonitoring"].isNull())
|
||||
extendConfigsItemObject.enableMonitoring = resultNodeextendConfigsextendConfigsItem["enableMonitoring"].asString() == "true";
|
||||
if(!resultNodeextendConfigsextendConfigsItem["configType"].isNull())
|
||||
extendConfigsItemObject.configType = resultNodeextendConfigsextendConfigsItem["configType"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["instanceType"].isNull())
|
||||
extendConfigsItemObject.instanceType = resultNodeextendConfigsextendConfigsItem["instanceType"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["groupId"].isNull())
|
||||
extendConfigsItemObject.groupId = resultNodeextendConfigsextendConfigsItem["groupId"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["host"].isNull())
|
||||
extendConfigsItemObject.host = resultNodeextendConfigsextendConfigsItem["host"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["kibanaHost"].isNull())
|
||||
extendConfigsItemObject.kibanaHost = resultNodeextendConfigsextendConfigsItem["kibanaHost"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["totalPodsCount"].isNull())
|
||||
extendConfigsItemObject.totalPodsCount = resultNodeextendConfigsextendConfigsItem["totalPodsCount"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["successPodsCount"].isNull())
|
||||
extendConfigsItemObject.successPodsCount = resultNodeextendConfigsextendConfigsItem["successPodsCount"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItem["instanceId"].isNull())
|
||||
extendConfigsItemObject.instanceId = resultNodeextendConfigsextendConfigsItem["instanceId"].asString();
|
||||
auto allmachinesNode = resultNodeextendConfigsextendConfigsItem["machines"]["machinesItem"];
|
||||
for (auto resultNodeextendConfigsextendConfigsItemmachinesmachinesItem : allmachinesNode)
|
||||
{
|
||||
Result::ExtendConfigsItem::MachinesItem machinesObject;
|
||||
if(!resultNodeextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].isNull())
|
||||
machinesObject.instanceId = resultNodeextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItemmachinesmachinesItem["agentStatus"].isNull())
|
||||
machinesObject.agentStatus = resultNodeextendConfigsextendConfigsItemmachinesmachinesItem["agentStatus"].asString();
|
||||
if(!resultNodeextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].isNull())
|
||||
machinesObject.instanceId = resultNodeextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].asString();
|
||||
extendConfigsItemObject.machines.push_back(machinesObject);
|
||||
}
|
||||
auto allHosts = value["hosts"]["hosts"];
|
||||
|
||||
46
elasticsearch/src/model/DescribeComponentIndexRequest.cc
Normal file
46
elasticsearch/src/model/DescribeComponentIndexRequest.cc
Normal file
@@ -0,0 +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/elasticsearch/model/DescribeComponentIndexRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeComponentIndexRequest;
|
||||
|
||||
DescribeComponentIndexRequest::DescribeComponentIndexRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/component-index/[name]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeComponentIndexRequest::~DescribeComponentIndexRequest() {}
|
||||
|
||||
string DescribeComponentIndexRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeComponentIndexRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
string DescribeComponentIndexRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeComponentIndexRequest::setName(string name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("name"), std::to_string(name));
|
||||
}
|
||||
|
||||
59
elasticsearch/src/model/DescribeComponentIndexResult.cc
Normal file
59
elasticsearch/src/model/DescribeComponentIndexResult.cc
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeComponentIndexResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
DescribeComponentIndexResult::DescribeComponentIndexResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeComponentIndexResult::DescribeComponentIndexResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeComponentIndexResult::~DescribeComponentIndexResult()
|
||||
{}
|
||||
|
||||
void DescribeComponentIndexResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["_meta"].isNull())
|
||||
result_._meta = resultNode["_meta"].asString();
|
||||
auto _templateNode = resultNode["template"];
|
||||
if(!_templateNode["aliases"].isNull())
|
||||
result_._template.aliases = _templateNode["aliases"].asString();
|
||||
if(!_templateNode["mappings"].isNull())
|
||||
result_._template.mappings = _templateNode["mappings"].asString();
|
||||
if(!_templateNode["settings"].isNull())
|
||||
result_._template.settings = _templateNode["settings"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeComponentIndexResult::Result DescribeComponentIndexResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeConnectableClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeConnectableClustersRequest;
|
||||
|
||||
DescribeConnectableClustersRequest::DescribeConnectableClustersRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/connectable-clusters");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeConnectableClustersRequest::~DescribeConnectableClustersRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeConnectableClustersRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeConnectableClustersRequest;
|
||||
|
||||
DescribeConnectableClustersRequest::DescribeConnectableClustersRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/connectable-clusters"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeConnectableClustersRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeConnectableClustersRequest::~DescribeConnectableClustersRequest() {}
|
||||
|
||||
string DescribeConnectableClustersRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool DescribeConnectableClustersRequest::getAlreadySetItems()const
|
||||
{
|
||||
return alreadySetItems_;
|
||||
void DescribeConnectableClustersRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribeConnectableClustersRequest::setAlreadySetItems(bool alreadySetItems)
|
||||
{
|
||||
alreadySetItems_ = alreadySetItems;
|
||||
setParameter("AlreadySetItems", alreadySetItems ? "true" : "false");
|
||||
boolean DescribeConnectableClustersRequest::getAlreadySetItems() const {
|
||||
return alreadySetItems_;
|
||||
}
|
||||
|
||||
void DescribeConnectableClustersRequest::setAlreadySetItems(boolean alreadySetItems) {
|
||||
alreadySetItems_ = alreadySetItems;
|
||||
setParameter(std::string("alreadySetItems"), std::to_string(alreadySetItems));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void DescribeConnectableClustersResult::parse(const std::string &payload)
|
||||
for (auto valueResultConnectableClustersInfo : allResultNode)
|
||||
{
|
||||
ConnectableClustersInfo resultObject;
|
||||
if(!valueResultConnectableClustersInfo["instances"].isNull())
|
||||
resultObject.instances = valueResultConnectableClustersInfo["instances"].asString();
|
||||
if(!valueResultConnectableClustersInfo["networkType"].isNull())
|
||||
resultObject.networkType = valueResultConnectableClustersInfo["networkType"].asString();
|
||||
if(!valueResultConnectableClustersInfo["instances"].isNull())
|
||||
resultObject.instances = valueResultConnectableClustersInfo["instances"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
|
||||
|
||||
46
elasticsearch/src/model/DescribeDeprecatedTemplateRequest.cc
Normal file
46
elasticsearch/src/model/DescribeDeprecatedTemplateRequest.cc
Normal file
@@ -0,0 +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/elasticsearch/model/DescribeDeprecatedTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeDeprecatedTemplateRequest;
|
||||
|
||||
DescribeDeprecatedTemplateRequest::DescribeDeprecatedTemplateRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/deprecated-templates/[name]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDeprecatedTemplateRequest::~DescribeDeprecatedTemplateRequest() {}
|
||||
|
||||
string DescribeDeprecatedTemplateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeDeprecatedTemplateRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
string DescribeDeprecatedTemplateRequest::getName() const {
|
||||
return name_;
|
||||
}
|
||||
|
||||
void DescribeDeprecatedTemplateRequest::setName(string name) {
|
||||
name_ = name;
|
||||
setParameter(std::string("name"), std::to_string(name));
|
||||
}
|
||||
|
||||
68
elasticsearch/src/model/DescribeDeprecatedTemplateResult.cc
Normal file
68
elasticsearch/src/model/DescribeDeprecatedTemplateResult.cc
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
DescribeDeprecatedTemplateResult::DescribeDeprecatedTemplateResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDeprecatedTemplateResult::DescribeDeprecatedTemplateResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDeprecatedTemplateResult::~DescribeDeprecatedTemplateResult()
|
||||
{}
|
||||
|
||||
void DescribeDeprecatedTemplateResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["dataStream"].isNull())
|
||||
result_.dataStream = resultNode["dataStream"].asString() == "true";
|
||||
if(!resultNode["indexTemplate"].isNull())
|
||||
result_.indexTemplate = resultNode["indexTemplate"].asString();
|
||||
if(!resultNode["order"].isNull())
|
||||
result_.order = std::stol(resultNode["order"].asString());
|
||||
if(!resultNode["version"].isNull())
|
||||
result_.version = resultNode["version"].asString();
|
||||
auto _templateNode = resultNode["template"];
|
||||
if(!_templateNode["aliases"].isNull())
|
||||
result_._template.aliases = _templateNode["aliases"].asString();
|
||||
if(!_templateNode["mappings"].isNull())
|
||||
result_._template.mappings = _templateNode["mappings"].asString();
|
||||
if(!_templateNode["settings"].isNull())
|
||||
result_._template.settings = _templateNode["settings"].asString();
|
||||
auto allIndexPatterns = resultNode["indexPatterns"]["indexPatterns"];
|
||||
for (auto value : allIndexPatterns)
|
||||
result_.indexPatterns.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
DescribeDeprecatedTemplateResult::Result DescribeDeprecatedTemplateResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeDiagnoseReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeDiagnoseReportRequest;
|
||||
|
||||
DescribeDiagnoseReportRequest::DescribeDiagnoseReportRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/reports/[ReportId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDiagnoseReportRequest::~DescribeDiagnoseReportRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDiagnoseReportRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeDiagnoseReportRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeDiagnoseReportRequest;
|
||||
|
||||
DescribeDiagnoseReportRequest::DescribeDiagnoseReportRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/reports/[ReportId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeDiagnoseReportRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeDiagnoseReportRequest::~DescribeDiagnoseReportRequest() {}
|
||||
|
||||
string DescribeDiagnoseReportRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDiagnoseReportRequest::getReportId()const
|
||||
{
|
||||
return reportId_;
|
||||
void DescribeDiagnoseReportRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribeDiagnoseReportRequest::setReportId(const std::string& reportId)
|
||||
{
|
||||
reportId_ = reportId;
|
||||
setParameter("ReportId", reportId);
|
||||
string DescribeDiagnoseReportRequest::getReportId() const {
|
||||
return reportId_;
|
||||
}
|
||||
|
||||
std::string DescribeDiagnoseReportRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void DescribeDiagnoseReportRequest::setReportId(string reportId) {
|
||||
reportId_ = reportId;
|
||||
setParameter(std::string("ReportId"), std::to_string(reportId));
|
||||
}
|
||||
|
||||
void DescribeDiagnoseReportRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
string DescribeDiagnoseReportRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDiagnoseReportRequest::setLang(string lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("lang"), std::to_string(lang));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void DescribeDiagnoseReportResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["reportId"].isNull())
|
||||
result_.reportId = resultNode["reportId"].asString();
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["state"].isNull())
|
||||
result_.state = resultNode["state"].asString();
|
||||
if(!resultNode["createTime"].isNull())
|
||||
result_.createTime = std::stol(resultNode["createTime"].asString());
|
||||
if(!resultNode["health"].isNull())
|
||||
result_.health = resultNode["health"].asString();
|
||||
if(!resultNode["trigger"].isNull())
|
||||
result_.trigger = resultNode["trigger"].asString();
|
||||
if(!resultNode["createTime"].isNull())
|
||||
result_.createTime = std::stol(resultNode["createTime"].asString());
|
||||
if(!resultNode["reportId"].isNull())
|
||||
result_.reportId = resultNode["reportId"].asString();
|
||||
if(!resultNode["state"].isNull())
|
||||
result_.state = resultNode["state"].asString();
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["health"].isNull())
|
||||
result_.health = resultNode["health"].asString();
|
||||
auto alldiagnoseItemsNode = resultNode["diagnoseItems"]["diagnoseItemsItem"];
|
||||
for (auto resultNodediagnoseItemsdiagnoseItemsItem : alldiagnoseItemsNode)
|
||||
{
|
||||
@@ -61,16 +61,16 @@ void DescribeDiagnoseReportResult::parse(const std::string &payload)
|
||||
if(!resultNodediagnoseItemsdiagnoseItemsItem["health"].isNull())
|
||||
diagnoseItemsItemObject.health = resultNodediagnoseItemsdiagnoseItemsItem["health"].asString();
|
||||
auto detailNode = value["detail"];
|
||||
if(!detailNode["type"].isNull())
|
||||
diagnoseItemsItemObject.detail.type = detailNode["type"].asString();
|
||||
if(!detailNode["name"].isNull())
|
||||
diagnoseItemsItemObject.detail.name = detailNode["name"].asString();
|
||||
if(!detailNode["desc"].isNull())
|
||||
diagnoseItemsItemObject.detail.desc = detailNode["desc"].asString();
|
||||
if(!detailNode["type"].isNull())
|
||||
diagnoseItemsItemObject.detail.type = detailNode["type"].asString();
|
||||
if(!detailNode["suggest"].isNull())
|
||||
diagnoseItemsItemObject.detail.suggest = detailNode["suggest"].asString();
|
||||
if(!detailNode["result"].isNull())
|
||||
diagnoseItemsItemObject.detail.result = detailNode["result"].asString();
|
||||
if(!detailNode["suggest"].isNull())
|
||||
diagnoseItemsItemObject.detail.suggest = detailNode["suggest"].asString();
|
||||
result_.diagnoseItems.push_back(diagnoseItemsItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeDiagnosisSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeDiagnosisSettingsRequest;
|
||||
|
||||
DescribeDiagnosisSettingsRequest::DescribeDiagnosisSettingsRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/settings");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDiagnosisSettingsRequest::~DescribeDiagnosisSettingsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDiagnosisSettingsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeDiagnosisSettingsRequest;
|
||||
|
||||
DescribeDiagnosisSettingsRequest::DescribeDiagnosisSettingsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/settings"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeDiagnosisSettingsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeDiagnosisSettingsRequest::~DescribeDiagnosisSettingsRequest() {}
|
||||
|
||||
string DescribeDiagnosisSettingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeDiagnosisSettingsRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void DescribeDiagnosisSettingsRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribeDiagnosisSettingsRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
string DescribeDiagnosisSettingsRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeDiagnosisSettingsRequest::setLang(string lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("lang"), std::to_string(lang));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void DescribeDiagnosisSettingsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["scene"].isNull())
|
||||
result_.scene = resultNode["scene"].asString();
|
||||
if(!resultNode["updateTime"].isNull())
|
||||
result_.updateTime = std::stol(resultNode["updateTime"].asString());
|
||||
if(!resultNode["scene"].isNull())
|
||||
result_.scene = resultNode["scene"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
37
elasticsearch/src/model/DescribeDynamicSettingsRequest.cc
Normal file
37
elasticsearch/src/model/DescribeDynamicSettingsRequest.cc
Normal file
@@ -0,0 +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/elasticsearch/model/DescribeDynamicSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeDynamicSettingsRequest;
|
||||
|
||||
DescribeDynamicSettingsRequest::DescribeDynamicSettingsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/dynamic-settings"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeDynamicSettingsRequest::~DescribeDynamicSettingsRequest() {}
|
||||
|
||||
string DescribeDynamicSettingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeDynamicSettingsRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
51
elasticsearch/src/model/DescribeDynamicSettingsResult.cc
Normal file
51
elasticsearch/src/model/DescribeDynamicSettingsResult.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/DescribeDynamicSettingsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Elasticsearch;
|
||||
using namespace AlibabaCloud::Elasticsearch::Model;
|
||||
|
||||
DescribeDynamicSettingsResult::DescribeDynamicSettingsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDynamicSettingsResult::DescribeDynamicSettingsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDynamicSettingsResult::~DescribeDynamicSettingsResult()
|
||||
{}
|
||||
|
||||
void DescribeDynamicSettingsResult::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();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDynamicSettingsResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeElasticsearchHealthRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeElasticsearchHealthRequest;
|
||||
|
||||
DescribeElasticsearchHealthRequest::DescribeElasticsearchHealthRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/elasticsearch-health");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeElasticsearchHealthRequest::~DescribeElasticsearchHealthRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeElasticsearchHealthRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeElasticsearchHealthRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeElasticsearchHealthRequest;
|
||||
|
||||
DescribeElasticsearchHealthRequest::DescribeElasticsearchHealthRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/elasticsearch-health"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeElasticsearchHealthRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeElasticsearchHealthRequest::~DescribeElasticsearchHealthRequest() {}
|
||||
|
||||
string DescribeElasticsearchHealthRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeElasticsearchHealthRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeILMPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeILMPolicyRequest;
|
||||
|
||||
DescribeILMPolicyRequest::DescribeILMPolicyRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/ilm-policies/[PolicyName]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeILMPolicyRequest::~DescribeILMPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeILMPolicyRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeILMPolicyRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeILMPolicyRequest;
|
||||
|
||||
DescribeILMPolicyRequest::DescribeILMPolicyRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/ilm-policies/[PolicyName]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeILMPolicyRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeILMPolicyRequest::~DescribeILMPolicyRequest() {}
|
||||
|
||||
string DescribeILMPolicyRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeILMPolicyRequest::getPolicyName()const
|
||||
{
|
||||
return policyName_;
|
||||
void DescribeILMPolicyRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribeILMPolicyRequest::setPolicyName(const std::string& policyName)
|
||||
{
|
||||
policyName_ = policyName;
|
||||
setParameter("PolicyName", policyName);
|
||||
string DescribeILMPolicyRequest::getPolicyName() const {
|
||||
return policyName_;
|
||||
}
|
||||
|
||||
void DescribeILMPolicyRequest::setPolicyName(string policyName) {
|
||||
policyName_ = policyName;
|
||||
setParameter(std::string("PolicyName"), std::to_string(policyName));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeIndexTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeIndexTemplateRequest;
|
||||
|
||||
DescribeIndexTemplateRequest::DescribeIndexTemplateRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/index-templates/[IndexTemplate]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeIndexTemplateRequest::~DescribeIndexTemplateRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeIndexTemplateRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeIndexTemplateRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeIndexTemplateRequest;
|
||||
|
||||
DescribeIndexTemplateRequest::DescribeIndexTemplateRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/index-templates/[IndexTemplate]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeIndexTemplateRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeIndexTemplateRequest::~DescribeIndexTemplateRequest() {}
|
||||
|
||||
string DescribeIndexTemplateRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeIndexTemplateRequest::getIndexTemplate()const
|
||||
{
|
||||
return indexTemplate_;
|
||||
void DescribeIndexTemplateRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribeIndexTemplateRequest::setIndexTemplate(const std::string& indexTemplate)
|
||||
{
|
||||
indexTemplate_ = indexTemplate;
|
||||
setParameter("IndexTemplate", indexTemplate);
|
||||
string DescribeIndexTemplateRequest::getIndexTemplate() const {
|
||||
return indexTemplate_;
|
||||
}
|
||||
|
||||
void DescribeIndexTemplateRequest::setIndexTemplate(string indexTemplate) {
|
||||
indexTemplate_ = indexTemplate;
|
||||
setParameter(std::string("IndexTemplate"), std::to_string(indexTemplate));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void DescribeIndexTemplateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["indexTemplate"].isNull())
|
||||
result_.indexTemplate = resultNode["indexTemplate"].asString();
|
||||
if(!resultNode["dataStream"].isNull())
|
||||
result_.dataStream = resultNode["dataStream"].asString() == "true";
|
||||
if(!resultNode["priority"].isNull())
|
||||
result_.priority = std::stoi(resultNode["priority"].asString());
|
||||
if(!resultNode["indexTemplate"].isNull())
|
||||
result_.indexTemplate = resultNode["indexTemplate"].asString();
|
||||
if(!resultNode["ilmPolicy"].isNull())
|
||||
result_.ilmPolicy = resultNode["ilmPolicy"].asString();
|
||||
if(!resultNode["priority"].isNull())
|
||||
result_.priority = std::stoi(resultNode["priority"].asString());
|
||||
auto _templateNode = resultNode["template"];
|
||||
if(!_templateNode["settings"].isNull())
|
||||
result_._template.settings = _templateNode["settings"].asString();
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeInstanceRequest;
|
||||
|
||||
DescribeInstanceRequest::DescribeInstanceRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeInstanceRequest::~DescribeInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeInstanceRequest;
|
||||
|
||||
DescribeInstanceRequest::DescribeInstanceRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeInstanceRequest::~DescribeInstanceRequest() {}
|
||||
|
||||
string DescribeInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,116 +40,116 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["domain"].isNull())
|
||||
result_.domain = resultNode["domain"].asString();
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["nodeAmount"].isNull())
|
||||
result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString());
|
||||
if(!resultNode["paymentType"].isNull())
|
||||
result_.paymentType = resultNode["paymentType"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["esVersion"].isNull())
|
||||
result_.esVersion = resultNode["esVersion"].asString();
|
||||
if(!resultNode["createdAt"].isNull())
|
||||
result_.createdAt = resultNode["createdAt"].asString();
|
||||
if(!resultNode["updatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["updatedAt"].asString();
|
||||
if(!resultNode["kibanaDomain"].isNull())
|
||||
result_.kibanaDomain = resultNode["kibanaDomain"].asString();
|
||||
if(!resultNode["enablePublic"].isNull())
|
||||
result_.enablePublic = resultNode["enablePublic"].asString() == "true";
|
||||
if(!resultNode["dedicateMaster"].isNull())
|
||||
result_.dedicateMaster = resultNode["dedicateMaster"].asString() == "true";
|
||||
if(!resultNode["advancedDedicateMaster"].isNull())
|
||||
result_.advancedDedicateMaster = resultNode["advancedDedicateMaster"].asString() == "true";
|
||||
if(!resultNode["publicPort"].isNull())
|
||||
result_.publicPort = std::stoi(resultNode["publicPort"].asString());
|
||||
if(!resultNode["kibanaPort"].isNull())
|
||||
result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString());
|
||||
if(!resultNode["publicDomain"].isNull())
|
||||
result_.publicDomain = resultNode["publicDomain"].asString();
|
||||
if(!resultNode["vpcInstanceId"].isNull())
|
||||
result_.vpcInstanceId = resultNode["vpcInstanceId"].asString();
|
||||
if(!resultNode["port"].isNull())
|
||||
result_.port = std::stoi(resultNode["port"].asString());
|
||||
if(!resultNode["esConfig"].isNull())
|
||||
result_.esConfig = resultNode["esConfig"].asString();
|
||||
if(!resultNode["zoneCount"].isNull())
|
||||
result_.zoneCount = std::stoi(resultNode["zoneCount"].asString());
|
||||
if(!resultNode["haveClientNode"].isNull())
|
||||
result_.haveClientNode = resultNode["haveClientNode"].asString() == "true";
|
||||
if(!resultNode["warmNode"].isNull())
|
||||
result_.warmNode = resultNode["warmNode"].asString() == "true";
|
||||
if(!resultNode["protocol"].isNull())
|
||||
result_.protocol = resultNode["protocol"].asString();
|
||||
if(!resultNode["enableKibanaPublicNetwork"].isNull())
|
||||
result_.enableKibanaPublicNetwork = resultNode["enableKibanaPublicNetwork"].asString() == "true";
|
||||
if(!resultNode["haveKibana"].isNull())
|
||||
result_.haveKibana = resultNode["haveKibana"].asString() == "true";
|
||||
if(!resultNode["resourceGroupId"].isNull())
|
||||
result_.resourceGroupId = resultNode["resourceGroupId"].asString();
|
||||
if(!resultNode["nodeAmount"].isNull())
|
||||
result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString());
|
||||
if(!resultNode["createdAt"].isNull())
|
||||
result_.createdAt = resultNode["createdAt"].asString();
|
||||
if(!resultNode["enableKibanaPrivateNetwork"].isNull())
|
||||
result_.enableKibanaPrivateNetwork = resultNode["enableKibanaPrivateNetwork"].asString() == "true";
|
||||
if(!resultNode["isNewDeployment"].isNull())
|
||||
result_.isNewDeployment = resultNode["isNewDeployment"].asString() == "true";
|
||||
if(!resultNode["vpcInstanceId"].isNull())
|
||||
result_.vpcInstanceId = resultNode["vpcInstanceId"].asString();
|
||||
if(!resultNode["port"].isNull())
|
||||
result_.port = std::stoi(resultNode["port"].asString());
|
||||
if(!resultNode["enablePublic"].isNull())
|
||||
result_.enablePublic = resultNode["enablePublic"].asString() == "true";
|
||||
if(!resultNode["dedicateMaster"].isNull())
|
||||
result_.dedicateMaster = resultNode["dedicateMaster"].asString() == "true";
|
||||
if(!resultNode["kibanaPort"].isNull())
|
||||
result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString());
|
||||
if(!resultNode["esConfig"].isNull())
|
||||
result_.esConfig = resultNode["esConfig"].asString();
|
||||
if(!resultNode["resourceGroupId"].isNull())
|
||||
result_.resourceGroupId = resultNode["resourceGroupId"].asString();
|
||||
if(!resultNode["paymentType"].isNull())
|
||||
result_.paymentType = resultNode["paymentType"].asString();
|
||||
if(!resultNode["postpaidServiceStatus"].isNull())
|
||||
result_.postpaidServiceStatus = resultNode["postpaidServiceStatus"].asString();
|
||||
if(!resultNode["esVersion"].isNull())
|
||||
result_.esVersion = resultNode["esVersion"].asString();
|
||||
if(!resultNode["haveKibana"].isNull())
|
||||
result_.haveKibana = resultNode["haveKibana"].asString() == "true";
|
||||
if(!resultNode["isNewDeployment"].isNull())
|
||||
result_.isNewDeployment = resultNode["isNewDeployment"].asString() == "true";
|
||||
if(!resultNode["warmNode"].isNull())
|
||||
result_.warmNode = resultNode["warmNode"].asString() == "true";
|
||||
if(!resultNode["updatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["updatedAt"].asString();
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["zoneCount"].isNull())
|
||||
result_.zoneCount = std::stoi(resultNode["zoneCount"].asString());
|
||||
if(!resultNode["publicDomain"].isNull())
|
||||
result_.publicDomain = resultNode["publicDomain"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["serviceVpc"].isNull())
|
||||
result_.serviceVpc = resultNode["serviceVpc"].asString() == "true";
|
||||
if(!resultNode["publicPort"].isNull())
|
||||
result_.publicPort = std::stoi(resultNode["publicPort"].asString());
|
||||
if(!resultNode["haveClientNode"].isNull())
|
||||
result_.haveClientNode = resultNode["haveClientNode"].asString() == "true";
|
||||
if(!resultNode["domain"].isNull())
|
||||
result_.domain = resultNode["domain"].asString();
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["kibanaDomain"].isNull())
|
||||
result_.kibanaDomain = resultNode["kibanaDomain"].asString();
|
||||
auto alldictListNode = resultNode["dictList"]["DictListItem"];
|
||||
for (auto resultNodedictListDictListItem : alldictListNode)
|
||||
{
|
||||
Result::DictListItem dictListItemObject;
|
||||
if(!resultNodedictListDictListItem["name"].isNull())
|
||||
dictListItemObject.name = resultNodedictListDictListItem["name"].asString();
|
||||
if(!resultNodedictListDictListItem["fileSize"].isNull())
|
||||
dictListItemObject.fileSize = std::stol(resultNodedictListDictListItem["fileSize"].asString());
|
||||
if(!resultNodedictListDictListItem["type"].isNull())
|
||||
dictListItemObject.type = resultNodedictListDictListItem["type"].asString();
|
||||
if(!resultNodedictListDictListItem["sourceType"].isNull())
|
||||
dictListItemObject.sourceType = resultNodedictListDictListItem["sourceType"].asString();
|
||||
if(!resultNodedictListDictListItem["name"].isNull())
|
||||
dictListItemObject.name = resultNodedictListDictListItem["name"].asString();
|
||||
if(!resultNodedictListDictListItem["type"].isNull())
|
||||
dictListItemObject.type = resultNodedictListDictListItem["type"].asString();
|
||||
result_.dictList.push_back(dictListItemObject);
|
||||
}
|
||||
auto allsynonymsDictsNode = resultNode["synonymsDicts"]["SynonymsDictsItem"];
|
||||
for (auto resultNodesynonymsDictsSynonymsDictsItem : allsynonymsDictsNode)
|
||||
{
|
||||
Result::SynonymsDictsItem synonymsDictsItemObject;
|
||||
if(!resultNodesynonymsDictsSynonymsDictsItem["name"].isNull())
|
||||
synonymsDictsItemObject.name = resultNodesynonymsDictsSynonymsDictsItem["name"].asString();
|
||||
if(!resultNodesynonymsDictsSynonymsDictsItem["fileSize"].isNull())
|
||||
synonymsDictsItemObject.fileSize = std::stol(resultNodesynonymsDictsSynonymsDictsItem["fileSize"].asString());
|
||||
if(!resultNodesynonymsDictsSynonymsDictsItem["type"].isNull())
|
||||
synonymsDictsItemObject.type = resultNodesynonymsDictsSynonymsDictsItem["type"].asString();
|
||||
if(!resultNodesynonymsDictsSynonymsDictsItem["sourceType"].isNull())
|
||||
synonymsDictsItemObject.sourceType = resultNodesynonymsDictsSynonymsDictsItem["sourceType"].asString();
|
||||
if(!resultNodesynonymsDictsSynonymsDictsItem["name"].isNull())
|
||||
synonymsDictsItemObject.name = resultNodesynonymsDictsSynonymsDictsItem["name"].asString();
|
||||
if(!resultNodesynonymsDictsSynonymsDictsItem["type"].isNull())
|
||||
synonymsDictsItemObject.type = resultNodesynonymsDictsSynonymsDictsItem["type"].asString();
|
||||
result_.synonymsDicts.push_back(synonymsDictsItemObject);
|
||||
}
|
||||
auto allzoneInfosNode = resultNode["zoneInfos"]["ZoneInfo"];
|
||||
for (auto resultNodezoneInfosZoneInfo : allzoneInfosNode)
|
||||
{
|
||||
Result::ZoneInfo zoneInfoObject;
|
||||
if(!resultNodezoneInfosZoneInfo["zoneId"].isNull())
|
||||
zoneInfoObject.zoneId = resultNodezoneInfosZoneInfo["zoneId"].asString();
|
||||
if(!resultNodezoneInfosZoneInfo["status"].isNull())
|
||||
zoneInfoObject.status = resultNodezoneInfosZoneInfo["status"].asString();
|
||||
if(!resultNodezoneInfosZoneInfo["zoneId"].isNull())
|
||||
zoneInfoObject.zoneId = resultNodezoneInfosZoneInfo["zoneId"].asString();
|
||||
result_.zoneInfos.push_back(zoneInfoObject);
|
||||
}
|
||||
auto allaliwsDictsNode = resultNode["aliwsDicts"]["Dict"];
|
||||
for (auto resultNodealiwsDictsDict : allaliwsDictsNode)
|
||||
{
|
||||
Result::Dict dictObject;
|
||||
if(!resultNodealiwsDictsDict["name"].isNull())
|
||||
dictObject.name = resultNodealiwsDictsDict["name"].asString();
|
||||
if(!resultNodealiwsDictsDict["fileSize"].isNull())
|
||||
dictObject.fileSize = std::stol(resultNodealiwsDictsDict["fileSize"].asString());
|
||||
if(!resultNodealiwsDictsDict["type"].isNull())
|
||||
dictObject.type = resultNodealiwsDictsDict["type"].asString();
|
||||
if(!resultNodealiwsDictsDict["sourceType"].isNull())
|
||||
dictObject.sourceType = resultNodealiwsDictsDict["sourceType"].asString();
|
||||
if(!resultNodealiwsDictsDict["name"].isNull())
|
||||
dictObject.name = resultNodealiwsDictsDict["name"].asString();
|
||||
if(!resultNodealiwsDictsDict["type"].isNull())
|
||||
dictObject.type = resultNodealiwsDictsDict["type"].asString();
|
||||
result_.aliwsDicts.push_back(dictObject);
|
||||
}
|
||||
auto alltagsNode = resultNode["tags"]["Tag"];
|
||||
@@ -162,106 +162,124 @@ void DescribeInstanceResult::parse(const std::string &payload)
|
||||
tagObject.tagValue = resultNodetagsTag["tagValue"].asString();
|
||||
result_.tags.push_back(tagObject);
|
||||
}
|
||||
auto allikHotDictsNode = resultNode["ikHotDicts"]["ikHotDictsItem"];
|
||||
for (auto resultNodeikHotDictsikHotDictsItem : allikHotDictsNode)
|
||||
{
|
||||
Result::IkHotDictsItem ikHotDictsItemObject;
|
||||
if(!resultNodeikHotDictsikHotDictsItem["type"].isNull())
|
||||
ikHotDictsItemObject.type = resultNodeikHotDictsikHotDictsItem["type"].asString();
|
||||
if(!resultNodeikHotDictsikHotDictsItem["sourceType"].isNull())
|
||||
ikHotDictsItemObject.sourceType = resultNodeikHotDictsikHotDictsItem["sourceType"].asString();
|
||||
if(!resultNodeikHotDictsikHotDictsItem["fileSize"].isNull())
|
||||
ikHotDictsItemObject.fileSize = std::stoi(resultNodeikHotDictsikHotDictsItem["fileSize"].asString());
|
||||
if(!resultNodeikHotDictsikHotDictsItem["name"].isNull())
|
||||
ikHotDictsItemObject.name = resultNodeikHotDictsikHotDictsItem["name"].asString();
|
||||
result_.ikHotDicts.push_back(ikHotDictsItemObject);
|
||||
}
|
||||
auto nodeSpecNode = resultNode["nodeSpec"];
|
||||
if(!nodeSpecNode["spec"].isNull())
|
||||
result_.nodeSpec.spec = nodeSpecNode["spec"].asString();
|
||||
if(!nodeSpecNode["disk"].isNull())
|
||||
result_.nodeSpec.disk = std::stoi(nodeSpecNode["disk"].asString());
|
||||
if(!nodeSpecNode["diskType"].isNull())
|
||||
result_.nodeSpec.diskType = nodeSpecNode["diskType"].asString();
|
||||
if(!nodeSpecNode["diskEncryption"].isNull())
|
||||
result_.nodeSpec.diskEncryption = nodeSpecNode["diskEncryption"].asString() == "true";
|
||||
if(!nodeSpecNode["diskType"].isNull())
|
||||
result_.nodeSpec.diskType = nodeSpecNode["diskType"].asString();
|
||||
if(!nodeSpecNode["performanceLevel"].isNull())
|
||||
result_.nodeSpec.performanceLevel = nodeSpecNode["performanceLevel"].asString();
|
||||
auto networkConfigNode = resultNode["networkConfig"];
|
||||
if(!networkConfigNode["type"].isNull())
|
||||
result_.networkConfig.type = networkConfigNode["type"].asString();
|
||||
if(!networkConfigNode["vpcId"].isNull())
|
||||
result_.networkConfig.vpcId = networkConfigNode["vpcId"].asString();
|
||||
if(!networkConfigNode["vswitchId"].isNull())
|
||||
result_.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString();
|
||||
if(!networkConfigNode["vsArea"].isNull())
|
||||
result_.networkConfig.vsArea = networkConfigNode["vsArea"].asString();
|
||||
if(!networkConfigNode["type"].isNull())
|
||||
result_.networkConfig.type = networkConfigNode["type"].asString();
|
||||
if(!networkConfigNode["vswitchId"].isNull())
|
||||
result_.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString();
|
||||
auto allwhiteIpGroupListNode = networkConfigNode["whiteIpGroupList"]["whiteIpGroupListItem"];
|
||||
for (auto networkConfigNodewhiteIpGroupListwhiteIpGroupListItem : allwhiteIpGroupListNode)
|
||||
{
|
||||
Result::NetworkConfig::WhiteIpGroupListItem whiteIpGroupListItemObject;
|
||||
if(!networkConfigNodewhiteIpGroupListwhiteIpGroupListItem["groupName"].isNull())
|
||||
whiteIpGroupListItemObject.groupName = networkConfigNodewhiteIpGroupListwhiteIpGroupListItem["groupName"].asString();
|
||||
if(!networkConfigNodewhiteIpGroupListwhiteIpGroupListItem["whiteIpType"].isNull())
|
||||
whiteIpGroupListItemObject.whiteIpType = networkConfigNodewhiteIpGroupListwhiteIpGroupListItem["whiteIpType"].asString();
|
||||
if(!networkConfigNodewhiteIpGroupListwhiteIpGroupListItem["groupName"].isNull())
|
||||
whiteIpGroupListItemObject.groupName = networkConfigNodewhiteIpGroupListwhiteIpGroupListItem["groupName"].asString();
|
||||
auto allIps = value["ips"]["ips"];
|
||||
for (auto value : allIps)
|
||||
whiteIpGroupListItemObject.ips.push_back(value.asString());
|
||||
result_.networkConfig.whiteIpGroupList.push_back(whiteIpGroupListItemObject);
|
||||
}
|
||||
auto kibanaConfigurationNode = resultNode["kibanaConfiguration"];
|
||||
if(!kibanaConfigurationNode["spec"].isNull())
|
||||
result_.kibanaConfiguration.spec = kibanaConfigurationNode["spec"].asString();
|
||||
if(!kibanaConfigurationNode["amount"].isNull())
|
||||
result_.kibanaConfiguration.amount = std::stoi(kibanaConfigurationNode["amount"].asString());
|
||||
if(!kibanaConfigurationNode["spec"].isNull())
|
||||
result_.kibanaConfiguration.spec = kibanaConfigurationNode["spec"].asString();
|
||||
if(!kibanaConfigurationNode["disk"].isNull())
|
||||
result_.kibanaConfiguration.disk = std::stoi(kibanaConfigurationNode["disk"].asString());
|
||||
auto masterConfigurationNode = resultNode["masterConfiguration"];
|
||||
if(!masterConfigurationNode["spec"].isNull())
|
||||
result_.masterConfiguration.spec = masterConfigurationNode["spec"].asString();
|
||||
if(!masterConfigurationNode["amount"].isNull())
|
||||
result_.masterConfiguration.amount = std::stoi(masterConfigurationNode["amount"].asString());
|
||||
if(!masterConfigurationNode["diskType"].isNull())
|
||||
result_.masterConfiguration.diskType = masterConfigurationNode["diskType"].asString();
|
||||
if(!masterConfigurationNode["disk"].isNull())
|
||||
result_.masterConfiguration.disk = std::stoi(masterConfigurationNode["disk"].asString());
|
||||
if(!masterConfigurationNode["diskType"].isNull())
|
||||
result_.masterConfiguration.diskType = masterConfigurationNode["diskType"].asString();
|
||||
auto clientNodeConfigurationNode = resultNode["clientNodeConfiguration"];
|
||||
if(!clientNodeConfigurationNode["spec"].isNull())
|
||||
result_.clientNodeConfiguration.spec = clientNodeConfigurationNode["spec"].asString();
|
||||
if(!clientNodeConfigurationNode["amount"].isNull())
|
||||
result_.clientNodeConfiguration.amount = std::stoi(clientNodeConfigurationNode["amount"].asString());
|
||||
if(!clientNodeConfigurationNode["diskType"].isNull())
|
||||
result_.clientNodeConfiguration.diskType = clientNodeConfigurationNode["diskType"].asString();
|
||||
if(!clientNodeConfigurationNode["disk"].isNull())
|
||||
result_.clientNodeConfiguration.disk = std::stoi(clientNodeConfigurationNode["disk"].asString());
|
||||
if(!clientNodeConfigurationNode["diskType"].isNull())
|
||||
result_.clientNodeConfiguration.diskType = clientNodeConfigurationNode["diskType"].asString();
|
||||
auto warmNodeConfigurationNode = resultNode["warmNodeConfiguration"];
|
||||
if(!warmNodeConfigurationNode["spec"].isNull())
|
||||
result_.warmNodeConfiguration.spec = warmNodeConfigurationNode["spec"].asString();
|
||||
if(!warmNodeConfigurationNode["amount"].isNull())
|
||||
result_.warmNodeConfiguration.amount = std::stoi(warmNodeConfigurationNode["amount"].asString());
|
||||
if(!warmNodeConfigurationNode["diskType"].isNull())
|
||||
result_.warmNodeConfiguration.diskType = warmNodeConfigurationNode["diskType"].asString();
|
||||
if(!warmNodeConfigurationNode["spec"].isNull())
|
||||
result_.warmNodeConfiguration.spec = warmNodeConfigurationNode["spec"].asString();
|
||||
if(!warmNodeConfigurationNode["disk"].isNull())
|
||||
result_.warmNodeConfiguration.disk = std::stoi(warmNodeConfigurationNode["disk"].asString());
|
||||
if(!warmNodeConfigurationNode["diskEncryption"].isNull())
|
||||
result_.warmNodeConfiguration.diskEncryption = warmNodeConfigurationNode["diskEncryption"].asString() == "true";
|
||||
if(!warmNodeConfigurationNode["diskType"].isNull())
|
||||
result_.warmNodeConfiguration.diskType = warmNodeConfigurationNode["diskType"].asString();
|
||||
auto advancedSettingNode = resultNode["advancedSetting"];
|
||||
if(!advancedSettingNode["gcName"].isNull())
|
||||
result_.advancedSetting.gcName = advancedSettingNode["gcName"].asString();
|
||||
auto elasticDataNodeConfigurationNode = resultNode["elasticDataNodeConfiguration"];
|
||||
if(!elasticDataNodeConfigurationNode["spec"].isNull())
|
||||
result_.elasticDataNodeConfiguration.spec = elasticDataNodeConfigurationNode["spec"].asString();
|
||||
if(!elasticDataNodeConfigurationNode["amount"].isNull())
|
||||
result_.elasticDataNodeConfiguration.amount = std::stoi(elasticDataNodeConfigurationNode["amount"].asString());
|
||||
if(!elasticDataNodeConfigurationNode["diskType"].isNull())
|
||||
result_.elasticDataNodeConfiguration.diskType = elasticDataNodeConfigurationNode["diskType"].asString();
|
||||
if(!elasticDataNodeConfigurationNode["spec"].isNull())
|
||||
result_.elasticDataNodeConfiguration.spec = elasticDataNodeConfigurationNode["spec"].asString();
|
||||
if(!elasticDataNodeConfigurationNode["disk"].isNull())
|
||||
result_.elasticDataNodeConfiguration.disk = std::stoi(elasticDataNodeConfigurationNode["disk"].asString());
|
||||
if(!elasticDataNodeConfigurationNode["diskEncryption"].isNull())
|
||||
result_.elasticDataNodeConfiguration.diskEncryption = elasticDataNodeConfigurationNode["diskEncryption"].asString() == "true";
|
||||
if(!elasticDataNodeConfigurationNode["diskType"].isNull())
|
||||
result_.elasticDataNodeConfiguration.diskType = elasticDataNodeConfigurationNode["diskType"].asString();
|
||||
auto allEsIPWhitelist = resultNode["esIPWhitelist"]["EsIPWhitelist"];
|
||||
for (auto value : allEsIPWhitelist)
|
||||
result_.esIPWhitelist.push_back(value.asString());
|
||||
auto allExtendConfigs = resultNode["extendConfigs"]["extendConfigs"];
|
||||
for (auto value : allExtendConfigs)
|
||||
result_.extendConfigs.push_back(value.asString());
|
||||
auto allPrivateNetworkIpWhiteList = resultNode["privateNetworkIpWhiteList"]["PrivateNetworkIpWhiteList"];
|
||||
for (auto value : allPrivateNetworkIpWhiteList)
|
||||
result_.privateNetworkIpWhiteList.push_back(value.asString());
|
||||
auto allPublicIpWhitelist = resultNode["publicIpWhitelist"]["PublicIpWhitelist"];
|
||||
for (auto value : allPublicIpWhitelist)
|
||||
result_.publicIpWhitelist.push_back(value.asString());
|
||||
auto allKibanaPrivateIPWhitelist = resultNode["kibanaPrivateIPWhitelist"]["WhiteIP"];
|
||||
for (auto value : allKibanaPrivateIPWhitelist)
|
||||
result_.kibanaPrivateIPWhitelist.push_back(value.asString());
|
||||
auto allEsIPBlacklist = resultNode["esIPBlacklist"]["EsIPBlacklist"];
|
||||
for (auto value : allEsIPBlacklist)
|
||||
result_.esIPBlacklist.push_back(value.asString());
|
||||
auto allKibanaIPWhitelist = resultNode["kibanaIPWhitelist"]["KibanaIPWhitelist"];
|
||||
for (auto value : allKibanaIPWhitelist)
|
||||
result_.kibanaIPWhitelist.push_back(value.asString());
|
||||
auto allPublicIpWhitelist = resultNode["publicIpWhitelist"]["PublicIpWhitelist"];
|
||||
for (auto value : allPublicIpWhitelist)
|
||||
result_.publicIpWhitelist.push_back(value.asString());
|
||||
auto allPrivateNetworkIpWhiteList = resultNode["privateNetworkIpWhiteList"]["PrivateNetworkIpWhiteList"];
|
||||
for (auto value : allPrivateNetworkIpWhiteList)
|
||||
result_.privateNetworkIpWhiteList.push_back(value.asString());
|
||||
auto allKibanaPrivateIPWhitelist = resultNode["kibanaPrivateIPWhitelist"]["WhiteIP"];
|
||||
for (auto value : allKibanaPrivateIPWhitelist)
|
||||
result_.kibanaPrivateIPWhitelist.push_back(value.asString());
|
||||
auto allExtendConfigs = resultNode["extendConfigs"]["extendConfigs"];
|
||||
for (auto value : allExtendConfigs)
|
||||
result_.extendConfigs.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeKibanaSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeKibanaSettingsRequest;
|
||||
|
||||
DescribeKibanaSettingsRequest::DescribeKibanaSettingsRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/kibana-settings");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeKibanaSettingsRequest::~DescribeKibanaSettingsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeKibanaSettingsRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeKibanaSettingsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeKibanaSettingsRequest;
|
||||
|
||||
DescribeKibanaSettingsRequest::DescribeKibanaSettingsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/kibana-settings"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeKibanaSettingsRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeKibanaSettingsRequest::~DescribeKibanaSettingsRequest() {}
|
||||
|
||||
string DescribeKibanaSettingsRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeKibanaSettingsRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeLogstashRequest;
|
||||
|
||||
DescribeLogstashRequest::DescribeLogstashRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeLogstashRequest::~DescribeLogstashRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLogstashRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeLogstashRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeLogstashRequest;
|
||||
|
||||
DescribeLogstashRequest::DescribeLogstashRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeLogstashRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeLogstashRequest::~DescribeLogstashRequest() {}
|
||||
|
||||
string DescribeLogstashRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeLogstashRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,38 +40,38 @@ void DescribeLogstashResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["nodeAmount"].isNull())
|
||||
result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString());
|
||||
if(!resultNode["paymentType"].isNull())
|
||||
result_.paymentType = resultNode["paymentType"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["version"].isNull())
|
||||
result_.version = resultNode["version"].asString();
|
||||
if(!resultNode["createdAt"].isNull())
|
||||
result_.createdAt = resultNode["createdAt"].asString();
|
||||
if(!resultNode["updatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["updatedAt"].asString();
|
||||
if(!resultNode["vpcInstanceId"].isNull())
|
||||
result_.vpcInstanceId = resultNode["vpcInstanceId"].asString();
|
||||
if(!resultNode["config"].isNull())
|
||||
result_.config = resultNode["config"].asString();
|
||||
if(!resultNode["paymentType"].isNull())
|
||||
result_.paymentType = resultNode["paymentType"].asString();
|
||||
if(!resultNode["ResourceGroupId"].isNull())
|
||||
result_.resourceGroupId = resultNode["ResourceGroupId"].asString();
|
||||
if(!resultNode["nodeAmount"].isNull())
|
||||
result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString());
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["createdAt"].isNull())
|
||||
result_.createdAt = resultNode["createdAt"].asString();
|
||||
if(!resultNode["status"].isNull())
|
||||
result_.status = resultNode["status"].asString();
|
||||
if(!resultNode["vpcInstanceId"].isNull())
|
||||
result_.vpcInstanceId = resultNode["vpcInstanceId"].asString();
|
||||
if(!resultNode["updatedAt"].isNull())
|
||||
result_.updatedAt = resultNode["updatedAt"].asString();
|
||||
if(!resultNode["version"].isNull())
|
||||
result_.version = resultNode["version"].asString();
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
auto allendpointListNode = resultNode["endpointList"]["endpoint"];
|
||||
for (auto resultNodeendpointListendpoint : allendpointListNode)
|
||||
{
|
||||
Result::Endpoint endpointObject;
|
||||
if(!resultNodeendpointListendpoint["host"].isNull())
|
||||
endpointObject.host = resultNodeendpointListendpoint["host"].asString();
|
||||
if(!resultNodeendpointListendpoint["port"].isNull())
|
||||
endpointObject.port = resultNodeendpointListendpoint["port"].asString();
|
||||
if(!resultNodeendpointListendpoint["zoneId"].isNull())
|
||||
endpointObject.zoneId = resultNodeendpointListendpoint["zoneId"].asString();
|
||||
if(!resultNodeendpointListendpoint["port"].isNull())
|
||||
endpointObject.port = resultNodeendpointListendpoint["port"].asString();
|
||||
if(!resultNodeendpointListendpoint["host"].isNull())
|
||||
endpointObject.host = resultNodeendpointListendpoint["host"].asString();
|
||||
result_.endpointList.push_back(endpointObject);
|
||||
}
|
||||
auto allTagsNode = resultNode["Tags"]["tagsItem"];
|
||||
@@ -88,10 +88,10 @@ void DescribeLogstashResult::parse(const std::string &payload)
|
||||
for (auto resultNodeZoneInfoszoneInfosItem : allZoneInfosNode)
|
||||
{
|
||||
Result::ZoneInfosItem zoneInfosItemObject;
|
||||
if(!resultNodeZoneInfoszoneInfosItem["zoneId"].isNull())
|
||||
zoneInfosItemObject.zoneId = resultNodeZoneInfoszoneInfosItem["zoneId"].asString();
|
||||
if(!resultNodeZoneInfoszoneInfosItem["status"].isNull())
|
||||
zoneInfosItemObject.status = resultNodeZoneInfoszoneInfosItem["status"].asString();
|
||||
if(!resultNodeZoneInfoszoneInfosItem["zoneId"].isNull())
|
||||
zoneInfosItemObject.zoneId = resultNodeZoneInfoszoneInfosItem["zoneId"].asString();
|
||||
result_.zoneInfos.push_back(zoneInfosItemObject);
|
||||
}
|
||||
auto nodeSpecNode = resultNode["nodeSpec"];
|
||||
@@ -99,19 +99,19 @@ void DescribeLogstashResult::parse(const std::string &payload)
|
||||
result_.nodeSpec.spec = nodeSpecNode["spec"].asString();
|
||||
if(!nodeSpecNode["disk"].isNull())
|
||||
result_.nodeSpec.disk = std::stoi(nodeSpecNode["disk"].asString());
|
||||
if(!nodeSpecNode["diskType"].isNull())
|
||||
result_.nodeSpec.diskType = nodeSpecNode["diskType"].asString();
|
||||
if(!nodeSpecNode["diskEncryption"].isNull())
|
||||
result_.nodeSpec.diskEncryption = nodeSpecNode["diskEncryption"].asString() == "true";
|
||||
if(!nodeSpecNode["diskType"].isNull())
|
||||
result_.nodeSpec.diskType = nodeSpecNode["diskType"].asString();
|
||||
auto networkConfigNode = resultNode["networkConfig"];
|
||||
if(!networkConfigNode["type"].isNull())
|
||||
result_.networkConfig.type = networkConfigNode["type"].asString();
|
||||
if(!networkConfigNode["vpcId"].isNull())
|
||||
result_.networkConfig.vpcId = networkConfigNode["vpcId"].asString();
|
||||
if(!networkConfigNode["vswitchId"].isNull())
|
||||
result_.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString();
|
||||
if(!networkConfigNode["vsArea"].isNull())
|
||||
result_.networkConfig.vsArea = networkConfigNode["vsArea"].asString();
|
||||
if(!networkConfigNode["type"].isNull())
|
||||
result_.networkConfig.type = networkConfigNode["type"].asString();
|
||||
if(!networkConfigNode["vswitchId"].isNull())
|
||||
result_.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString();
|
||||
auto allExtendConfigs = resultNode["ExtendConfigs"]["extendConfigs"];
|
||||
for (auto value : allExtendConfigs)
|
||||
result_.extendConfigs.push_back(value.asString());
|
||||
|
||||
@@ -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/elasticsearch/model/DescribePipelineManagementConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribePipelineManagementConfigRequest;
|
||||
|
||||
DescribePipelineManagementConfigRequest::DescribePipelineManagementConfigRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipeline-management-config");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribePipelineManagementConfigRequest::~DescribePipelineManagementConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePipelineManagementConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribePipelineManagementConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribePipelineManagementConfigRequest;
|
||||
|
||||
DescribePipelineManagementConfigRequest::DescribePipelineManagementConfigRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipeline-management-config"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribePipelineManagementConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribePipelineManagementConfigRequest::~DescribePipelineManagementConfigRequest() {}
|
||||
|
||||
string DescribePipelineManagementConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribePipelineManagementConfigRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DescribePipelineManagementConfigRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribePipelineManagementConfigRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DescribePipelineManagementConfigRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
void DescribePipelineManagementConfigRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("clientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ void DescribePipelineManagementConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["pipelineManagementType"].isNull())
|
||||
result_.pipelineManagementType = resultNode["pipelineManagementType"].asString();
|
||||
if(!resultNode["endpoints"].isNull())
|
||||
result_.endpoints = resultNode["endpoints"].asString();
|
||||
if(!resultNode["userName"].isNull())
|
||||
result_.userName = resultNode["userName"].asString();
|
||||
if(!resultNode["pipelineManagementType"].isNull())
|
||||
result_.pipelineManagementType = resultNode["pipelineManagementType"].asString();
|
||||
if(!resultNode["esInstanceId"].isNull())
|
||||
result_.esInstanceId = resultNode["esInstanceId"].asString();
|
||||
auto allPipelineIds = resultNode["pipelineIds"]["pipelineid"];
|
||||
|
||||
@@ -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/elasticsearch/model/DescribePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribePipelineRequest;
|
||||
|
||||
DescribePipelineRequest::DescribePipelineRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipelines/[PipelineId]");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribePipelineRequest::~DescribePipelineRequest()
|
||||
{}
|
||||
|
||||
std::string DescribePipelineRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribePipelineRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribePipelineRequest;
|
||||
|
||||
DescribePipelineRequest::DescribePipelineRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/pipelines/[PipelineId]"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribePipelineRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribePipelineRequest::~DescribePipelineRequest() {}
|
||||
|
||||
string DescribePipelineRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribePipelineRequest::getPipelineId()const
|
||||
{
|
||||
return pipelineId_;
|
||||
void DescribePipelineRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DescribePipelineRequest::setPipelineId(const std::string& pipelineId)
|
||||
{
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter("PipelineId", pipelineId);
|
||||
string DescribePipelineRequest::getPipelineId() const {
|
||||
return pipelineId_;
|
||||
}
|
||||
|
||||
void DescribePipelineRequest::setPipelineId(string pipelineId) {
|
||||
pipelineId_ = pipelineId;
|
||||
setParameter(std::string("PipelineId"), std::to_string(pipelineId));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,28 +42,28 @@ void DescribePipelineResult::parse(const std::string &payload)
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["pipelineId"].isNull())
|
||||
result_.pipelineId = resultNode["pipelineId"].asString();
|
||||
if(!resultNode["config"].isNull())
|
||||
result_.config = resultNode["config"].asString();
|
||||
if(!resultNode["pipelineStatus"].isNull())
|
||||
result_.pipelineStatus = resultNode["pipelineStatus"].asString();
|
||||
if(!resultNode["gmtCreatedTime"].isNull())
|
||||
result_.gmtCreatedTime = resultNode["gmtCreatedTime"].asString();
|
||||
if(!resultNode["gmtUpdateTime"].isNull())
|
||||
result_.gmtUpdateTime = resultNode["gmtUpdateTime"].asString();
|
||||
if(!resultNode["workers"].isNull())
|
||||
result_.workers = std::stoi(resultNode["workers"].asString());
|
||||
if(!resultNode["batchSize"].isNull())
|
||||
result_.batchSize = std::stoi(resultNode["batchSize"].asString());
|
||||
if(!resultNode["batchDelay"].isNull())
|
||||
result_.batchDelay = std::stoi(resultNode["batchDelay"].asString());
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["queueType"].isNull())
|
||||
result_.queueType = resultNode["queueType"].asString();
|
||||
if(!resultNode["queueMaxBytes"].isNull())
|
||||
result_.queueMaxBytes = std::stoi(resultNode["queueMaxBytes"].asString());
|
||||
if(!resultNode["queueCheckPointWrites"].isNull())
|
||||
result_.queueCheckPointWrites = std::stoi(resultNode["queueCheckPointWrites"].asString());
|
||||
if(!resultNode["queueMaxBytes"].isNull())
|
||||
result_.queueMaxBytes = std::stoi(resultNode["queueMaxBytes"].asString());
|
||||
if(!resultNode["config"].isNull())
|
||||
result_.config = resultNode["config"].asString();
|
||||
if(!resultNode["batchDelay"].isNull())
|
||||
result_.batchDelay = std::stoi(resultNode["batchDelay"].asString());
|
||||
if(!resultNode["workers"].isNull())
|
||||
result_.workers = std::stoi(resultNode["workers"].asString());
|
||||
if(!resultNode["description"].isNull())
|
||||
result_.description = resultNode["description"].asString();
|
||||
if(!resultNode["gmtCreatedTime"].isNull())
|
||||
result_.gmtCreatedTime = resultNode["gmtCreatedTime"].asString();
|
||||
if(!resultNode["batchSize"].isNull())
|
||||
result_.batchSize = std::stoi(resultNode["batchSize"].asString());
|
||||
if(!resultNode["pipelineStatus"].isNull())
|
||||
result_.pipelineStatus = resultNode["pipelineStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/regions");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeRegionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeRegionsRequest;
|
||||
|
||||
DescribeRegionsRequest::DescribeRegionsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/regions"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeRegionsRequest::~DescribeRegionsRequest() {}
|
||||
|
||||
|
||||
@@ -45,14 +45,14 @@ void DescribeRegionsResult::parse(const std::string &payload)
|
||||
RegionInfo resultObject;
|
||||
if(!valueResultregionInfo["regionId"].isNull())
|
||||
resultObject.regionId = valueResultregionInfo["regionId"].asString();
|
||||
if(!valueResultregionInfo["status"].isNull())
|
||||
resultObject.status = valueResultregionInfo["status"].asString();
|
||||
if(!valueResultregionInfo["regionEndpoint"].isNull())
|
||||
resultObject.regionEndpoint = valueResultregionInfo["regionEndpoint"].asString();
|
||||
if(!valueResultregionInfo["localName"].isNull())
|
||||
resultObject.localName = valueResultregionInfo["localName"].asString();
|
||||
if(!valueResultregionInfo["consoleEndpoint"].isNull())
|
||||
resultObject.consoleEndpoint = valueResultregionInfo["consoleEndpoint"].asString();
|
||||
if(!valueResultregionInfo["status"].isNull())
|
||||
resultObject.status = valueResultregionInfo["status"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeSnapshotSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeSnapshotSettingRequest;
|
||||
|
||||
DescribeSnapshotSettingRequest::DescribeSnapshotSettingRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshot-setting");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeSnapshotSettingRequest::~DescribeSnapshotSettingRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSnapshotSettingRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeSnapshotSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeSnapshotSettingRequest;
|
||||
|
||||
DescribeSnapshotSettingRequest::DescribeSnapshotSettingRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/snapshot-setting"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeSnapshotSettingRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeSnapshotSettingRequest::~DescribeSnapshotSettingRequest() {}
|
||||
|
||||
string DescribeSnapshotSettingRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeSnapshotSettingRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void DescribeSnapshotSettingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["QuartzRegex"].isNull())
|
||||
result_.quartzRegex = resultNode["QuartzRegex"].asString();
|
||||
if(!resultNode["Enable"].isNull())
|
||||
result_.enable = resultNode["Enable"].asString() == "true";
|
||||
if(!resultNode["QuartzRegex"].isNull())
|
||||
result_.quartzRegex = resultNode["QuartzRegex"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeTemplatesRequest;
|
||||
|
||||
DescribeTemplatesRequest::DescribeTemplatesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/templates");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeTemplatesRequest::~DescribeTemplatesRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeTemplatesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeTemplatesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeTemplatesRequest;
|
||||
|
||||
DescribeTemplatesRequest::DescribeTemplatesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/templates"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeTemplatesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeTemplatesRequest::~DescribeTemplatesRequest() {}
|
||||
|
||||
string DescribeTemplatesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeTemplatesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/DescribeXpackMonitorConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeXpackMonitorConfigRequest;
|
||||
|
||||
DescribeXpackMonitorConfigRequest::DescribeXpackMonitorConfigRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/xpack-monitor-config");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeXpackMonitorConfigRequest::~DescribeXpackMonitorConfigRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeXpackMonitorConfigRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DescribeXpackMonitorConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DescribeXpackMonitorConfigRequest;
|
||||
|
||||
DescribeXpackMonitorConfigRequest::DescribeXpackMonitorConfigRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/xpack-monitor-config"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void DescribeXpackMonitorConfigRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DescribeXpackMonitorConfigRequest::~DescribeXpackMonitorConfigRequest() {}
|
||||
|
||||
string DescribeXpackMonitorConfigRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void DescribeXpackMonitorConfigRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void DescribeXpackMonitorConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["esInstanceId"].isNull())
|
||||
result_.esInstanceId = resultNode["esInstanceId"].asString();
|
||||
if(!resultNode["userName"].isNull())
|
||||
result_.userName = resultNode["userName"].asString();
|
||||
if(!resultNode["esInstanceId"].isNull())
|
||||
result_.esInstanceId = resultNode["esInstanceId"].asString();
|
||||
if(!resultNode["enable"].isNull())
|
||||
result_.enable = resultNode["enable"].asString() == "true";
|
||||
auto allEndpoints = resultNode["endpoints"]["endpoints"];
|
||||
|
||||
@@ -1,63 +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/elasticsearch/model/DiagnoseInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DiagnoseInstanceRequest;
|
||||
|
||||
DiagnoseInstanceRequest::DiagnoseInstanceRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/actions/diagnose");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DiagnoseInstanceRequest::~DiagnoseInstanceRequest()
|
||||
{}
|
||||
|
||||
std::string DiagnoseInstanceRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/DiagnoseInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::DiagnoseInstanceRequest;
|
||||
|
||||
DiagnoseInstanceRequest::DiagnoseInstanceRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/diagnosis/instances/[InstanceId]/actions/diagnose"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DiagnoseInstanceRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
DiagnoseInstanceRequest::~DiagnoseInstanceRequest() {}
|
||||
|
||||
string DiagnoseInstanceRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DiagnoseInstanceRequest::getClientToken()const
|
||||
{
|
||||
return clientToken_;
|
||||
void DiagnoseInstanceRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void DiagnoseInstanceRequest::setClientToken(const std::string& clientToken)
|
||||
{
|
||||
clientToken_ = clientToken;
|
||||
setParameter("ClientToken", clientToken);
|
||||
string DiagnoseInstanceRequest::getClientToken() const {
|
||||
return clientToken_;
|
||||
}
|
||||
|
||||
std::string DiagnoseInstanceRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
void DiagnoseInstanceRequest::setClientToken(string clientToken) {
|
||||
clientToken_ = clientToken;
|
||||
setParameter(std::string("ClientToken"), std::to_string(clientToken));
|
||||
}
|
||||
|
||||
void DiagnoseInstanceRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
string DiagnoseInstanceRequest::getLang() const {
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DiagnoseInstanceRequest::setLang(string lang) {
|
||||
lang_ = lang;
|
||||
setParameter(std::string("lang"), std::to_string(lang));
|
||||
}
|
||||
|
||||
std::string DiagnoseInstanceRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void DiagnoseInstanceRequest::setBody(const std::string &body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), body);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ void DiagnoseInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["reportId"].isNull())
|
||||
result_.reportId = resultNode["reportId"].asString();
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
if(!resultNode["state"].isNull())
|
||||
result_.state = resultNode["state"].asString();
|
||||
if(!resultNode["createTime"].isNull())
|
||||
result_.createTime = std::stol(resultNode["createTime"].asString());
|
||||
if(!resultNode["reportId"].isNull())
|
||||
result_.reportId = resultNode["reportId"].asString();
|
||||
if(!resultNode["state"].isNull())
|
||||
result_.state = resultNode["state"].asString();
|
||||
if(!resultNode["instanceId"].isNull())
|
||||
result_.instanceId = resultNode["instanceId"].asString();
|
||||
auto alldiagnoseItemsNode = resultNode["diagnoseItems"]["diagnoseItemsItem"];
|
||||
for (auto resultNodediagnoseItemsdiagnoseItemsItem : alldiagnoseItemsNode)
|
||||
{
|
||||
@@ -57,16 +57,16 @@ void DiagnoseInstanceResult::parse(const std::string &payload)
|
||||
if(!resultNodediagnoseItemsdiagnoseItemsItem["health"].isNull())
|
||||
diagnoseItemsItemObject.health = resultNodediagnoseItemsdiagnoseItemsItem["health"].asString();
|
||||
auto detailNode = value["detail"];
|
||||
if(!detailNode["type"].isNull())
|
||||
diagnoseItemsItemObject.detail.type = detailNode["type"].asString();
|
||||
if(!detailNode["name"].isNull())
|
||||
diagnoseItemsItemObject.detail.name = detailNode["name"].asString();
|
||||
if(!detailNode["desc"].isNull())
|
||||
diagnoseItemsItemObject.detail.desc = detailNode["desc"].asString();
|
||||
if(!detailNode["type"].isNull())
|
||||
diagnoseItemsItemObject.detail.type = detailNode["type"].asString();
|
||||
if(!detailNode["suggest"].isNull())
|
||||
diagnoseItemsItemObject.detail.suggest = detailNode["suggest"].asString();
|
||||
if(!detailNode["result"].isNull())
|
||||
diagnoseItemsItemObject.detail.result = detailNode["result"].asString();
|
||||
if(!detailNode["suggest"].isNull())
|
||||
diagnoseItemsItemObject.detail.suggest = detailNode["suggest"].asString();
|
||||
result_.diagnoseItems.push_back(diagnoseItemsItemObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/EstimatedLogstashRestartTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::EstimatedLogstashRestartTimeRequest;
|
||||
|
||||
EstimatedLogstashRestartTimeRequest::EstimatedLogstashRestartTimeRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/estimated-time/restart-time");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EstimatedLogstashRestartTimeRequest::~EstimatedLogstashRestartTimeRequest()
|
||||
{}
|
||||
|
||||
std::string EstimatedLogstashRestartTimeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/EstimatedLogstashRestartTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::EstimatedLogstashRestartTimeRequest;
|
||||
|
||||
EstimatedLogstashRestartTimeRequest::EstimatedLogstashRestartTimeRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/logstashes/[InstanceId]/estimated-time/restart-time"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void EstimatedLogstashRestartTimeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
EstimatedLogstashRestartTimeRequest::~EstimatedLogstashRestartTimeRequest() {}
|
||||
|
||||
string EstimatedLogstashRestartTimeRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool EstimatedLogstashRestartTimeRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
void EstimatedLogstashRestartTimeRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void EstimatedLogstashRestartTimeRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", force ? "true" : "false");
|
||||
boolean EstimatedLogstashRestartTimeRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void EstimatedLogstashRestartTimeRequest::setForce(boolean force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("force"), std::to_string(force));
|
||||
}
|
||||
|
||||
string EstimatedLogstashRestartTimeRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void EstimatedLogstashRestartTimeRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void EstimatedLogstashRestartTimeResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["value"].isNull())
|
||||
result_.value = std::stol(resultNode["value"].asString());
|
||||
if(!resultNode["unit"].isNull())
|
||||
result_.unit = resultNode["unit"].asString();
|
||||
if(!resultNode["value"].isNull())
|
||||
result_.value = std::stol(resultNode["value"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,52 +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/elasticsearch/model/EstimatedRestartTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::EstimatedRestartTimeRequest;
|
||||
|
||||
EstimatedRestartTimeRequest::EstimatedRestartTimeRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/estimated-time/restart-time");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EstimatedRestartTimeRequest::~EstimatedRestartTimeRequest()
|
||||
{}
|
||||
|
||||
std::string EstimatedRestartTimeRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/EstimatedRestartTimeRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::EstimatedRestartTimeRequest;
|
||||
|
||||
EstimatedRestartTimeRequest::EstimatedRestartTimeRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/estimated-time/restart-time"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void EstimatedRestartTimeRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
EstimatedRestartTimeRequest::~EstimatedRestartTimeRequest() {}
|
||||
|
||||
string EstimatedRestartTimeRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
bool EstimatedRestartTimeRequest::getForce()const
|
||||
{
|
||||
return force_;
|
||||
void EstimatedRestartTimeRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void EstimatedRestartTimeRequest::setForce(bool force)
|
||||
{
|
||||
force_ = force;
|
||||
setParameter("Force", force ? "true" : "false");
|
||||
boolean EstimatedRestartTimeRequest::getForce() const {
|
||||
return force_;
|
||||
}
|
||||
|
||||
void EstimatedRestartTimeRequest::setForce(boolean force) {
|
||||
force_ = force;
|
||||
setParameter(std::string("force"), std::to_string(force));
|
||||
}
|
||||
|
||||
string EstimatedRestartTimeRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void EstimatedRestartTimeRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,10 +40,10 @@ void EstimatedRestartTimeResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["value"].isNull())
|
||||
result_.value = std::stol(resultNode["value"].asString());
|
||||
if(!resultNode["unit"].isNull())
|
||||
result_.unit = resultNode["unit"].asString();
|
||||
if(!resultNode["value"].isNull())
|
||||
result_.value = std::stol(resultNode["value"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +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/elasticsearch/model/GetClusterDataInformationRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetClusterDataInformationRequest;
|
||||
|
||||
GetClusterDataInformationRequest::GetClusterDataInformationRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/cluster/data-information");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetClusterDataInformationRequest::~GetClusterDataInformationRequest()
|
||||
{}
|
||||
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetClusterDataInformationRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetClusterDataInformationRequest;
|
||||
|
||||
GetClusterDataInformationRequest::GetClusterDataInformationRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/cluster/data-information"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetClusterDataInformationRequest::~GetClusterDataInformationRequest() {}
|
||||
|
||||
string GetClusterDataInformationRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void GetClusterDataInformationRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,19 +43,19 @@ void GetClusterDataInformationResult::parse(const std::string &payload)
|
||||
if(!resultNode["connectable"].isNull())
|
||||
result_.connectable = resultNode["connectable"].asString() == "true";
|
||||
auto metaInfoNode = resultNode["metaInfo"];
|
||||
if(!metaInfoNode["settings"].isNull())
|
||||
result_.metaInfo.settings = metaInfoNode["settings"].asString();
|
||||
if(!metaInfoNode["mapping"].isNull())
|
||||
result_.metaInfo.mapping = metaInfoNode["mapping"].asString();
|
||||
auto allIndices = metaInfoNode["indices"]["indices"];
|
||||
for (auto value : allIndices)
|
||||
result_.metaInfo.indices.push_back(value.asString());
|
||||
auto allFields = metaInfoNode["fields"]["fields"];
|
||||
for (auto value : allFields)
|
||||
result_.metaInfo.fields.push_back(value.asString());
|
||||
if(!metaInfoNode["settings"].isNull())
|
||||
result_.metaInfo.settings = metaInfoNode["settings"].asString();
|
||||
auto allTypeName = metaInfoNode["typeName"]["typeName"];
|
||||
for (auto value : allTypeName)
|
||||
result_.metaInfo.typeName.push_back(value.asString());
|
||||
auto allFields = metaInfoNode["fields"]["fields"];
|
||||
for (auto value : allFields)
|
||||
result_.metaInfo.fields.push_back(value.asString());
|
||||
auto allIndices = metaInfoNode["indices"]["indices"];
|
||||
for (auto value : allIndices)
|
||||
result_.metaInfo.indices.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/GetElastictaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetElastictaskRequest;
|
||||
|
||||
GetElastictaskRequest::GetElastictaskRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/elastic-task");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetElastictaskRequest::~GetElastictaskRequest()
|
||||
{}
|
||||
|
||||
std::string GetElastictaskRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetElastictaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetElastictaskRequest;
|
||||
|
||||
GetElastictaskRequest::GetElastictaskRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/elastic-task"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetElastictaskRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
GetElastictaskRequest::~GetElastictaskRequest() {}
|
||||
|
||||
string GetElastictaskRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetElastictaskRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void GetElastictaskResult::parse(const std::string &payload)
|
||||
auto elasticExpansionTaskNode = resultNode["elasticExpansionTask"];
|
||||
if(!elasticExpansionTaskNode["triggerType"].isNull())
|
||||
result_.elasticExpansionTask.triggerType = elasticExpansionTaskNode["triggerType"].asString();
|
||||
if(!elasticExpansionTaskNode["cronExpression"].isNull())
|
||||
result_.elasticExpansionTask.cronExpression = elasticExpansionTaskNode["cronExpression"].asString();
|
||||
if(!elasticExpansionTaskNode["elasticNodeCount"].isNull())
|
||||
result_.elasticExpansionTask.elasticNodeCount = std::stoi(elasticExpansionTaskNode["elasticNodeCount"].asString());
|
||||
if(!elasticExpansionTaskNode["replicaCount"].isNull())
|
||||
result_.elasticExpansionTask.replicaCount = std::stoi(elasticExpansionTaskNode["replicaCount"].asString());
|
||||
if(!elasticExpansionTaskNode["elasticNodeCount"].isNull())
|
||||
result_.elasticExpansionTask.elasticNodeCount = std::stoi(elasticExpansionTaskNode["elasticNodeCount"].asString());
|
||||
if(!elasticExpansionTaskNode["cronExpression"].isNull())
|
||||
result_.elasticExpansionTask.cronExpression = elasticExpansionTaskNode["cronExpression"].asString();
|
||||
auto allTargetIndices = elasticExpansionTaskNode["targetIndices"]["TargetIndices"];
|
||||
for (auto value : allTargetIndices)
|
||||
result_.elasticExpansionTask.targetIndices.push_back(value.asString());
|
||||
auto elasticShrinkTaskNode = resultNode["elasticShrinkTask"];
|
||||
if(!elasticShrinkTaskNode["triggerType"].isNull())
|
||||
result_.elasticShrinkTask.triggerType = elasticShrinkTaskNode["triggerType"].asString();
|
||||
if(!elasticShrinkTaskNode["cronExpression"].isNull())
|
||||
result_.elasticShrinkTask.cronExpression = elasticShrinkTaskNode["cronExpression"].asString();
|
||||
if(!elasticShrinkTaskNode["elasticNodeCount"].isNull())
|
||||
result_.elasticShrinkTask.elasticNodeCount = std::stoi(elasticShrinkTaskNode["elasticNodeCount"].asString());
|
||||
if(!elasticShrinkTaskNode["replicaCount"].isNull())
|
||||
result_.elasticShrinkTask.replicaCount = std::stoi(elasticShrinkTaskNode["replicaCount"].asString());
|
||||
if(!elasticShrinkTaskNode["elasticNodeCount"].isNull())
|
||||
result_.elasticShrinkTask.elasticNodeCount = std::stoi(elasticShrinkTaskNode["elasticNodeCount"].asString());
|
||||
if(!elasticShrinkTaskNode["cronExpression"].isNull())
|
||||
result_.elasticShrinkTask.cronExpression = elasticShrinkTaskNode["cronExpression"].asString();
|
||||
auto allTargetIndices1 = elasticShrinkTaskNode["targetIndices"]["TargetIndices"];
|
||||
for (auto value : allTargetIndices1)
|
||||
result_.elasticShrinkTask.targetIndices1.push_back(value.asString());
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/GetEmonGrafanaAlertsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetEmonGrafanaAlertsRequest;
|
||||
|
||||
GetEmonGrafanaAlertsRequest::GetEmonGrafanaAlertsRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/emon/projects/[ProjectId]/grafana/proxy/api/alerts");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetEmonGrafanaAlertsRequest::~GetEmonGrafanaAlertsRequest()
|
||||
{}
|
||||
|
||||
std::string GetEmonGrafanaAlertsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetEmonGrafanaAlertsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetEmonGrafanaAlertsRequest;
|
||||
|
||||
GetEmonGrafanaAlertsRequest::GetEmonGrafanaAlertsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/emon/projects/[ProjectId]/grafana/proxy/api/alerts"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetEmonGrafanaAlertsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
GetEmonGrafanaAlertsRequest::~GetEmonGrafanaAlertsRequest() {}
|
||||
|
||||
string GetEmonGrafanaAlertsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void GetEmonGrafanaAlertsRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
string GetEmonGrafanaAlertsRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetEmonGrafanaAlertsRequest::setProjectId(string projectId) {
|
||||
projectId_ = projectId;
|
||||
setParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/GetEmonGrafanaDashboardsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetEmonGrafanaDashboardsRequest;
|
||||
|
||||
GetEmonGrafanaDashboardsRequest::GetEmonGrafanaDashboardsRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/emon/projects/[ProjectId]/grafana/proxy/api/search");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetEmonGrafanaDashboardsRequest::~GetEmonGrafanaDashboardsRequest()
|
||||
{}
|
||||
|
||||
std::string GetEmonGrafanaDashboardsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetEmonGrafanaDashboardsRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetEmonGrafanaDashboardsRequest;
|
||||
|
||||
GetEmonGrafanaDashboardsRequest::GetEmonGrafanaDashboardsRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/emon/projects/[ProjectId]/grafana/proxy/api/search"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetEmonGrafanaDashboardsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
GetEmonGrafanaDashboardsRequest::~GetEmonGrafanaDashboardsRequest() {}
|
||||
|
||||
string GetEmonGrafanaDashboardsRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void GetEmonGrafanaDashboardsRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
string GetEmonGrafanaDashboardsRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetEmonGrafanaDashboardsRequest::setProjectId(string projectId) {
|
||||
projectId_ = projectId;
|
||||
setParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,41 +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/elasticsearch/model/GetEmonMonitorDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetEmonMonitorDataRequest;
|
||||
|
||||
GetEmonMonitorDataRequest::GetEmonMonitorDataRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/emon/projects/[ProjectId]/metrics/query");
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetEmonMonitorDataRequest::~GetEmonMonitorDataRequest()
|
||||
{}
|
||||
|
||||
std::string GetEmonMonitorDataRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetEmonMonitorDataRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetEmonMonitorDataRequest;
|
||||
|
||||
GetEmonMonitorDataRequest::GetEmonMonitorDataRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/emon/projects/[ProjectId]/metrics/query"};
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetEmonMonitorDataRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
GetEmonMonitorDataRequest::~GetEmonMonitorDataRequest() {}
|
||||
|
||||
string GetEmonMonitorDataRequest::getBody() const {
|
||||
return body_;
|
||||
}
|
||||
|
||||
void GetEmonMonitorDataRequest::setBody(string body) {
|
||||
body_ = body;
|
||||
setBodyParameter(std::string("body"), std::to_string(body));
|
||||
}
|
||||
|
||||
string GetEmonMonitorDataRequest::getProjectId() const {
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void GetEmonMonitorDataRequest::setProjectId(string projectId) {
|
||||
projectId_ = projectId;
|
||||
setParameter(std::string("ProjectId"), std::to_string(projectId));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,18 +43,18 @@ void GetEmonMonitorDataResult::parse(const std::string &payload)
|
||||
for (auto valueResultresultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultresultItem["dps"].isNull())
|
||||
resultObject.dps = valueResultresultItem["dps"].asString();
|
||||
if(!valueResultresultItem["integrity"].isNull())
|
||||
resultObject.integrity = std::stof(valueResultresultItem["integrity"].asString());
|
||||
if(!valueResultresultItem["messageWatermark"].isNull())
|
||||
resultObject.messageWatermark = std::stol(valueResultresultItem["messageWatermark"].asString());
|
||||
if(!valueResultresultItem["metric"].isNull())
|
||||
resultObject.metric = valueResultresultItem["metric"].asString();
|
||||
if(!valueResultresultItem["summary"].isNull())
|
||||
resultObject.summary = std::stof(valueResultresultItem["summary"].asString());
|
||||
if(!valueResultresultItem["messageWatermark"].isNull())
|
||||
resultObject.messageWatermark = std::stol(valueResultresultItem["messageWatermark"].asString());
|
||||
if(!valueResultresultItem["dps"].isNull())
|
||||
resultObject.dps = valueResultresultItem["dps"].asString();
|
||||
if(!valueResultresultItem["tags"].isNull())
|
||||
resultObject.tags = valueResultresultItem["tags"].asString();
|
||||
if(!valueResultresultItem["metric"].isNull())
|
||||
resultObject.metric = valueResultresultItem["metric"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["Code"].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/elasticsearch/model/GetOpenStoreUsageRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetOpenStoreUsageRequest;
|
||||
|
||||
GetOpenStoreUsageRequest::GetOpenStoreUsageRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/openstore/usage");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetOpenStoreUsageRequest::~GetOpenStoreUsageRequest()
|
||||
{}
|
||||
|
||||
std::string GetOpenStoreUsageRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetOpenStoreUsageRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetOpenStoreUsageRequest;
|
||||
|
||||
GetOpenStoreUsageRequest::GetOpenStoreUsageRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/openstore/usage"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetOpenStoreUsageRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
GetOpenStoreUsageRequest::~GetOpenStoreUsageRequest() {}
|
||||
|
||||
string GetOpenStoreUsageRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
void GetOpenStoreUsageRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/GetRegionConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetRegionConfigurationRequest;
|
||||
|
||||
GetRegionConfigurationRequest::GetRegionConfigurationRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/region");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetRegionConfigurationRequest::~GetRegionConfigurationRequest()
|
||||
{}
|
||||
|
||||
std::string GetRegionConfigurationRequest::getZoneId()const
|
||||
{
|
||||
return zoneId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetRegionConfigurationRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetRegionConfigurationRequest;
|
||||
|
||||
GetRegionConfigurationRequest::GetRegionConfigurationRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/region"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetRegionConfigurationRequest::setZoneId(const std::string& zoneId)
|
||||
{
|
||||
zoneId_ = zoneId;
|
||||
setParameter("ZoneId", zoneId);
|
||||
GetRegionConfigurationRequest::~GetRegionConfigurationRequest() {}
|
||||
|
||||
string GetRegionConfigurationRequest::getZoneId() const {
|
||||
return zoneId_;
|
||||
}
|
||||
|
||||
void GetRegionConfigurationRequest::setZoneId(string zoneId) {
|
||||
zoneId_ = zoneId;
|
||||
setParameter(std::string("zoneId"), std::to_string(zoneId));
|
||||
}
|
||||
|
||||
|
||||
@@ -50,14 +50,14 @@ void GetRegionConfigurationResult::parse(const std::string &payload)
|
||||
for (auto resultNodedataDiskListdataDiskListItem : alldataDiskListNode)
|
||||
{
|
||||
Result::DataDiskListItem dataDiskListItemObject;
|
||||
if(!resultNodedataDiskListdataDiskListItem["diskType"].isNull())
|
||||
dataDiskListItemObject.diskType = resultNodedataDiskListdataDiskListItem["diskType"].asString();
|
||||
if(!resultNodedataDiskListdataDiskListItem["scaleLimit"].isNull())
|
||||
dataDiskListItemObject.scaleLimit = std::stoi(resultNodedataDiskListdataDiskListItem["scaleLimit"].asString());
|
||||
if(!resultNodedataDiskListdataDiskListItem["minSize"].isNull())
|
||||
dataDiskListItemObject.minSize = std::stoi(resultNodedataDiskListdataDiskListItem["minSize"].asString());
|
||||
if(!resultNodedataDiskListdataDiskListItem["maxSize"].isNull())
|
||||
dataDiskListItemObject.maxSize = std::stoi(resultNodedataDiskListdataDiskListItem["maxSize"].asString());
|
||||
if(!resultNodedataDiskListdataDiskListItem["scaleLimit"].isNull())
|
||||
dataDiskListItemObject.scaleLimit = std::stoi(resultNodedataDiskListdataDiskListItem["scaleLimit"].asString());
|
||||
if(!resultNodedataDiskListdataDiskListItem["diskType"].isNull())
|
||||
dataDiskListItemObject.diskType = resultNodedataDiskListdataDiskListItem["diskType"].asString();
|
||||
auto allValueLimitSet = value["valueLimitSet"]["valueLimitSet"];
|
||||
for (auto value : allValueLimitSet)
|
||||
dataDiskListItemObject.valueLimitSet.push_back(value.asString());
|
||||
@@ -77,48 +77,48 @@ void GetRegionConfigurationResult::parse(const std::string &payload)
|
||||
for (auto resultNodenodeSpecListnodeSpecListItem : allnodeSpecListNode)
|
||||
{
|
||||
Result::NodeSpecListItem nodeSpecListItemObject;
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["cpuCount"].isNull())
|
||||
nodeSpecListItemObject.cpuCount = std::stoi(resultNodenodeSpecListnodeSpecListItem["cpuCount"].asString());
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["memorySize"].isNull())
|
||||
nodeSpecListItemObject.memorySize = std::stoi(resultNodenodeSpecListnodeSpecListItem["memorySize"].asString());
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["enable"].isNull())
|
||||
nodeSpecListItemObject.enable = resultNodenodeSpecListnodeSpecListItem["enable"].asString() == "true";
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["spec"].isNull())
|
||||
nodeSpecListItemObject.spec = resultNodenodeSpecListnodeSpecListItem["spec"].asString();
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["cpuCount"].isNull())
|
||||
nodeSpecListItemObject.cpuCount = std::stoi(resultNodenodeSpecListnodeSpecListItem["cpuCount"].asString());
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["diskType"].isNull())
|
||||
nodeSpecListItemObject.diskType = resultNodenodeSpecListnodeSpecListItem["diskType"].asString();
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["spec"].isNull())
|
||||
nodeSpecListItemObject.spec = resultNodenodeSpecListnodeSpecListItem["spec"].asString();
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["disk"].isNull())
|
||||
nodeSpecListItemObject.disk = std::stoi(resultNodenodeSpecListnodeSpecListItem["disk"].asString());
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["specGroupType"].isNull())
|
||||
nodeSpecListItemObject.specGroupType = resultNodenodeSpecListnodeSpecListItem["specGroupType"].asString();
|
||||
if(!resultNodenodeSpecListnodeSpecListItem["enable"].isNull())
|
||||
nodeSpecListItemObject.enable = resultNodenodeSpecListnodeSpecListItem["enable"].asString() == "true";
|
||||
result_.nodeSpecList.push_back(nodeSpecListItemObject);
|
||||
}
|
||||
auto allclientNodeDiskListNode = resultNode["clientNodeDiskList"]["disk"];
|
||||
for (auto resultNodeclientNodeDiskListdisk : allclientNodeDiskListNode)
|
||||
{
|
||||
Result::Disk diskObject;
|
||||
if(!resultNodeclientNodeDiskListdisk["diskType"].isNull())
|
||||
diskObject.diskType = resultNodeclientNodeDiskListdisk["diskType"].asString();
|
||||
if(!resultNodeclientNodeDiskListdisk["scaleLimit"].isNull())
|
||||
diskObject.scaleLimit = std::stoi(resultNodeclientNodeDiskListdisk["scaleLimit"].asString());
|
||||
if(!resultNodeclientNodeDiskListdisk["minSize"].isNull())
|
||||
diskObject.minSize = std::stoi(resultNodeclientNodeDiskListdisk["minSize"].asString());
|
||||
if(!resultNodeclientNodeDiskListdisk["maxSize"].isNull())
|
||||
diskObject.maxSize = std::stoi(resultNodeclientNodeDiskListdisk["maxSize"].asString());
|
||||
if(!resultNodeclientNodeDiskListdisk["scaleLimit"].isNull())
|
||||
diskObject.scaleLimit = std::stoi(resultNodeclientNodeDiskListdisk["scaleLimit"].asString());
|
||||
if(!resultNodeclientNodeDiskListdisk["diskType"].isNull())
|
||||
diskObject.diskType = resultNodeclientNodeDiskListdisk["diskType"].asString();
|
||||
result_.clientNodeDiskList.push_back(diskObject);
|
||||
}
|
||||
auto allmasterDiskListNode = resultNode["masterDiskList"]["disk"];
|
||||
for (auto resultNodemasterDiskListdisk : allmasterDiskListNode)
|
||||
{
|
||||
Result::Disk diskObject;
|
||||
if(!resultNodemasterDiskListdisk["diskType"].isNull())
|
||||
diskObject.diskType = resultNodemasterDiskListdisk["diskType"].asString();
|
||||
if(!resultNodemasterDiskListdisk["scaleLimit"].isNull())
|
||||
diskObject.scaleLimit = std::stoi(resultNodemasterDiskListdisk["scaleLimit"].asString());
|
||||
if(!resultNodemasterDiskListdisk["minSize"].isNull())
|
||||
diskObject.minSize = std::stoi(resultNodemasterDiskListdisk["minSize"].asString());
|
||||
if(!resultNodemasterDiskListdisk["maxSize"].isNull())
|
||||
diskObject.maxSize = std::stoi(resultNodemasterDiskListdisk["maxSize"].asString());
|
||||
if(!resultNodemasterDiskListdisk["scaleLimit"].isNull())
|
||||
diskObject.scaleLimit = std::stoi(resultNodemasterDiskListdisk["scaleLimit"].asString());
|
||||
if(!resultNodemasterDiskListdisk["diskType"].isNull())
|
||||
diskObject.diskType = resultNodemasterDiskListdisk["diskType"].asString();
|
||||
result_.masterDiskList.push_back(diskObject);
|
||||
}
|
||||
auto allsupportVersionsNode = resultNode["supportVersions"]["CategoryEntity"];
|
||||
@@ -140,39 +140,39 @@ void GetRegionConfigurationResult::parse(const std::string &payload)
|
||||
result_.supportVersions.push_back(categoryEntityObject);
|
||||
}
|
||||
auto nodeNode = resultNode["node"];
|
||||
if(!nodeNode["minAmount"].isNull())
|
||||
result_.node.minAmount = std::stoi(nodeNode["minAmount"].asString());
|
||||
if(!nodeNode["maxAmount"].isNull())
|
||||
result_.node.maxAmount = std::stoi(nodeNode["maxAmount"].asString());
|
||||
if(!nodeNode["minAmount"].isNull())
|
||||
result_.node.minAmount = std::stoi(nodeNode["minAmount"].asString());
|
||||
auto jvmConfineNode = resultNode["jvmConfine"];
|
||||
if(!jvmConfineNode["memory"].isNull())
|
||||
result_.jvmConfine.memory = std::stoi(jvmConfineNode["memory"].asString());
|
||||
auto allSupportGcs = jvmConfineNode["supportGcs"]["gcName"];
|
||||
for (auto value : allSupportGcs)
|
||||
result_.jvmConfine.supportGcs.push_back(value.asString());
|
||||
auto allSupportEsVersions = jvmConfineNode["supportEsVersions"]["version"];
|
||||
for (auto value : allSupportEsVersions)
|
||||
result_.jvmConfine.supportEsVersions.push_back(value.asString());
|
||||
auto allSupportGcs = jvmConfineNode["supportGcs"]["gcName"];
|
||||
for (auto value : allSupportGcs)
|
||||
result_.jvmConfine.supportGcs.push_back(value.asString());
|
||||
auto clientNodeAmountRangeNode = resultNode["clientNodeAmountRange"];
|
||||
if(!clientNodeAmountRangeNode["minAmount"].isNull())
|
||||
result_.clientNodeAmountRange.minAmount = std::stoi(clientNodeAmountRangeNode["minAmount"].asString());
|
||||
if(!clientNodeAmountRangeNode["maxAmount"].isNull())
|
||||
result_.clientNodeAmountRange.maxAmount = std::stoi(clientNodeAmountRangeNode["maxAmount"].asString());
|
||||
if(!clientNodeAmountRangeNode["minAmount"].isNull())
|
||||
result_.clientNodeAmountRange.minAmount = std::stoi(clientNodeAmountRangeNode["minAmount"].asString());
|
||||
auto warmNodePropertiesNode = resultNode["warmNodeProperties"];
|
||||
auto alldiskListNode = warmNodePropertiesNode["diskList"]["disk"];
|
||||
for (auto warmNodePropertiesNodediskListdisk : alldiskListNode)
|
||||
{
|
||||
Result::WarmNodeProperties::Disk1 disk1Object;
|
||||
if(!warmNodePropertiesNodediskListdisk["diskType"].isNull())
|
||||
disk1Object.diskType = warmNodePropertiesNodediskListdisk["diskType"].asString();
|
||||
if(!warmNodePropertiesNodediskListdisk["maxSize"].isNull())
|
||||
disk1Object.maxSize = std::stoi(warmNodePropertiesNodediskListdisk["maxSize"].asString());
|
||||
if(!warmNodePropertiesNodediskListdisk["minSize"].isNull())
|
||||
disk1Object.minSize = std::stoi(warmNodePropertiesNodediskListdisk["minSize"].asString());
|
||||
if(!warmNodePropertiesNodediskListdisk["scaleLimit"].isNull())
|
||||
disk1Object.scaleLimit = std::stoi(warmNodePropertiesNodediskListdisk["scaleLimit"].asString());
|
||||
if(!warmNodePropertiesNodediskListdisk["minSize"].isNull())
|
||||
disk1Object.minSize = std::stoi(warmNodePropertiesNodediskListdisk["minSize"].asString());
|
||||
if(!warmNodePropertiesNodediskListdisk["diskEncryption"].isNull())
|
||||
disk1Object.diskEncryption = warmNodePropertiesNodediskListdisk["diskEncryption"].asString() == "true";
|
||||
if(!warmNodePropertiesNodediskListdisk["maxSize"].isNull())
|
||||
disk1Object.maxSize = std::stoi(warmNodePropertiesNodediskListdisk["maxSize"].asString());
|
||||
if(!warmNodePropertiesNodediskListdisk["diskType"].isNull())
|
||||
disk1Object.diskType = warmNodePropertiesNodediskListdisk["diskType"].asString();
|
||||
auto allValueLimitSet2 = value["valueLimitSet"]["valueLimitSet"];
|
||||
for (auto value : allValueLimitSet2)
|
||||
disk1Object.valueLimitSet2.push_back(value.asString());
|
||||
@@ -200,16 +200,16 @@ void GetRegionConfigurationResult::parse(const std::string &payload)
|
||||
for (auto elasticNodePropertiesNodediskListdisk : alldiskList7Node)
|
||||
{
|
||||
Result::ElasticNodeProperties::Disk8 disk8Object;
|
||||
if(!elasticNodePropertiesNodediskListdisk["diskType"].isNull())
|
||||
disk8Object.diskType = elasticNodePropertiesNodediskListdisk["diskType"].asString();
|
||||
if(!elasticNodePropertiesNodediskListdisk["maxSize"].isNull())
|
||||
disk8Object.maxSize = std::stoi(elasticNodePropertiesNodediskListdisk["maxSize"].asString());
|
||||
if(!elasticNodePropertiesNodediskListdisk["minSize"].isNull())
|
||||
disk8Object.minSize = std::stoi(elasticNodePropertiesNodediskListdisk["minSize"].asString());
|
||||
if(!elasticNodePropertiesNodediskListdisk["scaleLimit"].isNull())
|
||||
disk8Object.scaleLimit = std::stoi(elasticNodePropertiesNodediskListdisk["scaleLimit"].asString());
|
||||
if(!elasticNodePropertiesNodediskListdisk["minSize"].isNull())
|
||||
disk8Object.minSize = std::stoi(elasticNodePropertiesNodediskListdisk["minSize"].asString());
|
||||
if(!elasticNodePropertiesNodediskListdisk["diskEncryption"].isNull())
|
||||
disk8Object.diskEncryption = elasticNodePropertiesNodediskListdisk["diskEncryption"].asString() == "true";
|
||||
if(!elasticNodePropertiesNodediskListdisk["maxSize"].isNull())
|
||||
disk8Object.maxSize = std::stoi(elasticNodePropertiesNodediskListdisk["maxSize"].asString());
|
||||
if(!elasticNodePropertiesNodediskListdisk["diskType"].isNull())
|
||||
disk8Object.diskType = elasticNodePropertiesNodediskListdisk["diskType"].asString();
|
||||
auto allValueLimitSet9 = value["valueLimitSet"]["valueLimitSet"];
|
||||
for (auto value : allValueLimitSet9)
|
||||
disk8Object.valueLimitSet9.push_back(value.asString());
|
||||
@@ -223,21 +223,21 @@ void GetRegionConfigurationResult::parse(const std::string &payload)
|
||||
auto allSpec5 = elasticNodePropertiesNode["spec"]["spec"];
|
||||
for (auto value : allSpec5)
|
||||
result_.elasticNodeProperties.spec5.push_back(value.asString());
|
||||
auto allZones = resultNode["zones"]["zones"];
|
||||
for (auto value : allZones)
|
||||
result_.zones.push_back(value.asString());
|
||||
auto allEsVersions = resultNode["esVersions"]["esVersions"];
|
||||
for (auto value : allEsVersions)
|
||||
result_.esVersions.push_back(value.asString());
|
||||
auto allMasterSpec = resultNode["masterSpec"]["spec"];
|
||||
for (auto value : allMasterSpec)
|
||||
result_.masterSpec.push_back(value.asString());
|
||||
auto allClientNodeSpec = resultNode["clientNodeSpec"]["spec"];
|
||||
for (auto value : allClientNodeSpec)
|
||||
result_.clientNodeSpec.push_back(value.asString());
|
||||
auto allZones = resultNode["zones"]["zones"];
|
||||
for (auto value : allZones)
|
||||
result_.zones.push_back(value.asString());
|
||||
auto allInstanceSupportNodes = resultNode["instanceSupportNodes"]["instanceSupportNodes"];
|
||||
for (auto value : allInstanceSupportNodes)
|
||||
result_.instanceSupportNodes.push_back(value.asString());
|
||||
auto allEsVersions = resultNode["esVersions"]["esVersions"];
|
||||
for (auto value : allEsVersions)
|
||||
result_.esVersions.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/GetSuggestShrinkableNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetSuggestShrinkableNodesRequest;
|
||||
|
||||
GetSuggestShrinkableNodesRequest::GetSuggestShrinkableNodesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/suggest-shrinkable-nodes");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetSuggestShrinkableNodesRequest::~GetSuggestShrinkableNodesRequest()
|
||||
{}
|
||||
|
||||
bool GetSuggestShrinkableNodesRequest::getIgnoreStatus()const
|
||||
{
|
||||
return ignoreStatus_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetSuggestShrinkableNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetSuggestShrinkableNodesRequest;
|
||||
|
||||
GetSuggestShrinkableNodesRequest::GetSuggestShrinkableNodesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/suggest-shrinkable-nodes"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetSuggestShrinkableNodesRequest::setIgnoreStatus(bool ignoreStatus)
|
||||
{
|
||||
ignoreStatus_ = ignoreStatus;
|
||||
setParameter("IgnoreStatus", ignoreStatus ? "true" : "false");
|
||||
GetSuggestShrinkableNodesRequest::~GetSuggestShrinkableNodesRequest() {}
|
||||
|
||||
boolean GetSuggestShrinkableNodesRequest::getIgnoreStatus() const {
|
||||
return ignoreStatus_;
|
||||
}
|
||||
|
||||
std::string GetSuggestShrinkableNodesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void GetSuggestShrinkableNodesRequest::setIgnoreStatus(boolean ignoreStatus) {
|
||||
ignoreStatus_ = ignoreStatus;
|
||||
setParameter(std::string("ignoreStatus"), std::to_string(ignoreStatus));
|
||||
}
|
||||
|
||||
void GetSuggestShrinkableNodesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
string GetSuggestShrinkableNodesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string GetSuggestShrinkableNodesRequest::getNodeType()const
|
||||
{
|
||||
return nodeType_;
|
||||
void GetSuggestShrinkableNodesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void GetSuggestShrinkableNodesRequest::setNodeType(const std::string& nodeType)
|
||||
{
|
||||
nodeType_ = nodeType;
|
||||
setParameter("NodeType", nodeType);
|
||||
string GetSuggestShrinkableNodesRequest::getNodeType() const {
|
||||
return nodeType_;
|
||||
}
|
||||
|
||||
int GetSuggestShrinkableNodesRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
void GetSuggestShrinkableNodesRequest::setNodeType(string nodeType) {
|
||||
nodeType_ = nodeType;
|
||||
setParameter(std::string("nodeType"), std::to_string(nodeType));
|
||||
}
|
||||
|
||||
void GetSuggestShrinkableNodesRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setParameter("Count", std::to_string(count));
|
||||
integer GetSuggestShrinkableNodesRequest::getCount() const {
|
||||
return count_;
|
||||
}
|
||||
|
||||
void GetSuggestShrinkableNodesRequest::setCount(integer count) {
|
||||
count_ = count;
|
||||
setParameter(std::string("count"), std::to_string(count));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void GetSuggestShrinkableNodesResult::parse(const std::string &payload)
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["host"].isNull())
|
||||
resultObject.host = valueResultResultItem["host"].asString();
|
||||
if(!valueResultResultItem["port"].isNull())
|
||||
resultObject.port = std::stoi(valueResultResultItem["port"].asString());
|
||||
if(!valueResultResultItem["host"].isNull())
|
||||
resultObject.host = valueResultResultItem["host"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -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/elasticsearch/model/GetTransferableNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetTransferableNodesRequest;
|
||||
|
||||
GetTransferableNodesRequest::GetTransferableNodesRequest() :
|
||||
RoaServiceRequest("elasticsearch", "2017-06-13")
|
||||
{
|
||||
setResourcePath("/openapi/instances/[InstanceId]/transferable-nodes");
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetTransferableNodesRequest::~GetTransferableNodesRequest()
|
||||
{}
|
||||
|
||||
std::string GetTransferableNodesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/elasticsearch/model/GetTransferableNodesRequest.h>
|
||||
|
||||
using AlibabaCloud::Elasticsearch::Model::GetTransferableNodesRequest;
|
||||
|
||||
GetTransferableNodesRequest::GetTransferableNodesRequest()
|
||||
: RoaServiceRequest("elasticsearch", "2017-06-13") {
|
||||
setResourcePath("/openapi/instances/[InstanceId]/transferable-nodes"};
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
void GetTransferableNodesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
GetTransferableNodesRequest::~GetTransferableNodesRequest() {}
|
||||
|
||||
string GetTransferableNodesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string GetTransferableNodesRequest::getNodeType()const
|
||||
{
|
||||
return nodeType_;
|
||||
void GetTransferableNodesRequest::setInstanceId(string instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), std::to_string(instanceId));
|
||||
}
|
||||
|
||||
void GetTransferableNodesRequest::setNodeType(const std::string& nodeType)
|
||||
{
|
||||
nodeType_ = nodeType;
|
||||
setParameter("NodeType", nodeType);
|
||||
string GetTransferableNodesRequest::getNodeType() const {
|
||||
return nodeType_;
|
||||
}
|
||||
|
||||
int GetTransferableNodesRequest::getCount()const
|
||||
{
|
||||
return count_;
|
||||
void GetTransferableNodesRequest::setNodeType(string nodeType) {
|
||||
nodeType_ = nodeType;
|
||||
setParameter(std::string("nodeType"), std::to_string(nodeType));
|
||||
}
|
||||
|
||||
void GetTransferableNodesRequest::setCount(int count)
|
||||
{
|
||||
count_ = count;
|
||||
setParameter("Count", std::to_string(count));
|
||||
integer GetTransferableNodesRequest::getCount() const {
|
||||
return count_;
|
||||
}
|
||||
|
||||
void GetTransferableNodesRequest::setCount(integer count) {
|
||||
count_ = count;
|
||||
setParameter(std::string("count"), std::to_string(count));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,10 +43,10 @@ void GetTransferableNodesResult::parse(const std::string &payload)
|
||||
for (auto valueResultResultItem : allResultNode)
|
||||
{
|
||||
ResultItem resultObject;
|
||||
if(!valueResultResultItem["host"].isNull())
|
||||
resultObject.host = valueResultResultItem["host"].asString();
|
||||
if(!valueResultResultItem["port"].isNull())
|
||||
resultObject.port = std::stoi(valueResultResultItem["port"].asString());
|
||||
if(!valueResultResultItem["host"].isNull())
|
||||
resultObject.host = valueResultResultItem["host"].asString();
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user