diff --git a/VERSION b/VERSION index 14086909e..7c1e53c3c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1312 \ No newline at end of file +1.36.1313 \ No newline at end of file diff --git a/elasticsearch/CMakeLists.txt b/elasticsearch/CMakeLists.txt index 5fba330af..5c473c89e 100644 --- a/elasticsearch/CMakeLists.txt +++ b/elasticsearch/CMakeLists.txt @@ -43,6 +43,8 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/CloseManagedIndexResult.h include/alibabacloud/elasticsearch/model/CreateCollectorRequest.h include/alibabacloud/elasticsearch/model/CreateCollectorResult.h + include/alibabacloud/elasticsearch/model/CreateComponentIndexRequest.h + include/alibabacloud/elasticsearch/model/CreateComponentIndexResult.h include/alibabacloud/elasticsearch/model/CreateDataStreamRequest.h include/alibabacloud/elasticsearch/model/CreateDataStreamResult.h include/alibabacloud/elasticsearch/model/CreateDataTasksRequest.h @@ -65,12 +67,16 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/DeactivateZonesResult.h include/alibabacloud/elasticsearch/model/DeleteCollectorRequest.h include/alibabacloud/elasticsearch/model/DeleteCollectorResult.h + include/alibabacloud/elasticsearch/model/DeleteComponentIndexRequest.h + include/alibabacloud/elasticsearch/model/DeleteComponentIndexResult.h include/alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h include/alibabacloud/elasticsearch/model/DeleteConnectedClusterResult.h include/alibabacloud/elasticsearch/model/DeleteDataStreamRequest.h include/alibabacloud/elasticsearch/model/DeleteDataStreamResult.h include/alibabacloud/elasticsearch/model/DeleteDataTaskRequest.h include/alibabacloud/elasticsearch/model/DeleteDataTaskResult.h + include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateRequest.h + include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateResult.h include/alibabacloud/elasticsearch/model/DeleteILMPolicyRequest.h include/alibabacloud/elasticsearch/model/DeleteILMPolicyResult.h include/alibabacloud/elasticsearch/model/DeleteIndexTemplateRequest.h @@ -91,12 +97,18 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/DescribeApmResult.h include/alibabacloud/elasticsearch/model/DescribeCollectorRequest.h include/alibabacloud/elasticsearch/model/DescribeCollectorResult.h + include/alibabacloud/elasticsearch/model/DescribeComponentIndexRequest.h + include/alibabacloud/elasticsearch/model/DescribeComponentIndexResult.h include/alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h include/alibabacloud/elasticsearch/model/DescribeConnectableClustersResult.h + include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateRequest.h + include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateResult.h include/alibabacloud/elasticsearch/model/DescribeDiagnoseReportRequest.h include/alibabacloud/elasticsearch/model/DescribeDiagnoseReportResult.h include/alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsRequest.h include/alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsResult.h + include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsRequest.h + include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsResult.h include/alibabacloud/elasticsearch/model/DescribeElasticsearchHealthRequest.h include/alibabacloud/elasticsearch/model/DescribeElasticsearchHealthResult.h include/alibabacloud/elasticsearch/model/DescribeILMPolicyRequest.h @@ -165,6 +177,8 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/ListAckClustersResult.h include/alibabacloud/elasticsearch/model/ListAckNamespacesRequest.h include/alibabacloud/elasticsearch/model/ListAckNamespacesResult.h + include/alibabacloud/elasticsearch/model/ListActionRecordsRequest.h + include/alibabacloud/elasticsearch/model/ListActionRecordsResult.h include/alibabacloud/elasticsearch/model/ListAllNodeRequest.h include/alibabacloud/elasticsearch/model/ListAllNodeResult.h include/alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposRequest.h @@ -175,6 +189,8 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/ListAvailableEsInstanceIdsResult.h include/alibabacloud/elasticsearch/model/ListCollectorsRequest.h include/alibabacloud/elasticsearch/model/ListCollectorsResult.h + include/alibabacloud/elasticsearch/model/ListComponentIndicesRequest.h + include/alibabacloud/elasticsearch/model/ListComponentIndicesResult.h include/alibabacloud/elasticsearch/model/ListConnectedClustersRequest.h include/alibabacloud/elasticsearch/model/ListConnectedClustersResult.h include/alibabacloud/elasticsearch/model/ListDataStreamsRequest.h @@ -183,6 +199,8 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/ListDataTasksResult.h include/alibabacloud/elasticsearch/model/ListDefaultCollectorConfigurationsRequest.h include/alibabacloud/elasticsearch/model/ListDefaultCollectorConfigurationsResult.h + include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesRequest.h + include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesResult.h include/alibabacloud/elasticsearch/model/ListDiagnoseIndicesRequest.h include/alibabacloud/elasticsearch/model/ListDiagnoseIndicesResult.h include/alibabacloud/elasticsearch/model/ListDiagnoseReportRequest.h @@ -203,6 +221,8 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/ListIndexTemplatesResult.h include/alibabacloud/elasticsearch/model/ListInstanceRequest.h include/alibabacloud/elasticsearch/model/ListInstanceResult.h + include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsRequest.h + include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsResult.h include/alibabacloud/elasticsearch/model/ListInstanceIndicesRequest.h include/alibabacloud/elasticsearch/model/ListInstanceIndicesResult.h include/alibabacloud/elasticsearch/model/ListKibanaPluginsRequest.h @@ -315,12 +335,16 @@ set(elasticsearch_public_header_model include/alibabacloud/elasticsearch/model/UpdateCollectorResult.h include/alibabacloud/elasticsearch/model/UpdateCollectorNameRequest.h include/alibabacloud/elasticsearch/model/UpdateCollectorNameResult.h + include/alibabacloud/elasticsearch/model/UpdateComponentIndexRequest.h + include/alibabacloud/elasticsearch/model/UpdateComponentIndexResult.h include/alibabacloud/elasticsearch/model/UpdateDescriptionRequest.h include/alibabacloud/elasticsearch/model/UpdateDescriptionResult.h include/alibabacloud/elasticsearch/model/UpdateDiagnosisSettingsRequest.h include/alibabacloud/elasticsearch/model/UpdateDiagnosisSettingsResult.h include/alibabacloud/elasticsearch/model/UpdateDictRequest.h include/alibabacloud/elasticsearch/model/UpdateDictResult.h + include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsRequest.h + include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsResult.h include/alibabacloud/elasticsearch/model/UpdateExtendConfigRequest.h include/alibabacloud/elasticsearch/model/UpdateExtendConfigResult.h include/alibabacloud/elasticsearch/model/UpdateExtendfilesRequest.h @@ -406,6 +430,8 @@ set(elasticsearch_src src/model/CloseManagedIndexResult.cc src/model/CreateCollectorRequest.cc src/model/CreateCollectorResult.cc + src/model/CreateComponentIndexRequest.cc + src/model/CreateComponentIndexResult.cc src/model/CreateDataStreamRequest.cc src/model/CreateDataStreamResult.cc src/model/CreateDataTasksRequest.cc @@ -428,12 +454,16 @@ set(elasticsearch_src src/model/DeactivateZonesResult.cc src/model/DeleteCollectorRequest.cc src/model/DeleteCollectorResult.cc + src/model/DeleteComponentIndexRequest.cc + src/model/DeleteComponentIndexResult.cc src/model/DeleteConnectedClusterRequest.cc src/model/DeleteConnectedClusterResult.cc src/model/DeleteDataStreamRequest.cc src/model/DeleteDataStreamResult.cc src/model/DeleteDataTaskRequest.cc src/model/DeleteDataTaskResult.cc + src/model/DeleteDeprecatedTemplateRequest.cc + src/model/DeleteDeprecatedTemplateResult.cc src/model/DeleteILMPolicyRequest.cc src/model/DeleteILMPolicyResult.cc src/model/DeleteIndexTemplateRequest.cc @@ -454,12 +484,18 @@ set(elasticsearch_src src/model/DescribeApmResult.cc src/model/DescribeCollectorRequest.cc src/model/DescribeCollectorResult.cc + src/model/DescribeComponentIndexRequest.cc + src/model/DescribeComponentIndexResult.cc src/model/DescribeConnectableClustersRequest.cc src/model/DescribeConnectableClustersResult.cc + src/model/DescribeDeprecatedTemplateRequest.cc + src/model/DescribeDeprecatedTemplateResult.cc src/model/DescribeDiagnoseReportRequest.cc src/model/DescribeDiagnoseReportResult.cc src/model/DescribeDiagnosisSettingsRequest.cc src/model/DescribeDiagnosisSettingsResult.cc + src/model/DescribeDynamicSettingsRequest.cc + src/model/DescribeDynamicSettingsResult.cc src/model/DescribeElasticsearchHealthRequest.cc src/model/DescribeElasticsearchHealthResult.cc src/model/DescribeILMPolicyRequest.cc @@ -528,6 +564,8 @@ set(elasticsearch_src src/model/ListAckClustersResult.cc src/model/ListAckNamespacesRequest.cc src/model/ListAckNamespacesResult.cc + src/model/ListActionRecordsRequest.cc + src/model/ListActionRecordsResult.cc src/model/ListAllNodeRequest.cc src/model/ListAllNodeResult.cc src/model/ListAlternativeSnapshotReposRequest.cc @@ -538,6 +576,8 @@ set(elasticsearch_src src/model/ListAvailableEsInstanceIdsResult.cc src/model/ListCollectorsRequest.cc src/model/ListCollectorsResult.cc + src/model/ListComponentIndicesRequest.cc + src/model/ListComponentIndicesResult.cc src/model/ListConnectedClustersRequest.cc src/model/ListConnectedClustersResult.cc src/model/ListDataStreamsRequest.cc @@ -546,6 +586,8 @@ set(elasticsearch_src src/model/ListDataTasksResult.cc src/model/ListDefaultCollectorConfigurationsRequest.cc src/model/ListDefaultCollectorConfigurationsResult.cc + src/model/ListDeprecatedTemplatesRequest.cc + src/model/ListDeprecatedTemplatesResult.cc src/model/ListDiagnoseIndicesRequest.cc src/model/ListDiagnoseIndicesResult.cc src/model/ListDiagnoseReportRequest.cc @@ -566,6 +608,8 @@ set(elasticsearch_src src/model/ListIndexTemplatesResult.cc src/model/ListInstanceRequest.cc src/model/ListInstanceResult.cc + src/model/ListInstanceHistoryEventsRequest.cc + src/model/ListInstanceHistoryEventsResult.cc src/model/ListInstanceIndicesRequest.cc src/model/ListInstanceIndicesResult.cc src/model/ListKibanaPluginsRequest.cc @@ -678,12 +722,16 @@ set(elasticsearch_src src/model/UpdateCollectorResult.cc src/model/UpdateCollectorNameRequest.cc src/model/UpdateCollectorNameResult.cc + src/model/UpdateComponentIndexRequest.cc + src/model/UpdateComponentIndexResult.cc src/model/UpdateDescriptionRequest.cc src/model/UpdateDescriptionResult.cc src/model/UpdateDiagnosisSettingsRequest.cc src/model/UpdateDiagnosisSettingsResult.cc src/model/UpdateDictRequest.cc src/model/UpdateDictResult.cc + src/model/UpdateDynamicSettingsRequest.cc + src/model/UpdateDynamicSettingsResult.cc src/model/UpdateExtendConfigRequest.cc src/model/UpdateExtendConfigResult.cc src/model/UpdateExtendfilesRequest.cc diff --git a/elasticsearch/include/alibabacloud/elasticsearch/ElasticsearchClient.h b/elasticsearch/include/alibabacloud/elasticsearch/ElasticsearchClient.h index 65e7f410b..e19cbb889 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/ElasticsearchClient.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/ElasticsearchClient.h @@ -44,6 +44,8 @@ #include "model/CloseManagedIndexResult.h" #include "model/CreateCollectorRequest.h" #include "model/CreateCollectorResult.h" +#include "model/CreateComponentIndexRequest.h" +#include "model/CreateComponentIndexResult.h" #include "model/CreateDataStreamRequest.h" #include "model/CreateDataStreamResult.h" #include "model/CreateDataTasksRequest.h" @@ -66,12 +68,16 @@ #include "model/DeactivateZonesResult.h" #include "model/DeleteCollectorRequest.h" #include "model/DeleteCollectorResult.h" +#include "model/DeleteComponentIndexRequest.h" +#include "model/DeleteComponentIndexResult.h" #include "model/DeleteConnectedClusterRequest.h" #include "model/DeleteConnectedClusterResult.h" #include "model/DeleteDataStreamRequest.h" #include "model/DeleteDataStreamResult.h" #include "model/DeleteDataTaskRequest.h" #include "model/DeleteDataTaskResult.h" +#include "model/DeleteDeprecatedTemplateRequest.h" +#include "model/DeleteDeprecatedTemplateResult.h" #include "model/DeleteILMPolicyRequest.h" #include "model/DeleteILMPolicyResult.h" #include "model/DeleteIndexTemplateRequest.h" @@ -92,12 +98,18 @@ #include "model/DescribeApmResult.h" #include "model/DescribeCollectorRequest.h" #include "model/DescribeCollectorResult.h" +#include "model/DescribeComponentIndexRequest.h" +#include "model/DescribeComponentIndexResult.h" #include "model/DescribeConnectableClustersRequest.h" #include "model/DescribeConnectableClustersResult.h" +#include "model/DescribeDeprecatedTemplateRequest.h" +#include "model/DescribeDeprecatedTemplateResult.h" #include "model/DescribeDiagnoseReportRequest.h" #include "model/DescribeDiagnoseReportResult.h" #include "model/DescribeDiagnosisSettingsRequest.h" #include "model/DescribeDiagnosisSettingsResult.h" +#include "model/DescribeDynamicSettingsRequest.h" +#include "model/DescribeDynamicSettingsResult.h" #include "model/DescribeElasticsearchHealthRequest.h" #include "model/DescribeElasticsearchHealthResult.h" #include "model/DescribeILMPolicyRequest.h" @@ -166,6 +178,8 @@ #include "model/ListAckClustersResult.h" #include "model/ListAckNamespacesRequest.h" #include "model/ListAckNamespacesResult.h" +#include "model/ListActionRecordsRequest.h" +#include "model/ListActionRecordsResult.h" #include "model/ListAllNodeRequest.h" #include "model/ListAllNodeResult.h" #include "model/ListAlternativeSnapshotReposRequest.h" @@ -176,6 +190,8 @@ #include "model/ListAvailableEsInstanceIdsResult.h" #include "model/ListCollectorsRequest.h" #include "model/ListCollectorsResult.h" +#include "model/ListComponentIndicesRequest.h" +#include "model/ListComponentIndicesResult.h" #include "model/ListConnectedClustersRequest.h" #include "model/ListConnectedClustersResult.h" #include "model/ListDataStreamsRequest.h" @@ -184,6 +200,8 @@ #include "model/ListDataTasksResult.h" #include "model/ListDefaultCollectorConfigurationsRequest.h" #include "model/ListDefaultCollectorConfigurationsResult.h" +#include "model/ListDeprecatedTemplatesRequest.h" +#include "model/ListDeprecatedTemplatesResult.h" #include "model/ListDiagnoseIndicesRequest.h" #include "model/ListDiagnoseIndicesResult.h" #include "model/ListDiagnoseReportRequest.h" @@ -204,6 +222,8 @@ #include "model/ListIndexTemplatesResult.h" #include "model/ListInstanceRequest.h" #include "model/ListInstanceResult.h" +#include "model/ListInstanceHistoryEventsRequest.h" +#include "model/ListInstanceHistoryEventsResult.h" #include "model/ListInstanceIndicesRequest.h" #include "model/ListInstanceIndicesResult.h" #include "model/ListKibanaPluginsRequest.h" @@ -316,12 +336,16 @@ #include "model/UpdateCollectorResult.h" #include "model/UpdateCollectorNameRequest.h" #include "model/UpdateCollectorNameResult.h" +#include "model/UpdateComponentIndexRequest.h" +#include "model/UpdateComponentIndexResult.h" #include "model/UpdateDescriptionRequest.h" #include "model/UpdateDescriptionResult.h" #include "model/UpdateDiagnosisSettingsRequest.h" #include "model/UpdateDiagnosisSettingsResult.h" #include "model/UpdateDictRequest.h" #include "model/UpdateDictResult.h" +#include "model/UpdateDynamicSettingsRequest.h" +#include "model/UpdateDynamicSettingsResult.h" #include "model/UpdateExtendConfigRequest.h" #include "model/UpdateExtendConfigResult.h" #include "model/UpdateExtendfilesRequest.h" @@ -424,6 +448,9 @@ namespace AlibabaCloud typedef Outcome CreateCollectorOutcome; typedef std::future CreateCollectorOutcomeCallable; typedef std::function&)> CreateCollectorAsyncHandler; + typedef Outcome CreateComponentIndexOutcome; + typedef std::future CreateComponentIndexOutcomeCallable; + typedef std::function&)> CreateComponentIndexAsyncHandler; typedef Outcome CreateDataStreamOutcome; typedef std::future CreateDataStreamOutcomeCallable; typedef std::function&)> CreateDataStreamAsyncHandler; @@ -457,6 +484,9 @@ namespace AlibabaCloud typedef Outcome DeleteCollectorOutcome; typedef std::future DeleteCollectorOutcomeCallable; typedef std::function&)> DeleteCollectorAsyncHandler; + typedef Outcome DeleteComponentIndexOutcome; + typedef std::future DeleteComponentIndexOutcomeCallable; + typedef std::function&)> DeleteComponentIndexAsyncHandler; typedef Outcome DeleteConnectedClusterOutcome; typedef std::future DeleteConnectedClusterOutcomeCallable; typedef std::function&)> DeleteConnectedClusterAsyncHandler; @@ -466,6 +496,9 @@ namespace AlibabaCloud typedef Outcome DeleteDataTaskOutcome; typedef std::future DeleteDataTaskOutcomeCallable; typedef std::function&)> DeleteDataTaskAsyncHandler; + typedef Outcome DeleteDeprecatedTemplateOutcome; + typedef std::future DeleteDeprecatedTemplateOutcomeCallable; + typedef std::function&)> DeleteDeprecatedTemplateAsyncHandler; typedef Outcome DeleteILMPolicyOutcome; typedef std::future DeleteILMPolicyOutcomeCallable; typedef std::function&)> DeleteILMPolicyAsyncHandler; @@ -496,15 +529,24 @@ namespace AlibabaCloud typedef Outcome DescribeCollectorOutcome; typedef std::future DescribeCollectorOutcomeCallable; typedef std::function&)> DescribeCollectorAsyncHandler; + typedef Outcome DescribeComponentIndexOutcome; + typedef std::future DescribeComponentIndexOutcomeCallable; + typedef std::function&)> DescribeComponentIndexAsyncHandler; typedef Outcome DescribeConnectableClustersOutcome; typedef std::future DescribeConnectableClustersOutcomeCallable; typedef std::function&)> DescribeConnectableClustersAsyncHandler; + typedef Outcome DescribeDeprecatedTemplateOutcome; + typedef std::future DescribeDeprecatedTemplateOutcomeCallable; + typedef std::function&)> DescribeDeprecatedTemplateAsyncHandler; typedef Outcome DescribeDiagnoseReportOutcome; typedef std::future DescribeDiagnoseReportOutcomeCallable; typedef std::function&)> DescribeDiagnoseReportAsyncHandler; typedef Outcome DescribeDiagnosisSettingsOutcome; typedef std::future DescribeDiagnosisSettingsOutcomeCallable; typedef std::function&)> DescribeDiagnosisSettingsAsyncHandler; + typedef Outcome DescribeDynamicSettingsOutcome; + typedef std::future DescribeDynamicSettingsOutcomeCallable; + typedef std::function&)> DescribeDynamicSettingsAsyncHandler; typedef Outcome DescribeElasticsearchHealthOutcome; typedef std::future DescribeElasticsearchHealthOutcomeCallable; typedef std::function&)> DescribeElasticsearchHealthAsyncHandler; @@ -607,6 +649,9 @@ namespace AlibabaCloud typedef Outcome ListAckNamespacesOutcome; typedef std::future ListAckNamespacesOutcomeCallable; typedef std::function&)> ListAckNamespacesAsyncHandler; + typedef Outcome ListActionRecordsOutcome; + typedef std::future ListActionRecordsOutcomeCallable; + typedef std::function&)> ListActionRecordsAsyncHandler; typedef Outcome ListAllNodeOutcome; typedef std::future ListAllNodeOutcomeCallable; typedef std::function&)> ListAllNodeAsyncHandler; @@ -622,6 +667,9 @@ namespace AlibabaCloud typedef Outcome ListCollectorsOutcome; typedef std::future ListCollectorsOutcomeCallable; typedef std::function&)> ListCollectorsAsyncHandler; + typedef Outcome ListComponentIndicesOutcome; + typedef std::future ListComponentIndicesOutcomeCallable; + typedef std::function&)> ListComponentIndicesAsyncHandler; typedef Outcome ListConnectedClustersOutcome; typedef std::future ListConnectedClustersOutcomeCallable; typedef std::function&)> ListConnectedClustersAsyncHandler; @@ -634,6 +682,9 @@ namespace AlibabaCloud typedef Outcome ListDefaultCollectorConfigurationsOutcome; typedef std::future ListDefaultCollectorConfigurationsOutcomeCallable; typedef std::function&)> ListDefaultCollectorConfigurationsAsyncHandler; + typedef Outcome ListDeprecatedTemplatesOutcome; + typedef std::future ListDeprecatedTemplatesOutcomeCallable; + typedef std::function&)> ListDeprecatedTemplatesAsyncHandler; typedef Outcome ListDiagnoseIndicesOutcome; typedef std::future ListDiagnoseIndicesOutcomeCallable; typedef std::function&)> ListDiagnoseIndicesAsyncHandler; @@ -664,6 +715,9 @@ namespace AlibabaCloud typedef Outcome ListInstanceOutcome; typedef std::future ListInstanceOutcomeCallable; typedef std::function&)> ListInstanceAsyncHandler; + typedef Outcome ListInstanceHistoryEventsOutcome; + typedef std::future ListInstanceHistoryEventsOutcomeCallable; + typedef std::function&)> ListInstanceHistoryEventsAsyncHandler; typedef Outcome ListInstanceIndicesOutcome; typedef std::future ListInstanceIndicesOutcomeCallable; typedef std::function&)> ListInstanceIndicesAsyncHandler; @@ -832,6 +886,9 @@ namespace AlibabaCloud typedef Outcome UpdateCollectorNameOutcome; typedef std::future UpdateCollectorNameOutcomeCallable; typedef std::function&)> UpdateCollectorNameAsyncHandler; + typedef Outcome UpdateComponentIndexOutcome; + typedef std::future UpdateComponentIndexOutcomeCallable; + typedef std::function&)> UpdateComponentIndexAsyncHandler; typedef Outcome UpdateDescriptionOutcome; typedef std::future UpdateDescriptionOutcomeCallable; typedef std::function&)> UpdateDescriptionAsyncHandler; @@ -841,6 +898,9 @@ namespace AlibabaCloud typedef Outcome UpdateDictOutcome; typedef std::future UpdateDictOutcomeCallable; typedef std::function&)> UpdateDictAsyncHandler; + typedef Outcome UpdateDynamicSettingsOutcome; + typedef std::future UpdateDynamicSettingsOutcomeCallable; + typedef std::function&)> UpdateDynamicSettingsAsyncHandler; typedef Outcome UpdateExtendConfigOutcome; typedef std::future UpdateExtendConfigOutcomeCallable; typedef std::function&)> UpdateExtendConfigAsyncHandler; @@ -969,6 +1029,9 @@ namespace AlibabaCloud CreateCollectorOutcome createCollector(const Model::CreateCollectorRequest &request)const; void createCollectorAsync(const Model::CreateCollectorRequest& request, const CreateCollectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateCollectorOutcomeCallable createCollectorCallable(const Model::CreateCollectorRequest& request) const; + CreateComponentIndexOutcome createComponentIndex(const Model::CreateComponentIndexRequest &request)const; + void createComponentIndexAsync(const Model::CreateComponentIndexRequest& request, const CreateComponentIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateComponentIndexOutcomeCallable createComponentIndexCallable(const Model::CreateComponentIndexRequest& request) const; CreateDataStreamOutcome createDataStream(const Model::CreateDataStreamRequest &request)const; void createDataStreamAsync(const Model::CreateDataStreamRequest& request, const CreateDataStreamAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDataStreamOutcomeCallable createDataStreamCallable(const Model::CreateDataStreamRequest& request) const; @@ -1002,6 +1065,9 @@ namespace AlibabaCloud DeleteCollectorOutcome deleteCollector(const Model::DeleteCollectorRequest &request)const; void deleteCollectorAsync(const Model::DeleteCollectorRequest& request, const DeleteCollectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCollectorOutcomeCallable deleteCollectorCallable(const Model::DeleteCollectorRequest& request) const; + DeleteComponentIndexOutcome deleteComponentIndex(const Model::DeleteComponentIndexRequest &request)const; + void deleteComponentIndexAsync(const Model::DeleteComponentIndexRequest& request, const DeleteComponentIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteComponentIndexOutcomeCallable deleteComponentIndexCallable(const Model::DeleteComponentIndexRequest& request) const; DeleteConnectedClusterOutcome deleteConnectedCluster(const Model::DeleteConnectedClusterRequest &request)const; void deleteConnectedClusterAsync(const Model::DeleteConnectedClusterRequest& request, const DeleteConnectedClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteConnectedClusterOutcomeCallable deleteConnectedClusterCallable(const Model::DeleteConnectedClusterRequest& request) const; @@ -1011,6 +1077,9 @@ namespace AlibabaCloud DeleteDataTaskOutcome deleteDataTask(const Model::DeleteDataTaskRequest &request)const; void deleteDataTaskAsync(const Model::DeleteDataTaskRequest& request, const DeleteDataTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDataTaskOutcomeCallable deleteDataTaskCallable(const Model::DeleteDataTaskRequest& request) const; + DeleteDeprecatedTemplateOutcome deleteDeprecatedTemplate(const Model::DeleteDeprecatedTemplateRequest &request)const; + void deleteDeprecatedTemplateAsync(const Model::DeleteDeprecatedTemplateRequest& request, const DeleteDeprecatedTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDeprecatedTemplateOutcomeCallable deleteDeprecatedTemplateCallable(const Model::DeleteDeprecatedTemplateRequest& request) const; DeleteILMPolicyOutcome deleteILMPolicy(const Model::DeleteILMPolicyRequest &request)const; void deleteILMPolicyAsync(const Model::DeleteILMPolicyRequest& request, const DeleteILMPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteILMPolicyOutcomeCallable deleteILMPolicyCallable(const Model::DeleteILMPolicyRequest& request) const; @@ -1041,15 +1110,24 @@ namespace AlibabaCloud DescribeCollectorOutcome describeCollector(const Model::DescribeCollectorRequest &request)const; void describeCollectorAsync(const Model::DescribeCollectorRequest& request, const DescribeCollectorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeCollectorOutcomeCallable describeCollectorCallable(const Model::DescribeCollectorRequest& request) const; + DescribeComponentIndexOutcome describeComponentIndex(const Model::DescribeComponentIndexRequest &request)const; + void describeComponentIndexAsync(const Model::DescribeComponentIndexRequest& request, const DescribeComponentIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeComponentIndexOutcomeCallable describeComponentIndexCallable(const Model::DescribeComponentIndexRequest& request) const; DescribeConnectableClustersOutcome describeConnectableClusters(const Model::DescribeConnectableClustersRequest &request)const; void describeConnectableClustersAsync(const Model::DescribeConnectableClustersRequest& request, const DescribeConnectableClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConnectableClustersOutcomeCallable describeConnectableClustersCallable(const Model::DescribeConnectableClustersRequest& request) const; + DescribeDeprecatedTemplateOutcome describeDeprecatedTemplate(const Model::DescribeDeprecatedTemplateRequest &request)const; + void describeDeprecatedTemplateAsync(const Model::DescribeDeprecatedTemplateRequest& request, const DescribeDeprecatedTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDeprecatedTemplateOutcomeCallable describeDeprecatedTemplateCallable(const Model::DescribeDeprecatedTemplateRequest& request) const; DescribeDiagnoseReportOutcome describeDiagnoseReport(const Model::DescribeDiagnoseReportRequest &request)const; void describeDiagnoseReportAsync(const Model::DescribeDiagnoseReportRequest& request, const DescribeDiagnoseReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDiagnoseReportOutcomeCallable describeDiagnoseReportCallable(const Model::DescribeDiagnoseReportRequest& request) const; DescribeDiagnosisSettingsOutcome describeDiagnosisSettings(const Model::DescribeDiagnosisSettingsRequest &request)const; void describeDiagnosisSettingsAsync(const Model::DescribeDiagnosisSettingsRequest& request, const DescribeDiagnosisSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeDiagnosisSettingsOutcomeCallable describeDiagnosisSettingsCallable(const Model::DescribeDiagnosisSettingsRequest& request) const; + DescribeDynamicSettingsOutcome describeDynamicSettings(const Model::DescribeDynamicSettingsRequest &request)const; + void describeDynamicSettingsAsync(const Model::DescribeDynamicSettingsRequest& request, const DescribeDynamicSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDynamicSettingsOutcomeCallable describeDynamicSettingsCallable(const Model::DescribeDynamicSettingsRequest& request) const; DescribeElasticsearchHealthOutcome describeElasticsearchHealth(const Model::DescribeElasticsearchHealthRequest &request)const; void describeElasticsearchHealthAsync(const Model::DescribeElasticsearchHealthRequest& request, const DescribeElasticsearchHealthAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeElasticsearchHealthOutcomeCallable describeElasticsearchHealthCallable(const Model::DescribeElasticsearchHealthRequest& request) const; @@ -1152,6 +1230,9 @@ namespace AlibabaCloud ListAckNamespacesOutcome listAckNamespaces(const Model::ListAckNamespacesRequest &request)const; void listAckNamespacesAsync(const Model::ListAckNamespacesRequest& request, const ListAckNamespacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAckNamespacesOutcomeCallable listAckNamespacesCallable(const Model::ListAckNamespacesRequest& request) const; + ListActionRecordsOutcome listActionRecords(const Model::ListActionRecordsRequest &request)const; + void listActionRecordsAsync(const Model::ListActionRecordsRequest& request, const ListActionRecordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListActionRecordsOutcomeCallable listActionRecordsCallable(const Model::ListActionRecordsRequest& request) const; ListAllNodeOutcome listAllNode(const Model::ListAllNodeRequest &request)const; void listAllNodeAsync(const Model::ListAllNodeRequest& request, const ListAllNodeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListAllNodeOutcomeCallable listAllNodeCallable(const Model::ListAllNodeRequest& request) const; @@ -1167,6 +1248,9 @@ namespace AlibabaCloud ListCollectorsOutcome listCollectors(const Model::ListCollectorsRequest &request)const; void listCollectorsAsync(const Model::ListCollectorsRequest& request, const ListCollectorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCollectorsOutcomeCallable listCollectorsCallable(const Model::ListCollectorsRequest& request) const; + ListComponentIndicesOutcome listComponentIndices(const Model::ListComponentIndicesRequest &request)const; + void listComponentIndicesAsync(const Model::ListComponentIndicesRequest& request, const ListComponentIndicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListComponentIndicesOutcomeCallable listComponentIndicesCallable(const Model::ListComponentIndicesRequest& request) const; ListConnectedClustersOutcome listConnectedClusters(const Model::ListConnectedClustersRequest &request)const; void listConnectedClustersAsync(const Model::ListConnectedClustersRequest& request, const ListConnectedClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListConnectedClustersOutcomeCallable listConnectedClustersCallable(const Model::ListConnectedClustersRequest& request) const; @@ -1179,6 +1263,9 @@ namespace AlibabaCloud ListDefaultCollectorConfigurationsOutcome listDefaultCollectorConfigurations(const Model::ListDefaultCollectorConfigurationsRequest &request)const; void listDefaultCollectorConfigurationsAsync(const Model::ListDefaultCollectorConfigurationsRequest& request, const ListDefaultCollectorConfigurationsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDefaultCollectorConfigurationsOutcomeCallable listDefaultCollectorConfigurationsCallable(const Model::ListDefaultCollectorConfigurationsRequest& request) const; + ListDeprecatedTemplatesOutcome listDeprecatedTemplates(const Model::ListDeprecatedTemplatesRequest &request)const; + void listDeprecatedTemplatesAsync(const Model::ListDeprecatedTemplatesRequest& request, const ListDeprecatedTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListDeprecatedTemplatesOutcomeCallable listDeprecatedTemplatesCallable(const Model::ListDeprecatedTemplatesRequest& request) const; ListDiagnoseIndicesOutcome listDiagnoseIndices(const Model::ListDiagnoseIndicesRequest &request)const; void listDiagnoseIndicesAsync(const Model::ListDiagnoseIndicesRequest& request, const ListDiagnoseIndicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListDiagnoseIndicesOutcomeCallable listDiagnoseIndicesCallable(const Model::ListDiagnoseIndicesRequest& request) const; @@ -1209,6 +1296,9 @@ namespace AlibabaCloud ListInstanceOutcome listInstance(const Model::ListInstanceRequest &request)const; void listInstanceAsync(const Model::ListInstanceRequest& request, const ListInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInstanceOutcomeCallable listInstanceCallable(const Model::ListInstanceRequest& request) const; + ListInstanceHistoryEventsOutcome listInstanceHistoryEvents(const Model::ListInstanceHistoryEventsRequest &request)const; + void listInstanceHistoryEventsAsync(const Model::ListInstanceHistoryEventsRequest& request, const ListInstanceHistoryEventsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstanceHistoryEventsOutcomeCallable listInstanceHistoryEventsCallable(const Model::ListInstanceHistoryEventsRequest& request) const; ListInstanceIndicesOutcome listInstanceIndices(const Model::ListInstanceIndicesRequest &request)const; void listInstanceIndicesAsync(const Model::ListInstanceIndicesRequest& request, const ListInstanceIndicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInstanceIndicesOutcomeCallable listInstanceIndicesCallable(const Model::ListInstanceIndicesRequest& request) const; @@ -1377,6 +1467,9 @@ namespace AlibabaCloud UpdateCollectorNameOutcome updateCollectorName(const Model::UpdateCollectorNameRequest &request)const; void updateCollectorNameAsync(const Model::UpdateCollectorNameRequest& request, const UpdateCollectorNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateCollectorNameOutcomeCallable updateCollectorNameCallable(const Model::UpdateCollectorNameRequest& request) const; + UpdateComponentIndexOutcome updateComponentIndex(const Model::UpdateComponentIndexRequest &request)const; + void updateComponentIndexAsync(const Model::UpdateComponentIndexRequest& request, const UpdateComponentIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateComponentIndexOutcomeCallable updateComponentIndexCallable(const Model::UpdateComponentIndexRequest& request) const; UpdateDescriptionOutcome updateDescription(const Model::UpdateDescriptionRequest &request)const; void updateDescriptionAsync(const Model::UpdateDescriptionRequest& request, const UpdateDescriptionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDescriptionOutcomeCallable updateDescriptionCallable(const Model::UpdateDescriptionRequest& request) const; @@ -1386,6 +1479,9 @@ namespace AlibabaCloud UpdateDictOutcome updateDict(const Model::UpdateDictRequest &request)const; void updateDictAsync(const Model::UpdateDictRequest& request, const UpdateDictAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateDictOutcomeCallable updateDictCallable(const Model::UpdateDictRequest& request) const; + UpdateDynamicSettingsOutcome updateDynamicSettings(const Model::UpdateDynamicSettingsRequest &request)const; + void updateDynamicSettingsAsync(const Model::UpdateDynamicSettingsRequest& request, const UpdateDynamicSettingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDynamicSettingsOutcomeCallable updateDynamicSettingsCallable(const Model::UpdateDynamicSettingsRequest& request) const; UpdateExtendConfigOutcome updateExtendConfig(const Model::UpdateExtendConfigRequest &request)const; void updateExtendConfigAsync(const Model::UpdateExtendConfigRequest& request, const UpdateExtendConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateExtendConfigOutcomeCallable updateExtendConfigCallable(const Model::UpdateExtendConfigRequest& request) const; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ActivateZonesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ActivateZonesRequest.h index 64bd27b61..40d35898f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ActivateZonesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ActivateZonesRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ACTIVATEZONESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ACTIVATEZONESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ActivateZonesRequest : public RoaServiceRequest - { - - public: - ActivateZonesRequest(); - ~ActivateZonesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ACTIVATEZONESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ACTIVATEZONESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ACTIVATEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ActivateZonesRequest : public RoaServiceRequest { +public: + ActivateZonesRequest(); + ~ActivateZonesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ACTIVATEZONESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/AddConnectableClusterRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/AddConnectableClusterRequest.h index 5b2c6fda3..c879128a7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/AddConnectableClusterRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/AddConnectableClusterRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDCONNECTABLECLUSTERREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDCONNECTABLECLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT AddConnectableClusterRequest : public RoaServiceRequest - { - - public: - AddConnectableClusterRequest(); - ~AddConnectableClusterRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDCONNECTABLECLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDCONNECTABLECLUSTERREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDCONNECTABLECLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT AddConnectableClusterRequest : public RoaServiceRequest { +public: + AddConnectableClusterRequest(); + ~AddConnectableClusterRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDCONNECTABLECLUSTERREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/AddSnapshotRepoRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/AddSnapshotRepoRequest.h index b3eb11041..53e357bd9 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/AddSnapshotRepoRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/AddSnapshotRepoRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDSNAPSHOTREPOREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDSNAPSHOTREPOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT AddSnapshotRepoRequest : public RoaServiceRequest - { - - public: - AddSnapshotRepoRequest(); - ~AddSnapshotRepoRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDSNAPSHOTREPOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDSNAPSHOTREPOREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDSNAPSHOTREPOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT AddSnapshotRepoRequest : public RoaServiceRequest { +public: + AddSnapshotRepoRequest(); + ~AddSnapshotRepoRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ADDSNAPSHOTREPOREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CancelDeletionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CancelDeletionRequest.h index 8c74cc93e..af76b75a8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CancelDeletionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CancelDeletionRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELDELETIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELDELETIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CancelDeletionRequest : public RoaServiceRequest - { - - public: - CancelDeletionRequest(); - ~CancelDeletionRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELDELETIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELDELETIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELDELETIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CancelDeletionRequest : public RoaServiceRequest { +public: + CancelDeletionRequest(); + ~CancelDeletionRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELDELETIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CancelLogstashDeletionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CancelLogstashDeletionRequest.h index 6536702f3..4dcde48f7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CancelLogstashDeletionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CancelLogstashDeletionRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELLOGSTASHDELETIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELLOGSTASHDELETIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CancelLogstashDeletionRequest : public RoaServiceRequest - { - - public: - CancelLogstashDeletionRequest(); - ~CancelLogstashDeletionRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELLOGSTASHDELETIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELLOGSTASHDELETIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELLOGSTASHDELETIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CancelLogstashDeletionRequest : public RoaServiceRequest { +public: + CancelLogstashDeletionRequest(); + ~CancelLogstashDeletionRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELLOGSTASHDELETIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CancelTaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CancelTaskRequest.h index c0e8f8106..d5d83c5e4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CancelTaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CancelTaskRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CancelTaskRequest : public RoaServiceRequest - { - - public: - CancelTaskRequest(); - ~CancelTaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string taskType_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CancelTaskRequest : public RoaServiceRequest { +public: + CancelTaskRequest(); + ~CancelTaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getTaskType() const; + void setTaskType(string taskType); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string taskType_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CANCELTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CapacityPlanRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CapacityPlanRequest.h index cddaac279..e0b6c9eb0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CapacityPlanRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CapacityPlanRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CAPACITYPLANREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CAPACITYPLANREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CapacityPlanRequest : public RoaServiceRequest - { - - public: - CapacityPlanRequest(); - ~CapacityPlanRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CAPACITYPLANREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CAPACITYPLANREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CAPACITYPLANREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CapacityPlanRequest : public RoaServiceRequest { +public: + CapacityPlanRequest(); + ~CapacityPlanRequest(); + +private: +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CAPACITYPLANREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CloseDiagnosisRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CloseDiagnosisRequest.h index dde8d153f..b03722d2f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CloseDiagnosisRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CloseDiagnosisRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEDIAGNOSISREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEDIAGNOSISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CloseDiagnosisRequest : public RoaServiceRequest - { - - public: - CloseDiagnosisRequest(); - ~CloseDiagnosisRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string clientToken_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEDIAGNOSISREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEDIAGNOSISREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CloseDiagnosisRequest : public RoaServiceRequest { +public: + CloseDiagnosisRequest(); + ~CloseDiagnosisRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + string clientToken_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEDIAGNOSISREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CloseHttpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CloseHttpsRequest.h index aabae2fff..678d66ce0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CloseHttpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CloseHttpsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEHTTPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEHTTPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CloseHttpsRequest : public RoaServiceRequest - { - - public: - CloseHttpsRequest(); - ~CloseHttpsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEHTTPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEHTTPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEHTTPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CloseHttpsRequest : public RoaServiceRequest { +public: + CloseHttpsRequest(); + ~CloseHttpsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEHTTPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CloseManagedIndexRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CloseManagedIndexRequest.h index 49c22bb36..f480fed22 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CloseManagedIndexRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CloseManagedIndexRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEMANAGEDINDEXREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEMANAGEDINDEXREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CloseManagedIndexRequest : public RoaServiceRequest - { - - public: - CloseManagedIndexRequest(); - ~CloseManagedIndexRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getIndex()const; - void setIndex(const std::string& index); - - private: - std::string instanceId_; - std::string clientToken_; - std::string index_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEMANAGEDINDEXREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEMANAGEDINDEXREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEMANAGEDINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CloseManagedIndexRequest : public RoaServiceRequest { +public: + CloseManagedIndexRequest(); + ~CloseManagedIndexRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getIndex() const; + void setIndex(string index); + +private: + string instanceId_; + string clientToken_; + string index_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CLOSEMANAGEDINDEXREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateCollectorRequest.h index 9c760d9f4..819de116e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateCollectorRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateCollectorRequest : public RoaServiceRequest - { - - public: - CreateCollectorRequest(); - ~CreateCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateCollectorRequest : public RoaServiceRequest { +public: + CreateCollectorRequest(); + ~CreateCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateComponentIndexRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateComponentIndexRequest.h new file mode 100644 index 000000000..3b8563c0c --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateComponentIndexRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOMPONENTINDEXREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOMPONENTINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateComponentIndexRequest : public RoaServiceRequest { +public: + CreateComponentIndexRequest(); + ~CreateComponentIndexRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getName() const; + void setName(string name); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string name_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOMPONENTINDEXREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateComponentIndexResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateComponentIndexResult.h new file mode 100644 index 000000000..e432e3b81 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateComponentIndexResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOMPONENTINDEXRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOMPONENTINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateComponentIndexResult : public ServiceResult + { + public: + + + CreateComponentIndexResult(); + explicit CreateComponentIndexResult(const std::string &payload); + ~CreateComponentIndexResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATECOMPONENTINDEXRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataStreamRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataStreamRequest.h index b3806ac44..8dcac2fc5 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataStreamRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataStreamRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATASTREAMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATASTREAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateDataStreamRequest : public RoaServiceRequest - { - - public: - CreateDataStreamRequest(); - ~CreateDataStreamRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATASTREAMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateDataStreamRequest : public RoaServiceRequest { +public: + CreateDataStreamRequest(); + ~CreateDataStreamRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATASTREAMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksRequest.h index b88cb5227..2aa19201e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATATASKSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATATASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateDataTasksRequest : public RoaServiceRequest - { - - public: - CreateDataTasksRequest(); - ~CreateDataTasksRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATATASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATATASKSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATATASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateDataTasksRequest : public RoaServiceRequest { +public: + CreateDataTasksRequest(); + ~CreateDataTasksRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEDATATASKSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksResult.h index 66f5a3f05..cdaeb92ee 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateDataTasksResult.h @@ -37,13 +37,13 @@ namespace AlibabaCloud struct SourceCluster { std::string type; - int vpcInstancePort; - std::string vpcId; std::string endpoint; + std::string vpcId; + int vpcInstancePort; std::string username; std::string dataSourceType; - std::string vpcInstanceId; std::string index; + std::string vpcInstanceId; std::string password; }; struct SinkCluster diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateILMPolicyRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateILMPolicyRequest.h index 9ab93be82..996c4fa19 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateILMPolicyRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateILMPolicyRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEILMPOLICYREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEILMPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateILMPolicyRequest : public RoaServiceRequest - { - - public: - CreateILMPolicyRequest(); - ~CreateILMPolicyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEILMPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEILMPOLICYREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEILMPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateILMPolicyRequest : public RoaServiceRequest { +public: + CreateILMPolicyRequest(); + ~CreateILMPolicyRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEILMPOLICYREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateIndexTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateIndexTemplateRequest.h index 6af7104a8..0223c73d8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateIndexTemplateRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateIndexTemplateRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINDEXTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINDEXTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateIndexTemplateRequest : public RoaServiceRequest - { - - public: - CreateIndexTemplateRequest(); - ~CreateIndexTemplateRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINDEXTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINDEXTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINDEXTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateIndexTemplateRequest : public RoaServiceRequest { +public: + CreateIndexTemplateRequest(); + ~CreateIndexTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINDEXTEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateInstanceRequest.h index 052ec1bd8..e14d9b736 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateInstanceRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateInstanceRequest : public RoaServiceRequest - { - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateInstanceRequest : public RoaServiceRequest { +public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashRequest.h index c8cfdfa59..3f335a9de 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATELOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATELOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateLogstashRequest : public RoaServiceRequest - { - - public: - CreateLogstashRequest(); - ~CreateLogstashRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATELOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATELOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATELOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateLogstashRequest : public RoaServiceRequest { +public: + CreateLogstashRequest(); + ~CreateLogstashRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATELOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashResult.h index acb0e2195..9a4cf7110 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateLogstashResult.h @@ -34,7 +34,54 @@ namespace AlibabaCloud public: struct Result { + struct NetworkConfig + { + std::string type; + std::string vpcId; + std::string vswitchId; + std::string vsArea; + }; + struct NodeSpec + { + std::string diskType; + std::string spec; + long disk; + }; + struct EndpointListItem + { + std::string zoneId; + long port; + std::string host; + }; + struct ZoneInfosItem + { + std::string status; + std::string zoneId; + }; + struct TagsItem + { + std::string tagKey; + std::string tagValue; + }; + std::string status; + std::string description; + std::string resourceGroupId; + long endTime; std::string instanceId; + std::string config; + std::vector zoneInfos; + std::string createdAt; + NetworkConfig networkConfig; + long nodeAmount; + std::string updatedAt; + std::vector tags; + std::string version; + bool dataNode; + NodeSpec nodeSpec; + std::string paymentType; + std::vector endpointList; + std::string protocol; + long zoneCount; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreatePipelinesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreatePipelinesRequest.h index 44daaacc4..9ecea3154 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreatePipelinesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreatePipelinesRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEPIPELINESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEPIPELINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreatePipelinesRequest : public RoaServiceRequest - { - - public: - CreatePipelinesRequest(); - ~CreatePipelinesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getTrigger()const; - void setTrigger(bool trigger); - - private: - std::string instanceId_; - std::string clientToken_; - bool trigger_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEPIPELINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreatePipelinesRequest : public RoaServiceRequest { +public: + CreatePipelinesRequest(); + ~CreatePipelinesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + boolean getTrigger() const; + void setTrigger(boolean trigger); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + boolean trigger_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEPIPELINESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateSnapshotRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateSnapshotRequest.h index 664d5e3ea..7480225ec 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateSnapshotRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateSnapshotRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATESNAPSHOTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATESNAPSHOTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateSnapshotRequest : public RoaServiceRequest - { - - public: - CreateSnapshotRequest(); - ~CreateSnapshotRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATESNAPSHOTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATESNAPSHOTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATESNAPSHOTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateSnapshotRequest : public RoaServiceRequest { +public: + CreateSnapshotRequest(); + ~CreateSnapshotRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATESNAPSHOTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointRequest.h index 748feaf2b..6a4e99bbc 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEVPCENDPOINTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEVPCENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateVpcEndpointRequest : public RoaServiceRequest - { - - public: - CreateVpcEndpointRequest(); - ~CreateVpcEndpointRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - bool dryRun_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEVPCENDPOINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEVPCENDPOINTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEVPCENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT CreateVpcEndpointRequest : public RoaServiceRequest { +public: + CreateVpcEndpointRequest(); + ~CreateVpcEndpointRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getDryRun() const; + void setDryRun(boolean dryRun); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + boolean dryRun_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_CREATEVPCENDPOINTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointResult.h index 34512f190..616f37252 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/CreateVpcEndpointResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct Result { - std::string endpointName; std::string endpointDomain; + std::string endpointName; std::string endpointId; std::string serviceId; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeactivateZonesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeactivateZonesRequest.h index 87cef66a1..4d7acd1d4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeactivateZonesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeactivateZonesRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DEACTIVATEZONESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DEACTIVATEZONESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeactivateZonesRequest : public RoaServiceRequest - { - - public: - DeactivateZonesRequest(); - ~DeactivateZonesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DEACTIVATEZONESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DEACTIVATEZONESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DEACTIVATEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeactivateZonesRequest : public RoaServiceRequest { +public: + DeactivateZonesRequest(); + ~DeactivateZonesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DEACTIVATEZONESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteCollectorRequest.h index 3b32a02fb..0f52098bb 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteCollectorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteCollectorRequest : public RoaServiceRequest - { - - public: - DeleteCollectorRequest(); - ~DeleteCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteCollectorRequest : public RoaServiceRequest { +public: + DeleteCollectorRequest(); + ~DeleteCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteComponentIndexRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteComponentIndexRequest.h new file mode 100644 index 000000000..687c8e7cf --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteComponentIndexRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOMPONENTINDEXREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOMPONENTINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteComponentIndexRequest : public RoaServiceRequest { +public: + DeleteComponentIndexRequest(); + ~DeleteComponentIndexRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getName() const; + void setName(string name); + +private: + string instanceId_; + string name_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOMPONENTINDEXREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteComponentIndexResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteComponentIndexResult.h new file mode 100644 index 000000000..c5cb0a64e --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteComponentIndexResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOMPONENTINDEXRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOMPONENTINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteComponentIndexResult : public ServiceResult + { + public: + + + DeleteComponentIndexResult(); + explicit DeleteComponentIndexResult(const std::string &payload); + ~DeleteComponentIndexResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECOMPONENTINDEXRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h index 729e90845..284ebbdbc 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECONNECTEDCLUSTERREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECONNECTEDCLUSTERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteConnectedClusterRequest : public RoaServiceRequest - { - - public: - DeleteConnectedClusterRequest(); - ~DeleteConnectedClusterRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getConnectedInstanceId()const; - void setConnectedInstanceId(const std::string& connectedInstanceId); - - private: - std::string instanceId_; - std::string clientToken_; - std::string connectedInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECONNECTEDCLUSTERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECONNECTEDCLUSTERREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECONNECTEDCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteConnectedClusterRequest : public RoaServiceRequest { +public: + DeleteConnectedClusterRequest(); + ~DeleteConnectedClusterRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getConnectedInstanceId() const; + void setConnectedInstanceId(string connectedInstanceId); + +private: + string instanceId_; + string clientToken_; + string connectedInstanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETECONNECTEDCLUSTERREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataStreamRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataStreamRequest.h index b55e2b122..4f31a67d1 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataStreamRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataStreamRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATASTREAMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATASTREAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteDataStreamRequest : public RoaServiceRequest - { - - public: - DeleteDataStreamRequest(); - ~DeleteDataStreamRequest(); - - std::string getDataStream()const; - void setDataStream(const std::string& dataStream); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string dataStream_; - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATASTREAMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteDataStreamRequest : public RoaServiceRequest { +public: + DeleteDataStreamRequest(); + ~DeleteDataStreamRequest(); + string getDataStream() const; + void setDataStream(string dataStream); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string dataStream_; + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATASTREAMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataTaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataTaskRequest.h index 9e59a4665..b73900ed6 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataTaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDataTaskRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATATASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATATASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteDataTaskRequest : public RoaServiceRequest - { - - public: - DeleteDataTaskRequest(); - ~DeleteDataTaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string instanceId_; - std::string clientToken_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATATASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATATASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATATASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteDataTaskRequest : public RoaServiceRequest { +public: + DeleteDataTaskRequest(); + ~DeleteDataTaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getTaskId() const; + void setTaskId(string taskId); + +private: + string instanceId_; + string clientToken_; + string taskId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDATATASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateRequest.h new file mode 100644 index 000000000..36db410c1 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDEPRECATEDTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDEPRECATEDTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteDeprecatedTemplateRequest : public RoaServiceRequest { +public: + DeleteDeprecatedTemplateRequest(); + ~DeleteDeprecatedTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getName() const; + void setName(string name); + +private: + string instanceId_; + string name_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDEPRECATEDTEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateResult.h new file mode 100644 index 000000000..6f43ee08d --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteDeprecatedTemplateResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDEPRECATEDTEMPLATERESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDEPRECATEDTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteDeprecatedTemplateResult : public ServiceResult + { + public: + + + DeleteDeprecatedTemplateResult(); + explicit DeleteDeprecatedTemplateResult(const std::string &payload); + ~DeleteDeprecatedTemplateResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEDEPRECATEDTEMPLATERESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteILMPolicyRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteILMPolicyRequest.h index 2a1fa27e8..d255eda99 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteILMPolicyRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteILMPolicyRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEILMPOLICYREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEILMPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteILMPolicyRequest : public RoaServiceRequest - { - - public: - DeleteILMPolicyRequest(); - ~DeleteILMPolicyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string instanceId_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEILMPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEILMPOLICYREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEILMPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteILMPolicyRequest : public RoaServiceRequest { +public: + DeleteILMPolicyRequest(); + ~DeleteILMPolicyRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getPolicyName() const; + void setPolicyName(string policyName); + +private: + string instanceId_; + string policyName_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEILMPOLICYREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteIndexTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteIndexTemplateRequest.h index d2530cbeb..a60c34e51 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteIndexTemplateRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteIndexTemplateRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINDEXTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINDEXTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteIndexTemplateRequest : public RoaServiceRequest - { - - public: - DeleteIndexTemplateRequest(); - ~DeleteIndexTemplateRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getIndexTemplate()const; - void setIndexTemplate(const std::string& indexTemplate); - - private: - std::string instanceId_; - std::string indexTemplate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINDEXTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINDEXTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINDEXTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteIndexTemplateRequest : public RoaServiceRequest { +public: + DeleteIndexTemplateRequest(); + ~DeleteIndexTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getIndexTemplate() const; + void setIndexTemplate(string indexTemplate); + +private: + string instanceId_; + string indexTemplate_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINDEXTEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteInstanceRequest.h index dc4bc6a6d..87c46c257 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteInstanceRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteInstanceRequest : public RoaServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDeleteType()const; - void setDeleteType(const std::string& deleteType); - - private: - std::string instanceId_; - std::string clientToken_; - std::string deleteType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteInstanceRequest : public RoaServiceRequest { +public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getDeleteType() const; + void setDeleteType(string deleteType); + +private: + string instanceId_; + string clientToken_; + string deleteType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteLogstashRequest.h index f649b2242..059852cf0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteLogstashRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETELOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETELOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteLogstashRequest : public RoaServiceRequest - { - - public: - DeleteLogstashRequest(); - ~DeleteLogstashRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getDeleteType()const; - void setDeleteType(const std::string& deleteType); - - private: - std::string instanceId_; - std::string clientToken_; - std::string deleteType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETELOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETELOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETELOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteLogstashRequest : public RoaServiceRequest { +public: + DeleteLogstashRequest(); + ~DeleteLogstashRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getDeleteType() const; + void setDeleteType(string deleteType); + +private: + string instanceId_; + string clientToken_; + string deleteType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETELOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeletePipelinesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeletePipelinesRequest.h index 7ed4ef1ca..20ddca33f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeletePipelinesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeletePipelinesRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEPIPELINESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEPIPELINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeletePipelinesRequest : public RoaServiceRequest - { - - public: - DeletePipelinesRequest(); - ~DeletePipelinesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - std::string instanceId_; - std::string clientToken_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEPIPELINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeletePipelinesRequest : public RoaServiceRequest { +public: + DeletePipelinesRequest(); + ~DeletePipelinesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getPipelineIds() const; + void setPipelineIds(string pipelineIds); + +private: + string instanceId_; + string clientToken_; + string pipelineIds_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEPIPELINESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteSnapshotRepoRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteSnapshotRepoRequest.h index 77910e1ad..71eeaa961 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteSnapshotRepoRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteSnapshotRepoRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETESNAPSHOTREPOREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETESNAPSHOTREPOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteSnapshotRepoRequest : public RoaServiceRequest - { - - public: - DeleteSnapshotRepoRequest(); - ~DeleteSnapshotRepoRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRepoPath()const; - void setRepoPath(const std::string& repoPath); - - private: - std::string instanceId_; - std::string clientToken_; - std::string repoPath_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETESNAPSHOTREPOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETESNAPSHOTREPOREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETESNAPSHOTREPOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteSnapshotRepoRequest : public RoaServiceRequest { +public: + DeleteSnapshotRepoRequest(); + ~DeleteSnapshotRepoRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getRepoPath() const; + void setRepoPath(string repoPath); + +private: + string instanceId_; + string clientToken_; + string repoPath_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETESNAPSHOTREPOREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteVpcEndpointRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteVpcEndpointRequest.h index 8dcfb8209..12c7cb932 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteVpcEndpointRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DeleteVpcEndpointRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEVPCENDPOINTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEVPCENDPOINTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteVpcEndpointRequest : public RoaServiceRequest - { - - public: - DeleteVpcEndpointRequest(); - ~DeleteVpcEndpointRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getEndpointId()const; - void setEndpointId(const std::string& endpointId); - - private: - std::string instanceId_; - std::string clientToken_; - std::string endpointId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEVPCENDPOINTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEVPCENDPOINTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEVPCENDPOINTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DeleteVpcEndpointRequest : public RoaServiceRequest { +public: + DeleteVpcEndpointRequest(); + ~DeleteVpcEndpointRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getEndpointId() const; + void setEndpointId(string endpointId); + +private: + string instanceId_; + string clientToken_; + string endpointId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DELETEVPCENDPOINTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeAckOperatorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeAckOperatorRequest.h index 457118f96..f3e0baaca 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeAckOperatorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeAckOperatorRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEACKOPERATORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEACKOPERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeAckOperatorRequest : public RoaServiceRequest - { - - public: - DescribeAckOperatorRequest(); - ~DescribeAckOperatorRequest(); - - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - - private: - std::string clusterId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEACKOPERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEACKOPERATORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEACKOPERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeAckOperatorRequest : public RoaServiceRequest { +public: + DescribeAckOperatorRequest(); + ~DescribeAckOperatorRequest(); + string getClusterId() const; + void setClusterId(string clusterId); + +private: + string clusterId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEACKOPERATORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeApmRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeApmRequest.h index 826992daf..e9ab18bda 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeApmRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeApmRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEAPMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEAPMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeApmRequest : public RoaServiceRequest - { - - public: - DescribeApmRequest(); - ~DescribeApmRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEAPMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEAPMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEAPMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeApmRequest : public RoaServiceRequest { +public: + DescribeApmRequest(); + ~DescribeApmRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEAPMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorRequest.h index e9bc4da0e..32746e49a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeCollectorRequest : public RoaServiceRequest - { - - public: - DescribeCollectorRequest(); - ~DescribeCollectorRequest(); - - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeCollectorRequest : public RoaServiceRequest { +public: + DescribeCollectorRequest(); + ~DescribeCollectorRequest(); + string getResId() const; + void setResId(string resId); + +private: + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorResult.h index 5fddd9b83..432319d45 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeCollectorResult.h @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string totalPodsCount; std::string successPodsCount; std::vector machines; - std::string instanceType; std::string protocol; + std::string instanceType; std::string configType; }; std::string status; @@ -69,11 +69,11 @@ namespace AlibabaCloud bool dryRun; std::string gmtUpdateTime; std::vector extendConfigs; - std::string name; std::string resType; + std::string name; std::vector collectorPaths; - std::string vpcId; std::string ownerId; + std::string vpcId; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeComponentIndexRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeComponentIndexRequest.h new file mode 100644 index 000000000..c566b18d1 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeComponentIndexRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOMPONENTINDEXREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOMPONENTINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeComponentIndexRequest : public RoaServiceRequest { +public: + DescribeComponentIndexRequest(); + ~DescribeComponentIndexRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getName() const; + void setName(string name); + +private: + string instanceId_; + string name_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOMPONENTINDEXREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeComponentIndexResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeComponentIndexResult.h new file mode 100644 index 000000000..36ec5fb09 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeComponentIndexResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOMPONENTINDEXRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOMPONENTINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeComponentIndexResult : public ServiceResult + { + public: + struct Result + { + struct _Template + { + std::string mappings; + std::string aliases; + std::string settings; + }; + _Template _template; + std::string _meta; + }; + + + DescribeComponentIndexResult(); + explicit DescribeComponentIndexResult(const std::string &payload); + ~DescribeComponentIndexResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECOMPONENTINDEXRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h index 66a64ae8f..c6626b183 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECONNECTABLECLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECONNECTABLECLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeConnectableClustersRequest : public RoaServiceRequest - { - - public: - DescribeConnectableClustersRequest(); - ~DescribeConnectableClustersRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getAlreadySetItems()const; - void setAlreadySetItems(bool alreadySetItems); - - private: - std::string instanceId_; - bool alreadySetItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECONNECTABLECLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECONNECTABLECLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECONNECTABLECLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeConnectableClustersRequest : public RoaServiceRequest { +public: + DescribeConnectableClustersRequest(); + ~DescribeConnectableClustersRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getAlreadySetItems() const; + void setAlreadySetItems(boolean alreadySetItems); + +private: + string instanceId_; + boolean alreadySetItems_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBECONNECTABLECLUSTERSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateRequest.h new file mode 100644 index 000000000..c731afcc5 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateRequest.h @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDEPRECATEDTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDEPRECATEDTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDeprecatedTemplateRequest : public RoaServiceRequest { +public: + DescribeDeprecatedTemplateRequest(); + ~DescribeDeprecatedTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getName() const; + void setName(string name); + +private: + string instanceId_; + string name_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDEPRECATEDTEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateResult.h new file mode 100644 index 000000000..3e5f4104f --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDeprecatedTemplateResult.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDEPRECATEDTEMPLATERESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDEPRECATEDTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDeprecatedTemplateResult : public ServiceResult + { + public: + struct Result + { + struct _Template + { + std::string mappings; + std::string aliases; + std::string settings; + }; + long order; + std::vector indexPatterns; + _Template _template; + bool dataStream; + std::string version; + std::string indexTemplate; + }; + + + DescribeDeprecatedTemplateResult(); + explicit DescribeDeprecatedTemplateResult(const std::string &payload); + ~DescribeDeprecatedTemplateResult(); + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDEPRECATEDTEMPLATERESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnoseReportRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnoseReportRequest.h index ecf113b42..657e1bbcb 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnoseReportRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnoseReportRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSEREPORTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSEREPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDiagnoseReportRequest : public RoaServiceRequest - { - - public: - DescribeDiagnoseReportRequest(); - ~DescribeDiagnoseReportRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getReportId()const; - void setReportId(const std::string& reportId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string reportId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSEREPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSEREPORTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSEREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDiagnoseReportRequest : public RoaServiceRequest { +public: + DescribeDiagnoseReportRequest(); + ~DescribeDiagnoseReportRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getReportId() const; + void setReportId(string reportId); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + string reportId_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSEREPORTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsRequest.h index f36ede9b0..c422bfa3d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDiagnosisSettingsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSISSETTINGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSISSETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDiagnosisSettingsRequest : public RoaServiceRequest - { - - public: - DescribeDiagnosisSettingsRequest(); - ~DescribeDiagnosisSettingsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSISSETTINGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSISSETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSISSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDiagnosisSettingsRequest : public RoaServiceRequest { +public: + DescribeDiagnosisSettingsRequest(); + ~DescribeDiagnosisSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDIAGNOSISSETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsRequest.h new file mode 100644 index 000000000..7d154745d --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDYNAMICSETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDYNAMICSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDynamicSettingsRequest : public RoaServiceRequest { +public: + DescribeDynamicSettingsRequest(); + ~DescribeDynamicSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDYNAMICSETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsResult.h new file mode 100644 index 000000000..2ca56a641 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeDynamicSettingsResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDYNAMICSETTINGSRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDYNAMICSETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeDynamicSettingsResult : public ServiceResult + { + public: + + + DescribeDynamicSettingsResult(); + explicit DescribeDynamicSettingsResult(const std::string &payload); + ~DescribeDynamicSettingsResult(); + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEDYNAMICSETTINGSRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeElasticsearchHealthRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeElasticsearchHealthRequest.h index b24a7007b..26c42d4a4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeElasticsearchHealthRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeElasticsearchHealthRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEELASTICSEARCHHEALTHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEELASTICSEARCHHEALTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeElasticsearchHealthRequest : public RoaServiceRequest - { - - public: - DescribeElasticsearchHealthRequest(); - ~DescribeElasticsearchHealthRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEELASTICSEARCHHEALTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEELASTICSEARCHHEALTHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEELASTICSEARCHHEALTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeElasticsearchHealthRequest : public RoaServiceRequest { +public: + DescribeElasticsearchHealthRequest(); + ~DescribeElasticsearchHealthRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEELASTICSEARCHHEALTHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeILMPolicyRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeILMPolicyRequest.h index f56fc529b..2d4ad9d20 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeILMPolicyRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeILMPolicyRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEILMPOLICYREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEILMPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeILMPolicyRequest : public RoaServiceRequest - { - - public: - DescribeILMPolicyRequest(); - ~DescribeILMPolicyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string instanceId_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEILMPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEILMPOLICYREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEILMPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeILMPolicyRequest : public RoaServiceRequest { +public: + DescribeILMPolicyRequest(); + ~DescribeILMPolicyRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getPolicyName() const; + void setPolicyName(string policyName); + +private: + string instanceId_; + string policyName_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEILMPOLICYREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeIndexTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeIndexTemplateRequest.h index 283a3fca9..adcce0d62 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeIndexTemplateRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeIndexTemplateRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINDEXTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINDEXTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeIndexTemplateRequest : public RoaServiceRequest - { - - public: - DescribeIndexTemplateRequest(); - ~DescribeIndexTemplateRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getIndexTemplate()const; - void setIndexTemplate(const std::string& indexTemplate); - - private: - std::string instanceId_; - std::string indexTemplate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINDEXTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINDEXTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINDEXTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeIndexTemplateRequest : public RoaServiceRequest { +public: + DescribeIndexTemplateRequest(); + ~DescribeIndexTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getIndexTemplate() const; + void setIndexTemplate(string indexTemplate); + +private: + string instanceId_; + string indexTemplate_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINDEXTEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceRequest.h index 555d04779..f64bddcc4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeInstanceRequest : public RoaServiceRequest - { - - public: - DescribeInstanceRequest(); - ~DescribeInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeInstanceRequest : public RoaServiceRequest { +public: + DescribeInstanceRequest(); + ~DescribeInstanceRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceResult.h index c630a1219..ef97d0b16 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeInstanceResult.h @@ -38,6 +38,7 @@ namespace AlibabaCloud { std::string diskType; bool diskEncryption; + std::string performanceLevel; std::string spec; int disk; }; @@ -59,6 +60,7 @@ namespace AlibabaCloud { int amount; std::string spec; + int disk; }; struct MasterConfiguration { @@ -98,15 +100,15 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; struct SynonymsDictsItem { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; struct ZoneInfo { @@ -117,14 +119,21 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; struct Tag { std::string tagKey; std::string tagValue; }; + struct IkHotDictsItem + { + std::string type; + std::string sourceType; + int fileSize; + std::string name; + }; MasterConfiguration masterConfiguration; std::string resourceGroupId; ElasticDataNodeConfiguration elasticDataNodeConfiguration; @@ -146,6 +155,7 @@ namespace AlibabaCloud std::vector dictList; std::string kibanaDomain; std::vector tags; + std::vector ikHotDicts; NodeSpec nodeSpec; bool warmNode; WarmNodeConfiguration warmNodeConfiguration; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeKibanaSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeKibanaSettingsRequest.h index 5d4dbf0c2..7dd79bd48 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeKibanaSettingsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeKibanaSettingsRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEKIBANASETTINGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEKIBANASETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeKibanaSettingsRequest : public RoaServiceRequest - { - - public: - DescribeKibanaSettingsRequest(); - ~DescribeKibanaSettingsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEKIBANASETTINGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEKIBANASETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEKIBANASETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeKibanaSettingsRequest : public RoaServiceRequest { +public: + DescribeKibanaSettingsRequest(); + ~DescribeKibanaSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEKIBANASETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeLogstashRequest.h index 1dd71803a..41f2aefd5 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeLogstashRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBELOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBELOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeLogstashRequest : public RoaServiceRequest - { - - public: - DescribeLogstashRequest(); - ~DescribeLogstashRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBELOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBELOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBELOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeLogstashRequest : public RoaServiceRequest { +public: + DescribeLogstashRequest(); + ~DescribeLogstashRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBELOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigRequest.h index 34fd364ad..e16e8d731 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEMANAGEMENTCONFIGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEMANAGEMENTCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribePipelineManagementConfigRequest : public RoaServiceRequest - { - - public: - DescribePipelineManagementConfigRequest(); - ~DescribePipelineManagementConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEMANAGEMENTCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEMANAGEMENTCONFIGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEMANAGEMENTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribePipelineManagementConfigRequest : public RoaServiceRequest { +public: + DescribePipelineManagementConfigRequest(); + ~DescribePipelineManagementConfigRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEMANAGEMENTCONFIGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigResult.h index 7fa3af93b..3e6fd45cd 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineManagementConfigResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct Result { std::string endpoints; - std::string pipelineManagementType; std::string userName; + std::string pipelineManagementType; std::string esInstanceId; std::vector pipelineIds; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineRequest.h index 8ab7bbe10..5044f4e51 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribePipelineRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribePipelineRequest : public RoaServiceRequest - { - - public: - DescribePipelineRequest(); - ~DescribePipelineRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - std::string instanceId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribePipelineRequest : public RoaServiceRequest { +public: + DescribePipelineRequest(); + ~DescribePipelineRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getPipelineId() const; + void setPipelineId(string pipelineId); + +private: + string instanceId_; + string pipelineId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEPIPELINEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeRegionsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeRegionsRequest.h index 27596f6d8..aaa811b38 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeRegionsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeRegionsRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeRegionsRequest : public RoaServiceRequest - { - - public: - DescribeRegionsRequest(); - ~DescribeRegionsRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeRegionsRequest : public RoaServiceRequest { +public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + +private: +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEREGIONSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeSnapshotSettingRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeSnapshotSettingRequest.h index 017cea63a..f305d4929 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeSnapshotSettingRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeSnapshotSettingRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBESNAPSHOTSETTINGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBESNAPSHOTSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeSnapshotSettingRequest : public RoaServiceRequest - { - - public: - DescribeSnapshotSettingRequest(); - ~DescribeSnapshotSettingRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBESNAPSHOTSETTINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBESNAPSHOTSETTINGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBESNAPSHOTSETTINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeSnapshotSettingRequest : public RoaServiceRequest { +public: + DescribeSnapshotSettingRequest(); + ~DescribeSnapshotSettingRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBESNAPSHOTSETTINGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeTemplatesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeTemplatesRequest.h index fa34bd44f..2ddebaada 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeTemplatesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeTemplatesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBETEMPLATESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBETEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeTemplatesRequest : public RoaServiceRequest - { - - public: - DescribeTemplatesRequest(); - ~DescribeTemplatesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBETEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBETEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBETEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeTemplatesRequest : public RoaServiceRequest { +public: + DescribeTemplatesRequest(); + ~DescribeTemplatesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBETEMPLATESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeXpackMonitorConfigRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeXpackMonitorConfigRequest.h index c5fca0225..00c46d74d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeXpackMonitorConfigRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DescribeXpackMonitorConfigRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEXPACKMONITORCONFIGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEXPACKMONITORCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeXpackMonitorConfigRequest : public RoaServiceRequest - { - - public: - DescribeXpackMonitorConfigRequest(); - ~DescribeXpackMonitorConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEXPACKMONITORCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEXPACKMONITORCONFIGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEXPACKMONITORCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DescribeXpackMonitorConfigRequest : public RoaServiceRequest { +public: + DescribeXpackMonitorConfigRequest(); + ~DescribeXpackMonitorConfigRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DESCRIBEXPACKMONITORCONFIGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/DiagnoseInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/DiagnoseInstanceRequest.h index aa76ebd7f..7128cceaf 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/DiagnoseInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/DiagnoseInstanceRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DIAGNOSEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DIAGNOSEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT DiagnoseInstanceRequest : public RoaServiceRequest - { - - public: - DiagnoseInstanceRequest(); - ~DiagnoseInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string clientToken_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DIAGNOSEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_DIAGNOSEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_DIAGNOSEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT DiagnoseInstanceRequest : public RoaServiceRequest { +public: + DiagnoseInstanceRequest(); + ~DiagnoseInstanceRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getLang() const; + void setLang(string lang); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + string lang_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_DIAGNOSEINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedLogstashRestartTimeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedLogstashRestartTimeRequest.h index 19b35d627..946a22652 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedLogstashRestartTimeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedLogstashRestartTimeRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDLOGSTASHRESTARTTIMEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDLOGSTASHRESTARTTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT EstimatedLogstashRestartTimeRequest : public RoaServiceRequest - { - - public: - EstimatedLogstashRestartTimeRequest(); - ~EstimatedLogstashRestartTimeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getForce()const; - void setForce(bool force); - - private: - std::string instanceId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDLOGSTASHRESTARTTIMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDLOGSTASHRESTARTTIMEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDLOGSTASHRESTARTTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT EstimatedLogstashRestartTimeRequest : public RoaServiceRequest { +public: + EstimatedLogstashRestartTimeRequest(); + ~EstimatedLogstashRestartTimeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getForce() const; + void setForce(boolean force); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + boolean force_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDLOGSTASHRESTARTTIMEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedRestartTimeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedRestartTimeRequest.h index d6592f7ee..b40cb698a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedRestartTimeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/EstimatedRestartTimeRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDRESTARTTIMEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDRESTARTTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT EstimatedRestartTimeRequest : public RoaServiceRequest - { - - public: - EstimatedRestartTimeRequest(); - ~EstimatedRestartTimeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getForce()const; - void setForce(bool force); - - private: - std::string instanceId_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDRESTARTTIMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDRESTARTTIMEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDRESTARTTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT EstimatedRestartTimeRequest : public RoaServiceRequest { +public: + EstimatedRestartTimeRequest(); + ~EstimatedRestartTimeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getForce() const; + void setForce(boolean force); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + boolean force_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ESTIMATEDRESTARTTIMEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetClusterDataInformationRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetClusterDataInformationRequest.h index 460f0e1e5..cc0a8dea1 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetClusterDataInformationRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetClusterDataInformationRequest.h @@ -1,45 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETCLUSTERDATAINFORMATIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETCLUSTERDATAINFORMATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetClusterDataInformationRequest : public RoaServiceRequest - { - - public: - GetClusterDataInformationRequest(); - ~GetClusterDataInformationRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETCLUSTERDATAINFORMATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETCLUSTERDATAINFORMATIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETCLUSTERDATAINFORMATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetClusterDataInformationRequest : public RoaServiceRequest { +public: + GetClusterDataInformationRequest(); + ~GetClusterDataInformationRequest(); + string getBody() const; + void setBody(string body); + +private: + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETCLUSTERDATAINFORMATIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskRequest.h index 8aa77c7e6..e2f86fb4a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETELASTICTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETELASTICTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetElastictaskRequest : public RoaServiceRequest - { - - public: - GetElastictaskRequest(); - ~GetElastictaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETELASTICTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETELASTICTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETELASTICTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetElastictaskRequest : public RoaServiceRequest { +public: + GetElastictaskRequest(); + ~GetElastictaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETELASTICTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskResult.h index b9388fb16..d965ad006 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetElastictaskResult.h @@ -38,16 +38,16 @@ namespace AlibabaCloud { std::string triggerType; int replicaCount; - std::string cronExpression; int elasticNodeCount; + std::string cronExpression; std::vector targetIndices; }; struct ElasticShrinkTask { std::string triggerType; int replicaCount; - std::string cronExpression; int elasticNodeCount; + std::string cronExpression; std::vector targetIndices1; }; ElasticShrinkTask elasticShrinkTask; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaAlertsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaAlertsRequest.h index b537c5ab7..060a0c36d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaAlertsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaAlertsRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANAALERTSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANAALERTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetEmonGrafanaAlertsRequest : public RoaServiceRequest - { - - public: - GetEmonGrafanaAlertsRequest(); - ~GetEmonGrafanaAlertsRequest(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - - private: - std::string projectId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANAALERTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANAALERTSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANAALERTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetEmonGrafanaAlertsRequest : public RoaServiceRequest { +public: + GetEmonGrafanaAlertsRequest(); + ~GetEmonGrafanaAlertsRequest(); + string getBody() const; + void setBody(string body); + string getProjectId() const; + void setProjectId(string projectId); + +private: + string body_; + string projectId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANAALERTSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaDashboardsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaDashboardsRequest.h index 65dc07ce8..163191ca0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaDashboardsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonGrafanaDashboardsRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANADASHBOARDSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANADASHBOARDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetEmonGrafanaDashboardsRequest : public RoaServiceRequest - { - - public: - GetEmonGrafanaDashboardsRequest(); - ~GetEmonGrafanaDashboardsRequest(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - - private: - std::string projectId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANADASHBOARDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANADASHBOARDSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANADASHBOARDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetEmonGrafanaDashboardsRequest : public RoaServiceRequest { +public: + GetEmonGrafanaDashboardsRequest(); + ~GetEmonGrafanaDashboardsRequest(); + string getBody() const; + void setBody(string body); + string getProjectId() const; + void setProjectId(string projectId); + +private: + string body_; + string projectId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONGRAFANADASHBOARDSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataRequest.h index 18fe2f10a..b8e3143e1 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONMONITORDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetEmonMonitorDataRequest : public RoaServiceRequest - { - - public: - GetEmonMonitorDataRequest(); - ~GetEmonMonitorDataRequest(); - - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - - private: - std::string projectId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONMONITORDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONMONITORDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetEmonMonitorDataRequest : public RoaServiceRequest { +public: + GetEmonMonitorDataRequest(); + ~GetEmonMonitorDataRequest(); + string getBody() const; + void setBody(string body); + string getProjectId() const; + void setProjectId(string projectId); + +private: + string body_; + string projectId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETEMONMONITORDATAREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataResult.h index c4dd247bc..6686af293 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetEmonMonitorDataResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct ResultItem { std::string dps; - long messageWatermark; float summary; + long messageWatermark; std::string metric; std::string tags; float integrity; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetOpenStoreUsageRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetOpenStoreUsageRequest.h index fd121e116..babee7354 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetOpenStoreUsageRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetOpenStoreUsageRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETOPENSTOREUSAGEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETOPENSTOREUSAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetOpenStoreUsageRequest : public RoaServiceRequest - { - - public: - GetOpenStoreUsageRequest(); - ~GetOpenStoreUsageRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETOPENSTOREUSAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETOPENSTOREUSAGEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETOPENSTOREUSAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetOpenStoreUsageRequest : public RoaServiceRequest { +public: + GetOpenStoreUsageRequest(); + ~GetOpenStoreUsageRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETOPENSTOREUSAGEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationRequest.h index bf91cb184..2ffa0cd50 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETREGIONCONFIGURATIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETREGIONCONFIGURATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetRegionConfigurationRequest : public RoaServiceRequest - { - - public: - GetRegionConfigurationRequest(); - ~GetRegionConfigurationRequest(); - - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - - private: - std::string zoneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETREGIONCONFIGURATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETREGIONCONFIGURATIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETREGIONCONFIGURATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetRegionConfigurationRequest : public RoaServiceRequest { +public: + GetRegionConfigurationRequest(); + ~GetRegionConfigurationRequest(); + string getZoneId() const; + void setZoneId(string zoneId); + +private: + string zoneId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETREGIONCONFIGURATIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationResult.h index dd9156387..baedb490a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetRegionConfigurationResult.h @@ -157,8 +157,8 @@ namespace AlibabaCloud JvmConfine jvmConfine; KibanaNodeProperties kibanaNodeProperties; std::string regionId; - std::vector esVersions; std::vector masterSpec; + std::vector esVersions; std::vector instanceSupportNodes; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetSuggestShrinkableNodesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetSuggestShrinkableNodesRequest.h index 7146a0be7..9a3931c13 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetSuggestShrinkableNodesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetSuggestShrinkableNodesRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETSUGGESTSHRINKABLENODESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETSUGGESTSHRINKABLENODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetSuggestShrinkableNodesRequest : public RoaServiceRequest - { - - public: - GetSuggestShrinkableNodesRequest(); - ~GetSuggestShrinkableNodesRequest(); - - bool getIgnoreStatus()const; - void setIgnoreStatus(bool ignoreStatus); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - int getCount()const; - void setCount(int count); - - private: - bool ignoreStatus_; - std::string instanceId_; - std::string nodeType_; - int count_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETSUGGESTSHRINKABLENODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETSUGGESTSHRINKABLENODESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETSUGGESTSHRINKABLENODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetSuggestShrinkableNodesRequest : public RoaServiceRequest { +public: + GetSuggestShrinkableNodesRequest(); + ~GetSuggestShrinkableNodesRequest(); + boolean getIgnoreStatus() const; + void setIgnoreStatus(boolean ignoreStatus); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getNodeType() const; + void setNodeType(string nodeType); + integer getCount() const; + void setCount(integer count); + +private: + boolean ignoreStatus_; + string instanceId_; + string nodeType_; + integer count_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETSUGGESTSHRINKABLENODESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/GetTransferableNodesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/GetTransferableNodesRequest.h index 007942cf4..4c095f740 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/GetTransferableNodesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/GetTransferableNodesRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETTRANSFERABLENODESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETTRANSFERABLENODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetTransferableNodesRequest : public RoaServiceRequest - { - - public: - GetTransferableNodesRequest(); - ~GetTransferableNodesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - int getCount()const; - void setCount(int count); - - private: - std::string instanceId_; - std::string nodeType_; - int count_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETTRANSFERABLENODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_GETTRANSFERABLENODESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_GETTRANSFERABLENODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT GetTransferableNodesRequest : public RoaServiceRequest { +public: + GetTransferableNodesRequest(); + ~GetTransferableNodesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getNodeType() const; + void setNodeType(string nodeType); + integer getCount() const; + void setCount(integer count); + +private: + string instanceId_; + string nodeType_; + integer count_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_GETTRANSFERABLENODESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InitializeOperationRoleRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InitializeOperationRoleRequest.h index e5fda5949..f54b95183 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InitializeOperationRoleRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InitializeOperationRoleRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INITIALIZEOPERATIONROLEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INITIALIZEOPERATIONROLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InitializeOperationRoleRequest : public RoaServiceRequest - { - - public: - InitializeOperationRoleRequest(); - ~InitializeOperationRoleRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INITIALIZEOPERATIONROLEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INITIALIZEOPERATIONROLEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INITIALIZEOPERATIONROLEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InitializeOperationRoleRequest : public RoaServiceRequest { +public: + InitializeOperationRoleRequest(); + ~InitializeOperationRoleRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INITIALIZEOPERATIONROLEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallAckOperatorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallAckOperatorRequest.h index f846ae06d..11ac0147e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallAckOperatorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallAckOperatorRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLACKOPERATORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLACKOPERATORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallAckOperatorRequest : public RoaServiceRequest - { - - public: - InstallAckOperatorRequest(); - ~InstallAckOperatorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - - private: - std::string clientToken_; - std::string clusterId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLACKOPERATORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLACKOPERATORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLACKOPERATORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallAckOperatorRequest : public RoaServiceRequest { +public: + InstallAckOperatorRequest(); + ~InstallAckOperatorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getClusterId() const; + void setClusterId(string clusterId); + string getBody() const; + void setBody(string body); + +private: + string clientToken_; + string clusterId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLACKOPERATORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallKibanaSystemPluginRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallKibanaSystemPluginRequest.h index 565de4be3..7c0c3114a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallKibanaSystemPluginRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallKibanaSystemPluginRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLKIBANASYSTEMPLUGINREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLKIBANASYSTEMPLUGINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallKibanaSystemPluginRequest : public RoaServiceRequest - { - - public: - InstallKibanaSystemPluginRequest(); - ~InstallKibanaSystemPluginRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLKIBANASYSTEMPLUGINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLKIBANASYSTEMPLUGINREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLKIBANASYSTEMPLUGINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallKibanaSystemPluginRequest : public RoaServiceRequest { +public: + InstallKibanaSystemPluginRequest(); + ~InstallKibanaSystemPluginRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLKIBANASYSTEMPLUGINREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallLogstashSystemPluginRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallLogstashSystemPluginRequest.h index 8f41c2935..7ed9fa6d3 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallLogstashSystemPluginRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallLogstashSystemPluginRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLLOGSTASHSYSTEMPLUGINREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLLOGSTASHSYSTEMPLUGINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallLogstashSystemPluginRequest : public RoaServiceRequest - { - - public: - InstallLogstashSystemPluginRequest(); - ~InstallLogstashSystemPluginRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLLOGSTASHSYSTEMPLUGINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLLOGSTASHSYSTEMPLUGINREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLLOGSTASHSYSTEMPLUGINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallLogstashSystemPluginRequest : public RoaServiceRequest { +public: + InstallLogstashSystemPluginRequest(); + ~InstallLogstashSystemPluginRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLLOGSTASHSYSTEMPLUGINREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallSystemPluginRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallSystemPluginRequest.h index c6dc5e73c..f4e6ec9c2 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallSystemPluginRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallSystemPluginRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLSYSTEMPLUGINREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLSYSTEMPLUGINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallSystemPluginRequest : public RoaServiceRequest - { - - public: - InstallSystemPluginRequest(); - ~InstallSystemPluginRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLSYSTEMPLUGINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLSYSTEMPLUGINREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLSYSTEMPLUGINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallSystemPluginRequest : public RoaServiceRequest { +public: + InstallSystemPluginRequest(); + ~InstallSystemPluginRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLSYSTEMPLUGINREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallUserPluginsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallUserPluginsRequest.h index cd9fe9a9d..abc9f94bf 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InstallUserPluginsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InstallUserPluginsRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLUSERPLUGINSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLUSERPLUGINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallUserPluginsRequest : public RoaServiceRequest - { - - public: - InstallUserPluginsRequest(); - ~InstallUserPluginsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLUSERPLUGINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLUSERPLUGINSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLUSERPLUGINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InstallUserPluginsRequest : public RoaServiceRequest { +public: + InstallUserPluginsRequest(); + ~InstallUserPluginsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INSTALLUSERPLUGINSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptElasticsearchTaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptElasticsearchTaskRequest.h index b965c25a7..14baeb387 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptElasticsearchTaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptElasticsearchTaskRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTELASTICSEARCHTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTELASTICSEARCHTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InterruptElasticsearchTaskRequest : public RoaServiceRequest - { - - public: - InterruptElasticsearchTaskRequest(); - ~InterruptElasticsearchTaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTELASTICSEARCHTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTELASTICSEARCHTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTELASTICSEARCHTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InterruptElasticsearchTaskRequest : public RoaServiceRequest { +public: + InterruptElasticsearchTaskRequest(); + ~InterruptElasticsearchTaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTELASTICSEARCHTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptLogstashTaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptLogstashTaskRequest.h index ac911ca01..a037d1eeb 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptLogstashTaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/InterruptLogstashTaskRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTLOGSTASHTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTLOGSTASHTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT InterruptLogstashTaskRequest : public RoaServiceRequest - { - - public: - InterruptLogstashTaskRequest(); - ~InterruptLogstashTaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTLOGSTASHTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTLOGSTASHTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTLOGSTASHTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT InterruptLogstashTaskRequest : public RoaServiceRequest { +public: + InterruptLogstashTaskRequest(); + ~InterruptLogstashTaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_INTERRUPTLOGSTASHTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckClustersRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckClustersRequest.h index 06c8d43eb..9bec6eacf 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckClustersRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckClustersRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAckClustersRequest : public RoaServiceRequest - { - - public: - ListAckClustersRequest(); - ~ListAckClustersRequest(); - - int getSize()const; - void setSize(int size); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - int getPage()const; - void setPage(int page); - - private: - int size_; - std::string vpcId_; - int page_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKCLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAckClustersRequest : public RoaServiceRequest { +public: + ListAckClustersRequest(); + ~ListAckClustersRequest(); + integer getSize() const; + void setSize(integer size); + string getVpcId() const; + void setVpcId(string vpcId); + integer getPage() const; + void setPage(integer page); + +private: + integer size_; + string vpcId_; + integer page_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKCLUSTERSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckNamespacesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckNamespacesRequest.h index 72114016c..827abe83e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckNamespacesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAckNamespacesRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKNAMESPACESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKNAMESPACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAckNamespacesRequest : public RoaServiceRequest - { - - public: - ListAckNamespacesRequest(); - ~ListAckNamespacesRequest(); - - int getSize()const; - void setSize(int size); - int getPage()const; - void setPage(int page); - std::string getClusterId()const; - void setClusterId(const std::string& clusterId); - - private: - int size_; - int page_; - std::string clusterId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKNAMESPACESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKNAMESPACESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKNAMESPACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAckNamespacesRequest : public RoaServiceRequest { +public: + ListAckNamespacesRequest(); + ~ListAckNamespacesRequest(); + integer getSize() const; + void setSize(integer size); + integer getPage() const; + void setPage(integer page); + string getClusterId() const; + void setClusterId(string clusterId); + +private: + integer size_; + integer page_; + string clusterId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACKNAMESPACESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListActionRecordsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListActionRecordsRequest.h new file mode 100644 index 000000000..4d07403a7 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListActionRecordsRequest.h @@ -0,0 +1,66 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACTIONRECORDSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACTIONRECORDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListActionRecordsRequest : public RoaServiceRequest { +public: + ListActionRecordsRequest(); + ~ListActionRecordsRequest(); + string getFilter() const; + void setFilter(string filter); + string getActionNames() const; + void setActionNames(string actionNames); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getRequestId() const; + void setRequestId(string requestId); + integer getEndTime() const; + void setEndTime(integer endTime); + integer getPage() const; + void setPage(integer page); + integer getStartTime() const; + void setStartTime(integer startTime); + string getUserId() const; + void setUserId(string userId); + +private: + string filter_; + string actionNames_; + string instanceId_; + integer size_; + string requestId_; + integer endTime_; + integer page_; + integer startTime_; + string userId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACTIONRECORDSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListActionRecordsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListActionRecordsResult.h new file mode 100644 index 000000000..e8f71ff08 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListActionRecordsResult.h @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACTIONRECORDSRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACTIONRECORDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListActionRecordsResult : public ServiceResult + { + public: + struct ActionRecord + { + struct StatusInfoItem + { + struct SubStatusInfoItem + { + int nodeCount; + long endTime; + std::string stateType; + long latencyMills; + long startTime; + std::string process; + std::string subState; + int completeNodeCount; + std::string exception; + }; + int nodeCount; + long endTime; + std::string stateType; + long latencyMills; + long startTime; + std::string process; + std::string subState; + int completeNodeCount; + std::vector subStatusInfo; + std::string exception; + }; + long endTime; + std::string requestId; + std::string instanceId; + long startTime; + std::string process; + std::string userInfo; + std::string metaOld; + std::vector recordIds; + std::string recordDiff; + std::string actionName; + std::string ownerId; + std::vector statusInfo; + std::string stateType; + std::string userId; + std::string actionParams; + std::string metaNow; + std::vector actionResultAccessList; + std::string userType; + }; + + + ListActionRecordsResult(); + explicit ListActionRecordsResult(const std::string &payload); + ~ListActionRecordsResult(); + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTACTIONRECORDSRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAllNodeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAllNodeRequest.h index 7b4bec88a..53b272b6f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAllNodeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAllNodeRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALLNODEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALLNODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAllNodeRequest : public RoaServiceRequest - { - - public: - ListAllNodeRequest(); - ~ListAllNodeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getExtended()const; - void setExtended(bool extended); - - private: - std::string instanceId_; - bool extended_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALLNODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALLNODEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALLNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAllNodeRequest : public RoaServiceRequest { +public: + ListAllNodeRequest(); + ~ListAllNodeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getExtended() const; + void setExtended(boolean extended); + +private: + string instanceId_; + boolean extended_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALLNODEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposRequest.h index a1a319688..b572a79cb 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALTERNATIVESNAPSHOTREPOSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALTERNATIVESNAPSHOTREPOSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAlternativeSnapshotReposRequest : public RoaServiceRequest - { - - public: - ListAlternativeSnapshotReposRequest(); - ~ListAlternativeSnapshotReposRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getAlreadySetItems()const; - void setAlreadySetItems(bool alreadySetItems); - - private: - std::string instanceId_; - bool alreadySetItems_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALTERNATIVESNAPSHOTREPOSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALTERNATIVESNAPSHOTREPOSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALTERNATIVESNAPSHOTREPOSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAlternativeSnapshotReposRequest : public RoaServiceRequest { +public: + ListAlternativeSnapshotReposRequest(); + ~ListAlternativeSnapshotReposRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getAlreadySetItems() const; + void setAlreadySetItems(boolean alreadySetItems); + +private: + string instanceId_; + boolean alreadySetItems_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTALTERNATIVESNAPSHOTREPOSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmRequest.h index 47ef53505..e908975b8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAPMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAPMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListApmRequest : public RoaServiceRequest - { - - public: - ListApmRequest(); - ~ListApmRequest(); - - std::string getOutput()const; - void setOutput(const std::string& output); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getSize()const; - void setSize(long size); - std::string getDescription()const; - void setDescription(const std::string& description); - long getPage()const; - void setPage(long page); - - private: - std::string output_; - std::string instanceId_; - long size_; - std::string description_; - long page_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAPMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAPMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAPMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListApmRequest : public RoaServiceRequest { +public: + ListApmRequest(); + ~ListApmRequest(); + string getOutput() const; + void setOutput(string output); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getDescription() const; + void setDescription(string description); + integer getPage() const; + void setPage(integer page); + +private: + string output_; + string instanceId_; + integer size_; + string description_; + integer page_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAPMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmResult.h index 8ff8b0394..808c905c7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListApmResult.h @@ -36,7 +36,7 @@ namespace AlibabaCloud { long xTotalCount; }; - struct 返回结果 + struct Object { std::string status; std::string description; @@ -62,13 +62,13 @@ namespace AlibabaCloud explicit ListApmResult(const std::string &payload); ~ListApmResult(); Headers getHeaders()const; - std::vector<返回结果> getResult()const; + std::vector getResult()const; protected: void parse(const std::string &payload); private: Headers headers_; - std::vector<返回结果> result_; + std::vector result_; }; } diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAvailableEsInstanceIdsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAvailableEsInstanceIdsRequest.h index 31c574be3..26f96c73d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListAvailableEsInstanceIdsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListAvailableEsInstanceIdsRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAVAILABLEESINSTANCEIDSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAVAILABLEESINSTANCEIDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAvailableEsInstanceIdsRequest : public RoaServiceRequest - { - - public: - ListAvailableEsInstanceIdsRequest(); - ~ListAvailableEsInstanceIdsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAVAILABLEESINSTANCEIDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAVAILABLEESINSTANCEIDSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAVAILABLEESINSTANCEIDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListAvailableEsInstanceIdsRequest : public RoaServiceRequest { +public: + ListAvailableEsInstanceIdsRequest(); + ~ListAvailableEsInstanceIdsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTAVAILABLEESINSTANCEIDSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsRequest.h index ca24130b4..47b12ca9d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOLLECTORSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOLLECTORSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListCollectorsRequest : public RoaServiceRequest - { - - public: - ListCollectorsRequest(); - ~ListCollectorsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getName()const; - void setName(const std::string& name); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - int getPage()const; - void setPage(int page); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string instanceId_; - int size_; - std::string name_; - std::string sourceType_; - int page_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOLLECTORSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOLLECTORSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOLLECTORSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListCollectorsRequest : public RoaServiceRequest { +public: + ListCollectorsRequest(); + ~ListCollectorsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getName() const; + void setName(string name); + string getSourceType() const; + void setSourceType(string sourceType); + integer getPage() const; + void setPage(integer page); + string getResId() const; + void setResId(string resId); + +private: + string instanceId_; + integer size_; + string name_; + string sourceType_; + integer page_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOLLECTORSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsResult.h index d1e01b4e3..a7ee70f4f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListCollectorsResult.h @@ -61,8 +61,8 @@ namespace AlibabaCloud std::string totalPodsCount; std::string successPodsCount; std::vector machines; - std::string instanceType; std::string protocol; + std::string instanceType; std::string configType; }; std::string status; @@ -73,11 +73,11 @@ namespace AlibabaCloud bool dryRun; std::string gmtUpdateTime; std::vector extendConfigs; - std::string name; std::string resType; + std::string name; std::vector collectorPaths; - std::string vpcId; std::string ownerId; + std::string vpcId; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListComponentIndicesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListComponentIndicesRequest.h new file mode 100644 index 000000000..e2dd6872c --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListComponentIndicesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOMPONENTINDICESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOMPONENTINDICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListComponentIndicesRequest : public RoaServiceRequest { +public: + ListComponentIndicesRequest(); + ~ListComponentIndicesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getName() const; + void setName(string name); + integer getPage() const; + void setPage(integer page); + +private: + string instanceId_; + integer size_; + string name_; + integer page_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOMPONENTINDICESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListComponentIndicesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListComponentIndicesResult.h new file mode 100644 index 000000000..b4f5237d8 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListComponentIndicesResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOMPONENTINDICESRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOMPONENTINDICESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListComponentIndicesResult : public ServiceResult + { + public: + struct Headers + { + long xTotalCount; + }; + struct ResultItem + { + struct Content + { + struct _Template + { + struct Settings + { + struct Index + { + struct Lifecycle + { + std::string name; + }; + std::string codec; + Lifecycle lifecycle; + }; + Index index; + }; + Settings settings; + }; + _Template _template; + long version; + std::string _meta; + }; + std::vector composed; + Content content; + std::string name; + }; + + + ListComponentIndicesResult(); + explicit ListComponentIndicesResult(const std::string &payload); + ~ListComponentIndicesResult(); + Headers getHeaders()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + Headers headers_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCOMPONENTINDICESRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListConnectedClustersRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListConnectedClustersRequest.h index fce5b556b..2154504ba 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListConnectedClustersRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListConnectedClustersRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCONNECTEDCLUSTERSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCONNECTEDCLUSTERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListConnectedClustersRequest : public RoaServiceRequest - { - - public: - ListConnectedClustersRequest(); - ~ListConnectedClustersRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCONNECTEDCLUSTERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCONNECTEDCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCONNECTEDCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListConnectedClustersRequest : public RoaServiceRequest { +public: + ListConnectedClustersRequest(); + ~ListConnectedClustersRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTCONNECTEDCLUSTERSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataStreamsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataStreamsRequest.h index 5e77cb566..daa99bca8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataStreamsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataStreamsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATASTREAMSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATASTREAMSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDataStreamsRequest : public RoaServiceRequest - { - - public: - ListDataStreamsRequest(); - ~ListDataStreamsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getIsManaged()const; - void setIsManaged(bool isManaged); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string instanceId_; - bool isManaged_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATASTREAMSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATASTREAMSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATASTREAMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDataStreamsRequest : public RoaServiceRequest { +public: + ListDataStreamsRequest(); + ~ListDataStreamsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getIsManaged() const; + void setIsManaged(boolean isManaged); + string getName() const; + void setName(string name); + +private: + string instanceId_; + boolean isManaged_; + string name_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATASTREAMSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataTasksRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataTasksRequest.h index 80060f770..f24b93f42 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataTasksRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDataTasksRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATATASKSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATATASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDataTasksRequest : public RoaServiceRequest - { - - public: - ListDataTasksRequest(); - ~ListDataTasksRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATATASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATATASKSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATATASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDataTasksRequest : public RoaServiceRequest { +public: + ListDataTasksRequest(); + ~ListDataTasksRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDATATASKSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDefaultCollectorConfigurationsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDefaultCollectorConfigurationsRequest.h index 37c8f964b..15e66f0c9 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDefaultCollectorConfigurationsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDefaultCollectorConfigurationsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEFAULTCOLLECTORCONFIGURATIONSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEFAULTCOLLECTORCONFIGURATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDefaultCollectorConfigurationsRequest : public RoaServiceRequest - { - - public: - ListDefaultCollectorConfigurationsRequest(); - ~ListDefaultCollectorConfigurationsRequest(); - - std::string getResType()const; - void setResType(const std::string& resType); - std::string getResVersion()const; - void setResVersion(const std::string& resVersion); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - - private: - std::string resType_; - std::string resVersion_; - std::string sourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEFAULTCOLLECTORCONFIGURATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEFAULTCOLLECTORCONFIGURATIONSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEFAULTCOLLECTORCONFIGURATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDefaultCollectorConfigurationsRequest : public RoaServiceRequest { +public: + ListDefaultCollectorConfigurationsRequest(); + ~ListDefaultCollectorConfigurationsRequest(); + string getResType() const; + void setResType(string resType); + string getResVersion() const; + void setResVersion(string resVersion); + string getSourceType() const; + void setSourceType(string sourceType); + +private: + string resType_; + string resVersion_; + string sourceType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEFAULTCOLLECTORCONFIGURATIONSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesRequest.h new file mode 100644 index 000000000..5a5ea78ba --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEPRECATEDTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEPRECATEDTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDeprecatedTemplatesRequest : public RoaServiceRequest { +public: + ListDeprecatedTemplatesRequest(); + ~ListDeprecatedTemplatesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getName() const; + void setName(string name); + integer getPage() const; + void setPage(integer page); + +private: + string instanceId_; + integer size_; + string name_; + integer page_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEPRECATEDTEMPLATESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesResult.h new file mode 100644 index 000000000..adf4cd16a --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDeprecatedTemplatesResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEPRECATEDTEMPLATESRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEPRECATEDTEMPLATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDeprecatedTemplatesResult : public ServiceResult + { + public: + struct Headers + { + long xTotalCount; + }; + struct ResultItem + { + struct _Template + { + std::string mappings; + std::string aliases; + std::string settings; + }; + long order; + std::vector indexPatterns; + _Template _template; + bool dataStream; + std::string version; + std::string indexTemplate; + }; + + + ListDeprecatedTemplatesResult(); + explicit ListDeprecatedTemplatesResult(const std::string &payload); + ~ListDeprecatedTemplatesResult(); + Headers getHeaders()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + Headers headers_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDEPRECATEDTEMPLATESRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseIndicesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseIndicesRequest.h index f93712fca..614db419c 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseIndicesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseIndicesRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEINDICESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEINDICESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDiagnoseIndicesRequest : public RoaServiceRequest - { - - public: - ListDiagnoseIndicesRequest(); - ~ListDiagnoseIndicesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEINDICESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEINDICESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEINDICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDiagnoseIndicesRequest : public RoaServiceRequest { +public: + ListDiagnoseIndicesRequest(); + ~ListDiagnoseIndicesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEINDICESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportIdsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportIdsRequest.h index d8811e910..8224d7782 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportIdsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportIdsRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTIDSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTIDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDiagnoseReportIdsRequest : public RoaServiceRequest - { - - public: - ListDiagnoseReportIdsRequest(); - ~ListDiagnoseReportIdsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); - int getPage()const; - void setPage(int page); - std::string getTrigger()const; - void setTrigger(const std::string& trigger); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - int size_; - long endTime_; - long startTime_; - int page_; - std::string trigger_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTIDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTIDSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTIDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDiagnoseReportIdsRequest : public RoaServiceRequest { +public: + ListDiagnoseReportIdsRequest(); + ~ListDiagnoseReportIdsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + integer getEndTime() const; + void setEndTime(integer endTime); + integer getStartTime() const; + void setStartTime(integer startTime); + integer getPage() const; + void setPage(integer page); + string getTrigger() const; + void setTrigger(string trigger); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + integer size_; + integer endTime_; + integer startTime_; + integer page_; + string trigger_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTIDSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportRequest.h index 6b2040d17..ec0a5e753 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDiagnoseReportRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDiagnoseReportRequest : public RoaServiceRequest - { - - public: - ListDiagnoseReportRequest(); - ~ListDiagnoseReportRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); - int getPage()const; - void setPage(int page); - bool getDetail()const; - void setDetail(bool detail); - std::string getTrigger()const; - void setTrigger(const std::string& trigger); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - int size_; - long endTime_; - long startTime_; - int page_; - bool detail_; - std::string trigger_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDiagnoseReportRequest : public RoaServiceRequest { +public: + ListDiagnoseReportRequest(); + ~ListDiagnoseReportRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + integer getEndTime() const; + void setEndTime(integer endTime); + integer getStartTime() const; + void setStartTime(integer startTime); + integer getPage() const; + void setPage(integer page); + boolean getDetail() const; + void setDetail(boolean detail); + string getTrigger() const; + void setTrigger(string trigger); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + integer size_; + integer endTime_; + integer startTime_; + integer page_; + boolean detail_; + string trigger_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDIAGNOSEREPORTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictInformationRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictInformationRequest.h index 8b998da37..d5bc50f02 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictInformationRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictInformationRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTINFORMATIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTINFORMATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDictInformationRequest : public RoaServiceRequest - { - - public: - ListDictInformationRequest(); - ~ListDictInformationRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAnalyzerType()const; - void setAnalyzerType(const std::string& analyzerType); - std::string getBucketName()const; - void setBucketName(const std::string& bucketName); - std::string getKey()const; - void setKey(const std::string& key); - - private: - std::string instanceId_; - std::string analyzerType_; - std::string bucketName_; - std::string key_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTINFORMATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTINFORMATIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTINFORMATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDictInformationRequest : public RoaServiceRequest { +public: + ListDictInformationRequest(); + ~ListDictInformationRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getAnalyzerType() const; + void setAnalyzerType(string analyzerType); + string getBucketName() const; + void setBucketName(string bucketName); + string getKey() const; + void setKey(string key); + +private: + string instanceId_; + string analyzerType_; + string bucketName_; + string key_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTINFORMATIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsRequest.h index 75c98080e..f27f64fdc 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDictsRequest : public RoaServiceRequest - { - - public: - ListDictsRequest(); - ~ListDictsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAnalyzerType()const; - void setAnalyzerType(const std::string& analyzerType); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string instanceId_; - std::string analyzerType_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListDictsRequest : public RoaServiceRequest { +public: + ListDictsRequest(); + ~ListDictsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getAnalyzerType() const; + void setAnalyzerType(string analyzerType); + string getName() const; + void setName(string name); + +private: + string instanceId_; + string analyzerType_; + string name_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTDICTSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsResult.h index 05d6a4ae1..7b5252825 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListDictsResult.h @@ -40,9 +40,9 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; std::string downloadUrl; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesRequest.h index 70a318665..a6d6acc6a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTECSINSTANCESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTECSINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListEcsInstancesRequest : public RoaServiceRequest - { - - public: - ListEcsInstancesRequest(); - ~ListEcsInstancesRequest(); - - std::string getEcsInstanceName()const; - void setEcsInstanceName(const std::string& ecsInstanceName); - std::string getEcsInstanceIds()const; - void setEcsInstanceIds(const std::string& ecsInstanceIds); - int getSize()const; - void setSize(int size); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - int getPage()const; - void setPage(int page); - std::string getTags()const; - void setTags(const std::string& tags); - - private: - std::string ecsInstanceName_; - std::string ecsInstanceIds_; - int size_; - std::string vpcId_; - int page_; - std::string tags_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTECSINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTECSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTECSINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListEcsInstancesRequest : public RoaServiceRequest { +public: + ListEcsInstancesRequest(); + ~ListEcsInstancesRequest(); + string getEcsInstanceName() const; + void setEcsInstanceName(string ecsInstanceName); + string getEcsInstanceIds() const; + void setEcsInstanceIds(string ecsInstanceIds); + integer getSize() const; + void setSize(integer size); + string getVpcId() const; + void setVpcId(string vpcId); + integer getPage() const; + void setPage(integer page); + string getTags() const; + void setTags(string tags); + +private: + string ecsInstanceName_; + string ecsInstanceIds_; + integer size_; + string vpcId_; + integer page_; + string tags_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTECSINSTANCESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesResult.h index 6c061c531..310c9944e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListEcsInstancesResult.h @@ -76,14 +76,14 @@ namespace AlibabaCloud bool dryRun; std::string gmtUpdateTime; std::vector extendConfigs; - std::string name; std::string resType; + std::string name; std::vector collectorPaths; - std::string vpcId; std::string ownerId; + std::string vpcId; }; - std::string ecsInstanceId; std::string ecsInstanceName; + std::string ecsInstanceId; std::string status; std::vector collectors; std::string osType; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesRequest.h index 1e79cd381..f620beac7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTEXTENDFILESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTEXTENDFILESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListExtendfilesRequest : public RoaServiceRequest - { - - public: - ListExtendfilesRequest(); - ~ListExtendfilesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTEXTENDFILESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTEXTENDFILESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTEXTENDFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListExtendfilesRequest : public RoaServiceRequest { +public: + ListExtendfilesRequest(); + ~ListExtendfilesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTEXTENDFILESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesResult.h index fb4fabe1b..279a18a49 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListExtendfilesResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string filePath; std::string sourceType; - std::string name; long fileSize; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListILMPoliciesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListILMPoliciesRequest.h index e0ed7b2eb..371654361 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListILMPoliciesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListILMPoliciesRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTILMPOLICIESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTILMPOLICIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListILMPoliciesRequest : public RoaServiceRequest - { - - public: - ListILMPoliciesRequest(); - ~ListILMPoliciesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string instanceId_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTILMPOLICIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTILMPOLICIESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTILMPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListILMPoliciesRequest : public RoaServiceRequest { +public: + ListILMPoliciesRequest(); + ~ListILMPoliciesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getPolicyName() const; + void setPolicyName(string policyName); + +private: + string instanceId_; + string policyName_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTILMPOLICIESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListIndexTemplatesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListIndexTemplatesRequest.h index 354fc0385..4af052d87 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListIndexTemplatesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListIndexTemplatesRequest.h @@ -1,51 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINDEXTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINDEXTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListIndexTemplatesRequest : public RoaServiceRequest - { - - public: - ListIndexTemplatesRequest(); - ~ListIndexTemplatesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getIndexTemplate()const; - void setIndexTemplate(const std::string& indexTemplate); - - private: - std::string instanceId_; - std::string indexTemplate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINDEXTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINDEXTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINDEXTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListIndexTemplatesRequest : public RoaServiceRequest { +public: + ListIndexTemplatesRequest(); + ~ListIndexTemplatesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + integer getPage() const; + void setPage(integer page); + string getIndexTemplate() const; + void setIndexTemplate(string indexTemplate); + +private: + string instanceId_; + integer size_; + integer page_; + string indexTemplate_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINDEXTEMPLATESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsRequest.h new file mode 100644 index 000000000..74a06ab19 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEHISTORYEVENTSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEHISTORYEVENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListInstanceHistoryEventsRequest : public RoaServiceRequest { +public: + ListInstanceHistoryEventsRequest(); + ~ListInstanceHistoryEventsRequest(); + string getEventFinashEndTime() const; + void setEventFinashEndTime(string eventFinashEndTime); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getEventExecuteStartTime() const; + void setEventExecuteStartTime(string eventExecuteStartTime); + string getEventFinashStartTime() const; + void setEventFinashStartTime(string eventFinashStartTime); + string getNodeIP() const; + void setNodeIP(string nodeIP); + integer getPage() const; + void setPage(integer page); + string getEventCreateEndTime() const; + void setEventCreateEndTime(string eventCreateEndTime); + string getEventCreateStartTime() const; + void setEventCreateStartTime(string eventCreateStartTime); + string getEventExecuteEndTime() const; + void setEventExecuteEndTime(string eventExecuteEndTime); + +private: + string eventFinashEndTime_; + string instanceId_; + integer size_; + string eventExecuteStartTime_; + string eventFinashStartTime_; + string nodeIP_; + integer page_; + string eventCreateEndTime_; + string eventCreateStartTime_; + string eventExecuteEndTime_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEHISTORYEVENTSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsResult.h new file mode 100644 index 000000000..5f87879cf --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceHistoryEventsResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEHISTORYEVENTSRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEHISTORYEVENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListInstanceHistoryEventsResult : public ServiceResult + { + public: + struct Headers + { + long xTotalCount; + long xTotalSuccess; + long xTotalFailed; + }; + struct ResultItem + { + std::string eventCycleStatus; + std::string eventLevel; + std::string instanceId; + std::string eventType; + std::string eventCreateTime; + std::string eventFinashTime; + std::string regionId; + std::string ecsId; + std::string nodeIP; + std::string eventExecuteTime; + }; + + + ListInstanceHistoryEventsResult(); + explicit ListInstanceHistoryEventsResult(const std::string &payload); + ~ListInstanceHistoryEventsResult(); + Headers getHeaders()const; + std::vector getResult()const; + + protected: + void parse(const std::string &payload); + private: + Headers headers_; + std::vector result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEHISTORYEVENTSRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceIndicesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceIndicesRequest.h index 07fbbacb3..b171cf126 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceIndicesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceIndicesRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEINDICESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEINDICESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListInstanceIndicesRequest : public RoaServiceRequest - { - - public: - ListInstanceIndicesRequest(); - ~ListInstanceIndicesRequest(); - - bool getAll()const; - void setAll(bool all); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getIsManaged()const; - void setIsManaged(bool isManaged); - int getSize()const; - void setSize(int size); - std::string getName()const; - void setName(const std::string& name); - int getPage()const; - void setPage(int page); - bool getIsOpenstore()const; - void setIsOpenstore(bool isOpenstore); - - private: - bool all_; - std::string instanceId_; - bool isManaged_; - int size_; - std::string name_; - int page_; - bool isOpenstore_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEINDICESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEINDICESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEINDICESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListInstanceIndicesRequest : public RoaServiceRequest { +public: + ListInstanceIndicesRequest(); + ~ListInstanceIndicesRequest(); + boolean getAll() const; + void setAll(boolean all); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getIsManaged() const; + void setIsManaged(boolean isManaged); + integer getSize() const; + void setSize(integer size); + string getName() const; + void setName(string name); + integer getPage() const; + void setPage(integer page); + boolean getIsOpenstore() const; + void setIsOpenstore(boolean isOpenstore); + +private: + boolean all_; + string instanceId_; + boolean isManaged_; + integer size_; + string name_; + integer page_; + boolean isOpenstore_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEINDICESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceRequest.h index 19c5bdf30..30b1a16c7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceRequest.h @@ -1,78 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListInstanceRequest : public RoaServiceRequest - { - - public: - ListInstanceRequest(); - ~ListInstanceRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getInstanceCategory()const; - void setInstanceCategory(const std::string& instanceCategory); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getEsVersion()const; - void setEsVersion(const std::string& esVersion); - std::string getVpcId()const; - void setVpcId(const std::string& vpcId); - std::string getZoneId()const; - void setZoneId(const std::string& zoneId); - int getPage()const; - void setPage(int page); - std::string getPaymentType()const; - void setPaymentType(const std::string& paymentType); - - private: - std::string description_; - std::string instanceCategory_; - std::string tags_; - std::string resourceGroupId_; - std::string instanceId_; - int size_; - std::string esVersion_; - std::string vpcId_; - std::string zoneId_; - int page_; - std::string paymentType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListInstanceRequest : public RoaServiceRequest { +public: + ListInstanceRequest(); + ~ListInstanceRequest(); + string getDescription() const; + void setDescription(string description); + string getInstanceCategory() const; + void setInstanceCategory(string instanceCategory); + string getInnerapiOwnerId() const; + void setInnerapiOwnerId(string innerapiOwnerId); + string getTags() const; + void setTags(string tags); + string getProductType() const; + void setProductType(string productType); + string getResourceGroupId() const; + void setResourceGroupId(string resourceGroupId); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getEsVersion() const; + void setEsVersion(string esVersion); + string getVpcId() const; + void setVpcId(string vpcId); + string getZoneId() const; + void setZoneId(string zoneId); + integer getPage() const; + void setPage(integer page); + string getPaymentType() const; + void setPaymentType(string paymentType); + +private: + string description_; + string instanceCategory_; + string innerapiOwnerId_; + string tags_; + string productType_; + string resourceGroupId_; + string instanceId_; + integer size_; + string esVersion_; + string vpcId_; + string zoneId_; + integer page_; + string paymentType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceResult.h index 6e2d80e1b..c6ea5bd2c 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListInstanceResult.h @@ -78,6 +78,7 @@ namespace AlibabaCloud { std::string diskType; bool diskEncryption; + std::string performanceLevel; std::string spec; int disk; }; @@ -97,8 +98,8 @@ namespace AlibabaCloud std::string createdAt; NetworkConfig networkConfig; std::string isNewDeployment; - std::string esVersion; int nodeAmount; + std::string esVersion; std::string updatedAt; std::vector tags; KibanaConfiguration kibanaConfiguration; @@ -106,6 +107,7 @@ namespace AlibabaCloud NodeSpec nodeSpec; bool serviceVpc; std::string paymentType; + std::string vpcInstanceId; std::string postpaidServiceStatus; ClientNodeConfiguration clientNodeConfiguration; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListKibanaPluginsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListKibanaPluginsRequest.h index 803fee0dd..8d73d360f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListKibanaPluginsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListKibanaPluginsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTKIBANAPLUGINSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTKIBANAPLUGINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListKibanaPluginsRequest : public RoaServiceRequest - { - - public: - ListKibanaPluginsRequest(); - ~ListKibanaPluginsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getPage()const; - void setPage(const std::string& page); - - private: - std::string instanceId_; - int size_; - std::string page_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTKIBANAPLUGINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTKIBANAPLUGINSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTKIBANAPLUGINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListKibanaPluginsRequest : public RoaServiceRequest { +public: + ListKibanaPluginsRequest(); + ~ListKibanaPluginsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getPage() const; + void setPage(string page); + +private: + string instanceId_; + integer size_; + string page_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTKIBANAPLUGINSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogRequest.h index 12f54f6f6..469406aa0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHLOGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListLogstashLogRequest : public RoaServiceRequest - { - - public: - ListLogstashLogRequest(); - ~ListLogstashLogRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getQuery()const; - void setQuery(const std::string& query); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - int getPage()const; - void setPage(int page); - std::string getType()const; - void setType(const std::string& type); - - private: - std::string instanceId_; - int size_; - std::string query_; - long endTime_; - long beginTime_; - int page_; - std::string type_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHLOGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListLogstashLogRequest : public RoaServiceRequest { +public: + ListLogstashLogRequest(); + ~ListLogstashLogRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getQuery() const; + void setQuery(string query); + integer getEndTime() const; + void setEndTime(integer endTime); + integer getBeginTime() const; + void setBeginTime(integer beginTime); + integer getPage() const; + void setPage(integer page); + string getType() const; + void setType(string type); + +private: + string instanceId_; + integer size_; + string query_; + integer endTime_; + integer beginTime_; + integer page_; + string type_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHLOGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogResult.h index 13ad9bca7..5cf600e09 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashLogResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string instanceId; std::string content; - std::string host; std::string level; + std::string host; long timestamp; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashPluginsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashPluginsRequest.h index 689d92182..dfc2c6e29 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashPluginsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashPluginsRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHPLUGINSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHPLUGINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListLogstashPluginsRequest : public RoaServiceRequest - { - - public: - ListLogstashPluginsRequest(); - ~ListLogstashPluginsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getName()const; - void setName(const std::string& name); - int getPage()const; - void setPage(int page); - std::string getSource()const; - void setSource(const std::string& source); - - private: - std::string instanceId_; - int size_; - std::string name_; - int page_; - std::string source_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHPLUGINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHPLUGINSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHPLUGINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListLogstashPluginsRequest : public RoaServiceRequest { +public: + ListLogstashPluginsRequest(); + ~ListLogstashPluginsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getName() const; + void setName(string name); + integer getPage() const; + void setPage(integer page); + string getSource() const; + void setSource(string source); + +private: + string instanceId_; + integer size_; + string name_; + integer page_; + string source_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHPLUGINSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashRequest.h index dd8152c47..b1ebd6585 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListLogstashRequest.h @@ -1,66 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListLogstashRequest : public RoaServiceRequest - { - - public: - ListLogstashRequest(); - ~ListLogstashRequest(); - - std::string getResourceGroupId()const; - void setResourceGroupId(const std::string& resourceGroupId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getDescription()const; - void setDescription(const std::string& description); - int getPage()const; - void setPage(int page); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getVersion()const; - void setVersion(const std::string& version); - - private: - std::string resourceGroupId_; - std::string instanceId_; - int size_; - std::string description_; - int page_; - std::string ownerId_; - std::string version_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListLogstashRequest : public RoaServiceRequest { +public: + ListLogstashRequest(); + ~ListLogstashRequest(); + string getResourceGroupId() const; + void setResourceGroupId(string resourceGroupId); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getDescription() const; + void setDescription(string description); + integer getPage() const; + void setPage(integer page); + string getOwnerId() const; + void setOwnerId(string ownerId); + string getVersion() const; + void setVersion(string version); + string getTags() const; + void setTags(string tags); + +private: + string resourceGroupId_; + string instanceId_; + integer size_; + string description_; + integer page_; + string ownerId_; + string version_; + string tags_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTLOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesRequest.h index 5585806db..cc27c022e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTNODESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListNodesRequest : public RoaServiceRequest - { - - public: - ListNodesRequest(); - ~ListNodesRequest(); - - std::string getEcsInstanceName()const; - void setEcsInstanceName(const std::string& ecsInstanceName); - std::string getEcsInstanceIds()const; - void setEcsInstanceIds(const std::string& ecsInstanceIds); - int getSize()const; - void setSize(int size); - int getPage()const; - void setPage(int page); - std::string getResId()const; - void setResId(const std::string& resId); - std::string getTags()const; - void setTags(const std::string& tags); - - private: - std::string ecsInstanceName_; - std::string ecsInstanceIds_; - int size_; - int page_; - std::string resId_; - std::string tags_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTNODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTNODESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListNodesRequest : public RoaServiceRequest { +public: + ListNodesRequest(); + ~ListNodesRequest(); + string getEcsInstanceName() const; + void setEcsInstanceName(string ecsInstanceName); + string getEcsInstanceIds() const; + void setEcsInstanceIds(string ecsInstanceIds); + integer getSize() const; + void setSize(integer size); + integer getPage() const; + void setPage(integer page); + string getResId() const; + void setResId(string resId); + string getTags() const; + void setTags(string tags); + +private: + string ecsInstanceName_; + string ecsInstanceIds_; + integer size_; + integer page_; + string resId_; + string tags_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTNODESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesResult.h index 19a8edac9..aa0a48d65 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListNodesResult.h @@ -48,8 +48,8 @@ namespace AlibabaCloud std::string ipType; std::string host; }; - std::string ecsInstanceId; std::string ecsInstanceName; + std::string ecsInstanceId; std::string status; std::string agentStatus; std::string osType; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineIdsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineIdsRequest.h index 339ef32ba..794f04711 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineIdsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineIdsRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEIDSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEIDSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListPipelineIdsRequest : public RoaServiceRequest - { - - public: - ListPipelineIdsRequest(); - ~ListPipelineIdsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEIDSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEIDSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEIDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListPipelineIdsRequest : public RoaServiceRequest { +public: + ListPipelineIdsRequest(); + ~ListPipelineIdsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEIDSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineRequest.h index 32d916e97..60dd44a1d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListPipelineRequest.h @@ -1,57 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListPipelineRequest : public RoaServiceRequest - { - - public: - ListPipelineRequest(); - ~ListPipelineRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - int getPage()const; - void setPage(int page); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - std::string instanceId_; - int size_; - int page_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListPipelineRequest : public RoaServiceRequest { +public: + ListPipelineRequest(); + ~ListPipelineRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + integer getPage() const; + void setPage(integer page); + string getPipelineId() const; + void setPipelineId(string pipelineId); + +private: + string instanceId_; + integer size_; + integer page_; + string pipelineId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPIPELINEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListPluginsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListPluginsRequest.h index 480932bcd..cc1812aa5 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListPluginsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListPluginsRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPLUGINSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPLUGINSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListPluginsRequest : public RoaServiceRequest - { - - public: - ListPluginsRequest(); - ~ListPluginsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getName()const; - void setName(const std::string& name); - std::string getPage()const; - void setPage(const std::string& page); - std::string getSource()const; - void setSource(const std::string& source); - - private: - std::string instanceId_; - int size_; - std::string name_; - std::string page_; - std::string source_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPLUGINSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPLUGINSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPLUGINSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListPluginsRequest : public RoaServiceRequest { +public: + ListPluginsRequest(); + ~ListPluginsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getName() const; + void setName(string name); + string getPage() const; + void setPage(string page); + string getSource() const; + void setSource(string source); + +private: + string instanceId_; + integer size_; + string name_; + string page_; + string source_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTPLUGINSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogRequest.h index 4398ff6a4..af7c327c4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSEARCHLOGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSEARCHLOGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListSearchLogRequest : public RoaServiceRequest - { - - public: - ListSearchLogRequest(); - ~ListSearchLogRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - std::string getQuery()const; - void setQuery(const std::string& query); - long getEndTime()const; - void setEndTime(long endTime); - long getBeginTime()const; - void setBeginTime(long beginTime); - int getPage()const; - void setPage(int page); - std::string getType()const; - void setType(const std::string& type); - - private: - std::string instanceId_; - int size_; - std::string query_; - long endTime_; - long beginTime_; - int page_; - std::string type_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSEARCHLOGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSEARCHLOGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSEARCHLOGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListSearchLogRequest : public RoaServiceRequest { +public: + ListSearchLogRequest(); + ~ListSearchLogRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + string getQuery() const; + void setQuery(string query); + integer getEndTime() const; + void setEndTime(integer endTime); + integer getBeginTime() const; + void setBeginTime(integer beginTime); + integer getPage() const; + void setPage(integer page); + string getType() const; + void setType(string type); + +private: + string instanceId_; + integer size_; + string query_; + integer endTime_; + integer beginTime_; + integer page_; + string type_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSEARCHLOGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogResult.h index 25e570ec3..7f9dc5aa3 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListSearchLogResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud { std::string instanceId; std::string content; - std::string host; std::string level; + std::string host; long timestamp; std::string contentCollection; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesRequest.h index a0a123f21..9abb02580 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSHARDRECOVERIESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSHARDRECOVERIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListShardRecoveriesRequest : public RoaServiceRequest - { - - public: - ListShardRecoveriesRequest(); - ~ListShardRecoveriesRequest(); - - bool getActiveOnly()const; - void setActiveOnly(bool activeOnly); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - bool activeOnly_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSHARDRECOVERIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSHARDRECOVERIESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSHARDRECOVERIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListShardRecoveriesRequest : public RoaServiceRequest { +public: + ListShardRecoveriesRequest(); + ~ListShardRecoveriesRequest(); + boolean getActiveOnly() const; + void setActiveOnly(boolean activeOnly); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + boolean activeOnly_; + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSHARDRECOVERIESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesResult.h index 1cf627c9f..89597e24a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListShardRecoveriesResult.h @@ -41,8 +41,8 @@ namespace AlibabaCloud long filesTotal; std::string stage; std::string index; - std::string filesPercent; std::string translogOpsPercent; + std::string filesPercent; std::string sourceHost; std::string bytesPercent; long bytesTotal; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListSnapshotReposByInstanceIdRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListSnapshotReposByInstanceIdRequest.h index 577101878..8ecf76190 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListSnapshotReposByInstanceIdRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListSnapshotReposByInstanceIdRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSNAPSHOTREPOSBYINSTANCEIDREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSNAPSHOTREPOSBYINSTANCEIDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListSnapshotReposByInstanceIdRequest : public RoaServiceRequest - { - - public: - ListSnapshotReposByInstanceIdRequest(); - ~ListSnapshotReposByInstanceIdRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSNAPSHOTREPOSBYINSTANCEIDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSNAPSHOTREPOSBYINSTANCEIDREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSNAPSHOTREPOSBYINSTANCEIDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListSnapshotReposByInstanceIdRequest : public RoaServiceRequest { +public: + ListSnapshotReposByInstanceIdRequest(); + ~ListSnapshotReposByInstanceIdRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTSNAPSHOTREPOSBYINSTANCEIDREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagResourcesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagResourcesRequest.h index f5c345353..6c29d808b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagResourcesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagResourcesRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListTagResourcesRequest : public RoaServiceRequest - { - - public: - ListTagResourcesRequest(); - ~ListTagResourcesRequest(); - - int getSize()const; - void setSize(int size); - std::string getNextToken()const; - void setNextToken(const std::string& nextToken); - int getPage()const; - void setPage(int page); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getResourceIds()const; - void setResourceIds(const std::string& resourceIds); - std::string getTags()const; - void setTags(const std::string& tags); - - private: - int size_; - std::string nextToken_; - int page_; - std::string resourceType_; - std::string resourceIds_; - std::string tags_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListTagResourcesRequest : public RoaServiceRequest { +public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + integer getSize() const; + void setSize(integer size); + string getNextToken() const; + void setNextToken(string nextToken); + integer getPage() const; + void setPage(integer page); + string getResourceType() const; + void setResourceType(string resourceType); + string getResourceIds() const; + void setResourceIds(string resourceIds); + string getTags() const; + void setTags(string tags); + +private: + integer size_; + string nextToken_; + integer page_; + string resourceType_; + string resourceIds_; + string tags_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagsRequest.h index 0beee1134..9f25c8e8f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListTagsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListTagsRequest : public RoaServiceRequest - { - - public: - ListTagsRequest(); - ~ListTagsRequest(); - - int getPageSize()const; - void setPageSize(int pageSize); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - - private: - int pageSize_; - std::string resourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListTagsRequest : public RoaServiceRequest { +public: + ListTagsRequest(); + ~ListTagsRequest(); + integer getPageSize() const; + void setPageSize(integer pageSize); + string getResourceType() const; + void setResourceType(string resourceType); + +private: + integer pageSize_; + string resourceType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTTAGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsRequest.h index c6754a790..2f306672a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTVPCENDPOINTSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTVPCENDPOINTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListVpcEndpointsRequest : public RoaServiceRequest - { - - public: - ListVpcEndpointsRequest(); - ~ListVpcEndpointsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getSize()const; - void setSize(int size); - int getPage()const; - void setPage(int page); - - private: - std::string instanceId_; - int size_; - int page_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTVPCENDPOINTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTVPCENDPOINTSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTVPCENDPOINTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ListVpcEndpointsRequest : public RoaServiceRequest { +public: + ListVpcEndpointsRequest(); + ~ListVpcEndpointsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + integer getSize() const; + void setSize(integer size); + integer getPage() const; + void setPage(integer page); + +private: + string instanceId_; + integer size_; + integer page_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_LISTVPCENDPOINTSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsResult.h index bd9e9d861..93d5b5787 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ListVpcEndpointsResult.h @@ -38,8 +38,8 @@ namespace AlibabaCloud std::string endpointName; std::string endpointDomain; std::string serviceName; - std::string createTime; std::string endpointId; + std::string createTime; std::string endpointBusinessStatus; std::string connectionStatus; std::string serviceId; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/MigrateToOtherZoneRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/MigrateToOtherZoneRequest.h index 5683abd90..3587f7765 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/MigrateToOtherZoneRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/MigrateToOtherZoneRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MIGRATETOOTHERZONEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MIGRATETOOTHERZONEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT MigrateToOtherZoneRequest : public RoaServiceRequest - { - - public: - MigrateToOtherZoneRequest(); - ~MigrateToOtherZoneRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getDryRun()const; - void setDryRun(bool dryRun); - - private: - std::string instanceId_; - bool dryRun_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MIGRATETOOTHERZONEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MIGRATETOOTHERZONEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MIGRATETOOTHERZONEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT MigrateToOtherZoneRequest : public RoaServiceRequest { +public: + MigrateToOtherZoneRequest(); + ~MigrateToOtherZoneRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getDryRun() const; + void setDryRun(boolean dryRun); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + boolean dryRun_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MIGRATETOOTHERZONEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyDeployMachineRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyDeployMachineRequest.h index 20db875d4..9d9030baf 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyDeployMachineRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyDeployMachineRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYDEPLOYMACHINEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYDEPLOYMACHINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyDeployMachineRequest : public RoaServiceRequest - { - - public: - ModifyDeployMachineRequest(); - ~ModifyDeployMachineRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYDEPLOYMACHINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYDEPLOYMACHINEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYDEPLOYMACHINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyDeployMachineRequest : public RoaServiceRequest { +public: + ModifyDeployMachineRequest(); + ~ModifyDeployMachineRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string body_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYDEPLOYMACHINEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskRequest.h index bf0621284..388106978 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYELASTICTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYELASTICTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyElastictaskRequest : public RoaServiceRequest - { - - public: - ModifyElastictaskRequest(); - ~ModifyElastictaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYELASTICTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYELASTICTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYELASTICTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyElastictaskRequest : public RoaServiceRequest { +public: + ModifyElastictaskRequest(); + ~ModifyElastictaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYELASTICTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskResult.h index a20c37c86..804e1c40c 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyElastictaskResult.h @@ -38,16 +38,16 @@ namespace AlibabaCloud { std::string triggerType; int replicaCount; - std::string cronExpression; int elasticNodeCount; + std::string cronExpression; std::vector targetIndices; }; struct ElasticShrinkTask { std::string triggerType; int replicaCount; - std::string cronExpression; int elasticNodeCount; + std::string cronExpression; std::vector targetIndices1; }; ElasticShrinkTask elasticShrinkTask; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyInstanceMaintainTimeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyInstanceMaintainTimeRequest.h index d4ddb1c64..8e5147040 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyInstanceMaintainTimeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyInstanceMaintainTimeRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYINSTANCEMAINTAINTIMEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYINSTANCEMAINTAINTIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyInstanceMaintainTimeRequest : public RoaServiceRequest - { - - public: - ModifyInstanceMaintainTimeRequest(); - ~ModifyInstanceMaintainTimeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYINSTANCEMAINTAINTIMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYINSTANCEMAINTAINTIMEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYINSTANCEMAINTAINTIMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyInstanceMaintainTimeRequest : public RoaServiceRequest { +public: + ModifyInstanceMaintainTimeRequest(); + ~ModifyInstanceMaintainTimeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYINSTANCEMAINTAINTIMEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyWhiteIpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyWhiteIpsRequest.h index 5a6414eac..547b1a38b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyWhiteIpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ModifyWhiteIpsRequest.h @@ -1,60 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYWHITEIPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYWHITEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyWhiteIpsRequest : public RoaServiceRequest - { - - public: - ModifyWhiteIpsRequest(); - ~ModifyWhiteIpsRequest(); - - std::string getModifyMode()const; - void setModifyMode(const std::string& modifyMode); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - - private: - std::string modifyMode_; - std::string instanceId_; - std::string nodeType_; - std::string clientToken_; - std::string networkType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYWHITEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYWHITEIPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYWHITEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ModifyWhiteIpsRequest : public RoaServiceRequest { +public: + ModifyWhiteIpsRequest(); + ~ModifyWhiteIpsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MODIFYWHITEIPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupRequest.h index 33232df7b..268b5783e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MOVERESOURCEGROUPREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MOVERESOURCEGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT MoveResourceGroupRequest : public RoaServiceRequest - { - - public: - MoveResourceGroupRequest(); - ~MoveResourceGroupRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MOVERESOURCEGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT MoveResourceGroupRequest : public RoaServiceRequest { +public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_MOVERESOURCEGROUPREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupResult.h index b93fdad77..d88cce67d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/MoveResourceGroupResult.h @@ -65,15 +65,15 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; struct SynonymsDictsItem { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; MasterConfiguration masterConfiguration; std::string status; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/OpenDiagnosisRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/OpenDiagnosisRequest.h index 57d039f73..a7fce1244 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/OpenDiagnosisRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/OpenDiagnosisRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENDIAGNOSISREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENDIAGNOSISREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT OpenDiagnosisRequest : public RoaServiceRequest - { - - public: - OpenDiagnosisRequest(); - ~OpenDiagnosisRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string clientToken_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENDIAGNOSISREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENDIAGNOSISREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENDIAGNOSISREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT OpenDiagnosisRequest : public RoaServiceRequest { +public: + OpenDiagnosisRequest(); + ~OpenDiagnosisRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getLang() const; + void setLang(string lang); + +private: + string instanceId_; + string clientToken_; + string lang_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENDIAGNOSISREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/OpenHttpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/OpenHttpsRequest.h index ab9ece6f1..eced4276f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/OpenHttpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/OpenHttpsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENHTTPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENHTTPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT OpenHttpsRequest : public RoaServiceRequest - { - - public: - OpenHttpsRequest(); - ~OpenHttpsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENHTTPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENHTTPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENHTTPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT OpenHttpsRequest : public RoaServiceRequest { +public: + OpenHttpsRequest(); + ~OpenHttpsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_OPENHTTPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/PostEmonTryAlarmRuleRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/PostEmonTryAlarmRuleRequest.h index 1faa3a96c..618bc3cd7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/PostEmonTryAlarmRuleRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/PostEmonTryAlarmRuleRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_POSTEMONTRYALARMRULEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_POSTEMONTRYALARMRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT PostEmonTryAlarmRuleRequest : public RoaServiceRequest - { - - public: - PostEmonTryAlarmRuleRequest(); - ~PostEmonTryAlarmRuleRequest(); - - std::string getAlarmGroupId()const; - void setAlarmGroupId(const std::string& alarmGroupId); - std::string getProjectId()const; - void setProjectId(const std::string& projectId); - - private: - std::string alarmGroupId_; - std::string projectId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_POSTEMONTRYALARMRULEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_POSTEMONTRYALARMRULEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_POSTEMONTRYALARMRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT PostEmonTryAlarmRuleRequest : public RoaServiceRequest { +public: + PostEmonTryAlarmRuleRequest(); + ~PostEmonTryAlarmRuleRequest(); + string getAlarmGroupId() const; + void setAlarmGroupId(string alarmGroupId); + string getBody() const; + void setBody(string body); + string getProjectId() const; + void setProjectId(string projectId); + +private: + string alarmGroupId_; + string body_; + string projectId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_POSTEMONTRYALARMRULEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RecommendTemplatesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RecommendTemplatesRequest.h index f061f221d..5ddf722a3 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RecommendTemplatesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RecommendTemplatesRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RECOMMENDTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RECOMMENDTEMPLATESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RecommendTemplatesRequest : public RoaServiceRequest - { - - public: - RecommendTemplatesRequest(); - ~RecommendTemplatesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getUsageScenario()const; - void setUsageScenario(const std::string& usageScenario); - - private: - std::string instanceId_; - std::string usageScenario_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RECOMMENDTEMPLATESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RECOMMENDTEMPLATESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RECOMMENDTEMPLATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RecommendTemplatesRequest : public RoaServiceRequest { +public: + RecommendTemplatesRequest(); + ~RecommendTemplatesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getUsageScenario() const; + void setUsageScenario(string usageScenario); + +private: + string instanceId_; + string usageScenario_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RECOMMENDTEMPLATESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ReinstallCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ReinstallCollectorRequest.h index ae725fa4a..09786bf8b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ReinstallCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ReinstallCollectorRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_REINSTALLCOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_REINSTALLCOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ReinstallCollectorRequest : public RoaServiceRequest - { - - public: - ReinstallCollectorRequest(); - ~ReinstallCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_REINSTALLCOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_REINSTALLCOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_REINSTALLCOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ReinstallCollectorRequest : public RoaServiceRequest { +public: + ReinstallCollectorRequest(); + ~ReinstallCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string body_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_REINSTALLCOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RemoveApmRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RemoveApmRequest.h index f83ff8966..7857c82d6 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RemoveApmRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RemoveApmRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_REMOVEAPMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_REMOVEAPMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RemoveApmRequest : public RoaServiceRequest - { - - public: - RemoveApmRequest(); - ~RemoveApmRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_REMOVEAPMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_REMOVEAPMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_REMOVEAPMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RemoveApmRequest : public RoaServiceRequest { +public: + RemoveApmRequest(); + ~RemoveApmRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_REMOVEAPMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RenewInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RenewInstanceRequest.h index b41d7c8eb..e9bc6c97e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RenewInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RenewInstanceRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewInstanceRequest : public RoaServiceRequest - { - - public: - RenewInstanceRequest(); - ~RenewInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewInstanceRequest : public RoaServiceRequest { +public: + RenewInstanceRequest(); + ~RenewInstanceRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RenewLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RenewLogstashRequest.h index 27ca47acb..1ff940977 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RenewLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RenewLogstashRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewLogstashRequest : public RoaServiceRequest - { - - public: - RenewLogstashRequest(); - ~RenewLogstashRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RenewLogstashRequest : public RoaServiceRequest { +public: + RenewLogstashRequest(); + ~RenewLogstashRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RENEWLOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartCollectorRequest.h index ec641e120..de6774513 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartCollectorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTCOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTCOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartCollectorRequest : public RoaServiceRequest - { - - public: - RestartCollectorRequest(); - ~RestartCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTCOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTCOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTCOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartCollectorRequest : public RoaServiceRequest { +public: + RestartCollectorRequest(); + ~RestartCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTCOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceRequest.h index abdf7681b..7b0ab0ad4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartInstanceRequest : public RoaServiceRequest - { - - public: - RestartInstanceRequest(); - ~RestartInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getForce()const; - void setForce(bool force); - - private: - std::string instanceId_; - std::string clientToken_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartInstanceRequest : public RoaServiceRequest { +public: + RestartInstanceRequest(); + ~RestartInstanceRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + boolean getForce() const; + void setForce(boolean force); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + boolean force_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceResult.h index 4f49f5415..1c22f084e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartInstanceResult.h @@ -82,8 +82,8 @@ namespace AlibabaCloud int kibanaPort; std::string createdAt; NetworkConfig networkConfig; - std::string esVersion; int nodeAmount; + std::string esVersion; std::string updatedAt; std::vector dictList; std::string kibanaDomain; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashRequest.h index cf4be1475..5c8cfa5d3 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTLOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTLOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartLogstashRequest : public RoaServiceRequest - { - - public: - RestartLogstashRequest(); - ~RestartLogstashRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getForce()const; - void setForce(bool force); - - private: - std::string instanceId_; - std::string clientToken_; - bool force_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTLOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTLOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTLOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartLogstashRequest : public RoaServiceRequest { +public: + RestartLogstashRequest(); + ~RestartLogstashRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + boolean getForce() const; + void setForce(boolean force); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + boolean force_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESTARTLOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashResult.h index 65ebd7418..494ef60e7 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RestartLogstashResult.h @@ -32,15 +32,68 @@ namespace AlibabaCloud class ALIBABACLOUD_ELASTICSEARCH_EXPORT RestartLogstashResult : public ServiceResult { public: + struct Result + { + struct NetworkConfig + { + std::string type; + std::string vpcId; + std::string vswitchId; + std::string vsArea; + }; + struct NodeSpec + { + std::string diskType; + std::string spec; + long disk; + }; + struct EndpointListItem + { + std::string zoneId; + long port; + std::string host; + }; + struct ZoneInfosItem + { + std::string status; + std::string zoneId; + }; + struct TagsItem + { + std::string tagKey; + std::string tagValue; + }; + std::string status; + std::string description; + std::string resourceGroupId; + long endTime; + std::string instanceId; + std::string config; + std::vector zoneInfos; + std::string createdAt; + NetworkConfig networkConfig; + long nodeAmount; + std::string updatedAt; + std::vector tags; + std::string version; + bool dataNode; + NodeSpec nodeSpec; + std::string paymentType; + std::vector endpointList; + std::string protocol; + long zoneCount; + }; RestartLogstashResult(); explicit RestartLogstashResult(const std::string &payload); ~RestartLogstashResult(); + Result getResult()const; protected: void parse(const std::string &payload); private: + Result result_; }; } diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeElasticsearchTaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeElasticsearchTaskRequest.h index 755502e40..ac314db47 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeElasticsearchTaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeElasticsearchTaskRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMEELASTICSEARCHTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMEELASTICSEARCHTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ResumeElasticsearchTaskRequest : public RoaServiceRequest - { - - public: - ResumeElasticsearchTaskRequest(); - ~ResumeElasticsearchTaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMEELASTICSEARCHTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMEELASTICSEARCHTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMEELASTICSEARCHTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ResumeElasticsearchTaskRequest : public RoaServiceRequest { +public: + ResumeElasticsearchTaskRequest(); + ~ResumeElasticsearchTaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMEELASTICSEARCHTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeLogstashTaskRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeLogstashTaskRequest.h index 7bf52b47f..28aa27f8b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeLogstashTaskRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ResumeLogstashTaskRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMELOGSTASHTASKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMELOGSTASHTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ResumeLogstashTaskRequest : public RoaServiceRequest - { - - public: - ResumeLogstashTaskRequest(); - ~ResumeLogstashTaskRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMELOGSTASHTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMELOGSTASHTASKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMELOGSTASHTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ResumeLogstashTaskRequest : public RoaServiceRequest { +public: + ResumeLogstashTaskRequest(); + ~ResumeLogstashTaskRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RESUMELOGSTASHTASKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RolloverDataStreamRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RolloverDataStreamRequest.h index 08b9eae2a..e08848f1a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RolloverDataStreamRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RolloverDataStreamRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ROLLOVERDATASTREAMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ROLLOVERDATASTREAMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RolloverDataStreamRequest : public RoaServiceRequest - { - - public: - RolloverDataStreamRequest(); - ~RolloverDataStreamRequest(); - - std::string getDataStream()const; - void setDataStream(const std::string& dataStream); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string dataStream_; - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ROLLOVERDATASTREAMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_ROLLOVERDATASTREAMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_ROLLOVERDATASTREAMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RolloverDataStreamRequest : public RoaServiceRequest { +public: + RolloverDataStreamRequest(); + ~RolloverDataStreamRequest(); + string getDataStream() const; + void setDataStream(string dataStream); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string dataStream_; + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_ROLLOVERDATASTREAMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/RunPipelinesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/RunPipelinesRequest.h index 397fdea59..f497ef78f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/RunPipelinesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/RunPipelinesRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RUNPIPELINESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RUNPIPELINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT RunPipelinesRequest : public RoaServiceRequest - { - - public: - RunPipelinesRequest(); - ~RunPipelinesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RUNPIPELINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_RUNPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_RUNPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT RunPipelinesRequest : public RoaServiceRequest { +public: + RunPipelinesRequest(); + ~RunPipelinesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_RUNPIPELINESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ShrinkNodeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ShrinkNodeRequest.h index 47ffee5d8..98969f91a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ShrinkNodeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ShrinkNodeRequest.h @@ -1,57 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_SHRINKNODEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_SHRINKNODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ShrinkNodeRequest : public RoaServiceRequest - { - - public: - ShrinkNodeRequest(); - ~ShrinkNodeRequest(); - - bool getIgnoreStatus()const; - void setIgnoreStatus(bool ignoreStatus); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - bool ignoreStatus_; - std::string instanceId_; - std::string nodeType_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_SHRINKNODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_SHRINKNODEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_SHRINKNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ShrinkNodeRequest : public RoaServiceRequest { +public: + ShrinkNodeRequest(); + ~ShrinkNodeRequest(); + boolean getIgnoreStatus() const; + void setIgnoreStatus(boolean ignoreStatus); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getNodeType() const; + void setNodeType(string nodeType); + string getClientToken() const; + void setClientToken(string clientToken); + integer getCount() const; + void setCount(integer count); + std::string getBody() const; + void setBody(const std::string &body); + +private: + boolean ignoreStatus_; + string instanceId_; + string nodeType_; + string clientToken_; + integer count_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_SHRINKNODEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/StartApmRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/StartApmRequest.h index 284bd7a08..6a5a324c8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/StartApmRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/StartApmRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTAPMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTAPMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT StartApmRequest : public RoaServiceRequest - { - - public: - StartApmRequest(); - ~StartApmRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTAPMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTAPMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTAPMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT StartApmRequest : public RoaServiceRequest { +public: + StartApmRequest(); + ~StartApmRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTAPMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/StartCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/StartCollectorRequest.h index 09ab4d2c5..dda568059 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/StartCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/StartCollectorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTCOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTCOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT StartCollectorRequest : public RoaServiceRequest - { - - public: - StartCollectorRequest(); - ~StartCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTCOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTCOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTCOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT StartCollectorRequest : public RoaServiceRequest { +public: + StartCollectorRequest(); + ~StartCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STARTCOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/StopApmRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/StopApmRequest.h index 274c80ff6..97e0a257e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/StopApmRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/StopApmRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPAPMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPAPMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT StopApmRequest : public RoaServiceRequest - { - - public: - StopApmRequest(); - ~StopApmRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPAPMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPAPMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPAPMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT StopApmRequest : public RoaServiceRequest { +public: + StopApmRequest(); + ~StopApmRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + +private: + string instanceId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPAPMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/StopCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/StopCollectorRequest.h index fb41c25cb..1ea35b858 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/StopCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/StopCollectorRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPCOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPCOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT StopCollectorRequest : public RoaServiceRequest - { - - public: - StopCollectorRequest(); - ~StopCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPCOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPCOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPCOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT StopCollectorRequest : public RoaServiceRequest { +public: + StopCollectorRequest(); + ~StopCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPCOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/StopPipelinesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/StopPipelinesRequest.h index 8724a0ab7..342db6cb0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/StopPipelinesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/StopPipelinesRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPPIPELINESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPPIPELINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT StopPipelinesRequest : public RoaServiceRequest - { - - public: - StopPipelinesRequest(); - ~StopPipelinesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPPIPELINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT StopPipelinesRequest : public RoaServiceRequest { +public: + StopPipelinesRequest(); + ~StopPipelinesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_STOPPIPELINESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesRequest.h index a103f0f71..6f6c32530 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesRequest.h @@ -1,45 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_TAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_TAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT TagResourcesRequest : public RoaServiceRequest - { - - public: - TagResourcesRequest(); - ~TagResourcesRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT TagResourcesRequest : public RoaServiceRequest { +public: + TagResourcesRequest(); + ~TagResourcesRequest(); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesResult.h index 8cb74ccb9..9ca440b61 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/TagResourcesResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud TagResourcesResult(); explicit TagResourcesResult(const std::string &payload); ~TagResourcesResult(); + bool getResult()const; protected: void parse(const std::string &payload); private: + bool result_; }; } diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/TransferNodeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/TransferNodeRequest.h index 51cf814f2..e452b6d5a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/TransferNodeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/TransferNodeRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_TRANSFERNODEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_TRANSFERNODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT TransferNodeRequest : public RoaServiceRequest - { - - public: - TransferNodeRequest(); - ~TransferNodeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string nodeType_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_TRANSFERNODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_TRANSFERNODEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_TRANSFERNODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT TransferNodeRequest : public RoaServiceRequest { +public: + TransferNodeRequest(); + ~TransferNodeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getNodeType() const; + void setNodeType(string nodeType); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string nodeType_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_TRANSFERNODEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/TriggerNetworkRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/TriggerNetworkRequest.h index 5d9113c4e..3112781d9 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/TriggerNetworkRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/TriggerNetworkRequest.h @@ -1,60 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_TRIGGERNETWORKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_TRIGGERNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT TriggerNetworkRequest : public RoaServiceRequest - { - - public: - TriggerNetworkRequest(); - ~TriggerNetworkRequest(); - - std::string getActionType()const; - void setActionType(const std::string& actionType); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getNetworkType()const; - void setNetworkType(const std::string& networkType); - - private: - std::string actionType_; - std::string instanceId_; - std::string nodeType_; - std::string clientToken_; - std::string networkType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_TRIGGERNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_TRIGGERNETWORKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_TRIGGERNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT TriggerNetworkRequest : public RoaServiceRequest { +public: + TriggerNetworkRequest(); + ~TriggerNetworkRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_TRIGGERNETWORKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallKibanaPluginRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallKibanaPluginRequest.h index 3f35f8d8a..4e4583bb3 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallKibanaPluginRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallKibanaPluginRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLKIBANAPLUGINREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLKIBANAPLUGINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UninstallKibanaPluginRequest : public RoaServiceRequest - { - - public: - UninstallKibanaPluginRequest(); - ~UninstallKibanaPluginRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLKIBANAPLUGINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLKIBANAPLUGINREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLKIBANAPLUGINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UninstallKibanaPluginRequest : public RoaServiceRequest { +public: + UninstallKibanaPluginRequest(); + ~UninstallKibanaPluginRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLKIBANAPLUGINREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginRequest.h index c6964f3df..2a1836072 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLLOGSTASHPLUGINREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLLOGSTASHPLUGINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UninstallLogstashPluginRequest : public RoaServiceRequest - { - - public: - UninstallLogstashPluginRequest(); - ~UninstallLogstashPluginRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLLOGSTASHPLUGINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLLOGSTASHPLUGINREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLLOGSTASHPLUGINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UninstallLogstashPluginRequest : public RoaServiceRequest { +public: + UninstallLogstashPluginRequest(); + ~UninstallLogstashPluginRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLLOGSTASHPLUGINREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginResult.h index df6f0f006..9b2cfb3ac 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallLogstashPluginResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud UninstallLogstashPluginResult(); explicit UninstallLogstashPluginResult(const std::string &payload); ~UninstallLogstashPluginResult(); + std::string getHeaders()const; std::vector getResult()const; protected: void parse(const std::string &payload); private: + std::string headers_; std::vector result_; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallPluginRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallPluginRequest.h index 4c3313f20..365425a5b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallPluginRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UninstallPluginRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLPLUGINREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLPLUGINREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UninstallPluginRequest : public RoaServiceRequest - { - - public: - UninstallPluginRequest(); - ~UninstallPluginRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLPLUGINREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLPLUGINREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLPLUGINREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UninstallPluginRequest : public RoaServiceRequest { +public: + UninstallPluginRequest(); + ~UninstallPluginRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNINSTALLPLUGINREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UntagResourcesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UntagResourcesRequest.h index d445f6ba5..11b264954 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UntagResourcesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UntagResourcesRequest.h @@ -1,57 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UntagResourcesRequest : public RoaServiceRequest - { - - public: - UntagResourcesRequest(); - ~UntagResourcesRequest(); - - bool getAll()const; - void setAll(bool all); - std::string getTagKeys()const; - void setTagKeys(const std::string& tagKeys); - std::string getResourceType()const; - void setResourceType(const std::string& resourceType); - std::string getResourceIds()const; - void setResourceIds(const std::string& resourceIds); - - private: - bool all_; - std::string tagKeys_; - std::string resourceType_; - std::string resourceIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UntagResourcesRequest : public RoaServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + boolean getAll() const; + void setAll(boolean all); + string getTagKeys() const; + void setTagKeys(string tagKeys); + string getBody() const; + void setBody(string body); + string getResourceType() const; + void setResourceType(string resourceType); + string getResourceIds() const; + void setResourceIds(string resourceIds); + +private: + boolean all_; + string tagKeys_; + string body_; + string resourceType_; + string resourceIds_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordRequest.h index 94dc10789..a6671878c 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADMINPASSWORDREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADMINPASSWORDREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateAdminPasswordRequest : public RoaServiceRequest - { - - public: - UpdateAdminPasswordRequest(); - ~UpdateAdminPasswordRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADMINPASSWORDREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADMINPASSWORDREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADMINPASSWORDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateAdminPasswordRequest : public RoaServiceRequest { +public: + UpdateAdminPasswordRequest(); + ~UpdateAdminPasswordRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADMINPASSWORDREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordResult.h index 0a20c4bc2..8c026b7ee 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdminPasswordResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud UpdateAdminPasswordResult(); explicit UpdateAdminPasswordResult(const std::string &payload); ~UpdateAdminPasswordResult(); + bool getResult()const; protected: void parse(const std::string &payload); private: + bool result_; }; } diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdvancedSettingRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdvancedSettingRequest.h index 101c4fe77..fa8b2086b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdvancedSettingRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAdvancedSettingRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADVANCEDSETTINGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADVANCEDSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateAdvancedSettingRequest : public RoaServiceRequest - { - - public: - UpdateAdvancedSettingRequest(); - ~UpdateAdvancedSettingRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADVANCEDSETTINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADVANCEDSETTINGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADVANCEDSETTINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateAdvancedSettingRequest : public RoaServiceRequest { +public: + UpdateAdvancedSettingRequest(); + ~UpdateAdvancedSettingRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEADVANCEDSETTINGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictRequest.h index f95ed18b1..f32d6688e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEALIWSDICTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEALIWSDICTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateAliwsDictRequest : public RoaServiceRequest - { - - public: - UpdateAliwsDictRequest(); - ~UpdateAliwsDictRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEALIWSDICTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEALIWSDICTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEALIWSDICTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateAliwsDictRequest : public RoaServiceRequest { +public: + UpdateAliwsDictRequest(); + ~UpdateAliwsDictRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEALIWSDICTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictResult.h index ff32ec76b..492684a21 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateAliwsDictResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateApmRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateApmRequest.h index e56870730..d13fc60c8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateApmRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateApmRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEAPMREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEAPMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateApmRequest : public RoaServiceRequest - { - - public: - UpdateApmRequest(); - ~UpdateApmRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getBody()const; - void setBody(const std::string& body); - - private: - std::string instanceId_; - std::string body_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEAPMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEAPMREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEAPMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateApmRequest : public RoaServiceRequest { +public: + UpdateApmRequest(); + ~UpdateApmRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEAPMREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateBlackIpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateBlackIpsRequest.h index 5f21b7177..679e8542b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateBlackIpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateBlackIpsRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEBLACKIPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEBLACKIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateBlackIpsRequest : public RoaServiceRequest - { - - public: - UpdateBlackIpsRequest(); - ~UpdateBlackIpsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEBLACKIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEBLACKIPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEBLACKIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateBlackIpsRequest : public RoaServiceRequest { +public: + UpdateBlackIpsRequest(); + ~UpdateBlackIpsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + +private: + string instanceId_; + string clientToken_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEBLACKIPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameRequest.h index 9e4f129fd..c8e98af75 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORNAMEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateCollectorNameRequest : public RoaServiceRequest - { - - public: - UpdateCollectorNameRequest(); - ~UpdateCollectorNameRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORNAMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORNAMEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateCollectorNameRequest : public RoaServiceRequest { +public: + UpdateCollectorNameRequest(); + ~UpdateCollectorNameRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string body_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORNAMEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameResult.h index 4715d8f8e..6f8ce54cb 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorNameResult.h @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string totalPodsCount; std::string successPodsCount; std::vector machines; - std::string instanceType; std::string protocol; + std::string instanceType; std::string configType; }; std::string status; @@ -69,11 +69,11 @@ namespace AlibabaCloud bool dryRun; std::string gmtUpdateTime; std::vector extendConfigs; - std::string name; std::string resType; + std::string name; std::vector collectorPaths; - std::string vpcId; std::string ownerId; + std::string vpcId; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorRequest.h index 5d30824af..1b6e8cc62 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateCollectorRequest : public RoaServiceRequest - { - - public: - UpdateCollectorRequest(); - ~UpdateCollectorRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getResId()const; - void setResId(const std::string& resId); - - private: - std::string clientToken_; - std::string resId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateCollectorRequest : public RoaServiceRequest { +public: + UpdateCollectorRequest(); + ~UpdateCollectorRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + string getResId() const; + void setResId(string resId); + +private: + string clientToken_; + string body_; + string resId_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOLLECTORREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorResult.h index e153bb35a..412995f3c 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateCollectorResult.h @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string totalPodsCount; std::string successPodsCount; std::vector machines; - std::string instanceType; std::string protocol; + std::string instanceType; std::string configType; }; std::string status; @@ -69,11 +69,11 @@ namespace AlibabaCloud bool dryRun; std::string gmtUpdateTime; std::vector extendConfigs; - std::string name; std::string resType; + std::string name; std::vector collectorPaths; - std::string vpcId; std::string ownerId; + std::string vpcId; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateComponentIndexRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateComponentIndexRequest.h new file mode 100644 index 000000000..9195b8c30 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateComponentIndexRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOMPONENTINDEXREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOMPONENTINDEXREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateComponentIndexRequest : public RoaServiceRequest { +public: + UpdateComponentIndexRequest(); + ~UpdateComponentIndexRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getName() const; + void setName(string name); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string name_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOMPONENTINDEXREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateComponentIndexResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateComponentIndexResult.h new file mode 100644 index 000000000..85fbd05da --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateComponentIndexResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOMPONENTINDEXRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOMPONENTINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateComponentIndexResult : public ServiceResult + { + public: + + + UpdateComponentIndexResult(); + explicit UpdateComponentIndexResult(const std::string &payload); + ~UpdateComponentIndexResult(); + std::string getRequestId()const; + + protected: + void parse(const std::string &payload); + private: + std::string requestId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATECOMPONENTINDEXRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDescriptionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDescriptionRequest.h index 77f3ec2a9..50bff81b5 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDescriptionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDescriptionRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDescriptionRequest : public RoaServiceRequest - { - - public: - UpdateDescriptionRequest(); - ~UpdateDescriptionRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getBody()const; - void setBody(const std::string& body); - - private: - std::string instanceId_; - std::string clientToken_; - std::string body_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDESCRIPTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDescriptionRequest : public RoaServiceRequest { +public: + UpdateDescriptionRequest(); + ~UpdateDescriptionRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDESCRIPTIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDiagnosisSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDiagnosisSettingsRequest.h index 221573910..e313d692f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDiagnosisSettingsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDiagnosisSettingsRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDIAGNOSISSETTINGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDIAGNOSISSETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDiagnosisSettingsRequest : public RoaServiceRequest - { - - public: - UpdateDiagnosisSettingsRequest(); - ~UpdateDiagnosisSettingsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string instanceId_; - std::string clientToken_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDIAGNOSISSETTINGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDIAGNOSISSETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDIAGNOSISSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDiagnosisSettingsRequest : public RoaServiceRequest { +public: + UpdateDiagnosisSettingsRequest(); + ~UpdateDiagnosisSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getLang() const; + void setLang(string lang); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string lang_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDIAGNOSISSETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictRequest.h index 46e74559a..4bece531a 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDICTREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDICTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDictRequest : public RoaServiceRequest - { - - public: - UpdateDictRequest(); - ~UpdateDictRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDICTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDICTREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDICTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDictRequest : public RoaServiceRequest { +public: + UpdateDictRequest(); + ~UpdateDictRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDICTREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictResult.h index e729dc44f..cb4228793 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDictResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsRequest.h new file mode 100644 index 000000000..769aaa4de --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDYNAMICSETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDYNAMICSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDynamicSettingsRequest : public RoaServiceRequest { +public: + UpdateDynamicSettingsRequest(); + ~UpdateDynamicSettingsRequest(); + string getMode() const; + void setMode(string mode); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getRegionId() const; + void setRegionId(string regionId); + string getBody() const; + void setBody(string body); + +private: + string mode_; + string instanceId_; + string clientToken_; + string regionId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDYNAMICSETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsResult.h new file mode 100644 index 000000000..b224f59c9 --- /dev/null +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateDynamicSettingsResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDYNAMICSETTINGSRESULT_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDYNAMICSETTINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Elasticsearch + { + namespace Model + { + class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateDynamicSettingsResult : public ServiceResult + { + public: + + + UpdateDynamicSettingsResult(); + explicit UpdateDynamicSettingsResult(const std::string &payload); + ~UpdateDynamicSettingsResult(); + bool getResult()const; + + protected: + void parse(const std::string &payload); + private: + bool result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEDYNAMICSETTINGSRESULT_H_ \ No newline at end of file diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendConfigRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendConfigRequest.h index 1476d6f72..8829e09d9 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendConfigRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendConfigRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDCONFIGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateExtendConfigRequest : public RoaServiceRequest - { - - public: - UpdateExtendConfigRequest(); - ~UpdateExtendConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDCONFIGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateExtendConfigRequest : public RoaServiceRequest { +public: + UpdateExtendConfigRequest(); + ~UpdateExtendConfigRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDCONFIGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesRequest.h index fc08bbb24..db7344f1d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDFILESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDFILESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateExtendfilesRequest : public RoaServiceRequest - { - - public: - UpdateExtendfilesRequest(); - ~UpdateExtendfilesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDFILESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDFILESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateExtendfilesRequest : public RoaServiceRequest { +public: + UpdateExtendfilesRequest(); + ~UpdateExtendfilesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEEXTENDFILESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesResult.h index 8816a8512..eb8020f1b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateExtendfilesResult.h @@ -35,8 +35,8 @@ namespace AlibabaCloud struct ResultItem { std::string sourceType; - std::string name; long fileSize; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsRequest.h index bcb33f049..5924ee713 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEHOTIKDICTSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEHOTIKDICTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateHotIkDictsRequest : public RoaServiceRequest - { - - public: - UpdateHotIkDictsRequest(); - ~UpdateHotIkDictsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEHOTIKDICTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEHOTIKDICTSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEHOTIKDICTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateHotIkDictsRequest : public RoaServiceRequest { +public: + UpdateHotIkDictsRequest(); + ~UpdateHotIkDictsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEHOTIKDICTSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsResult.h index 384eaec24..57eea6aa6 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateHotIkDictsResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateILMPolicyRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateILMPolicyRequest.h index dcb6822de..f261d6be9 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateILMPolicyRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateILMPolicyRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEILMPOLICYREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEILMPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateILMPolicyRequest : public RoaServiceRequest - { - - public: - UpdateILMPolicyRequest(); - ~UpdateILMPolicyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getPolicyName()const; - void setPolicyName(const std::string& policyName); - - private: - std::string instanceId_; - std::string clientToken_; - std::string policyName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEILMPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEILMPOLICYREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEILMPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateILMPolicyRequest : public RoaServiceRequest { +public: + UpdateILMPolicyRequest(); + ~UpdateILMPolicyRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getPolicyName() const; + void setPolicyName(string policyName); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string policyName_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEILMPOLICYREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateIndexTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateIndexTemplateRequest.h index 7a98543ad..3eabb4d7d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateIndexTemplateRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateIndexTemplateRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINDEXTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINDEXTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateIndexTemplateRequest : public RoaServiceRequest - { - - public: - UpdateIndexTemplateRequest(); - ~UpdateIndexTemplateRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getIndexTemplate()const; - void setIndexTemplate(const std::string& indexTemplate); - - private: - std::string instanceId_; - std::string clientToken_; - std::string indexTemplate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINDEXTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINDEXTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINDEXTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateIndexTemplateRequest : public RoaServiceRequest { +public: + UpdateIndexTemplateRequest(); + ~UpdateIndexTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + string getIndexTemplate() const; + void setIndexTemplate(string indexTemplate); + +private: + string instanceId_; + string clientToken_; + string body_; + string indexTemplate_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINDEXTEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeRequest.h index 919c823dd..5225304d4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceChargeTypeRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceChargeTypeRequest : public RoaServiceRequest - { - - public: - UpdateInstanceChargeTypeRequest(); - ~UpdateInstanceChargeTypeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceChargeTypeRequest : public RoaServiceRequest { +public: + UpdateInstanceChargeTypeRequest(); + ~UpdateInstanceChargeTypeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCECHARGETYPEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceRequest.h index 64eff3d21..07ad8f961 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceRequest.h @@ -1,57 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceRequest : public RoaServiceRequest - { - - public: - UpdateInstanceRequest(); - ~UpdateInstanceRequest(); - - bool getIgnoreStatus()const; - void setIgnoreStatus(bool ignoreStatus); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getOrderActionType()const; - void setOrderActionType(const std::string& orderActionType); - - private: - bool ignoreStatus_; - std::string instanceId_; - std::string clientToken_; - std::string orderActionType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceRequest : public RoaServiceRequest { +public: + UpdateInstanceRequest(); + ~UpdateInstanceRequest(); + boolean getIgnoreStatus() const; + void setIgnoreStatus(boolean ignoreStatus); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + boolean getForce() const; + void setForce(boolean force); + std::string getBody() const; + void setBody(const std::string &body); + string getOrderActionType() const; + void setOrderActionType(string orderActionType); + +private: + boolean ignoreStatus_; + string instanceId_; + string clientToken_; + boolean force_; + std::string body_; + string orderActionType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceResult.h index 145d317fb..7eefd8504 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceResult.h @@ -65,15 +65,15 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; struct SynonymsDictsItem { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; MasterConfiguration masterConfiguration; std::string status; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceSettingsRequest.h index 147dc49f1..957be61fb 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceSettingsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateInstanceSettingsRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCESETTINGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCESETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceSettingsRequest : public RoaServiceRequest - { - - public: - UpdateInstanceSettingsRequest(); - ~UpdateInstanceSettingsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCESETTINGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCESETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCESETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateInstanceSettingsRequest : public RoaServiceRequest { +public: + UpdateInstanceSettingsRequest(); + ~UpdateInstanceSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEINSTANCESETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaSettingsRequest.h index df2031b6d..3c0dc6c90 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaSettingsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaSettingsRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANASETTINGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANASETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateKibanaSettingsRequest : public RoaServiceRequest - { - - public: - UpdateKibanaSettingsRequest(); - ~UpdateKibanaSettingsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANASETTINGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANASETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANASETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateKibanaSettingsRequest : public RoaServiceRequest { +public: + UpdateKibanaSettingsRequest(); + ~UpdateKibanaSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANASETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsRequest.h index b0ca79c60..dc64393fc 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANAWHITEIPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANAWHITEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateKibanaWhiteIpsRequest : public RoaServiceRequest - { - - public: - UpdateKibanaWhiteIpsRequest(); - ~UpdateKibanaWhiteIpsRequest(); - - std::string getModifyMode()const; - void setModifyMode(const std::string& modifyMode); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string modifyMode_; - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANAWHITEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANAWHITEIPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANAWHITEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateKibanaWhiteIpsRequest : public RoaServiceRequest { +public: + UpdateKibanaWhiteIpsRequest(); + ~UpdateKibanaWhiteIpsRequest(); + string getModifyMode() const; + void setModifyMode(string modifyMode); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string modifyMode_; + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEKIBANAWHITEIPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsResult.h index 7463a649b..9a7c9642f 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateKibanaWhiteIpsResult.h @@ -34,7 +34,22 @@ namespace AlibabaCloud public: struct Result { + struct NetworkConfig + { + struct WhiteIpGroupListItem + { + std::string groupName; + std::string whiteIpType; + std::vector ips; + }; + std::string type; + std::string vpcId; + std::vector whiteIpGroupList; + std::string vswitchId; + std::string vsArea; + }; std::vector kibanaIPWhitelist; + NetworkConfig networkConfig; std::vector kibanaPrivateIPWhitelist; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeRequest.h index 77bd2178d..10b59369e 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashChargeTypeRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashChargeTypeRequest : public RoaServiceRequest - { - - public: - UpdateLogstashChargeTypeRequest(); - ~UpdateLogstashChargeTypeRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashChargeTypeRequest : public RoaServiceRequest { +public: + UpdateLogstashChargeTypeRequest(); + ~UpdateLogstashChargeTypeRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHCHARGETYPEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashDescriptionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashDescriptionRequest.h index 0fd2b2f14..6871e7ca1 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashDescriptionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashDescriptionRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHDESCRIPTIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHDESCRIPTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashDescriptionRequest : public RoaServiceRequest - { - - public: - UpdateLogstashDescriptionRequest(); - ~UpdateLogstashDescriptionRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHDESCRIPTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHDESCRIPTIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHDESCRIPTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashDescriptionRequest : public RoaServiceRequest { +public: + UpdateLogstashDescriptionRequest(); + ~UpdateLogstashDescriptionRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHDESCRIPTIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashRequest.h index d44a21b15..6c9b077f8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashRequest : public RoaServiceRequest - { - - public: - UpdateLogstashRequest(); - ~UpdateLogstashRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashRequest : public RoaServiceRequest { +public: + UpdateLogstashRequest(); + ~UpdateLogstashRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashSettingsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashSettingsRequest.h index d6a72a390..cc6e6b825 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashSettingsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateLogstashSettingsRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHSETTINGSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHSETTINGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashSettingsRequest : public RoaServiceRequest - { - - public: - UpdateLogstashSettingsRequest(); - ~UpdateLogstashSettingsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHSETTINGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHSETTINGSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHSETTINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateLogstashSettingsRequest : public RoaServiceRequest { +public: + UpdateLogstashSettingsRequest(); + ~UpdateLogstashSettingsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATELOGSTASHSETTINGSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelineManagementConfigRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelineManagementConfigRequest.h index cb01a3b3d..64d302a5d 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelineManagementConfigRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelineManagementConfigRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINEMANAGEMENTCONFIGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINEMANAGEMENTCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePipelineManagementConfigRequest : public RoaServiceRequest - { - - public: - UpdatePipelineManagementConfigRequest(); - ~UpdatePipelineManagementConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINEMANAGEMENTCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINEMANAGEMENTCONFIGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINEMANAGEMENTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePipelineManagementConfigRequest : public RoaServiceRequest { +public: + UpdatePipelineManagementConfigRequest(); + ~UpdatePipelineManagementConfigRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINEMANAGEMENTCONFIGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelinesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelinesRequest.h index c4c109d55..0f1c50599 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelinesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePipelinesRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePipelinesRequest : public RoaServiceRequest - { - - public: - UpdatePipelinesRequest(); - ~UpdatePipelinesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - bool getTrigger()const; - void setTrigger(bool trigger); - - private: - std::string instanceId_; - std::string clientToken_; - bool trigger_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePipelinesRequest : public RoaServiceRequest { +public: + UpdatePipelinesRequest(); + ~UpdatePipelinesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + boolean getTrigger() const; + void setTrigger(boolean trigger); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + boolean trigger_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPIPELINESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePrivateNetworkWhiteIpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePrivateNetworkWhiteIpsRequest.h index 54bbdb2ea..508537dcf 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePrivateNetworkWhiteIpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePrivateNetworkWhiteIpsRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPRIVATENETWORKWHITEIPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPRIVATENETWORKWHITEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePrivateNetworkWhiteIpsRequest : public RoaServiceRequest - { - - public: - UpdatePrivateNetworkWhiteIpsRequest(); - ~UpdatePrivateNetworkWhiteIpsRequest(); - - std::string getModifyMode()const; - void setModifyMode(const std::string& modifyMode); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string modifyMode_; - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPRIVATENETWORKWHITEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPRIVATENETWORKWHITEIPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPRIVATENETWORKWHITEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePrivateNetworkWhiteIpsRequest : public RoaServiceRequest { +public: + UpdatePrivateNetworkWhiteIpsRequest(); + ~UpdatePrivateNetworkWhiteIpsRequest(); + string getModifyMode() const; + void setModifyMode(string modifyMode); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string modifyMode_; + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPRIVATENETWORKWHITEIPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicNetworkRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicNetworkRequest.h index 6df078fbe..044f15b19 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicNetworkRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicNetworkRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICNETWORKREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICNETWORKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePublicNetworkRequest : public RoaServiceRequest - { - - public: - UpdatePublicNetworkRequest(); - ~UpdatePublicNetworkRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICNETWORKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICNETWORKREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICNETWORKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePublicNetworkRequest : public RoaServiceRequest { +public: + UpdatePublicNetworkRequest(); + ~UpdatePublicNetworkRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICNETWORKREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicWhiteIpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicWhiteIpsRequest.h index 37e3443a7..290d97df8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicWhiteIpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdatePublicWhiteIpsRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICWHITEIPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICWHITEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePublicWhiteIpsRequest : public RoaServiceRequest - { - - public: - UpdatePublicWhiteIpsRequest(); - ~UpdatePublicWhiteIpsRequest(); - - std::string getModifyMode()const; - void setModifyMode(const std::string& modifyMode); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string modifyMode_; - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICWHITEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICWHITEIPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICWHITEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdatePublicWhiteIpsRequest : public RoaServiceRequest { +public: + UpdatePublicWhiteIpsRequest(); + ~UpdatePublicWhiteIpsRequest(); + string getModifyMode() const; + void setModifyMode(string modifyMode); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string modifyMode_; + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEPUBLICWHITEIPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateReadWritePolicyRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateReadWritePolicyRequest.h index 3ffb9c9cc..5f556a0ff 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateReadWritePolicyRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateReadWritePolicyRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEREADWRITEPOLICYREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEREADWRITEPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateReadWritePolicyRequest : public RoaServiceRequest - { - - public: - UpdateReadWritePolicyRequest(); - ~UpdateReadWritePolicyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEREADWRITEPOLICYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEREADWRITEPOLICYREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEREADWRITEPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateReadWritePolicyRequest : public RoaServiceRequest { +public: + UpdateReadWritePolicyRequest(); + ~UpdateReadWritePolicyRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEREADWRITEPOLICYREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSnapshotSettingRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSnapshotSettingRequest.h index 1efb5502b..92347d5e8 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSnapshotSettingRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSnapshotSettingRequest.h @@ -1,48 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESNAPSHOTSETTINGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESNAPSHOTSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateSnapshotSettingRequest : public RoaServiceRequest - { - - public: - UpdateSnapshotSettingRequest(); - ~UpdateSnapshotSettingRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESNAPSHOTSETTINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESNAPSHOTSETTINGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESNAPSHOTSETTINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateSnapshotSettingRequest : public RoaServiceRequest { +public: + UpdateSnapshotSettingRequest(); + ~UpdateSnapshotSettingRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESNAPSHOTSETTINGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsRequest.h index d3dcf83bd..182673b83 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESYNONYMSDICTSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESYNONYMSDICTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateSynonymsDictsRequest : public RoaServiceRequest - { - - public: - UpdateSynonymsDictsRequest(); - ~UpdateSynonymsDictsRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESYNONYMSDICTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESYNONYMSDICTSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESYNONYMSDICTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateSynonymsDictsRequest : public RoaServiceRequest { +public: + UpdateSynonymsDictsRequest(); + ~UpdateSynonymsDictsRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATESYNONYMSDICTSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsResult.h index 537877ae8..be28cf1f0 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateSynonymsDictsResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string type; std::string sourceType; - std::string name; long fileSize; + std::string name; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateTemplateRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateTemplateRequest.h index 69feed1b4..9f179ef14 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateTemplateRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateTemplateRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateTemplateRequest : public RoaServiceRequest - { - - public: - UpdateTemplateRequest(); - ~UpdateTemplateRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getTemplateName()const; - void setTemplateName(const std::string& templateName); - - private: - std::string instanceId_; - std::string clientToken_; - std::string templateName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateTemplateRequest : public RoaServiceRequest { +public: + UpdateTemplateRequest(); + ~UpdateTemplateRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getTemplateName() const; + void setTemplateName(string templateName); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string templateName_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATETEMPLATEREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsRequest.h index 79845660e..349a75820 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsRequest.h @@ -1,54 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEWHITEIPSREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEWHITEIPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateWhiteIpsRequest : public RoaServiceRequest - { - - public: - UpdateWhiteIpsRequest(); - ~UpdateWhiteIpsRequest(); - - std::string getModifyMode()const; - void setModifyMode(const std::string& modifyMode); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string modifyMode_; - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEWHITEIPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEWHITEIPSREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEWHITEIPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateWhiteIpsRequest : public RoaServiceRequest { +public: + UpdateWhiteIpsRequest(); + ~UpdateWhiteIpsRequest(); + string getModifyMode() const; + void setModifyMode(string modifyMode); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string modifyMode_; + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEWHITEIPSREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsResult.h index a32e6a2f7..c4fd82353 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateWhiteIpsResult.h @@ -34,7 +34,18 @@ namespace AlibabaCloud public: struct Result { + struct NetworkConfig + { + struct WhiteIpGroupListItem + { + std::string groupName; + std::string whiteIpType; + std::vector ips; + }; + std::vector whiteIpGroupList; + }; std::vector esIPWhitelist; + NetworkConfig networkConfig; }; diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateXpackMonitorConfigRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateXpackMonitorConfigRequest.h index 7323217c7..fb806f1bd 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateXpackMonitorConfigRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpdateXpackMonitorConfigRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEXPACKMONITORCONFIGREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEXPACKMONITORCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateXpackMonitorConfigRequest : public RoaServiceRequest - { - - public: - UpdateXpackMonitorConfigRequest(); - ~UpdateXpackMonitorConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEXPACKMONITORCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEXPACKMONITORCONFIGREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEXPACKMONITORCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpdateXpackMonitorConfigRequest : public RoaServiceRequest { +public: + UpdateXpackMonitorConfigRequest(); + ~UpdateXpackMonitorConfigRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPDATEXPACKMONITORCONFIGREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionRequest.h index 135b04ec3..836cccd87 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionRequest.h @@ -1,60 +1,51 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPGRADEENGINEVERSIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPGRADEENGINEVERSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpgradeEngineVersionRequest : public RoaServiceRequest - { - - public: - UpgradeEngineVersionRequest(); - ~UpgradeEngineVersionRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getType()const; - void setType(const std::string& type); - std::string getVersion()const; - void setVersion(const std::string& version); - - private: - std::string instanceId_; - bool dryRun_; - std::string clientToken_; - std::string type_; - std::string version_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPGRADEENGINEVERSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_UPGRADEENGINEVERSIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_UPGRADEENGINEVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpgradeEngineVersionRequest : public RoaServiceRequest { +public: + UpgradeEngineVersionRequest(); + ~UpgradeEngineVersionRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + boolean getDryRun() const; + void setDryRun(boolean dryRun); + string getClientToken() const; + void setClientToken(string clientToken); + std::string getBody() const; + void setBody(const std::string &body); + +private: + string instanceId_; + boolean dryRun_; + string clientToken_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_UPGRADEENGINEVERSIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionResult.h b/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionResult.h index 73bd52922..15cc5951b 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionResult.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/UpgradeEngineVersionResult.h @@ -32,16 +32,16 @@ namespace AlibabaCloud class ALIBABACLOUD_ELASTICSEARCH_EXPORT UpgradeEngineVersionResult : public ServiceResult { public: - struct Result + struct ResultItem { - struct ValidateResult + struct ValidateResultItem { std::string errorType; std::string errorMsg; std::string errorCode; }; std::string status; - ValidateResult validateResult; + std::vector validateResult; std::string validateType; }; @@ -49,12 +49,12 @@ namespace AlibabaCloud UpgradeEngineVersionResult(); explicit UpgradeEngineVersionResult(const std::string &payload); ~UpgradeEngineVersionResult(); - Result getResult()const; + std::vector getResult()const; protected: void parse(const std::string &payload); private: - Result result_; + std::vector result_; }; } diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateConnectionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateConnectionRequest.h index 6ce425f26..d4c98f530 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateConnectionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateConnectionRequest.h @@ -1,51 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATECONNECTIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATECONNECTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateConnectionRequest : public RoaServiceRequest - { - - public: - ValidateConnectionRequest(); - ~ValidateConnectionRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - - private: - std::string instanceId_; - std::string clientToken_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATECONNECTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATECONNECTIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATECONNECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateConnectionRequest : public RoaServiceRequest { +public: + ValidateConnectionRequest(); + ~ValidateConnectionRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getClientToken() const; + void setClientToken(string clientToken); + string getBody() const; + void setBody(string body); + +private: + string instanceId_; + string clientToken_; + string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATECONNECTIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateShrinkNodesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateShrinkNodesRequest.h index 8434be12c..c6856518c 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateShrinkNodesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateShrinkNodesRequest.h @@ -1,54 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESHRINKNODESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESHRINKNODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateShrinkNodesRequest : public RoaServiceRequest - { - - public: - ValidateShrinkNodesRequest(); - ~ValidateShrinkNodesRequest(); - - bool getIgnoreStatus()const; - void setIgnoreStatus(bool ignoreStatus); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - - private: - bool ignoreStatus_; - std::string instanceId_; - std::string nodeType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESHRINKNODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESHRINKNODESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESHRINKNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateShrinkNodesRequest : public RoaServiceRequest { +public: + ValidateShrinkNodesRequest(); + ~ValidateShrinkNodesRequest(); + boolean getIgnoreStatus() const; + void setIgnoreStatus(boolean ignoreStatus); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getNodeType() const; + void setNodeType(string nodeType); + integer getCount() const; + void setCount(integer count); + std::string getBody() const; + void setBody(const std::string &body); + +private: + boolean ignoreStatus_; + string instanceId_; + string nodeType_; + integer count_; + std::string body_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESHRINKNODESREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateSlrPermissionRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateSlrPermissionRequest.h index e031dd382..7c6a794e4 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateSlrPermissionRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateSlrPermissionRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESLRPERMISSIONREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESLRPERMISSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateSlrPermissionRequest : public RoaServiceRequest - { - - public: - ValidateSlrPermissionRequest(); - ~ValidateSlrPermissionRequest(); - - std::string getClientToken()const; - void setClientToken(const std::string& clientToken); - std::string getRolename()const; - void setRolename(const std::string& rolename); - - private: - std::string clientToken_; - std::string rolename_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESLRPERMISSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESLRPERMISSIONREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESLRPERMISSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateSlrPermissionRequest : public RoaServiceRequest { +public: + ValidateSlrPermissionRequest(); + ~ValidateSlrPermissionRequest(); + string getClientToken() const; + void setClientToken(string clientToken); + string getRolename() const; + void setRolename(string rolename); + +private: + string clientToken_; + string rolename_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATESLRPERMISSIONREQUEST_H_ diff --git a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateTransferableNodesRequest.h b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateTransferableNodesRequest.h index c01063478..183b32764 100644 --- a/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateTransferableNodesRequest.h +++ b/elasticsearch/include/alibabacloud/elasticsearch/model/ValidateTransferableNodesRequest.h @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATETRANSFERABLENODESREQUEST_H_ -#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATETRANSFERABLENODESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Elasticsearch - { - namespace Model - { - class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateTransferableNodesRequest : public RoaServiceRequest - { - - public: - ValidateTransferableNodesRequest(); - ~ValidateTransferableNodesRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getNodeType()const; - void setNodeType(const std::string& nodeType); - - private: - std::string instanceId_; - std::string nodeType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATETRANSFERABLENODESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATETRANSFERABLENODESREQUEST_H_ +#define ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATETRANSFERABLENODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Elasticsearch { +namespace Model { +class ALIBABACLOUD_ELASTICSEARCH_EXPORT ValidateTransferableNodesRequest : public RoaServiceRequest { +public: + ValidateTransferableNodesRequest(); + ~ValidateTransferableNodesRequest(); + string getInstanceId() const; + void setInstanceId(string instanceId); + string getNodeType() const; + void setNodeType(string nodeType); + +private: + string instanceId_; + string nodeType_; +}; +} // namespace Model +} // namespace Elasticsearch +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_ELASTICSEARCH_MODEL_VALIDATETRANSFERABLENODESREQUEST_H_ diff --git a/elasticsearch/src/ElasticsearchClient.cc b/elasticsearch/src/ElasticsearchClient.cc index 01a4debef..ae2d0fad7 100644 --- a/elasticsearch/src/ElasticsearchClient.cc +++ b/elasticsearch/src/ElasticsearchClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/elasticsearch/src/model/ActivateZonesRequest.cc b/elasticsearch/src/model/ActivateZonesRequest.cc index e30a6addc..48f3bf002 100644 --- a/elasticsearch/src/model/ActivateZonesRequest.cc +++ b/elasticsearch/src/model/ActivateZonesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/AddConnectableClusterRequest.cc b/elasticsearch/src/model/AddConnectableClusterRequest.cc index eefaf9bd1..99eb99639 100644 --- a/elasticsearch/src/model/AddConnectableClusterRequest.cc +++ b/elasticsearch/src/model/AddConnectableClusterRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/AddSnapshotRepoRequest.cc b/elasticsearch/src/model/AddSnapshotRepoRequest.cc index 4dab0ab8b..7a80cb7dd 100644 --- a/elasticsearch/src/model/AddSnapshotRepoRequest.cc +++ b/elasticsearch/src/model/AddSnapshotRepoRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CancelDeletionRequest.cc b/elasticsearch/src/model/CancelDeletionRequest.cc index ed117d358..cf598715b 100644 --- a/elasticsearch/src/model/CancelDeletionRequest.cc +++ b/elasticsearch/src/model/CancelDeletionRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CancelLogstashDeletionRequest.cc b/elasticsearch/src/model/CancelLogstashDeletionRequest.cc index 2013a5b8b..cda9e132e 100644 --- a/elasticsearch/src/model/CancelLogstashDeletionRequest.cc +++ b/elasticsearch/src/model/CancelLogstashDeletionRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CancelTaskRequest.cc b/elasticsearch/src/model/CancelTaskRequest.cc index 7c1322374..55c51e00c 100644 --- a/elasticsearch/src/model/CancelTaskRequest.cc +++ b/elasticsearch/src/model/CancelTaskRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CapacityPlanRequest.cc b/elasticsearch/src/model/CapacityPlanRequest.cc index 36a7f7233..53e5ee367 100644 --- a/elasticsearch/src/model/CapacityPlanRequest.cc +++ b/elasticsearch/src/model/CapacityPlanRequest.cc @@ -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 - -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 + +using AlibabaCloud::Elasticsearch::Model::CapacityPlanRequest; + +CapacityPlanRequest::CapacityPlanRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/assist/actions/capacity-plan"}; + setMethod(HttpRequest::Method::Post); +} + +CapacityPlanRequest::~CapacityPlanRequest() {} + diff --git a/elasticsearch/src/model/CloseDiagnosisRequest.cc b/elasticsearch/src/model/CloseDiagnosisRequest.cc index 5bba4bd48..e4f104c8c 100644 --- a/elasticsearch/src/model/CloseDiagnosisRequest.cc +++ b/elasticsearch/src/model/CloseDiagnosisRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CloseHttpsRequest.cc b/elasticsearch/src/model/CloseHttpsRequest.cc index fda4a15a4..d3edbfcff 100644 --- a/elasticsearch/src/model/CloseHttpsRequest.cc +++ b/elasticsearch/src/model/CloseHttpsRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CloseManagedIndexRequest.cc b/elasticsearch/src/model/CloseManagedIndexRequest.cc index fdb889277..9b3198146 100644 --- a/elasticsearch/src/model/CloseManagedIndexRequest.cc +++ b/elasticsearch/src/model/CloseManagedIndexRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateCollectorRequest.cc b/elasticsearch/src/model/CreateCollectorRequest.cc index 7251b4e08..ececffd5e 100644 --- a/elasticsearch/src/model/CreateCollectorRequest.cc +++ b/elasticsearch/src/model/CreateCollectorRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateComponentIndexRequest.cc b/elasticsearch/src/model/CreateComponentIndexRequest.cc new file mode 100644 index 000000000..14d100f29 --- /dev/null +++ b/elasticsearch/src/model/CreateComponentIndexRequest.cc @@ -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 + +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); +} + diff --git a/elasticsearch/src/model/CreateComponentIndexResult.cc b/elasticsearch/src/model/CreateComponentIndexResult.cc new file mode 100644 index 000000000..9a78b5c2d --- /dev/null +++ b/elasticsearch/src/model/CreateComponentIndexResult.cc @@ -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 +#include + +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_; +} + diff --git a/elasticsearch/src/model/CreateDataStreamRequest.cc b/elasticsearch/src/model/CreateDataStreamRequest.cc index 5ca0225ae..0863dad53 100644 --- a/elasticsearch/src/model/CreateDataStreamRequest.cc +++ b/elasticsearch/src/model/CreateDataStreamRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateDataTasksRequest.cc b/elasticsearch/src/model/CreateDataTasksRequest.cc index 28a7bb4b0..fc427c1ee 100644 --- a/elasticsearch/src/model/CreateDataTasksRequest.cc +++ b/elasticsearch/src/model/CreateDataTasksRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateDataTasksResult.cc b/elasticsearch/src/model/CreateDataTasksResult.cc index 4d941a44d..80de970f5 100644 --- a/elasticsearch/src/model/CreateDataTasksResult.cc +++ b/elasticsearch/src/model/CreateDataTasksResult.cc @@ -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); } diff --git a/elasticsearch/src/model/CreateILMPolicyRequest.cc b/elasticsearch/src/model/CreateILMPolicyRequest.cc index 18c756f63..a42e5acad 100644 --- a/elasticsearch/src/model/CreateILMPolicyRequest.cc +++ b/elasticsearch/src/model/CreateILMPolicyRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateIndexTemplateRequest.cc b/elasticsearch/src/model/CreateIndexTemplateRequest.cc index 082aa5d2e..2c6ed6349 100644 --- a/elasticsearch/src/model/CreateIndexTemplateRequest.cc +++ b/elasticsearch/src/model/CreateIndexTemplateRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateInstanceRequest.cc b/elasticsearch/src/model/CreateInstanceRequest.cc index f0a3522cf..11ce7d33e 100644 --- a/elasticsearch/src/model/CreateInstanceRequest.cc +++ b/elasticsearch/src/model/CreateInstanceRequest.cc @@ -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 - -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 + +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); } diff --git a/elasticsearch/src/model/CreateLogstashRequest.cc b/elasticsearch/src/model/CreateLogstashRequest.cc index 21cc799ae..20e20f042 100644 --- a/elasticsearch/src/model/CreateLogstashRequest.cc +++ b/elasticsearch/src/model/CreateLogstashRequest.cc @@ -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 - -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 + +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); } diff --git a/elasticsearch/src/model/CreateLogstashResult.cc b/elasticsearch/src/model/CreateLogstashResult.cc index 6bde5283b..d3faada56 100644 --- a/elasticsearch/src/model/CreateLogstashResult.cc +++ b/elasticsearch/src/model/CreateLogstashResult.cc @@ -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(); } diff --git a/elasticsearch/src/model/CreatePipelinesRequest.cc b/elasticsearch/src/model/CreatePipelinesRequest.cc index 3d58dab8f..f32774e62 100644 --- a/elasticsearch/src/model/CreatePipelinesRequest.cc +++ b/elasticsearch/src/model/CreatePipelinesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateSnapshotRequest.cc b/elasticsearch/src/model/CreateSnapshotRequest.cc index 5bb899e87..d439ad9ef 100644 --- a/elasticsearch/src/model/CreateSnapshotRequest.cc +++ b/elasticsearch/src/model/CreateSnapshotRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/CreateVpcEndpointRequest.cc b/elasticsearch/src/model/CreateVpcEndpointRequest.cc index 21d97154c..d90c007ed 100644 --- a/elasticsearch/src/model/CreateVpcEndpointRequest.cc +++ b/elasticsearch/src/model/CreateVpcEndpointRequest.cc @@ -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 - -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 + +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); } diff --git a/elasticsearch/src/model/CreateVpcEndpointResult.cc b/elasticsearch/src/model/CreateVpcEndpointResult.cc index 9f354ee45..864720fe9 100644 --- a/elasticsearch/src/model/CreateVpcEndpointResult.cc +++ b/elasticsearch/src/model/CreateVpcEndpointResult.cc @@ -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(); } diff --git a/elasticsearch/src/model/DeactivateZonesRequest.cc b/elasticsearch/src/model/DeactivateZonesRequest.cc index 311ffd2c4..07309b8f3 100644 --- a/elasticsearch/src/model/DeactivateZonesRequest.cc +++ b/elasticsearch/src/model/DeactivateZonesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteCollectorRequest.cc b/elasticsearch/src/model/DeleteCollectorRequest.cc index eafe90949..3f991b408 100644 --- a/elasticsearch/src/model/DeleteCollectorRequest.cc +++ b/elasticsearch/src/model/DeleteCollectorRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteComponentIndexRequest.cc b/elasticsearch/src/model/DeleteComponentIndexRequest.cc new file mode 100644 index 000000000..450f4c529 --- /dev/null +++ b/elasticsearch/src/model/DeleteComponentIndexRequest.cc @@ -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 + +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)); +} + diff --git a/elasticsearch/src/model/DeleteComponentIndexResult.cc b/elasticsearch/src/model/DeleteComponentIndexResult.cc new file mode 100644 index 000000000..1bd4dc9a9 --- /dev/null +++ b/elasticsearch/src/model/DeleteComponentIndexResult.cc @@ -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 +#include + +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_; +} + diff --git a/elasticsearch/src/model/DeleteConnectedClusterRequest.cc b/elasticsearch/src/model/DeleteConnectedClusterRequest.cc index b253bce6e..9250cda14 100644 --- a/elasticsearch/src/model/DeleteConnectedClusterRequest.cc +++ b/elasticsearch/src/model/DeleteConnectedClusterRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteDataStreamRequest.cc b/elasticsearch/src/model/DeleteDataStreamRequest.cc index 343fef8bb..253c9dc16 100644 --- a/elasticsearch/src/model/DeleteDataStreamRequest.cc +++ b/elasticsearch/src/model/DeleteDataStreamRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteDataTaskRequest.cc b/elasticsearch/src/model/DeleteDataTaskRequest.cc index baa94a589..07efa8c67 100644 --- a/elasticsearch/src/model/DeleteDataTaskRequest.cc +++ b/elasticsearch/src/model/DeleteDataTaskRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteDeprecatedTemplateRequest.cc b/elasticsearch/src/model/DeleteDeprecatedTemplateRequest.cc new file mode 100644 index 000000000..e9373fa18 --- /dev/null +++ b/elasticsearch/src/model/DeleteDeprecatedTemplateRequest.cc @@ -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 + +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)); +} + diff --git a/elasticsearch/src/model/DeleteDeprecatedTemplateResult.cc b/elasticsearch/src/model/DeleteDeprecatedTemplateResult.cc new file mode 100644 index 000000000..49a80d785 --- /dev/null +++ b/elasticsearch/src/model/DeleteDeprecatedTemplateResult.cc @@ -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 +#include + +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_; +} + diff --git a/elasticsearch/src/model/DeleteILMPolicyRequest.cc b/elasticsearch/src/model/DeleteILMPolicyRequest.cc index cb279239f..56347418c 100644 --- a/elasticsearch/src/model/DeleteILMPolicyRequest.cc +++ b/elasticsearch/src/model/DeleteILMPolicyRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteIndexTemplateRequest.cc b/elasticsearch/src/model/DeleteIndexTemplateRequest.cc index b037c39dc..3adbfeceb 100644 --- a/elasticsearch/src/model/DeleteIndexTemplateRequest.cc +++ b/elasticsearch/src/model/DeleteIndexTemplateRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteInstanceRequest.cc b/elasticsearch/src/model/DeleteInstanceRequest.cc index 9b249ac1e..e8cf63f12 100644 --- a/elasticsearch/src/model/DeleteInstanceRequest.cc +++ b/elasticsearch/src/model/DeleteInstanceRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteLogstashRequest.cc b/elasticsearch/src/model/DeleteLogstashRequest.cc index aacdf73ed..a2559a16d 100644 --- a/elasticsearch/src/model/DeleteLogstashRequest.cc +++ b/elasticsearch/src/model/DeleteLogstashRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeletePipelinesRequest.cc b/elasticsearch/src/model/DeletePipelinesRequest.cc index 8b02f5abb..d6f226ea8 100644 --- a/elasticsearch/src/model/DeletePipelinesRequest.cc +++ b/elasticsearch/src/model/DeletePipelinesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteSnapshotRepoRequest.cc b/elasticsearch/src/model/DeleteSnapshotRepoRequest.cc index a02696948..24f6fb1c6 100644 --- a/elasticsearch/src/model/DeleteSnapshotRepoRequest.cc +++ b/elasticsearch/src/model/DeleteSnapshotRepoRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DeleteVpcEndpointRequest.cc b/elasticsearch/src/model/DeleteVpcEndpointRequest.cc index 43c3040ed..1fe1f16d6 100644 --- a/elasticsearch/src/model/DeleteVpcEndpointRequest.cc +++ b/elasticsearch/src/model/DeleteVpcEndpointRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeAckOperatorRequest.cc b/elasticsearch/src/model/DescribeAckOperatorRequest.cc index 16f1b8f5e..18130ef67 100644 --- a/elasticsearch/src/model/DescribeAckOperatorRequest.cc +++ b/elasticsearch/src/model/DescribeAckOperatorRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeAckOperatorResult.cc b/elasticsearch/src/model/DescribeAckOperatorResult.cc index b7478d23a..ee42e74dd 100644 --- a/elasticsearch/src/model/DescribeAckOperatorResult.cc +++ b/elasticsearch/src/model/DescribeAckOperatorResult.cc @@ -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(); } diff --git a/elasticsearch/src/model/DescribeApmRequest.cc b/elasticsearch/src/model/DescribeApmRequest.cc index d813ff8e1..e87b7520b 100644 --- a/elasticsearch/src/model/DescribeApmRequest.cc +++ b/elasticsearch/src/model/DescribeApmRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeCollectorRequest.cc b/elasticsearch/src/model/DescribeCollectorRequest.cc index 508f88614..0b4f6938b 100644 --- a/elasticsearch/src/model/DescribeCollectorRequest.cc +++ b/elasticsearch/src/model/DescribeCollectorRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeCollectorResult.cc b/elasticsearch/src/model/DescribeCollectorResult.cc index bb5c181d4..97e81b24d 100644 --- a/elasticsearch/src/model/DescribeCollectorResult.cc +++ b/elasticsearch/src/model/DescribeCollectorResult.cc @@ -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"]; diff --git a/elasticsearch/src/model/DescribeComponentIndexRequest.cc b/elasticsearch/src/model/DescribeComponentIndexRequest.cc new file mode 100644 index 000000000..08cf419d0 --- /dev/null +++ b/elasticsearch/src/model/DescribeComponentIndexRequest.cc @@ -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 + +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)); +} + diff --git a/elasticsearch/src/model/DescribeComponentIndexResult.cc b/elasticsearch/src/model/DescribeComponentIndexResult.cc new file mode 100644 index 000000000..5bf65a07c --- /dev/null +++ b/elasticsearch/src/model/DescribeComponentIndexResult.cc @@ -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 +#include + +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_; +} + diff --git a/elasticsearch/src/model/DescribeConnectableClustersRequest.cc b/elasticsearch/src/model/DescribeConnectableClustersRequest.cc index a4df23dd2..e7a58852c 100644 --- a/elasticsearch/src/model/DescribeConnectableClustersRequest.cc +++ b/elasticsearch/src/model/DescribeConnectableClustersRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeConnectableClustersResult.cc b/elasticsearch/src/model/DescribeConnectableClustersResult.cc index 0e9eb7f15..fbfded3d0 100644 --- a/elasticsearch/src/model/DescribeConnectableClustersResult.cc +++ b/elasticsearch/src/model/DescribeConnectableClustersResult.cc @@ -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); } diff --git a/elasticsearch/src/model/DescribeDeprecatedTemplateRequest.cc b/elasticsearch/src/model/DescribeDeprecatedTemplateRequest.cc new file mode 100644 index 000000000..d6dab5e13 --- /dev/null +++ b/elasticsearch/src/model/DescribeDeprecatedTemplateRequest.cc @@ -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 + +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)); +} + diff --git a/elasticsearch/src/model/DescribeDeprecatedTemplateResult.cc b/elasticsearch/src/model/DescribeDeprecatedTemplateResult.cc new file mode 100644 index 000000000..4207ae376 --- /dev/null +++ b/elasticsearch/src/model/DescribeDeprecatedTemplateResult.cc @@ -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 +#include + +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_; +} + diff --git a/elasticsearch/src/model/DescribeDiagnoseReportRequest.cc b/elasticsearch/src/model/DescribeDiagnoseReportRequest.cc index 22fe29d8c..db0a3d265 100644 --- a/elasticsearch/src/model/DescribeDiagnoseReportRequest.cc +++ b/elasticsearch/src/model/DescribeDiagnoseReportRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeDiagnoseReportResult.cc b/elasticsearch/src/model/DescribeDiagnoseReportResult.cc index 015e76331..12f85f02d 100644 --- a/elasticsearch/src/model/DescribeDiagnoseReportResult.cc +++ b/elasticsearch/src/model/DescribeDiagnoseReportResult.cc @@ -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); } diff --git a/elasticsearch/src/model/DescribeDiagnosisSettingsRequest.cc b/elasticsearch/src/model/DescribeDiagnosisSettingsRequest.cc index 10fc60f15..03ce6c9b9 100644 --- a/elasticsearch/src/model/DescribeDiagnosisSettingsRequest.cc +++ b/elasticsearch/src/model/DescribeDiagnosisSettingsRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeDiagnosisSettingsResult.cc b/elasticsearch/src/model/DescribeDiagnosisSettingsResult.cc index 9bdaf9a16..a0edcc105 100644 --- a/elasticsearch/src/model/DescribeDiagnosisSettingsResult.cc +++ b/elasticsearch/src/model/DescribeDiagnosisSettingsResult.cc @@ -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(); } diff --git a/elasticsearch/src/model/DescribeDynamicSettingsRequest.cc b/elasticsearch/src/model/DescribeDynamicSettingsRequest.cc new file mode 100644 index 000000000..dfc5bc782 --- /dev/null +++ b/elasticsearch/src/model/DescribeDynamicSettingsRequest.cc @@ -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 + +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)); +} + diff --git a/elasticsearch/src/model/DescribeDynamicSettingsResult.cc b/elasticsearch/src/model/DescribeDynamicSettingsResult.cc new file mode 100644 index 000000000..4cec63d08 --- /dev/null +++ b/elasticsearch/src/model/DescribeDynamicSettingsResult.cc @@ -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 +#include + +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_; +} + diff --git a/elasticsearch/src/model/DescribeElasticsearchHealthRequest.cc b/elasticsearch/src/model/DescribeElasticsearchHealthRequest.cc index 443dc2857..a87fa101d 100644 --- a/elasticsearch/src/model/DescribeElasticsearchHealthRequest.cc +++ b/elasticsearch/src/model/DescribeElasticsearchHealthRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeILMPolicyRequest.cc b/elasticsearch/src/model/DescribeILMPolicyRequest.cc index c496c55d1..2b91e631b 100644 --- a/elasticsearch/src/model/DescribeILMPolicyRequest.cc +++ b/elasticsearch/src/model/DescribeILMPolicyRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeIndexTemplateRequest.cc b/elasticsearch/src/model/DescribeIndexTemplateRequest.cc index fd8611bdc..e632abd56 100644 --- a/elasticsearch/src/model/DescribeIndexTemplateRequest.cc +++ b/elasticsearch/src/model/DescribeIndexTemplateRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeIndexTemplateResult.cc b/elasticsearch/src/model/DescribeIndexTemplateResult.cc index fb38b1b78..d1d3e9640 100644 --- a/elasticsearch/src/model/DescribeIndexTemplateResult.cc +++ b/elasticsearch/src/model/DescribeIndexTemplateResult.cc @@ -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(); diff --git a/elasticsearch/src/model/DescribeInstanceRequest.cc b/elasticsearch/src/model/DescribeInstanceRequest.cc index df4bc512d..9b9e50c3c 100644 --- a/elasticsearch/src/model/DescribeInstanceRequest.cc +++ b/elasticsearch/src/model/DescribeInstanceRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeInstanceResult.cc b/elasticsearch/src/model/DescribeInstanceResult.cc index a51b0b370..8fd12c504 100644 --- a/elasticsearch/src/model/DescribeInstanceResult.cc +++ b/elasticsearch/src/model/DescribeInstanceResult.cc @@ -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()); } diff --git a/elasticsearch/src/model/DescribeKibanaSettingsRequest.cc b/elasticsearch/src/model/DescribeKibanaSettingsRequest.cc index 123d70f0b..af50a8b0b 100644 --- a/elasticsearch/src/model/DescribeKibanaSettingsRequest.cc +++ b/elasticsearch/src/model/DescribeKibanaSettingsRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeLogstashRequest.cc b/elasticsearch/src/model/DescribeLogstashRequest.cc index 69a5ac912..e5b9086e3 100644 --- a/elasticsearch/src/model/DescribeLogstashRequest.cc +++ b/elasticsearch/src/model/DescribeLogstashRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeLogstashResult.cc b/elasticsearch/src/model/DescribeLogstashResult.cc index 44ad6d942..d39a2ba4a 100644 --- a/elasticsearch/src/model/DescribeLogstashResult.cc +++ b/elasticsearch/src/model/DescribeLogstashResult.cc @@ -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()); diff --git a/elasticsearch/src/model/DescribePipelineManagementConfigRequest.cc b/elasticsearch/src/model/DescribePipelineManagementConfigRequest.cc index 6518e7fb1..61e349768 100644 --- a/elasticsearch/src/model/DescribePipelineManagementConfigRequest.cc +++ b/elasticsearch/src/model/DescribePipelineManagementConfigRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribePipelineManagementConfigResult.cc b/elasticsearch/src/model/DescribePipelineManagementConfigResult.cc index 27eb19122..4caa473e7 100644 --- a/elasticsearch/src/model/DescribePipelineManagementConfigResult.cc +++ b/elasticsearch/src/model/DescribePipelineManagementConfigResult.cc @@ -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"]; diff --git a/elasticsearch/src/model/DescribePipelineRequest.cc b/elasticsearch/src/model/DescribePipelineRequest.cc index f6094c516..f02c3ac4c 100644 --- a/elasticsearch/src/model/DescribePipelineRequest.cc +++ b/elasticsearch/src/model/DescribePipelineRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribePipelineResult.cc b/elasticsearch/src/model/DescribePipelineResult.cc index 30cebe574..48d23cdcd 100644 --- a/elasticsearch/src/model/DescribePipelineResult.cc +++ b/elasticsearch/src/model/DescribePipelineResult.cc @@ -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(); } diff --git a/elasticsearch/src/model/DescribeRegionsRequest.cc b/elasticsearch/src/model/DescribeRegionsRequest.cc index 1684ab157..6820a703e 100644 --- a/elasticsearch/src/model/DescribeRegionsRequest.cc +++ b/elasticsearch/src/model/DescribeRegionsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::DescribeRegionsRequest; - -DescribeRegionsRequest::DescribeRegionsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/regions"); - setMethod(HttpRequest::Method::Get); -} - -DescribeRegionsRequest::~DescribeRegionsRequest() -{} - + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::DescribeRegionsRequest; + +DescribeRegionsRequest::DescribeRegionsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/regions"}; + setMethod(HttpRequest::Method::Get); +} + +DescribeRegionsRequest::~DescribeRegionsRequest() {} + diff --git a/elasticsearch/src/model/DescribeRegionsResult.cc b/elasticsearch/src/model/DescribeRegionsResult.cc index 4a0715363..2545eb6cb 100644 --- a/elasticsearch/src/model/DescribeRegionsResult.cc +++ b/elasticsearch/src/model/DescribeRegionsResult.cc @@ -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); } diff --git a/elasticsearch/src/model/DescribeSnapshotSettingRequest.cc b/elasticsearch/src/model/DescribeSnapshotSettingRequest.cc index 7d3ddce8f..c56c36bd0 100644 --- a/elasticsearch/src/model/DescribeSnapshotSettingRequest.cc +++ b/elasticsearch/src/model/DescribeSnapshotSettingRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeSnapshotSettingResult.cc b/elasticsearch/src/model/DescribeSnapshotSettingResult.cc index 34a715b2c..ea7b7ad2e 100644 --- a/elasticsearch/src/model/DescribeSnapshotSettingResult.cc +++ b/elasticsearch/src/model/DescribeSnapshotSettingResult.cc @@ -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(); } diff --git a/elasticsearch/src/model/DescribeTemplatesRequest.cc b/elasticsearch/src/model/DescribeTemplatesRequest.cc index 331d845cb..6fe2dcb40 100644 --- a/elasticsearch/src/model/DescribeTemplatesRequest.cc +++ b/elasticsearch/src/model/DescribeTemplatesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeXpackMonitorConfigRequest.cc b/elasticsearch/src/model/DescribeXpackMonitorConfigRequest.cc index fda84d971..f2639013e 100644 --- a/elasticsearch/src/model/DescribeXpackMonitorConfigRequest.cc +++ b/elasticsearch/src/model/DescribeXpackMonitorConfigRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/DescribeXpackMonitorConfigResult.cc b/elasticsearch/src/model/DescribeXpackMonitorConfigResult.cc index ab712c69e..c89bae7ab 100644 --- a/elasticsearch/src/model/DescribeXpackMonitorConfigResult.cc +++ b/elasticsearch/src/model/DescribeXpackMonitorConfigResult.cc @@ -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"]; diff --git a/elasticsearch/src/model/DiagnoseInstanceRequest.cc b/elasticsearch/src/model/DiagnoseInstanceRequest.cc index 23b7ee139..71e36b50d 100644 --- a/elasticsearch/src/model/DiagnoseInstanceRequest.cc +++ b/elasticsearch/src/model/DiagnoseInstanceRequest.cc @@ -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 - -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 + +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); } diff --git a/elasticsearch/src/model/DiagnoseInstanceResult.cc b/elasticsearch/src/model/DiagnoseInstanceResult.cc index b75982b49..26387be83 100644 --- a/elasticsearch/src/model/DiagnoseInstanceResult.cc +++ b/elasticsearch/src/model/DiagnoseInstanceResult.cc @@ -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); } diff --git a/elasticsearch/src/model/EstimatedLogstashRestartTimeRequest.cc b/elasticsearch/src/model/EstimatedLogstashRestartTimeRequest.cc index 95072c916..b4f329ba1 100644 --- a/elasticsearch/src/model/EstimatedLogstashRestartTimeRequest.cc +++ b/elasticsearch/src/model/EstimatedLogstashRestartTimeRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/EstimatedLogstashRestartTimeResult.cc b/elasticsearch/src/model/EstimatedLogstashRestartTimeResult.cc index c093e305f..99f1c26da 100644 --- a/elasticsearch/src/model/EstimatedLogstashRestartTimeResult.cc +++ b/elasticsearch/src/model/EstimatedLogstashRestartTimeResult.cc @@ -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()); } diff --git a/elasticsearch/src/model/EstimatedRestartTimeRequest.cc b/elasticsearch/src/model/EstimatedRestartTimeRequest.cc index df55561e9..a8e3af7bb 100644 --- a/elasticsearch/src/model/EstimatedRestartTimeRequest.cc +++ b/elasticsearch/src/model/EstimatedRestartTimeRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/EstimatedRestartTimeResult.cc b/elasticsearch/src/model/EstimatedRestartTimeResult.cc index a148545a1..debb70f4e 100644 --- a/elasticsearch/src/model/EstimatedRestartTimeResult.cc +++ b/elasticsearch/src/model/EstimatedRestartTimeResult.cc @@ -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()); } diff --git a/elasticsearch/src/model/GetClusterDataInformationRequest.cc b/elasticsearch/src/model/GetClusterDataInformationRequest.cc index a50b511b1..20f902e2c 100644 --- a/elasticsearch/src/model/GetClusterDataInformationRequest.cc +++ b/elasticsearch/src/model/GetClusterDataInformationRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::GetClusterDataInformationRequest; - -GetClusterDataInformationRequest::GetClusterDataInformationRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/cluster/data-information"); - setMethod(HttpRequest::Method::Post); -} - -GetClusterDataInformationRequest::~GetClusterDataInformationRequest() -{} - + */ + +#include + +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)); +} + diff --git a/elasticsearch/src/model/GetClusterDataInformationResult.cc b/elasticsearch/src/model/GetClusterDataInformationResult.cc index 54228804f..70e87a368 100644 --- a/elasticsearch/src/model/GetClusterDataInformationResult.cc +++ b/elasticsearch/src/model/GetClusterDataInformationResult.cc @@ -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()); } diff --git a/elasticsearch/src/model/GetElastictaskRequest.cc b/elasticsearch/src/model/GetElastictaskRequest.cc index 0df376418..630f28330 100644 --- a/elasticsearch/src/model/GetElastictaskRequest.cc +++ b/elasticsearch/src/model/GetElastictaskRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetElastictaskResult.cc b/elasticsearch/src/model/GetElastictaskResult.cc index 2b422abe7..690407a46 100644 --- a/elasticsearch/src/model/GetElastictaskResult.cc +++ b/elasticsearch/src/model/GetElastictaskResult.cc @@ -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()); diff --git a/elasticsearch/src/model/GetEmonGrafanaAlertsRequest.cc b/elasticsearch/src/model/GetEmonGrafanaAlertsRequest.cc index 2d9a9167f..21829a606 100644 --- a/elasticsearch/src/model/GetEmonGrafanaAlertsRequest.cc +++ b/elasticsearch/src/model/GetEmonGrafanaAlertsRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetEmonGrafanaDashboardsRequest.cc b/elasticsearch/src/model/GetEmonGrafanaDashboardsRequest.cc index 871fe2384..9cacfa3c7 100644 --- a/elasticsearch/src/model/GetEmonGrafanaDashboardsRequest.cc +++ b/elasticsearch/src/model/GetEmonGrafanaDashboardsRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetEmonMonitorDataRequest.cc b/elasticsearch/src/model/GetEmonMonitorDataRequest.cc index 793d287a0..defe574a9 100644 --- a/elasticsearch/src/model/GetEmonMonitorDataRequest.cc +++ b/elasticsearch/src/model/GetEmonMonitorDataRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetEmonMonitorDataResult.cc b/elasticsearch/src/model/GetEmonMonitorDataResult.cc index b3213280e..eb1b80e93 100644 --- a/elasticsearch/src/model/GetEmonMonitorDataResult.cc +++ b/elasticsearch/src/model/GetEmonMonitorDataResult.cc @@ -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()) diff --git a/elasticsearch/src/model/GetOpenStoreUsageRequest.cc b/elasticsearch/src/model/GetOpenStoreUsageRequest.cc index 1181517f6..a7e6a06ce 100644 --- a/elasticsearch/src/model/GetOpenStoreUsageRequest.cc +++ b/elasticsearch/src/model/GetOpenStoreUsageRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetRegionConfigurationRequest.cc b/elasticsearch/src/model/GetRegionConfigurationRequest.cc index 676665c86..7816f7fc1 100644 --- a/elasticsearch/src/model/GetRegionConfigurationRequest.cc +++ b/elasticsearch/src/model/GetRegionConfigurationRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetRegionConfigurationResult.cc b/elasticsearch/src/model/GetRegionConfigurationResult.cc index d4138a1b7..ca02566e2 100644 --- a/elasticsearch/src/model/GetRegionConfigurationResult.cc +++ b/elasticsearch/src/model/GetRegionConfigurationResult.cc @@ -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()); } diff --git a/elasticsearch/src/model/GetSuggestShrinkableNodesRequest.cc b/elasticsearch/src/model/GetSuggestShrinkableNodesRequest.cc index ae96b7097..f3a64cb9e 100644 --- a/elasticsearch/src/model/GetSuggestShrinkableNodesRequest.cc +++ b/elasticsearch/src/model/GetSuggestShrinkableNodesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetSuggestShrinkableNodesResult.cc b/elasticsearch/src/model/GetSuggestShrinkableNodesResult.cc index fd757731d..7f4e23d2f 100644 --- a/elasticsearch/src/model/GetSuggestShrinkableNodesResult.cc +++ b/elasticsearch/src/model/GetSuggestShrinkableNodesResult.cc @@ -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); } diff --git a/elasticsearch/src/model/GetTransferableNodesRequest.cc b/elasticsearch/src/model/GetTransferableNodesRequest.cc index b71bb4a21..41d065ddc 100644 --- a/elasticsearch/src/model/GetTransferableNodesRequest.cc +++ b/elasticsearch/src/model/GetTransferableNodesRequest.cc @@ -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 - -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 + +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)); } diff --git a/elasticsearch/src/model/GetTransferableNodesResult.cc b/elasticsearch/src/model/GetTransferableNodesResult.cc index bef8ba498..982f694da 100644 --- a/elasticsearch/src/model/GetTransferableNodesResult.cc +++ b/elasticsearch/src/model/GetTransferableNodesResult.cc @@ -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); } diff --git a/elasticsearch/src/model/InitializeOperationRoleRequest.cc b/elasticsearch/src/model/InitializeOperationRoleRequest.cc index 7ea618ae0..b861344f1 100644 --- a/elasticsearch/src/model/InitializeOperationRoleRequest.cc +++ b/elasticsearch/src/model/InitializeOperationRoleRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InitializeOperationRoleRequest; - -InitializeOperationRoleRequest::InitializeOperationRoleRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/user/slr"); - setMethod(HttpRequest::Method::Post); -} - -InitializeOperationRoleRequest::~InitializeOperationRoleRequest() -{} - -std::string InitializeOperationRoleRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InitializeOperationRoleRequest; + +InitializeOperationRoleRequest::InitializeOperationRoleRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/user/slr"}; + setMethod(HttpRequest::Method::Post); } -void InitializeOperationRoleRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +InitializeOperationRoleRequest::~InitializeOperationRoleRequest() {} + +string InitializeOperationRoleRequest::getClientToken() const { + return clientToken_; +} + +void InitializeOperationRoleRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string InitializeOperationRoleRequest::getBody() const { + return body_; +} + +void InitializeOperationRoleRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/InstallAckOperatorRequest.cc b/elasticsearch/src/model/InstallAckOperatorRequest.cc index 85145a76c..9dac03d1f 100644 --- a/elasticsearch/src/model/InstallAckOperatorRequest.cc +++ b/elasticsearch/src/model/InstallAckOperatorRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InstallAckOperatorRequest; - -InstallAckOperatorRequest::InstallAckOperatorRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/ack-clusters/[ClusterId]/operator"); - setMethod(HttpRequest::Method::Post); -} - -InstallAckOperatorRequest::~InstallAckOperatorRequest() -{} - -std::string InstallAckOperatorRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InstallAckOperatorRequest; + +InstallAckOperatorRequest::InstallAckOperatorRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/ack-clusters/[ClusterId]/operator"}; + setMethod(HttpRequest::Method::Post); } -void InstallAckOperatorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +InstallAckOperatorRequest::~InstallAckOperatorRequest() {} + +string InstallAckOperatorRequest::getClientToken() const { + return clientToken_; } -std::string InstallAckOperatorRequest::getClusterId()const -{ - return clusterId_; +void InstallAckOperatorRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void InstallAckOperatorRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +string InstallAckOperatorRequest::getClusterId() const { + return clusterId_; +} + +void InstallAckOperatorRequest::setClusterId(string clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), std::to_string(clusterId)); +} + +string InstallAckOperatorRequest::getBody() const { + return body_; +} + +void InstallAckOperatorRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/InstallKibanaSystemPluginRequest.cc b/elasticsearch/src/model/InstallKibanaSystemPluginRequest.cc index 9c403a4ab..f4a04532e 100644 --- a/elasticsearch/src/model/InstallKibanaSystemPluginRequest.cc +++ b/elasticsearch/src/model/InstallKibanaSystemPluginRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InstallKibanaSystemPluginRequest; - -InstallKibanaSystemPluginRequest::InstallKibanaSystemPluginRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins/system/actions/install"); - setMethod(HttpRequest::Method::Post); -} - -InstallKibanaSystemPluginRequest::~InstallKibanaSystemPluginRequest() -{} - -std::string InstallKibanaSystemPluginRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InstallKibanaSystemPluginRequest; + +InstallKibanaSystemPluginRequest::InstallKibanaSystemPluginRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins/system/actions/install"}; + setMethod(HttpRequest::Method::Post); } -void InstallKibanaSystemPluginRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InstallKibanaSystemPluginRequest::~InstallKibanaSystemPluginRequest() {} + +string InstallKibanaSystemPluginRequest::getInstanceId() const { + return instanceId_; } -std::string InstallKibanaSystemPluginRequest::getClientToken()const -{ - return clientToken_; +void InstallKibanaSystemPluginRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void InstallKibanaSystemPluginRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string InstallKibanaSystemPluginRequest::getClientToken() const { + return clientToken_; +} + +void InstallKibanaSystemPluginRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string InstallKibanaSystemPluginRequest::getBody() const { + return body_; +} + +void InstallKibanaSystemPluginRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/InstallLogstashSystemPluginRequest.cc b/elasticsearch/src/model/InstallLogstashSystemPluginRequest.cc index 8ea382b40..5fb7bfcbe 100644 --- a/elasticsearch/src/model/InstallLogstashSystemPluginRequest.cc +++ b/elasticsearch/src/model/InstallLogstashSystemPluginRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InstallLogstashSystemPluginRequest; - -InstallLogstashSystemPluginRequest::InstallLogstashSystemPluginRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/plugins/system/actions/install"); - setMethod(HttpRequest::Method::Post); -} - -InstallLogstashSystemPluginRequest::~InstallLogstashSystemPluginRequest() -{} - -std::string InstallLogstashSystemPluginRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InstallLogstashSystemPluginRequest; + +InstallLogstashSystemPluginRequest::InstallLogstashSystemPluginRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/plugins/system/actions/install"}; + setMethod(HttpRequest::Method::Post); } -void InstallLogstashSystemPluginRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InstallLogstashSystemPluginRequest::~InstallLogstashSystemPluginRequest() {} + +string InstallLogstashSystemPluginRequest::getInstanceId() const { + return instanceId_; } -std::string InstallLogstashSystemPluginRequest::getClientToken()const -{ - return clientToken_; +void InstallLogstashSystemPluginRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void InstallLogstashSystemPluginRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string InstallLogstashSystemPluginRequest::getClientToken() const { + return clientToken_; +} + +void InstallLogstashSystemPluginRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string InstallLogstashSystemPluginRequest::getBody() const { + return body_; +} + +void InstallLogstashSystemPluginRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/InstallSystemPluginRequest.cc b/elasticsearch/src/model/InstallSystemPluginRequest.cc index 568144380..d6d68f6b6 100644 --- a/elasticsearch/src/model/InstallSystemPluginRequest.cc +++ b/elasticsearch/src/model/InstallSystemPluginRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InstallSystemPluginRequest; - -InstallSystemPluginRequest::InstallSystemPluginRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/plugins/system/actions/install"); - setMethod(HttpRequest::Method::Post); -} - -InstallSystemPluginRequest::~InstallSystemPluginRequest() -{} - -std::string InstallSystemPluginRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InstallSystemPluginRequest; + +InstallSystemPluginRequest::InstallSystemPluginRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/plugins/system/actions/install"}; + setMethod(HttpRequest::Method::Post); } -void InstallSystemPluginRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InstallSystemPluginRequest::~InstallSystemPluginRequest() {} + +string InstallSystemPluginRequest::getInstanceId() const { + return instanceId_; } -std::string InstallSystemPluginRequest::getClientToken()const -{ - return clientToken_; +void InstallSystemPluginRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void InstallSystemPluginRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string InstallSystemPluginRequest::getClientToken() const { + return clientToken_; +} + +void InstallSystemPluginRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string InstallSystemPluginRequest::getBody() const { + return body_; +} + +void InstallSystemPluginRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/InstallUserPluginsRequest.cc b/elasticsearch/src/model/InstallUserPluginsRequest.cc index 4f0ebe74c..5654b8dd0 100644 --- a/elasticsearch/src/model/InstallUserPluginsRequest.cc +++ b/elasticsearch/src/model/InstallUserPluginsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InstallUserPluginsRequest; - -InstallUserPluginsRequest::InstallUserPluginsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/plugins/user/actions/install"); - setMethod(HttpRequest::Method::Post); -} - -InstallUserPluginsRequest::~InstallUserPluginsRequest() -{} - -std::string InstallUserPluginsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InstallUserPluginsRequest; + +InstallUserPluginsRequest::InstallUserPluginsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/plugins/user/actions/install"}; + setMethod(HttpRequest::Method::Post); } -void InstallUserPluginsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InstallUserPluginsRequest::~InstallUserPluginsRequest() {} + +string InstallUserPluginsRequest::getInstanceId() const { + return instanceId_; +} + +void InstallUserPluginsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +string InstallUserPluginsRequest::getBody() const { + return body_; +} + +void InstallUserPluginsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/InterruptElasticsearchTaskRequest.cc b/elasticsearch/src/model/InterruptElasticsearchTaskRequest.cc index c4f65ffca..563693cd7 100644 --- a/elasticsearch/src/model/InterruptElasticsearchTaskRequest.cc +++ b/elasticsearch/src/model/InterruptElasticsearchTaskRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InterruptElasticsearchTaskRequest; - -InterruptElasticsearchTaskRequest::InterruptElasticsearchTaskRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/interrupt"); - setMethod(HttpRequest::Method::Post); -} - -InterruptElasticsearchTaskRequest::~InterruptElasticsearchTaskRequest() -{} - -std::string InterruptElasticsearchTaskRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InterruptElasticsearchTaskRequest; + +InterruptElasticsearchTaskRequest::InterruptElasticsearchTaskRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/interrupt"}; + setMethod(HttpRequest::Method::Post); } -void InterruptElasticsearchTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InterruptElasticsearchTaskRequest::~InterruptElasticsearchTaskRequest() {} + +string InterruptElasticsearchTaskRequest::getInstanceId() const { + return instanceId_; } -std::string InterruptElasticsearchTaskRequest::getClientToken()const -{ - return clientToken_; +void InterruptElasticsearchTaskRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void InterruptElasticsearchTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string InterruptElasticsearchTaskRequest::getClientToken() const { + return clientToken_; +} + +void InterruptElasticsearchTaskRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/InterruptLogstashTaskRequest.cc b/elasticsearch/src/model/InterruptLogstashTaskRequest.cc index 8508d41c3..b781b5541 100644 --- a/elasticsearch/src/model/InterruptLogstashTaskRequest.cc +++ b/elasticsearch/src/model/InterruptLogstashTaskRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::InterruptLogstashTaskRequest; - -InterruptLogstashTaskRequest::InterruptLogstashTaskRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/actions/interrupt"); - setMethod(HttpRequest::Method::Post); -} - -InterruptLogstashTaskRequest::~InterruptLogstashTaskRequest() -{} - -std::string InterruptLogstashTaskRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::InterruptLogstashTaskRequest; + +InterruptLogstashTaskRequest::InterruptLogstashTaskRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/actions/interrupt"}; + setMethod(HttpRequest::Method::Post); } -void InterruptLogstashTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InterruptLogstashTaskRequest::~InterruptLogstashTaskRequest() {} + +string InterruptLogstashTaskRequest::getInstanceId() const { + return instanceId_; } -std::string InterruptLogstashTaskRequest::getClientToken()const -{ - return clientToken_; +void InterruptLogstashTaskRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void InterruptLogstashTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string InterruptLogstashTaskRequest::getClientToken() const { + return clientToken_; +} + +void InterruptLogstashTaskRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/ListAckClustersRequest.cc b/elasticsearch/src/model/ListAckClustersRequest.cc index bd6d3fdac..a42b4484b 100644 --- a/elasticsearch/src/model/ListAckClustersRequest.cc +++ b/elasticsearch/src/model/ListAckClustersRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListAckClustersRequest; - -ListAckClustersRequest::ListAckClustersRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/ack-clusters"); - setMethod(HttpRequest::Method::Get); -} - -ListAckClustersRequest::~ListAckClustersRequest() -{} - -int ListAckClustersRequest::getSize()const -{ - return size_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListAckClustersRequest; + +ListAckClustersRequest::ListAckClustersRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/ack-clusters"}; + setMethod(HttpRequest::Method::Get); } -void ListAckClustersRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +ListAckClustersRequest::~ListAckClustersRequest() {} + +integer ListAckClustersRequest::getSize() const { + return size_; } -std::string ListAckClustersRequest::getVpcId()const -{ - return vpcId_; +void ListAckClustersRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListAckClustersRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +string ListAckClustersRequest::getVpcId() const { + return vpcId_; } -int ListAckClustersRequest::getPage()const -{ - return page_; +void ListAckClustersRequest::setVpcId(string vpcId) { + vpcId_ = vpcId; + setParameter(std::string("vpcId"), std::to_string(vpcId)); } -void ListAckClustersRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListAckClustersRequest::getPage() const { + return page_; +} + +void ListAckClustersRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } diff --git a/elasticsearch/src/model/ListAckClustersResult.cc b/elasticsearch/src/model/ListAckClustersResult.cc index c0d05a7a6..82c5c8a00 100644 --- a/elasticsearch/src/model/ListAckClustersResult.cc +++ b/elasticsearch/src/model/ListAckClustersResult.cc @@ -43,14 +43,14 @@ void ListAckClustersResult::parse(const std::string &payload) for (auto valueResultresultItem : allResultNode) { ResultItem resultObject; - if(!valueResultresultItem["clusterId"].isNull()) - resultObject.clusterId = valueResultresultItem["clusterId"].asString(); - if(!valueResultresultItem["name"].isNull()) - resultObject.name = valueResultresultItem["name"].asString(); if(!valueResultresultItem["clusterType"].isNull()) resultObject.clusterType = valueResultresultItem["clusterType"].asString(); if(!valueResultresultItem["vpcId"].isNull()) resultObject.vpcId = valueResultresultItem["vpcId"].asString(); + if(!valueResultresultItem["name"].isNull()) + resultObject.name = valueResultresultItem["name"].asString(); + if(!valueResultresultItem["clusterId"].isNull()) + resultObject.clusterId = valueResultresultItem["clusterId"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListAckNamespacesRequest.cc b/elasticsearch/src/model/ListAckNamespacesRequest.cc index 09ce80594..ec7b3b730 100644 --- a/elasticsearch/src/model/ListAckNamespacesRequest.cc +++ b/elasticsearch/src/model/ListAckNamespacesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListAckNamespacesRequest; - -ListAckNamespacesRequest::ListAckNamespacesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/ack-clusters/[ClusterId]/namespaces"); - setMethod(HttpRequest::Method::Get); -} - -ListAckNamespacesRequest::~ListAckNamespacesRequest() -{} - -int ListAckNamespacesRequest::getSize()const -{ - return size_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListAckNamespacesRequest; + +ListAckNamespacesRequest::ListAckNamespacesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/ack-clusters/[ClusterId]/namespaces"}; + setMethod(HttpRequest::Method::Get); } -void ListAckNamespacesRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +ListAckNamespacesRequest::~ListAckNamespacesRequest() {} + +integer ListAckNamespacesRequest::getSize() const { + return size_; } -int ListAckNamespacesRequest::getPage()const -{ - return page_; +void ListAckNamespacesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListAckNamespacesRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListAckNamespacesRequest::getPage() const { + return page_; } -std::string ListAckNamespacesRequest::getClusterId()const -{ - return clusterId_; +void ListAckNamespacesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListAckNamespacesRequest::setClusterId(const std::string& clusterId) -{ - clusterId_ = clusterId; - setParameter("ClusterId", clusterId); +string ListAckNamespacesRequest::getClusterId() const { + return clusterId_; +} + +void ListAckNamespacesRequest::setClusterId(string clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), std::to_string(clusterId)); } diff --git a/elasticsearch/src/model/ListActionRecordsRequest.cc b/elasticsearch/src/model/ListActionRecordsRequest.cc new file mode 100644 index 000000000..98477026c --- /dev/null +++ b/elasticsearch/src/model/ListActionRecordsRequest.cc @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListActionRecordsRequest; + +ListActionRecordsRequest::ListActionRecordsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/action-records"}; + setMethod(HttpRequest::Method::Get); +} + +ListActionRecordsRequest::~ListActionRecordsRequest() {} + +string ListActionRecordsRequest::getFilter() const { + return filter_; +} + +void ListActionRecordsRequest::setFilter(string filter) { + filter_ = filter; + setParameter(std::string("filter"), std::to_string(filter)); +} + +string ListActionRecordsRequest::getActionNames() const { + return actionNames_; +} + +void ListActionRecordsRequest::setActionNames(string actionNames) { + actionNames_ = actionNames; + setParameter(std::string("actionNames"), std::to_string(actionNames)); +} + +string ListActionRecordsRequest::getInstanceId() const { + return instanceId_; +} + +void ListActionRecordsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +integer ListActionRecordsRequest::getSize() const { + return size_; +} + +void ListActionRecordsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); +} + +string ListActionRecordsRequest::getRequestId() const { + return requestId_; +} + +void ListActionRecordsRequest::setRequestId(string requestId) { + requestId_ = requestId; + setParameter(std::string("requestId"), std::to_string(requestId)); +} + +integer ListActionRecordsRequest::getEndTime() const { + return endTime_; +} + +void ListActionRecordsRequest::setEndTime(integer endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); +} + +integer ListActionRecordsRequest::getPage() const { + return page_; +} + +void ListActionRecordsRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +integer ListActionRecordsRequest::getStartTime() const { + return startTime_; +} + +void ListActionRecordsRequest::setStartTime(integer startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); +} + +string ListActionRecordsRequest::getUserId() const { + return userId_; +} + +void ListActionRecordsRequest::setUserId(string userId) { + userId_ = userId; + setParameter(std::string("userId"), std::to_string(userId)); +} + diff --git a/elasticsearch/src/model/ListActionRecordsResult.cc b/elasticsearch/src/model/ListActionRecordsResult.cc new file mode 100644 index 000000000..f9e611b66 --- /dev/null +++ b/elasticsearch/src/model/ListActionRecordsResult.cc @@ -0,0 +1,139 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Elasticsearch; +using namespace AlibabaCloud::Elasticsearch::Model; + +ListActionRecordsResult::ListActionRecordsResult() : + ServiceResult() +{} + +ListActionRecordsResult::ListActionRecordsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListActionRecordsResult::~ListActionRecordsResult() +{} + +void ListActionRecordsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["actionRecord"]; + for (auto valueResultactionRecord : allResultNode) + { + ActionRecord resultObject; + if(!valueResultactionRecord["ActionName"].isNull()) + resultObject.actionName = valueResultactionRecord["ActionName"].asString(); + if(!valueResultactionRecord["ActionParams"].isNull()) + resultObject.actionParams = valueResultactionRecord["ActionParams"].asString(); + if(!valueResultactionRecord["EndTime"].isNull()) + resultObject.endTime = std::stol(valueResultactionRecord["EndTime"].asString()); + if(!valueResultactionRecord["InstanceId"].isNull()) + resultObject.instanceId = valueResultactionRecord["InstanceId"].asString(); + if(!valueResultactionRecord["Process"].isNull()) + resultObject.process = valueResultactionRecord["Process"].asString(); + if(!valueResultactionRecord["RecordDiff"].isNull()) + resultObject.recordDiff = valueResultactionRecord["RecordDiff"].asString(); + if(!valueResultactionRecord["RequestId"].isNull()) + resultObject.requestId = valueResultactionRecord["RequestId"].asString(); + if(!valueResultactionRecord["StartTime"].isNull()) + resultObject.startTime = std::stol(valueResultactionRecord["StartTime"].asString()); + if(!valueResultactionRecord["StateType"].isNull()) + resultObject.stateType = valueResultactionRecord["StateType"].asString(); + if(!valueResultactionRecord["UserId"].isNull()) + resultObject.userId = valueResultactionRecord["UserId"].asString(); + if(!valueResultactionRecord["UserType"].isNull()) + resultObject.userType = valueResultactionRecord["UserType"].asString(); + if(!valueResultactionRecord["OwnerId"].isNull()) + resultObject.ownerId = valueResultactionRecord["OwnerId"].asString(); + if(!valueResultactionRecord["UserInfo"].isNull()) + resultObject.userInfo = valueResultactionRecord["UserInfo"].asString(); + if(!valueResultactionRecord["MetaNow"].isNull()) + resultObject.metaNow = valueResultactionRecord["MetaNow"].asString(); + if(!valueResultactionRecord["MetaOld"].isNull()) + resultObject.metaOld = valueResultactionRecord["MetaOld"].asString(); + auto allStatusInfoNode = valueResultactionRecord["StatusInfo"]["statusInfoItem"]; + for (auto valueResultactionRecordStatusInfostatusInfoItem : allStatusInfoNode) + { + ActionRecord::StatusInfoItem statusInfoObject; + if(!valueResultactionRecordStatusInfostatusInfoItem["subState"].isNull()) + statusInfoObject.subState = valueResultactionRecordStatusInfostatusInfoItem["subState"].asString(); + if(!valueResultactionRecordStatusInfostatusInfoItem["nodeCount"].isNull()) + statusInfoObject.nodeCount = std::stoi(valueResultactionRecordStatusInfostatusInfoItem["nodeCount"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItem["completeNodeCount"].isNull()) + statusInfoObject.completeNodeCount = std::stoi(valueResultactionRecordStatusInfostatusInfoItem["completeNodeCount"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItem["exception"].isNull()) + statusInfoObject.exception = valueResultactionRecordStatusInfostatusInfoItem["exception"].asString(); + if(!valueResultactionRecordStatusInfostatusInfoItem["latencyMills"].isNull()) + statusInfoObject.latencyMills = std::stol(valueResultactionRecordStatusInfostatusInfoItem["latencyMills"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItem["process"].isNull()) + statusInfoObject.process = valueResultactionRecordStatusInfostatusInfoItem["process"].asString(); + if(!valueResultactionRecordStatusInfostatusInfoItem["startTime"].isNull()) + statusInfoObject.startTime = std::stol(valueResultactionRecordStatusInfostatusInfoItem["startTime"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItem["endTime"].isNull()) + statusInfoObject.endTime = std::stol(valueResultactionRecordStatusInfostatusInfoItem["endTime"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItem["stateType"].isNull()) + statusInfoObject.stateType = valueResultactionRecordStatusInfostatusInfoItem["stateType"].asString(); + auto allsubStatusInfoNode = valueResultactionRecordStatusInfostatusInfoItem["subStatusInfo"]["subStatusInfoItem"]; + for (auto valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem : allsubStatusInfoNode) + { + ActionRecord::StatusInfoItem::SubStatusInfoItem subStatusInfoObject; + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["subState"].isNull()) + subStatusInfoObject.subState = valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["subState"].asString(); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["nodeCount"].isNull()) + subStatusInfoObject.nodeCount = std::stoi(valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["nodeCount"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["completeNodeCount"].isNull()) + subStatusInfoObject.completeNodeCount = std::stoi(valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["completeNodeCount"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["exception"].isNull()) + subStatusInfoObject.exception = valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["exception"].asString(); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["latencyMills"].isNull()) + subStatusInfoObject.latencyMills = std::stol(valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["latencyMills"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["process"].isNull()) + subStatusInfoObject.process = valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["process"].asString(); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["startTime"].isNull()) + subStatusInfoObject.startTime = std::stol(valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["startTime"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["endTime"].isNull()) + subStatusInfoObject.endTime = std::stol(valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["endTime"].asString()); + if(!valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["stateType"].isNull()) + subStatusInfoObject.stateType = valueResultactionRecordStatusInfostatusInfoItemsubStatusInfosubStatusInfoItem["stateType"].asString(); + statusInfoObject.subStatusInfo.push_back(subStatusInfoObject); + } + resultObject.statusInfo.push_back(statusInfoObject); + } + auto allActionResultAccessList = value["ActionResultAccessList"]["actionResultAccessList"]; + for (auto value : allActionResultAccessList) + resultObject.actionResultAccessList.push_back(value.asString()); + auto allRecordIds = value["RecordIds"]["recordIds"]; + for (auto value : allRecordIds) + resultObject.recordIds.push_back(value.asString()); + result_.push_back(resultObject); + } + +} + +std::vector ListActionRecordsResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/ListAllNodeRequest.cc b/elasticsearch/src/model/ListAllNodeRequest.cc index c178544fe..6a4ba2f73 100644 --- a/elasticsearch/src/model/ListAllNodeRequest.cc +++ b/elasticsearch/src/model/ListAllNodeRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListAllNodeRequest; - -ListAllNodeRequest::ListAllNodeRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/nodes"); - setMethod(HttpRequest::Method::Get); -} - -ListAllNodeRequest::~ListAllNodeRequest() -{} - -std::string ListAllNodeRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListAllNodeRequest; + +ListAllNodeRequest::ListAllNodeRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/nodes"}; + setMethod(HttpRequest::Method::Get); } -void ListAllNodeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListAllNodeRequest::~ListAllNodeRequest() {} + +string ListAllNodeRequest::getInstanceId() const { + return instanceId_; } -bool ListAllNodeRequest::getExtended()const -{ - return extended_; +void ListAllNodeRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListAllNodeRequest::setExtended(bool extended) -{ - extended_ = extended; - setParameter("Extended", extended ? "true" : "false"); +boolean ListAllNodeRequest::getExtended() const { + return extended_; +} + +void ListAllNodeRequest::setExtended(boolean extended) { + extended_ = extended; + setParameter(std::string("extended"), std::to_string(extended)); } diff --git a/elasticsearch/src/model/ListAlternativeSnapshotReposRequest.cc b/elasticsearch/src/model/ListAlternativeSnapshotReposRequest.cc index 681c5d324..8c5b91868 100644 --- a/elasticsearch/src/model/ListAlternativeSnapshotReposRequest.cc +++ b/elasticsearch/src/model/ListAlternativeSnapshotReposRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListAlternativeSnapshotReposRequest; - -ListAlternativeSnapshotReposRequest::ListAlternativeSnapshotReposRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/alternative-snapshot-repos"); - setMethod(HttpRequest::Method::Get); -} - -ListAlternativeSnapshotReposRequest::~ListAlternativeSnapshotReposRequest() -{} - -std::string ListAlternativeSnapshotReposRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListAlternativeSnapshotReposRequest; + +ListAlternativeSnapshotReposRequest::ListAlternativeSnapshotReposRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/alternative-snapshot-repos"}; + setMethod(HttpRequest::Method::Get); } -void ListAlternativeSnapshotReposRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListAlternativeSnapshotReposRequest::~ListAlternativeSnapshotReposRequest() {} + +string ListAlternativeSnapshotReposRequest::getInstanceId() const { + return instanceId_; } -bool ListAlternativeSnapshotReposRequest::getAlreadySetItems()const -{ - return alreadySetItems_; +void ListAlternativeSnapshotReposRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListAlternativeSnapshotReposRequest::setAlreadySetItems(bool alreadySetItems) -{ - alreadySetItems_ = alreadySetItems; - setParameter("AlreadySetItems", alreadySetItems ? "true" : "false"); +boolean ListAlternativeSnapshotReposRequest::getAlreadySetItems() const { + return alreadySetItems_; +} + +void ListAlternativeSnapshotReposRequest::setAlreadySetItems(boolean alreadySetItems) { + alreadySetItems_ = alreadySetItems; + setParameter(std::string("alreadySetItems"), std::to_string(alreadySetItems)); } diff --git a/elasticsearch/src/model/ListAlternativeSnapshotReposResult.cc b/elasticsearch/src/model/ListAlternativeSnapshotReposResult.cc index 09fc532ac..8862304f6 100644 --- a/elasticsearch/src/model/ListAlternativeSnapshotReposResult.cc +++ b/elasticsearch/src/model/ListAlternativeSnapshotReposResult.cc @@ -43,10 +43,10 @@ void ListAlternativeSnapshotReposResult::parse(const std::string &payload) for (auto valueResultrepo : allResultNode) { Repo resultObject; - if(!valueResultrepo["instanceId"].isNull()) - resultObject.instanceId = valueResultrepo["instanceId"].asString(); if(!valueResultrepo["repoPath"].isNull()) resultObject.repoPath = valueResultrepo["repoPath"].asString(); + if(!valueResultrepo["instanceId"].isNull()) + resultObject.instanceId = valueResultrepo["instanceId"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListApmRequest.cc b/elasticsearch/src/model/ListApmRequest.cc index 22c5d6b42..8b59cda26 100644 --- a/elasticsearch/src/model/ListApmRequest.cc +++ b/elasticsearch/src/model/ListApmRequest.cc @@ -1,85 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListApmRequest; - -ListApmRequest::ListApmRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/apm"); - setMethod(HttpRequest::Method::Get); -} - -ListApmRequest::~ListApmRequest() -{} - -std::string ListApmRequest::getOutput()const -{ - return output_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListApmRequest; + +ListApmRequest::ListApmRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/apm"}; + setMethod(HttpRequest::Method::Get); } -void ListApmRequest::setOutput(const std::string& output) -{ - output_ = output; - setParameter("Output", output); +ListApmRequest::~ListApmRequest() {} + +string ListApmRequest::getOutput() const { + return output_; } -std::string ListApmRequest::getInstanceId()const -{ - return instanceId_; +void ListApmRequest::setOutput(string output) { + output_ = output; + setParameter(std::string("output"), std::to_string(output)); } -void ListApmRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ListApmRequest::getInstanceId() const { + return instanceId_; } -long ListApmRequest::getSize()const -{ - return size_; +void ListApmRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } -void ListApmRequest::setSize(long size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListApmRequest::getSize() const { + return size_; } -std::string ListApmRequest::getDescription()const -{ - return description_; +void ListApmRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListApmRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +string ListApmRequest::getDescription() const { + return description_; } -long ListApmRequest::getPage()const -{ - return page_; +void ListApmRequest::setDescription(string description) { + description_ = description; + setParameter(std::string("description"), std::to_string(description)); } -void ListApmRequest::setPage(long page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListApmRequest::getPage() const { + return page_; +} + +void ListApmRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } diff --git a/elasticsearch/src/model/ListApmResult.cc b/elasticsearch/src/model/ListApmResult.cc index 51dea9879..67f665649 100644 --- a/elasticsearch/src/model/ListApmResult.cc +++ b/elasticsearch/src/model/ListApmResult.cc @@ -39,44 +39,44 @@ void ListApmResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allResultNode = value["Result"]["返回结果"]; - for (auto valueResult返回结果 : allResultNode) + auto allResultNode = value["Result"]["object"]; + for (auto valueResultobject : allResultNode) { - 返回结果 resultObject; - if(!valueResult返回结果["createdAt"].isNull()) - resultObject.createdAt = valueResult返回结果["createdAt"].asString(); - if(!valueResult返回结果["deployedReplica"].isNull()) - resultObject.deployedReplica = std::stol(valueResult返回结果["deployedReplica"].asString()); - if(!valueResult返回结果["description"].isNull()) - resultObject.description = valueResult返回结果["description"].asString(); - if(!valueResult返回结果["instanceId"].isNull()) - resultObject.instanceId = valueResult返回结果["instanceId"].asString(); - if(!valueResult返回结果["nodeAmount"].isNull()) - resultObject.nodeAmount = std::stol(valueResult返回结果["nodeAmount"].asString()); - if(!valueResult返回结果["outputES"].isNull()) - resultObject.outputES = valueResult返回结果["outputES"].asString(); - if(!valueResult返回结果["outputESUserName"].isNull()) - resultObject.outputESUserName = valueResult返回结果["outputESUserName"].asString(); - if(!valueResult返回结果["ownerId"].isNull()) - resultObject.ownerId = valueResult返回结果["ownerId"].asString(); - if(!valueResult返回结果["paymentType"].isNull()) - resultObject.paymentType = valueResult返回结果["paymentType"].asString(); - if(!valueResult返回结果["region"].isNull()) - resultObject.region = valueResult返回结果["region"].asString(); - if(!valueResult返回结果["replica"].isNull()) - resultObject.replica = std::stol(valueResult返回结果["replica"].asString()); - if(!valueResult返回结果["resourceSpec"].isNull()) - resultObject.resourceSpec = valueResult返回结果["resourceSpec"].asString(); - if(!valueResult返回结果["status"].isNull()) - resultObject.status = valueResult返回结果["status"].asString(); - if(!valueResult返回结果["version"].isNull()) - resultObject.version = valueResult返回结果["version"].asString(); - if(!valueResult返回结果["vpcId"].isNull()) - resultObject.vpcId = valueResult返回结果["vpcId"].asString(); - if(!valueResult返回结果["vsArea"].isNull()) - resultObject.vsArea = valueResult返回结果["vsArea"].asString(); - if(!valueResult返回结果["vswitchId"].isNull()) - resultObject.vswitchId = valueResult返回结果["vswitchId"].asString(); + Object resultObject; + if(!valueResultobject["createdAt"].isNull()) + resultObject.createdAt = valueResultobject["createdAt"].asString(); + if(!valueResultobject["deployedReplica"].isNull()) + resultObject.deployedReplica = std::stol(valueResultobject["deployedReplica"].asString()); + if(!valueResultobject["description"].isNull()) + resultObject.description = valueResultobject["description"].asString(); + if(!valueResultobject["instanceId"].isNull()) + resultObject.instanceId = valueResultobject["instanceId"].asString(); + if(!valueResultobject["nodeAmount"].isNull()) + resultObject.nodeAmount = std::stol(valueResultobject["nodeAmount"].asString()); + if(!valueResultobject["outputES"].isNull()) + resultObject.outputES = valueResultobject["outputES"].asString(); + if(!valueResultobject["outputESUserName"].isNull()) + resultObject.outputESUserName = valueResultobject["outputESUserName"].asString(); + if(!valueResultobject["ownerId"].isNull()) + resultObject.ownerId = valueResultobject["ownerId"].asString(); + if(!valueResultobject["paymentType"].isNull()) + resultObject.paymentType = valueResultobject["paymentType"].asString(); + if(!valueResultobject["region"].isNull()) + resultObject.region = valueResultobject["region"].asString(); + if(!valueResultobject["replica"].isNull()) + resultObject.replica = std::stol(valueResultobject["replica"].asString()); + if(!valueResultobject["resourceSpec"].isNull()) + resultObject.resourceSpec = valueResultobject["resourceSpec"].asString(); + if(!valueResultobject["status"].isNull()) + resultObject.status = valueResultobject["status"].asString(); + if(!valueResultobject["version"].isNull()) + resultObject.version = valueResultobject["version"].asString(); + if(!valueResultobject["vpcId"].isNull()) + resultObject.vpcId = valueResultobject["vpcId"].asString(); + if(!valueResultobject["vsArea"].isNull()) + resultObject.vsArea = valueResultobject["vsArea"].asString(); + if(!valueResultobject["vswitchId"].isNull()) + resultObject.vswitchId = valueResultobject["vswitchId"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; @@ -90,7 +90,7 @@ ListApmResult::Headers ListApmResult::getHeaders()const return headers_; } -std::vector ListApmResult::getResult()const +std::vector ListApmResult::getResult()const { return result_; } diff --git a/elasticsearch/src/model/ListAvailableEsInstanceIdsRequest.cc b/elasticsearch/src/model/ListAvailableEsInstanceIdsRequest.cc index 8bf5aa93b..999420093 100644 --- a/elasticsearch/src/model/ListAvailableEsInstanceIdsRequest.cc +++ b/elasticsearch/src/model/ListAvailableEsInstanceIdsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListAvailableEsInstanceIdsRequest; - -ListAvailableEsInstanceIdsRequest::ListAvailableEsInstanceIdsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/available-elasticsearch-for-centralized-management"); - setMethod(HttpRequest::Method::Get); -} - -ListAvailableEsInstanceIdsRequest::~ListAvailableEsInstanceIdsRequest() -{} - -std::string ListAvailableEsInstanceIdsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListAvailableEsInstanceIdsRequest; + +ListAvailableEsInstanceIdsRequest::ListAvailableEsInstanceIdsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/available-elasticsearch-for-centralized-management"}; + setMethod(HttpRequest::Method::Get); } -void ListAvailableEsInstanceIdsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListAvailableEsInstanceIdsRequest::~ListAvailableEsInstanceIdsRequest() {} + +string ListAvailableEsInstanceIdsRequest::getInstanceId() const { + return instanceId_; +} + +void ListAvailableEsInstanceIdsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/ListAvailableEsInstanceIdsResult.cc b/elasticsearch/src/model/ListAvailableEsInstanceIdsResult.cc index 62919207e..a94d8f838 100644 --- a/elasticsearch/src/model/ListAvailableEsInstanceIdsResult.cc +++ b/elasticsearch/src/model/ListAvailableEsInstanceIdsResult.cc @@ -43,14 +43,14 @@ void ListAvailableEsInstanceIdsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["esInstanceId"].isNull()) - resultObject.esInstanceId = valueResultResultItem["esInstanceId"].asString(); if(!valueResultResultItem["endpoint"].isNull()) resultObject.endpoint = valueResultResultItem["endpoint"].asString(); if(!valueResultResultItem["description"].isNull()) resultObject.description = valueResultResultItem["description"].asString(); if(!valueResultResultItem["kibanaEndpoint"].isNull()) resultObject.kibanaEndpoint = valueResultResultItem["kibanaEndpoint"].asString(); + if(!valueResultResultItem["esInstanceId"].isNull()) + resultObject.esInstanceId = valueResultResultItem["esInstanceId"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListCollectorsRequest.cc b/elasticsearch/src/model/ListCollectorsRequest.cc index 03a407fd8..9ca6738c5 100644 --- a/elasticsearch/src/model/ListCollectorsRequest.cc +++ b/elasticsearch/src/model/ListCollectorsRequest.cc @@ -1,96 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListCollectorsRequest; - -ListCollectorsRequest::ListCollectorsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors"); - setMethod(HttpRequest::Method::Get); -} - -ListCollectorsRequest::~ListCollectorsRequest() -{} - -std::string ListCollectorsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListCollectorsRequest; + +ListCollectorsRequest::ListCollectorsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors"}; + setMethod(HttpRequest::Method::Get); } -void ListCollectorsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListCollectorsRequest::~ListCollectorsRequest() {} + +string ListCollectorsRequest::getInstanceId() const { + return instanceId_; } -int ListCollectorsRequest::getSize()const -{ - return size_; +void ListCollectorsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } -void ListCollectorsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListCollectorsRequest::getSize() const { + return size_; } -std::string ListCollectorsRequest::getName()const -{ - return name_; +void ListCollectorsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListCollectorsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +string ListCollectorsRequest::getName() const { + return name_; } -std::string ListCollectorsRequest::getSourceType()const -{ - return sourceType_; +void ListCollectorsRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); } -void ListCollectorsRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +string ListCollectorsRequest::getSourceType() const { + return sourceType_; } -int ListCollectorsRequest::getPage()const -{ - return page_; +void ListCollectorsRequest::setSourceType(string sourceType) { + sourceType_ = sourceType; + setParameter(std::string("sourceType"), std::to_string(sourceType)); } -void ListCollectorsRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListCollectorsRequest::getPage() const { + return page_; } -std::string ListCollectorsRequest::getResId()const -{ - return resId_; +void ListCollectorsRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListCollectorsRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string ListCollectorsRequest::getResId() const { + return resId_; +} + +void ListCollectorsRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("resId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/ListCollectorsResult.cc b/elasticsearch/src/model/ListCollectorsResult.cc index 3307279d5..1b136dd68 100644 --- a/elasticsearch/src/model/ListCollectorsResult.cc +++ b/elasticsearch/src/model/ListCollectorsResult.cc @@ -43,72 +43,72 @@ void ListCollectorsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["gmtCreatedTime"].isNull()) - resultObject.gmtCreatedTime = valueResultResultItem["gmtCreatedTime"].asString(); - if(!valueResultResultItem["gmtUpdateTime"].isNull()) - resultObject.gmtUpdateTime = valueResultResultItem["gmtUpdateTime"].asString(); - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); if(!valueResultResultItem["resId"].isNull()) resultObject.resId = valueResultResultItem["resId"].asString(); - if(!valueResultResultItem["resVersion"].isNull()) - resultObject.resVersion = valueResultResultItem["resVersion"].asString(); + if(!valueResultResultItem["gmtUpdateTime"].isNull()) + resultObject.gmtUpdateTime = valueResultResultItem["gmtUpdateTime"].asString(); + if(!valueResultResultItem["dryRun"].isNull()) + resultObject.dryRun = valueResultResultItem["dryRun"].asString() == "true"; + if(!valueResultResultItem["ownerId"].isNull()) + resultObject.ownerId = valueResultResultItem["ownerId"].asString(); if(!valueResultResultItem["vpcId"].isNull()) resultObject.vpcId = valueResultResultItem["vpcId"].asString(); if(!valueResultResultItem["resType"].isNull()) resultObject.resType = valueResultResultItem["resType"].asString(); - if(!valueResultResultItem["ownerId"].isNull()) - resultObject.ownerId = valueResultResultItem["ownerId"].asString(); + if(!valueResultResultItem["resVersion"].isNull()) + resultObject.resVersion = valueResultResultItem["resVersion"].asString(); + if(!valueResultResultItem["gmtCreatedTime"].isNull()) + resultObject.gmtCreatedTime = valueResultResultItem["gmtCreatedTime"].asString(); if(!valueResultResultItem["status"].isNull()) resultObject.status = valueResultResultItem["status"].asString(); - if(!valueResultResultItem["dryRun"].isNull()) - resultObject.dryRun = valueResultResultItem["dryRun"].asString() == "true"; + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); auto allconfigsNode = valueResultResultItem["configs"]["configsItem"]; for (auto valueResultResultItemconfigsconfigsItem : allconfigsNode) { ResultItem::ConfigsItem configsObject; - if(!valueResultResultItemconfigsconfigsItem["fileName"].isNull()) - configsObject.fileName = valueResultResultItemconfigsconfigsItem["fileName"].asString(); if(!valueResultResultItemconfigsconfigsItem["content"].isNull()) configsObject.content = valueResultResultItemconfigsconfigsItem["content"].asString(); + if(!valueResultResultItemconfigsconfigsItem["fileName"].isNull()) + configsObject.fileName = valueResultResultItemconfigsconfigsItem["fileName"].asString(); resultObject.configs.push_back(configsObject); } auto allextendConfigsNode = valueResultResultItem["extendConfigs"]["extendConfigsItem"]; for (auto valueResultResultItemextendConfigsextendConfigsItem : allextendConfigsNode) { ResultItem::ExtendConfigsItem extendConfigsObject; - if(!valueResultResultItemextendConfigsextendConfigsItem["configType"].isNull()) - extendConfigsObject.configType = valueResultResultItemextendConfigsextendConfigsItem["configType"].asString(); - if(!valueResultResultItemextendConfigsextendConfigsItem["instanceId"].isNull()) - extendConfigsObject.instanceId = valueResultResultItemextendConfigsextendConfigsItem["instanceId"].asString(); - if(!valueResultResultItemextendConfigsextendConfigsItem["instanceType"].isNull()) - extendConfigsObject.instanceType = valueResultResultItemextendConfigsextendConfigsItem["instanceType"].asString(); + if(!valueResultResultItemextendConfigsextendConfigsItem["successPodsCount"].isNull()) + extendConfigsObject.successPodsCount = valueResultResultItemextendConfigsextendConfigsItem["successPodsCount"].asString(); if(!valueResultResultItemextendConfigsextendConfigsItem["protocol"].isNull()) extendConfigsObject.protocol = valueResultResultItemextendConfigsextendConfigsItem["protocol"].asString(); if(!valueResultResultItemextendConfigsextendConfigsItem["userName"].isNull()) extendConfigsObject.userName = valueResultResultItemextendConfigsextendConfigsItem["userName"].asString(); - if(!valueResultResultItemextendConfigsextendConfigsItem["enableMonitoring"].isNull()) - extendConfigsObject.enableMonitoring = valueResultResultItemextendConfigsextendConfigsItem["enableMonitoring"].asString() == "true"; + if(!valueResultResultItemextendConfigsextendConfigsItem["totalPodsCount"].isNull()) + extendConfigsObject.totalPodsCount = valueResultResultItemextendConfigsextendConfigsItem["totalPodsCount"].asString(); if(!valueResultResultItemextendConfigsextendConfigsItem["type"].isNull()) extendConfigsObject.type = valueResultResultItemextendConfigsextendConfigsItem["type"].asString(); + if(!valueResultResultItemextendConfigsextendConfigsItem["kibanaHost"].isNull()) + extendConfigsObject.kibanaHost = valueResultResultItemextendConfigsextendConfigsItem["kibanaHost"].asString(); + if(!valueResultResultItemextendConfigsextendConfigsItem["enableMonitoring"].isNull()) + extendConfigsObject.enableMonitoring = valueResultResultItemextendConfigsextendConfigsItem["enableMonitoring"].asString() == "true"; + if(!valueResultResultItemextendConfigsextendConfigsItem["configType"].isNull()) + extendConfigsObject.configType = valueResultResultItemextendConfigsextendConfigsItem["configType"].asString(); + if(!valueResultResultItemextendConfigsextendConfigsItem["instanceType"].isNull()) + extendConfigsObject.instanceType = valueResultResultItemextendConfigsextendConfigsItem["instanceType"].asString(); if(!valueResultResultItemextendConfigsextendConfigsItem["groupId"].isNull()) extendConfigsObject.groupId = valueResultResultItemextendConfigsextendConfigsItem["groupId"].asString(); if(!valueResultResultItemextendConfigsextendConfigsItem["host"].isNull()) extendConfigsObject.host = valueResultResultItemextendConfigsextendConfigsItem["host"].asString(); - if(!valueResultResultItemextendConfigsextendConfigsItem["kibanaHost"].isNull()) - extendConfigsObject.kibanaHost = valueResultResultItemextendConfigsextendConfigsItem["kibanaHost"].asString(); - if(!valueResultResultItemextendConfigsextendConfigsItem["totalPodsCount"].isNull()) - extendConfigsObject.totalPodsCount = valueResultResultItemextendConfigsextendConfigsItem["totalPodsCount"].asString(); - if(!valueResultResultItemextendConfigsextendConfigsItem["successPodsCount"].isNull()) - extendConfigsObject.successPodsCount = valueResultResultItemextendConfigsextendConfigsItem["successPodsCount"].asString(); + if(!valueResultResultItemextendConfigsextendConfigsItem["instanceId"].isNull()) + extendConfigsObject.instanceId = valueResultResultItemextendConfigsextendConfigsItem["instanceId"].asString(); auto allmachinesNode = valueResultResultItemextendConfigsextendConfigsItem["machines"]["machinesItem"]; for (auto valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem : allmachinesNode) { ResultItem::ExtendConfigsItem::MachinesItem machinesObject; - if(!valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].isNull()) - machinesObject.instanceId = valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].asString(); if(!valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem["agentStatus"].isNull()) machinesObject.agentStatus = valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem["agentStatus"].asString(); + if(!valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].isNull()) + machinesObject.instanceId = valueResultResultItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].asString(); extendConfigsObject.machines.push_back(machinesObject); } auto allHosts = value["hosts"]["hosts"]; diff --git a/elasticsearch/src/model/ListComponentIndicesRequest.cc b/elasticsearch/src/model/ListComponentIndicesRequest.cc new file mode 100644 index 000000000..4c6677730 --- /dev/null +++ b/elasticsearch/src/model/ListComponentIndicesRequest.cc @@ -0,0 +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 + +using AlibabaCloud::Elasticsearch::Model::ListComponentIndicesRequest; + +ListComponentIndicesRequest::ListComponentIndicesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/component-index"}; + setMethod(HttpRequest::Method::Get); +} + +ListComponentIndicesRequest::~ListComponentIndicesRequest() {} + +string ListComponentIndicesRequest::getInstanceId() const { + return instanceId_; +} + +void ListComponentIndicesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +integer ListComponentIndicesRequest::getSize() const { + return size_; +} + +void ListComponentIndicesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); +} + +string ListComponentIndicesRequest::getName() const { + return name_; +} + +void ListComponentIndicesRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); +} + +integer ListComponentIndicesRequest::getPage() const { + return page_; +} + +void ListComponentIndicesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/elasticsearch/src/model/ListComponentIndicesResult.cc b/elasticsearch/src/model/ListComponentIndicesResult.cc new file mode 100644 index 000000000..b2d1b1f0d --- /dev/null +++ b/elasticsearch/src/model/ListComponentIndicesResult.cc @@ -0,0 +1,81 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Elasticsearch; +using namespace AlibabaCloud::Elasticsearch::Model; + +ListComponentIndicesResult::ListComponentIndicesResult() : + ServiceResult() +{} + +ListComponentIndicesResult::ListComponentIndicesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListComponentIndicesResult::~ListComponentIndicesResult() +{} + +void ListComponentIndicesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); + auto contentNode = value["content"]; + if(!contentNode["version"].isNull()) + resultObject.content.version = std::stol(contentNode["version"].asString()); + if(!contentNode["_meta"].isNull()) + resultObject.content._meta = contentNode["_meta"].asString(); + auto _templateNode = contentNode["template"]; + auto settingsNode = _templateNode["settings"]; + auto indexNode = settingsNode["index"]; + if(!indexNode["codec"].isNull()) + resultObject.content._template.settings.index.codec = indexNode["codec"].asString(); + auto lifecycleNode = indexNode["lifecycle"]; + if(!lifecycleNode["name"].isNull()) + resultObject.content._template.settings.index.lifecycle.name = lifecycleNode["name"].asString(); + auto allComposed = value["composed"]["composed"]; + for (auto value : allComposed) + resultObject.composed.push_back(value.asString()); + result_.push_back(resultObject); + } + auto headersNode = value["Headers"]; + if(!headersNode["X-Total-Count"].isNull()) + headers_.xTotalCount = std::stol(headersNode["X-Total-Count"].asString()); + +} + +ListComponentIndicesResult::Headers ListComponentIndicesResult::getHeaders()const +{ + return headers_; +} + +std::vector ListComponentIndicesResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/ListConnectedClustersRequest.cc b/elasticsearch/src/model/ListConnectedClustersRequest.cc index 3ff722a9d..e116c8039 100644 --- a/elasticsearch/src/model/ListConnectedClustersRequest.cc +++ b/elasticsearch/src/model/ListConnectedClustersRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListConnectedClustersRequest; - -ListConnectedClustersRequest::ListConnectedClustersRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/connected-clusters"); - setMethod(HttpRequest::Method::Get); -} - -ListConnectedClustersRequest::~ListConnectedClustersRequest() -{} - -std::string ListConnectedClustersRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListConnectedClustersRequest; + +ListConnectedClustersRequest::ListConnectedClustersRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/connected-clusters"}; + setMethod(HttpRequest::Method::Get); } -void ListConnectedClustersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListConnectedClustersRequest::~ListConnectedClustersRequest() {} + +string ListConnectedClustersRequest::getInstanceId() const { + return instanceId_; +} + +void ListConnectedClustersRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/ListConnectedClustersResult.cc b/elasticsearch/src/model/ListConnectedClustersResult.cc index b17bb2d1e..66cdedbde 100644 --- a/elasticsearch/src/model/ListConnectedClustersResult.cc +++ b/elasticsearch/src/model/ListConnectedClustersResult.cc @@ -43,10 +43,10 @@ void ListConnectedClustersResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["instances"].isNull()) - resultObject.instances = valueResultResultItem["instances"].asString(); if(!valueResultResultItem["networkType"].isNull()) resultObject.networkType = valueResultResultItem["networkType"].asString(); + if(!valueResultResultItem["instances"].isNull()) + resultObject.instances = valueResultResultItem["instances"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListDataStreamsRequest.cc b/elasticsearch/src/model/ListDataStreamsRequest.cc index 1b52a019d..cf70bc81a 100644 --- a/elasticsearch/src/model/ListDataStreamsRequest.cc +++ b/elasticsearch/src/model/ListDataStreamsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListDataStreamsRequest; - -ListDataStreamsRequest::ListDataStreamsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/data-streams"); - setMethod(HttpRequest::Method::Get); -} - -ListDataStreamsRequest::~ListDataStreamsRequest() -{} - -std::string ListDataStreamsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDataStreamsRequest; + +ListDataStreamsRequest::ListDataStreamsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/data-streams"}; + setMethod(HttpRequest::Method::Get); } -void ListDataStreamsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDataStreamsRequest::~ListDataStreamsRequest() {} + +string ListDataStreamsRequest::getInstanceId() const { + return instanceId_; } -bool ListDataStreamsRequest::getIsManaged()const -{ - return isManaged_; +void ListDataStreamsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListDataStreamsRequest::setIsManaged(bool isManaged) -{ - isManaged_ = isManaged; - setParameter("IsManaged", isManaged ? "true" : "false"); +boolean ListDataStreamsRequest::getIsManaged() const { + return isManaged_; } -std::string ListDataStreamsRequest::getName()const -{ - return name_; +void ListDataStreamsRequest::setIsManaged(boolean isManaged) { + isManaged_ = isManaged; + setParameter(std::string("isManaged"), std::to_string(isManaged)); } -void ListDataStreamsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +string ListDataStreamsRequest::getName() const { + return name_; +} + +void ListDataStreamsRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); } diff --git a/elasticsearch/src/model/ListDataStreamsResult.cc b/elasticsearch/src/model/ListDataStreamsResult.cc index fcfe8cfea..f1801ff66 100644 --- a/elasticsearch/src/model/ListDataStreamsResult.cc +++ b/elasticsearch/src/model/ListDataStreamsResult.cc @@ -43,43 +43,43 @@ void ListDataStreamsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["health"].isNull()) - resultObject.health = valueResultResultItem["health"].asString(); if(!valueResultResultItem["totalStorageSize"].isNull()) resultObject.totalStorageSize = std::stol(valueResultResultItem["totalStorageSize"].asString()); - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); - if(!valueResultResultItem["managedStorageSize"].isNull()) - resultObject.managedStorageSize = std::stol(valueResultResultItem["managedStorageSize"].asString()); if(!valueResultResultItem["indexTemplateName"].isNull()) resultObject.indexTemplateName = valueResultResultItem["indexTemplateName"].asString(); if(!valueResultResultItem["ilmPolicyName"].isNull()) resultObject.ilmPolicyName = valueResultResultItem["ilmPolicyName"].asString(); + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); + if(!valueResultResultItem["health"].isNull()) + resultObject.health = valueResultResultItem["health"].asString(); + if(!valueResultResultItem["managedStorageSize"].isNull()) + resultObject.managedStorageSize = std::stol(valueResultResultItem["managedStorageSize"].asString()); auto allindicesNode = valueResultResultItem["indices"]["indicesItem"]; for (auto valueResultResultItemindicesindicesItem : allindicesNode) { ResultItem::IndicesItem indicesObject; + if(!valueResultResultItemindicesindicesItem["isManaged"].isNull()) + indicesObject.isManaged = valueResultResultItemindicesindicesItem["isManaged"].asString() == "true"; + if(!valueResultResultItemindicesindicesItem["createTime"].isNull()) + indicesObject.createTime = valueResultResultItemindicesindicesItem["createTime"].asString(); + if(!valueResultResultItemindicesindicesItem["size"].isNull()) + indicesObject.size = std::stol(valueResultResultItemindicesindicesItem["size"].asString()); + if(!valueResultResultItemindicesindicesItem["managedStatus"].isNull()) + indicesObject.managedStatus = valueResultResultItemindicesindicesItem["managedStatus"].asString(); if(!valueResultResultItemindicesindicesItem["name"].isNull()) indicesObject.name = valueResultResultItemindicesindicesItem["name"].asString(); if(!valueResultResultItemindicesindicesItem["health"].isNull()) indicesObject.health = valueResultResultItemindicesindicesItem["health"].asString(); - if(!valueResultResultItemindicesindicesItem["size"].isNull()) - indicesObject.size = std::stol(valueResultResultItemindicesindicesItem["size"].asString()); - if(!valueResultResultItemindicesindicesItem["createTime"].isNull()) - indicesObject.createTime = valueResultResultItemindicesindicesItem["createTime"].asString(); - if(!valueResultResultItemindicesindicesItem["isManaged"].isNull()) - indicesObject.isManaged = valueResultResultItemindicesindicesItem["isManaged"].asString() == "true"; - if(!valueResultResultItemindicesindicesItem["managedStatus"].isNull()) - indicesObject.managedStatus = valueResultResultItemindicesindicesItem["managedStatus"].asString(); resultObject.indices.push_back(indicesObject); } result_.push_back(resultObject); } auto headersNode = value["Headers"]; - if(!headersNode["X-Managed-Count"].isNull()) - headers_.xManagedCount = std::stoi(headersNode["X-Managed-Count"].asString()); if(!headersNode["X-Managed-StorageSize"].isNull()) headers_.xManagedStorageSize = std::stol(headersNode["X-Managed-StorageSize"].asString()); + if(!headersNode["X-Managed-Count"].isNull()) + headers_.xManagedCount = std::stoi(headersNode["X-Managed-Count"].asString()); } diff --git a/elasticsearch/src/model/ListDataTasksRequest.cc b/elasticsearch/src/model/ListDataTasksRequest.cc index 1f86f9e40..0b8c92312 100644 --- a/elasticsearch/src/model/ListDataTasksRequest.cc +++ b/elasticsearch/src/model/ListDataTasksRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListDataTasksRequest; - -ListDataTasksRequest::ListDataTasksRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/data-task"); - setMethod(HttpRequest::Method::Get); -} - -ListDataTasksRequest::~ListDataTasksRequest() -{} - -std::string ListDataTasksRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDataTasksRequest; + +ListDataTasksRequest::ListDataTasksRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/data-task"}; + setMethod(HttpRequest::Method::Get); } -void ListDataTasksRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDataTasksRequest::~ListDataTasksRequest() {} + +string ListDataTasksRequest::getInstanceId() const { + return instanceId_; +} + +void ListDataTasksRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/ListDataTasksResult.cc b/elasticsearch/src/model/ListDataTasksResult.cc index 77013586d..bc32c2d53 100644 --- a/elasticsearch/src/model/ListDataTasksResult.cc +++ b/elasticsearch/src/model/ListDataTasksResult.cc @@ -45,38 +45,38 @@ void ListDataTasksResult::parse(const std::string &payload) ResultItem resultObject; if(!valueResultResultItem["createTime"].isNull()) resultObject.createTime = valueResultResultItem["createTime"].asString(); - if(!valueResultResultItem["status"].isNull()) - resultObject.status = valueResultResultItem["status"].asString(); if(!valueResultResultItem["taskId"].isNull()) resultObject.taskId = valueResultResultItem["taskId"].asString(); + if(!valueResultResultItem["status"].isNull()) + resultObject.status = valueResultResultItem["status"].asString(); auto sinkClusterNode = value["sinkCluster"]; - if(!sinkClusterNode["dataSourceType"].isNull()) - resultObject.sinkCluster.dataSourceType = sinkClusterNode["dataSourceType"].asString(); - if(!sinkClusterNode["endpoint"].isNull()) - resultObject.sinkCluster.endpoint = sinkClusterNode["endpoint"].asString(); if(!sinkClusterNode["index"].isNull()) resultObject.sinkCluster.index = sinkClusterNode["index"].asString(); if(!sinkClusterNode["type"].isNull()) resultObject.sinkCluster.type = sinkClusterNode["type"].asString(); + if(!sinkClusterNode["endpoint"].isNull()) + resultObject.sinkCluster.endpoint = sinkClusterNode["endpoint"].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["vpcInstanceId"].isNull()) + resultObject.sinkCluster.vpcInstanceId = sinkClusterNode["vpcInstanceId"].asString(); + if(!sinkClusterNode["dataSourceType"].isNull()) + resultObject.sinkCluster.dataSourceType = sinkClusterNode["dataSourceType"].asString(); auto sourceClusterNode = value["sourceCluster"]; - if(!sourceClusterNode["dataSourceType"].isNull()) - resultObject.sourceCluster.dataSourceType = sourceClusterNode["dataSourceType"].asString(); if(!sourceClusterNode["index"].isNull()) resultObject.sourceCluster.index = sourceClusterNode["index"].asString(); - if(!sourceClusterNode["mapping"].isNull()) - resultObject.sourceCluster.mapping = sourceClusterNode["mapping"].asString(); - if(!sourceClusterNode["routing"].isNull()) - resultObject.sourceCluster.routing = sourceClusterNode["routing"].asString(); if(!sourceClusterNode["settings"].isNull()) resultObject.sourceCluster.settings = sourceClusterNode["settings"].asString(); + if(!sourceClusterNode["mapping"].isNull()) + resultObject.sourceCluster.mapping = sourceClusterNode["mapping"].asString(); if(!sourceClusterNode["type"].isNull()) resultObject.sourceCluster.type = sourceClusterNode["type"].asString(); + if(!sourceClusterNode["routing"].isNull()) + resultObject.sourceCluster.routing = sourceClusterNode["routing"].asString(); + if(!sourceClusterNode["dataSourceType"].isNull()) + resultObject.sourceCluster.dataSourceType = sourceClusterNode["dataSourceType"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListDefaultCollectorConfigurationsRequest.cc b/elasticsearch/src/model/ListDefaultCollectorConfigurationsRequest.cc index c39896b59..6ac2e34ce 100644 --- a/elasticsearch/src/model/ListDefaultCollectorConfigurationsRequest.cc +++ b/elasticsearch/src/model/ListDefaultCollectorConfigurationsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListDefaultCollectorConfigurationsRequest; - -ListDefaultCollectorConfigurationsRequest::ListDefaultCollectorConfigurationsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/beats/default-configurations"); - setMethod(HttpRequest::Method::Get); -} - -ListDefaultCollectorConfigurationsRequest::~ListDefaultCollectorConfigurationsRequest() -{} - -std::string ListDefaultCollectorConfigurationsRequest::getResType()const -{ - return resType_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDefaultCollectorConfigurationsRequest; + +ListDefaultCollectorConfigurationsRequest::ListDefaultCollectorConfigurationsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/beats/default-configurations"}; + setMethod(HttpRequest::Method::Get); } -void ListDefaultCollectorConfigurationsRequest::setResType(const std::string& resType) -{ - resType_ = resType; - setParameter("ResType", resType); +ListDefaultCollectorConfigurationsRequest::~ListDefaultCollectorConfigurationsRequest() {} + +string ListDefaultCollectorConfigurationsRequest::getResType() const { + return resType_; } -std::string ListDefaultCollectorConfigurationsRequest::getResVersion()const -{ - return resVersion_; +void ListDefaultCollectorConfigurationsRequest::setResType(string resType) { + resType_ = resType; + setParameter(std::string("resType"), std::to_string(resType)); } -void ListDefaultCollectorConfigurationsRequest::setResVersion(const std::string& resVersion) -{ - resVersion_ = resVersion; - setParameter("ResVersion", resVersion); +string ListDefaultCollectorConfigurationsRequest::getResVersion() const { + return resVersion_; } -std::string ListDefaultCollectorConfigurationsRequest::getSourceType()const -{ - return sourceType_; +void ListDefaultCollectorConfigurationsRequest::setResVersion(string resVersion) { + resVersion_ = resVersion; + setParameter(std::string("resVersion"), std::to_string(resVersion)); } -void ListDefaultCollectorConfigurationsRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +string ListDefaultCollectorConfigurationsRequest::getSourceType() const { + return sourceType_; +} + +void ListDefaultCollectorConfigurationsRequest::setSourceType(string sourceType) { + sourceType_ = sourceType; + setParameter(std::string("sourceType"), std::to_string(sourceType)); } diff --git a/elasticsearch/src/model/ListDefaultCollectorConfigurationsResult.cc b/elasticsearch/src/model/ListDefaultCollectorConfigurationsResult.cc index eb9b2695b..2812c0ead 100644 --- a/elasticsearch/src/model/ListDefaultCollectorConfigurationsResult.cc +++ b/elasticsearch/src/model/ListDefaultCollectorConfigurationsResult.cc @@ -43,10 +43,10 @@ void ListDefaultCollectorConfigurationsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["fileName"].isNull()) - resultObject.fileName = valueResultResultItem["fileName"].asString(); if(!valueResultResultItem["content"].isNull()) resultObject.content = valueResultResultItem["content"].asString(); + if(!valueResultResultItem["fileName"].isNull()) + resultObject.fileName = valueResultResultItem["fileName"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListDeprecatedTemplatesRequest.cc b/elasticsearch/src/model/ListDeprecatedTemplatesRequest.cc new file mode 100644 index 000000000..19e3404f6 --- /dev/null +++ b/elasticsearch/src/model/ListDeprecatedTemplatesRequest.cc @@ -0,0 +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 + +using AlibabaCloud::Elasticsearch::Model::ListDeprecatedTemplatesRequest; + +ListDeprecatedTemplatesRequest::ListDeprecatedTemplatesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/deprecated-templates"}; + setMethod(HttpRequest::Method::Get); +} + +ListDeprecatedTemplatesRequest::~ListDeprecatedTemplatesRequest() {} + +string ListDeprecatedTemplatesRequest::getInstanceId() const { + return instanceId_; +} + +void ListDeprecatedTemplatesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +integer ListDeprecatedTemplatesRequest::getSize() const { + return size_; +} + +void ListDeprecatedTemplatesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); +} + +string ListDeprecatedTemplatesRequest::getName() const { + return name_; +} + +void ListDeprecatedTemplatesRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); +} + +integer ListDeprecatedTemplatesRequest::getPage() const { + return page_; +} + +void ListDeprecatedTemplatesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + diff --git a/elasticsearch/src/model/ListDeprecatedTemplatesResult.cc b/elasticsearch/src/model/ListDeprecatedTemplatesResult.cc new file mode 100644 index 000000000..a7752d69f --- /dev/null +++ b/elasticsearch/src/model/ListDeprecatedTemplatesResult.cc @@ -0,0 +1,81 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Elasticsearch; +using namespace AlibabaCloud::Elasticsearch::Model; + +ListDeprecatedTemplatesResult::ListDeprecatedTemplatesResult() : + ServiceResult() +{} + +ListDeprecatedTemplatesResult::ListDeprecatedTemplatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListDeprecatedTemplatesResult::~ListDeprecatedTemplatesResult() +{} + +void ListDeprecatedTemplatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["dataStream"].isNull()) + resultObject.dataStream = valueResultResultItem["dataStream"].asString() == "true"; + if(!valueResultResultItem["indexTemplate"].isNull()) + resultObject.indexTemplate = valueResultResultItem["indexTemplate"].asString(); + if(!valueResultResultItem["order"].isNull()) + resultObject.order = std::stol(valueResultResultItem["order"].asString()); + if(!valueResultResultItem["version"].isNull()) + resultObject.version = valueResultResultItem["version"].asString(); + auto _templateNode = value["template"]; + if(!_templateNode["aliases"].isNull()) + resultObject._template.aliases = _templateNode["aliases"].asString(); + if(!_templateNode["mappings"].isNull()) + resultObject._template.mappings = _templateNode["mappings"].asString(); + if(!_templateNode["settings"].isNull()) + resultObject._template.settings = _templateNode["settings"].asString(); + auto allIndexPatterns = value["indexPatterns"]["indexPatterns"]; + for (auto value : allIndexPatterns) + resultObject.indexPatterns.push_back(value.asString()); + result_.push_back(resultObject); + } + auto headersNode = value["Headers"]; + if(!headersNode["X-Total-Count"].isNull()) + headers_.xTotalCount = std::stol(headersNode["X-Total-Count"].asString()); + +} + +ListDeprecatedTemplatesResult::Headers ListDeprecatedTemplatesResult::getHeaders()const +{ + return headers_; +} + +std::vector ListDeprecatedTemplatesResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/ListDiagnoseIndicesRequest.cc b/elasticsearch/src/model/ListDiagnoseIndicesRequest.cc index 435ee5cd9..fcee6b808 100644 --- a/elasticsearch/src/model/ListDiagnoseIndicesRequest.cc +++ b/elasticsearch/src/model/ListDiagnoseIndicesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListDiagnoseIndicesRequest; - -ListDiagnoseIndicesRequest::ListDiagnoseIndicesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/diagnosis/instances/[InstanceId]/indices"); - setMethod(HttpRequest::Method::Get); -} - -ListDiagnoseIndicesRequest::~ListDiagnoseIndicesRequest() -{} - -std::string ListDiagnoseIndicesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDiagnoseIndicesRequest; + +ListDiagnoseIndicesRequest::ListDiagnoseIndicesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/diagnosis/instances/[InstanceId]/indices"}; + setMethod(HttpRequest::Method::Get); } -void ListDiagnoseIndicesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDiagnoseIndicesRequest::~ListDiagnoseIndicesRequest() {} + +string ListDiagnoseIndicesRequest::getInstanceId() const { + return instanceId_; } -std::string ListDiagnoseIndicesRequest::getLang()const -{ - return lang_; +void ListDiagnoseIndicesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListDiagnoseIndicesRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +string ListDiagnoseIndicesRequest::getLang() const { + return lang_; +} + +void ListDiagnoseIndicesRequest::setLang(string lang) { + lang_ = lang; + setParameter(std::string("lang"), std::to_string(lang)); } diff --git a/elasticsearch/src/model/ListDiagnoseReportIdsRequest.cc b/elasticsearch/src/model/ListDiagnoseReportIdsRequest.cc index f49dedb91..943e66a6f 100644 --- a/elasticsearch/src/model/ListDiagnoseReportIdsRequest.cc +++ b/elasticsearch/src/model/ListDiagnoseReportIdsRequest.cc @@ -1,107 +1,91 @@ /* * 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 - -using AlibabaCloud::Elasticsearch::Model::ListDiagnoseReportIdsRequest; - -ListDiagnoseReportIdsRequest::ListDiagnoseReportIdsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/diagnosis/instances/[InstanceId]/report-ids"); - setMethod(HttpRequest::Method::Get); -} - -ListDiagnoseReportIdsRequest::~ListDiagnoseReportIdsRequest() -{} - -std::string ListDiagnoseReportIdsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDiagnoseReportIdsRequest; + +ListDiagnoseReportIdsRequest::ListDiagnoseReportIdsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/diagnosis/instances/[InstanceId]/report-ids"}; + setMethod(HttpRequest::Method::Get); } -void ListDiagnoseReportIdsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDiagnoseReportIdsRequest::~ListDiagnoseReportIdsRequest() {} + +string ListDiagnoseReportIdsRequest::getInstanceId() const { + return instanceId_; } -int ListDiagnoseReportIdsRequest::getSize()const -{ - return size_; +void ListDiagnoseReportIdsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListDiagnoseReportIdsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListDiagnoseReportIdsRequest::getSize() const { + return size_; } -long ListDiagnoseReportIdsRequest::getEndTime()const -{ - return endTime_; +void ListDiagnoseReportIdsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListDiagnoseReportIdsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +integer ListDiagnoseReportIdsRequest::getEndTime() const { + return endTime_; } -long ListDiagnoseReportIdsRequest::getStartTime()const -{ - return startTime_; +void ListDiagnoseReportIdsRequest::setEndTime(integer endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); } -void ListDiagnoseReportIdsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +integer ListDiagnoseReportIdsRequest::getStartTime() const { + return startTime_; } -int ListDiagnoseReportIdsRequest::getPage()const -{ - return page_; +void ListDiagnoseReportIdsRequest::setStartTime(integer startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); } -void ListDiagnoseReportIdsRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListDiagnoseReportIdsRequest::getPage() const { + return page_; } -std::string ListDiagnoseReportIdsRequest::getTrigger()const -{ - return trigger_; +void ListDiagnoseReportIdsRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListDiagnoseReportIdsRequest::setTrigger(const std::string& trigger) -{ - trigger_ = trigger; - setParameter("Trigger", trigger); +string ListDiagnoseReportIdsRequest::getTrigger() const { + return trigger_; } -std::string ListDiagnoseReportIdsRequest::getLang()const -{ - return lang_; +void ListDiagnoseReportIdsRequest::setTrigger(string trigger) { + trigger_ = trigger; + setParameter(std::string("trigger"), std::to_string(trigger)); } -void ListDiagnoseReportIdsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +string ListDiagnoseReportIdsRequest::getLang() const { + return lang_; +} + +void ListDiagnoseReportIdsRequest::setLang(string lang) { + lang_ = lang; + setParameter(std::string("lang"), std::to_string(lang)); } diff --git a/elasticsearch/src/model/ListDiagnoseReportRequest.cc b/elasticsearch/src/model/ListDiagnoseReportRequest.cc index 7d0fd6aba..93bb38c6f 100644 --- a/elasticsearch/src/model/ListDiagnoseReportRequest.cc +++ b/elasticsearch/src/model/ListDiagnoseReportRequest.cc @@ -1,118 +1,100 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListDiagnoseReportRequest; - -ListDiagnoseReportRequest::ListDiagnoseReportRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/diagnosis/instances/[InstanceId]/reports"); - setMethod(HttpRequest::Method::Get); -} - -ListDiagnoseReportRequest::~ListDiagnoseReportRequest() -{} - -std::string ListDiagnoseReportRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDiagnoseReportRequest; + +ListDiagnoseReportRequest::ListDiagnoseReportRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/diagnosis/instances/[InstanceId]/reports"}; + setMethod(HttpRequest::Method::Get); } -void ListDiagnoseReportRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDiagnoseReportRequest::~ListDiagnoseReportRequest() {} + +string ListDiagnoseReportRequest::getInstanceId() const { + return instanceId_; } -int ListDiagnoseReportRequest::getSize()const -{ - return size_; +void ListDiagnoseReportRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListDiagnoseReportRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListDiagnoseReportRequest::getSize() const { + return size_; } -long ListDiagnoseReportRequest::getEndTime()const -{ - return endTime_; +void ListDiagnoseReportRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListDiagnoseReportRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +integer ListDiagnoseReportRequest::getEndTime() const { + return endTime_; } -long ListDiagnoseReportRequest::getStartTime()const -{ - return startTime_; +void ListDiagnoseReportRequest::setEndTime(integer endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); } -void ListDiagnoseReportRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +integer ListDiagnoseReportRequest::getStartTime() const { + return startTime_; } -int ListDiagnoseReportRequest::getPage()const -{ - return page_; +void ListDiagnoseReportRequest::setStartTime(integer startTime) { + startTime_ = startTime; + setParameter(std::string("startTime"), std::to_string(startTime)); } -void ListDiagnoseReportRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListDiagnoseReportRequest::getPage() const { + return page_; } -bool ListDiagnoseReportRequest::getDetail()const -{ - return detail_; +void ListDiagnoseReportRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListDiagnoseReportRequest::setDetail(bool detail) -{ - detail_ = detail; - setParameter("Detail", detail ? "true" : "false"); +boolean ListDiagnoseReportRequest::getDetail() const { + return detail_; } -std::string ListDiagnoseReportRequest::getTrigger()const -{ - return trigger_; +void ListDiagnoseReportRequest::setDetail(boolean detail) { + detail_ = detail; + setParameter(std::string("detail"), std::to_string(detail)); } -void ListDiagnoseReportRequest::setTrigger(const std::string& trigger) -{ - trigger_ = trigger; - setParameter("Trigger", trigger); +string ListDiagnoseReportRequest::getTrigger() const { + return trigger_; } -std::string ListDiagnoseReportRequest::getLang()const -{ - return lang_; +void ListDiagnoseReportRequest::setTrigger(string trigger) { + trigger_ = trigger; + setParameter(std::string("trigger"), std::to_string(trigger)); } -void ListDiagnoseReportRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +string ListDiagnoseReportRequest::getLang() const { + return lang_; +} + +void ListDiagnoseReportRequest::setLang(string lang) { + lang_ = lang; + setParameter(std::string("lang"), std::to_string(lang)); } diff --git a/elasticsearch/src/model/ListDiagnoseReportResult.cc b/elasticsearch/src/model/ListDiagnoseReportResult.cc index 38820d026..77e9d5c5d 100644 --- a/elasticsearch/src/model/ListDiagnoseReportResult.cc +++ b/elasticsearch/src/model/ListDiagnoseReportResult.cc @@ -43,18 +43,18 @@ void ListDiagnoseReportResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["reportId"].isNull()) - resultObject.reportId = valueResultResultItem["reportId"].asString(); - if(!valueResultResultItem["instanceId"].isNull()) - resultObject.instanceId = valueResultResultItem["instanceId"].asString(); - if(!valueResultResultItem["state"].isNull()) - resultObject.state = valueResultResultItem["state"].asString(); if(!valueResultResultItem["trigger"].isNull()) resultObject.trigger = valueResultResultItem["trigger"].asString(); - if(!valueResultResultItem["health"].isNull()) - resultObject.health = valueResultResultItem["health"].asString(); if(!valueResultResultItem["createTime"].isNull()) resultObject.createTime = std::stol(valueResultResultItem["createTime"].asString()); + if(!valueResultResultItem["reportId"].isNull()) + resultObject.reportId = valueResultResultItem["reportId"].asString(); + if(!valueResultResultItem["state"].isNull()) + resultObject.state = valueResultResultItem["state"].asString(); + if(!valueResultResultItem["instanceId"].isNull()) + resultObject.instanceId = valueResultResultItem["instanceId"].asString(); + if(!valueResultResultItem["health"].isNull()) + resultObject.health = valueResultResultItem["health"].asString(); auto alldiagnoseItemsNode = valueResultResultItem["diagnoseItems"]["diagnoseItemsItem"]; for (auto valueResultResultItemdiagnoseItemsdiagnoseItemsItem : alldiagnoseItemsNode) { @@ -64,16 +64,16 @@ void ListDiagnoseReportResult::parse(const std::string &payload) if(!valueResultResultItemdiagnoseItemsdiagnoseItemsItem["health"].isNull()) diagnoseItemsObject.health = valueResultResultItemdiagnoseItemsdiagnoseItemsItem["health"].asString(); auto detailNode = value["detail"]; + if(!detailNode["type"].isNull()) + diagnoseItemsObject.detail.type = detailNode["type"].asString(); if(!detailNode["name"].isNull()) diagnoseItemsObject.detail.name = detailNode["name"].asString(); if(!detailNode["desc"].isNull()) diagnoseItemsObject.detail.desc = detailNode["desc"].asString(); - if(!detailNode["type"].isNull()) - diagnoseItemsObject.detail.type = detailNode["type"].asString(); - if(!detailNode["suggest"].isNull()) - diagnoseItemsObject.detail.suggest = detailNode["suggest"].asString(); if(!detailNode["result"].isNull()) diagnoseItemsObject.detail.result = detailNode["result"].asString(); + if(!detailNode["suggest"].isNull()) + diagnoseItemsObject.detail.suggest = detailNode["suggest"].asString(); resultObject.diagnoseItems.push_back(diagnoseItemsObject); } result_.push_back(resultObject); diff --git a/elasticsearch/src/model/ListDictInformationRequest.cc b/elasticsearch/src/model/ListDictInformationRequest.cc index c37d24620..ae4fa2c89 100644 --- a/elasticsearch/src/model/ListDictInformationRequest.cc +++ b/elasticsearch/src/model/ListDictInformationRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListDictInformationRequest; - -ListDictInformationRequest::ListDictInformationRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/dict/_info"); - setMethod(HttpRequest::Method::Get); -} - -ListDictInformationRequest::~ListDictInformationRequest() -{} - -std::string ListDictInformationRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDictInformationRequest; + +ListDictInformationRequest::ListDictInformationRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/dict/_info"}; + setMethod(HttpRequest::Method::Get); } -void ListDictInformationRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDictInformationRequest::~ListDictInformationRequest() {} + +string ListDictInformationRequest::getInstanceId() const { + return instanceId_; } -std::string ListDictInformationRequest::getAnalyzerType()const -{ - return analyzerType_; +void ListDictInformationRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListDictInformationRequest::setAnalyzerType(const std::string& analyzerType) -{ - analyzerType_ = analyzerType; - setParameter("AnalyzerType", analyzerType); +string ListDictInformationRequest::getAnalyzerType() const { + return analyzerType_; } -std::string ListDictInformationRequest::getBucketName()const -{ - return bucketName_; +void ListDictInformationRequest::setAnalyzerType(string analyzerType) { + analyzerType_ = analyzerType; + setParameter(std::string("analyzerType"), std::to_string(analyzerType)); } -void ListDictInformationRequest::setBucketName(const std::string& bucketName) -{ - bucketName_ = bucketName; - setParameter("BucketName", bucketName); +string ListDictInformationRequest::getBucketName() const { + return bucketName_; } -std::string ListDictInformationRequest::getKey()const -{ - return key_; +void ListDictInformationRequest::setBucketName(string bucketName) { + bucketName_ = bucketName; + setParameter(std::string("bucketName"), std::to_string(bucketName)); } -void ListDictInformationRequest::setKey(const std::string& key) -{ - key_ = key; - setParameter("Key", key); +string ListDictInformationRequest::getKey() const { + return key_; +} + +void ListDictInformationRequest::setKey(string key) { + key_ = key; + setParameter(std::string("key"), std::to_string(key)); } diff --git a/elasticsearch/src/model/ListDictInformationResult.cc b/elasticsearch/src/model/ListDictInformationResult.cc index 4d5bdcc4f..aef4ae982 100644 --- a/elasticsearch/src/model/ListDictInformationResult.cc +++ b/elasticsearch/src/model/ListDictInformationResult.cc @@ -40,15 +40,15 @@ void ListDictInformationResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; - if(!resultNode["fileSize"].isNull()) - result_.fileSize = std::stol(resultNode["fileSize"].asString()); if(!resultNode["type"].isNull()) result_.type = resultNode["type"].asString(); + if(!resultNode["fileSize"].isNull()) + result_.fileSize = std::stol(resultNode["fileSize"].asString()); auto ossObjectNode = resultNode["ossObject"]; - if(!ossObjectNode["bucketName"].isNull()) - result_.ossObject.bucketName = ossObjectNode["bucketName"].asString(); if(!ossObjectNode["key"].isNull()) result_.ossObject.key = ossObjectNode["key"].asString(); + if(!ossObjectNode["bucketName"].isNull()) + result_.ossObject.bucketName = ossObjectNode["bucketName"].asString(); if(!ossObjectNode["etag"].isNull()) result_.ossObject.etag = ossObjectNode["etag"].asString(); diff --git a/elasticsearch/src/model/ListDictsRequest.cc b/elasticsearch/src/model/ListDictsRequest.cc index 9c781ecd5..8fea24466 100644 --- a/elasticsearch/src/model/ListDictsRequest.cc +++ b/elasticsearch/src/model/ListDictsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListDictsRequest; - -ListDictsRequest::ListDictsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/dicts"); - setMethod(HttpRequest::Method::Get); -} - -ListDictsRequest::~ListDictsRequest() -{} - -std::string ListDictsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListDictsRequest; + +ListDictsRequest::ListDictsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/dicts"}; + setMethod(HttpRequest::Method::Get); } -void ListDictsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListDictsRequest::~ListDictsRequest() {} + +string ListDictsRequest::getInstanceId() const { + return instanceId_; } -std::string ListDictsRequest::getAnalyzerType()const -{ - return analyzerType_; +void ListDictsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListDictsRequest::setAnalyzerType(const std::string& analyzerType) -{ - analyzerType_ = analyzerType; - setParameter("AnalyzerType", analyzerType); +string ListDictsRequest::getAnalyzerType() const { + return analyzerType_; } -std::string ListDictsRequest::getName()const -{ - return name_; +void ListDictsRequest::setAnalyzerType(string analyzerType) { + analyzerType_ = analyzerType; + setParameter(std::string("analyzerType"), std::to_string(analyzerType)); } -void ListDictsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +string ListDictsRequest::getName() const { + return name_; +} + +void ListDictsRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); } diff --git a/elasticsearch/src/model/ListDictsResult.cc b/elasticsearch/src/model/ListDictsResult.cc index cc513a256..66b333052 100644 --- a/elasticsearch/src/model/ListDictsResult.cc +++ b/elasticsearch/src/model/ListDictsResult.cc @@ -43,16 +43,16 @@ void ListDictsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); if(!valueResultResultItem["fileSize"].isNull()) resultObject.fileSize = std::stol(valueResultResultItem["fileSize"].asString()); - if(!valueResultResultItem["type"].isNull()) - resultObject.type = valueResultResultItem["type"].asString(); - if(!valueResultResultItem["sourceType"].isNull()) - resultObject.sourceType = valueResultResultItem["sourceType"].asString(); if(!valueResultResultItem["downloadUrl"].isNull()) resultObject.downloadUrl = valueResultResultItem["downloadUrl"].asString(); + if(!valueResultResultItem["sourceType"].isNull()) + resultObject.sourceType = valueResultResultItem["sourceType"].asString(); + if(!valueResultResultItem["type"].isNull()) + resultObject.type = valueResultResultItem["type"].asString(); + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; diff --git a/elasticsearch/src/model/ListEcsInstancesRequest.cc b/elasticsearch/src/model/ListEcsInstancesRequest.cc index 04e3534dc..c7bffb218 100644 --- a/elasticsearch/src/model/ListEcsInstancesRequest.cc +++ b/elasticsearch/src/model/ListEcsInstancesRequest.cc @@ -1,96 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListEcsInstancesRequest; - -ListEcsInstancesRequest::ListEcsInstancesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/ecs"); - setMethod(HttpRequest::Method::Get); -} - -ListEcsInstancesRequest::~ListEcsInstancesRequest() -{} - -std::string ListEcsInstancesRequest::getEcsInstanceName()const -{ - return ecsInstanceName_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListEcsInstancesRequest; + +ListEcsInstancesRequest::ListEcsInstancesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/ecs"}; + setMethod(HttpRequest::Method::Get); } -void ListEcsInstancesRequest::setEcsInstanceName(const std::string& ecsInstanceName) -{ - ecsInstanceName_ = ecsInstanceName; - setParameter("EcsInstanceName", ecsInstanceName); +ListEcsInstancesRequest::~ListEcsInstancesRequest() {} + +string ListEcsInstancesRequest::getEcsInstanceName() const { + return ecsInstanceName_; } -std::string ListEcsInstancesRequest::getEcsInstanceIds()const -{ - return ecsInstanceIds_; +void ListEcsInstancesRequest::setEcsInstanceName(string ecsInstanceName) { + ecsInstanceName_ = ecsInstanceName; + setParameter(std::string("ecsInstanceName"), std::to_string(ecsInstanceName)); } -void ListEcsInstancesRequest::setEcsInstanceIds(const std::string& ecsInstanceIds) -{ - ecsInstanceIds_ = ecsInstanceIds; - setParameter("EcsInstanceIds", ecsInstanceIds); +string ListEcsInstancesRequest::getEcsInstanceIds() const { + return ecsInstanceIds_; } -int ListEcsInstancesRequest::getSize()const -{ - return size_; +void ListEcsInstancesRequest::setEcsInstanceIds(string ecsInstanceIds) { + ecsInstanceIds_ = ecsInstanceIds; + setParameter(std::string("ecsInstanceIds"), std::to_string(ecsInstanceIds)); } -void ListEcsInstancesRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListEcsInstancesRequest::getSize() const { + return size_; } -std::string ListEcsInstancesRequest::getVpcId()const -{ - return vpcId_; +void ListEcsInstancesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListEcsInstancesRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +string ListEcsInstancesRequest::getVpcId() const { + return vpcId_; } -int ListEcsInstancesRequest::getPage()const -{ - return page_; +void ListEcsInstancesRequest::setVpcId(string vpcId) { + vpcId_ = vpcId; + setParameter(std::string("vpcId"), std::to_string(vpcId)); } -void ListEcsInstancesRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListEcsInstancesRequest::getPage() const { + return page_; } -std::string ListEcsInstancesRequest::getTags()const -{ - return tags_; +void ListEcsInstancesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListEcsInstancesRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +string ListEcsInstancesRequest::getTags() const { + return tags_; +} + +void ListEcsInstancesRequest::setTags(string tags) { + tags_ = tags; + setParameter(std::string("tags"), std::to_string(tags)); } diff --git a/elasticsearch/src/model/ListEcsInstancesResult.cc b/elasticsearch/src/model/ListEcsInstancesResult.cc index 1a44b94b9..264d281b2 100644 --- a/elasticsearch/src/model/ListEcsInstancesResult.cc +++ b/elasticsearch/src/model/ListEcsInstancesResult.cc @@ -43,90 +43,90 @@ void ListEcsInstancesResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["ecsInstanceId"].isNull()) - resultObject.ecsInstanceId = valueResultResultItem["ecsInstanceId"].asString(); + if(!valueResultResultItem["cloudAssistantStatus"].isNull()) + resultObject.cloudAssistantStatus = valueResultResultItem["cloudAssistantStatus"].asString(); if(!valueResultResultItem["ecsInstanceName"].isNull()) resultObject.ecsInstanceName = valueResultResultItem["ecsInstanceName"].asString(); - if(!valueResultResultItem["status"].isNull()) - resultObject.status = valueResultResultItem["status"].asString(); + if(!valueResultResultItem["ecsInstanceId"].isNull()) + resultObject.ecsInstanceId = valueResultResultItem["ecsInstanceId"].asString(); if(!valueResultResultItem["tags"].isNull()) resultObject.tags = valueResultResultItem["tags"].asString(); if(!valueResultResultItem["osType"].isNull()) resultObject.osType = valueResultResultItem["osType"].asString(); - if(!valueResultResultItem["cloudAssistantStatus"].isNull()) - resultObject.cloudAssistantStatus = valueResultResultItem["cloudAssistantStatus"].asString(); + if(!valueResultResultItem["status"].isNull()) + resultObject.status = valueResultResultItem["status"].asString(); auto allipAddressNode = valueResultResultItem["ipAddress"]["ipAddressItem"]; for (auto valueResultResultItemipAddressipAddressItem : allipAddressNode) { ResultItem::IpAddressItem ipAddressObject; - if(!valueResultResultItemipAddressipAddressItem["host"].isNull()) - ipAddressObject.host = valueResultResultItemipAddressipAddressItem["host"].asString(); if(!valueResultResultItemipAddressipAddressItem["ipType"].isNull()) ipAddressObject.ipType = valueResultResultItemipAddressipAddressItem["ipType"].asString(); + if(!valueResultResultItemipAddressipAddressItem["host"].isNull()) + ipAddressObject.host = valueResultResultItemipAddressipAddressItem["host"].asString(); resultObject.ipAddress.push_back(ipAddressObject); } auto allcollectorsNode = valueResultResultItem["collectors"]["collectorsItem"]; for (auto valueResultResultItemcollectorscollectorsItem : allcollectorsNode) { ResultItem::CollectorsItem collectorsObject; - if(!valueResultResultItemcollectorscollectorsItem["gmtCreatedTime"].isNull()) - collectorsObject.gmtCreatedTime = valueResultResultItemcollectorscollectorsItem["gmtCreatedTime"].asString(); - if(!valueResultResultItemcollectorscollectorsItem["gmtUpdateTime"].isNull()) - collectorsObject.gmtUpdateTime = valueResultResultItemcollectorscollectorsItem["gmtUpdateTime"].asString(); - if(!valueResultResultItemcollectorscollectorsItem["name"].isNull()) - collectorsObject.name = valueResultResultItemcollectorscollectorsItem["name"].asString(); if(!valueResultResultItemcollectorscollectorsItem["resId"].isNull()) collectorsObject.resId = valueResultResultItemcollectorscollectorsItem["resId"].asString(); - if(!valueResultResultItemcollectorscollectorsItem["resVersion"].isNull()) - collectorsObject.resVersion = valueResultResultItemcollectorscollectorsItem["resVersion"].asString(); + if(!valueResultResultItemcollectorscollectorsItem["gmtUpdateTime"].isNull()) + collectorsObject.gmtUpdateTime = valueResultResultItemcollectorscollectorsItem["gmtUpdateTime"].asString(); + if(!valueResultResultItemcollectorscollectorsItem["dryRun"].isNull()) + collectorsObject.dryRun = valueResultResultItemcollectorscollectorsItem["dryRun"].asString() == "true"; + if(!valueResultResultItemcollectorscollectorsItem["ownerId"].isNull()) + collectorsObject.ownerId = valueResultResultItemcollectorscollectorsItem["ownerId"].asString(); if(!valueResultResultItemcollectorscollectorsItem["vpcId"].isNull()) collectorsObject.vpcId = valueResultResultItemcollectorscollectorsItem["vpcId"].asString(); if(!valueResultResultItemcollectorscollectorsItem["resType"].isNull()) collectorsObject.resType = valueResultResultItemcollectorscollectorsItem["resType"].asString(); - if(!valueResultResultItemcollectorscollectorsItem["ownerId"].isNull()) - collectorsObject.ownerId = valueResultResultItemcollectorscollectorsItem["ownerId"].asString(); + if(!valueResultResultItemcollectorscollectorsItem["resVersion"].isNull()) + collectorsObject.resVersion = valueResultResultItemcollectorscollectorsItem["resVersion"].asString(); + if(!valueResultResultItemcollectorscollectorsItem["gmtCreatedTime"].isNull()) + collectorsObject.gmtCreatedTime = valueResultResultItemcollectorscollectorsItem["gmtCreatedTime"].asString(); if(!valueResultResultItemcollectorscollectorsItem["status"].isNull()) collectorsObject.status = valueResultResultItemcollectorscollectorsItem["status"].asString(); - if(!valueResultResultItemcollectorscollectorsItem["dryRun"].isNull()) - collectorsObject.dryRun = valueResultResultItemcollectorscollectorsItem["dryRun"].asString() == "true"; + if(!valueResultResultItemcollectorscollectorsItem["name"].isNull()) + collectorsObject.name = valueResultResultItemcollectorscollectorsItem["name"].asString(); auto allconfigsNode = valueResultResultItemcollectorscollectorsItem["configs"]["configsItem"]; for (auto valueResultResultItemcollectorscollectorsItemconfigsconfigsItem : allconfigsNode) { ResultItem::CollectorsItem::ConfigsItem configsObject; - if(!valueResultResultItemcollectorscollectorsItemconfigsconfigsItem["fileName"].isNull()) - configsObject.fileName = valueResultResultItemcollectorscollectorsItemconfigsconfigsItem["fileName"].asString(); if(!valueResultResultItemcollectorscollectorsItemconfigsconfigsItem["content"].isNull()) configsObject.content = valueResultResultItemcollectorscollectorsItemconfigsconfigsItem["content"].asString(); + if(!valueResultResultItemcollectorscollectorsItemconfigsconfigsItem["fileName"].isNull()) + configsObject.fileName = valueResultResultItemcollectorscollectorsItemconfigsconfigsItem["fileName"].asString(); collectorsObject.configs.push_back(configsObject); } auto allextendConfigsNode = valueResultResultItemcollectorscollectorsItem["extendConfigs"]["extendConfigsItem"]; for (auto valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem : allextendConfigsNode) { ResultItem::CollectorsItem::ExtendConfigsItem extendConfigsObject; + if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["enableMonitoring"].isNull()) + extendConfigsObject.enableMonitoring = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["enableMonitoring"].asString() == "true"; + if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["groupId"].isNull()) + extendConfigsObject.groupId = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["groupId"].asString(); if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["configType"].isNull()) extendConfigsObject.configType = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["configType"].asString(); - if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["instanceId"].isNull()) - extendConfigsObject.instanceId = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["instanceId"].asString(); if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["instanceType"].isNull()) extendConfigsObject.instanceType = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["instanceType"].asString(); if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["protocol"].isNull()) extendConfigsObject.protocol = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["protocol"].asString(); if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["userName"].isNull()) extendConfigsObject.userName = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["userName"].asString(); - if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["enableMonitoring"].isNull()) - extendConfigsObject.enableMonitoring = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["enableMonitoring"].asString() == "true"; if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["type"].isNull()) extendConfigsObject.type = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["type"].asString(); - if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["groupId"].isNull()) - extendConfigsObject.groupId = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["groupId"].asString(); + if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["instanceId"].isNull()) + extendConfigsObject.instanceId = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["instanceId"].asString(); auto allmachinesNode = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItem["machines"]["machinesItem"]; for (auto valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem : allmachinesNode) { ResultItem::CollectorsItem::ExtendConfigsItem::MachinesItem machinesObject; - if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].isNull()) - machinesObject.instanceId = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].asString(); if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem["agentStatus"].isNull()) machinesObject.agentStatus = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem["agentStatus"].asString(); + if(!valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].isNull()) + machinesObject.instanceId = valueResultResultItemcollectorscollectorsItemextendConfigsextendConfigsItemmachinesmachinesItem["instanceId"].asString(); extendConfigsObject.machines.push_back(machinesObject); } auto allHosts = value["hosts"]["hosts"]; diff --git a/elasticsearch/src/model/ListExtendfilesRequest.cc b/elasticsearch/src/model/ListExtendfilesRequest.cc index 70db7926f..7fc61783d 100644 --- a/elasticsearch/src/model/ListExtendfilesRequest.cc +++ b/elasticsearch/src/model/ListExtendfilesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListExtendfilesRequest; - -ListExtendfilesRequest::ListExtendfilesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/extendfiles"); - setMethod(HttpRequest::Method::Get); -} - -ListExtendfilesRequest::~ListExtendfilesRequest() -{} - -std::string ListExtendfilesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListExtendfilesRequest; + +ListExtendfilesRequest::ListExtendfilesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/extendfiles"}; + setMethod(HttpRequest::Method::Get); } -void ListExtendfilesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListExtendfilesRequest::~ListExtendfilesRequest() {} + +string ListExtendfilesRequest::getInstanceId() const { + return instanceId_; +} + +void ListExtendfilesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/ListExtendfilesResult.cc b/elasticsearch/src/model/ListExtendfilesResult.cc index 07d9bc301..19c905f72 100644 --- a/elasticsearch/src/model/ListExtendfilesResult.cc +++ b/elasticsearch/src/model/ListExtendfilesResult.cc @@ -43,14 +43,14 @@ void ListExtendfilesResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); - if(!valueResultResultItem["fileSize"].isNull()) - resultObject.fileSize = std::stol(valueResultResultItem["fileSize"].asString()); - if(!valueResultResultItem["sourceType"].isNull()) - resultObject.sourceType = valueResultResultItem["sourceType"].asString(); if(!valueResultResultItem["filePath"].isNull()) resultObject.filePath = valueResultResultItem["filePath"].asString(); + if(!valueResultResultItem["fileSize"].isNull()) + resultObject.fileSize = std::stol(valueResultResultItem["fileSize"].asString()); + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); + if(!valueResultResultItem["sourceType"].isNull()) + resultObject.sourceType = valueResultResultItem["sourceType"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListILMPoliciesRequest.cc b/elasticsearch/src/model/ListILMPoliciesRequest.cc index bbd71ecd9..b154385b7 100644 --- a/elasticsearch/src/model/ListILMPoliciesRequest.cc +++ b/elasticsearch/src/model/ListILMPoliciesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListILMPoliciesRequest; - -ListILMPoliciesRequest::ListILMPoliciesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/ilm-policies"); - setMethod(HttpRequest::Method::Get); -} - -ListILMPoliciesRequest::~ListILMPoliciesRequest() -{} - -std::string ListILMPoliciesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListILMPoliciesRequest; + +ListILMPoliciesRequest::ListILMPoliciesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/ilm-policies"}; + setMethod(HttpRequest::Method::Get); } -void ListILMPoliciesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListILMPoliciesRequest::~ListILMPoliciesRequest() {} + +string ListILMPoliciesRequest::getInstanceId() const { + return instanceId_; } -std::string ListILMPoliciesRequest::getPolicyName()const -{ - return policyName_; +void ListILMPoliciesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListILMPoliciesRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +string ListILMPoliciesRequest::getPolicyName() const { + return policyName_; +} + +void ListILMPoliciesRequest::setPolicyName(string policyName) { + policyName_ = policyName; + setParameter(std::string("policyName"), std::to_string(policyName)); } diff --git a/elasticsearch/src/model/ListIndexTemplatesRequest.cc b/elasticsearch/src/model/ListIndexTemplatesRequest.cc index b494c20e6..dcc663323 100644 --- a/elasticsearch/src/model/ListIndexTemplatesRequest.cc +++ b/elasticsearch/src/model/ListIndexTemplatesRequest.cc @@ -1,52 +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 - -using AlibabaCloud::Elasticsearch::Model::ListIndexTemplatesRequest; - -ListIndexTemplatesRequest::ListIndexTemplatesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/index-templates"); - setMethod(HttpRequest::Method::Get); -} - -ListIndexTemplatesRequest::~ListIndexTemplatesRequest() -{} - -std::string ListIndexTemplatesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListIndexTemplatesRequest; + +ListIndexTemplatesRequest::ListIndexTemplatesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/index-templates"}; + setMethod(HttpRequest::Method::Get); } -void ListIndexTemplatesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListIndexTemplatesRequest::~ListIndexTemplatesRequest() {} + +string ListIndexTemplatesRequest::getInstanceId() const { + return instanceId_; } -std::string ListIndexTemplatesRequest::getIndexTemplate()const -{ - return indexTemplate_; +void ListIndexTemplatesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListIndexTemplatesRequest::setIndexTemplate(const std::string& indexTemplate) -{ - indexTemplate_ = indexTemplate; - setParameter("IndexTemplate", indexTemplate); +integer ListIndexTemplatesRequest::getSize() const { + return size_; +} + +void ListIndexTemplatesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); +} + +integer ListIndexTemplatesRequest::getPage() const { + return page_; +} + +void ListIndexTemplatesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +string ListIndexTemplatesRequest::getIndexTemplate() const { + return indexTemplate_; +} + +void ListIndexTemplatesRequest::setIndexTemplate(string indexTemplate) { + indexTemplate_ = indexTemplate; + setParameter(std::string("indexTemplate"), std::to_string(indexTemplate)); } diff --git a/elasticsearch/src/model/ListIndexTemplatesResult.cc b/elasticsearch/src/model/ListIndexTemplatesResult.cc index 579dde136..371e0e294 100644 --- a/elasticsearch/src/model/ListIndexTemplatesResult.cc +++ b/elasticsearch/src/model/ListIndexTemplatesResult.cc @@ -43,14 +43,14 @@ void ListIndexTemplatesResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["indexTemplate"].isNull()) - resultObject.indexTemplate = valueResultResultItem["indexTemplate"].asString(); if(!valueResultResultItem["dataStream"].isNull()) resultObject.dataStream = valueResultResultItem["dataStream"].asString() == "true"; - if(!valueResultResultItem["priority"].isNull()) - resultObject.priority = std::stoi(valueResultResultItem["priority"].asString()); + if(!valueResultResultItem["indexTemplate"].isNull()) + resultObject.indexTemplate = valueResultResultItem["indexTemplate"].asString(); if(!valueResultResultItem["ilmPolicy"].isNull()) resultObject.ilmPolicy = valueResultResultItem["ilmPolicy"].asString(); + if(!valueResultResultItem["priority"].isNull()) + resultObject.priority = std::stoi(valueResultResultItem["priority"].asString()); auto _templateNode = value["template"]; if(!_templateNode["settings"].isNull()) resultObject._template.settings = _templateNode["settings"].asString(); diff --git a/elasticsearch/src/model/ListInstanceHistoryEventsRequest.cc b/elasticsearch/src/model/ListInstanceHistoryEventsRequest.cc new file mode 100644 index 000000000..00c4617ba --- /dev/null +++ b/elasticsearch/src/model/ListInstanceHistoryEventsRequest.cc @@ -0,0 +1,118 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListInstanceHistoryEventsRequest; + +ListInstanceHistoryEventsRequest::ListInstanceHistoryEventsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/events"}; + setMethod(HttpRequest::Method::Post); +} + +ListInstanceHistoryEventsRequest::~ListInstanceHistoryEventsRequest() {} + +string ListInstanceHistoryEventsRequest::getEventFinashEndTime() const { + return eventFinashEndTime_; +} + +void ListInstanceHistoryEventsRequest::setEventFinashEndTime(string eventFinashEndTime) { + eventFinashEndTime_ = eventFinashEndTime; + setParameter(std::string("eventFinashEndTime"), std::to_string(eventFinashEndTime)); +} + +string ListInstanceHistoryEventsRequest::getInstanceId() const { + return instanceId_; +} + +void ListInstanceHistoryEventsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); +} + +integer ListInstanceHistoryEventsRequest::getSize() const { + return size_; +} + +void ListInstanceHistoryEventsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); +} + +string ListInstanceHistoryEventsRequest::getEventExecuteStartTime() const { + return eventExecuteStartTime_; +} + +void ListInstanceHistoryEventsRequest::setEventExecuteStartTime(string eventExecuteStartTime) { + eventExecuteStartTime_ = eventExecuteStartTime; + setParameter(std::string("eventExecuteStartTime"), std::to_string(eventExecuteStartTime)); +} + +string ListInstanceHistoryEventsRequest::getEventFinashStartTime() const { + return eventFinashStartTime_; +} + +void ListInstanceHistoryEventsRequest::setEventFinashStartTime(string eventFinashStartTime) { + eventFinashStartTime_ = eventFinashStartTime; + setParameter(std::string("eventFinashStartTime"), std::to_string(eventFinashStartTime)); +} + +string ListInstanceHistoryEventsRequest::getNodeIP() const { + return nodeIP_; +} + +void ListInstanceHistoryEventsRequest::setNodeIP(string nodeIP) { + nodeIP_ = nodeIP; + setParameter(std::string("nodeIP"), std::to_string(nodeIP)); +} + +integer ListInstanceHistoryEventsRequest::getPage() const { + return page_; +} + +void ListInstanceHistoryEventsRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +string ListInstanceHistoryEventsRequest::getEventCreateEndTime() const { + return eventCreateEndTime_; +} + +void ListInstanceHistoryEventsRequest::setEventCreateEndTime(string eventCreateEndTime) { + eventCreateEndTime_ = eventCreateEndTime; + setParameter(std::string("eventCreateEndTime"), std::to_string(eventCreateEndTime)); +} + +string ListInstanceHistoryEventsRequest::getEventCreateStartTime() const { + return eventCreateStartTime_; +} + +void ListInstanceHistoryEventsRequest::setEventCreateStartTime(string eventCreateStartTime) { + eventCreateStartTime_ = eventCreateStartTime; + setParameter(std::string("eventCreateStartTime"), std::to_string(eventCreateStartTime)); +} + +string ListInstanceHistoryEventsRequest::getEventExecuteEndTime() const { + return eventExecuteEndTime_; +} + +void ListInstanceHistoryEventsRequest::setEventExecuteEndTime(string eventExecuteEndTime) { + eventExecuteEndTime_ = eventExecuteEndTime; + setParameter(std::string("eventExecuteEndTime"), std::to_string(eventExecuteEndTime)); +} + diff --git a/elasticsearch/src/model/ListInstanceHistoryEventsResult.cc b/elasticsearch/src/model/ListInstanceHistoryEventsResult.cc new file mode 100644 index 000000000..52d6e5ed4 --- /dev/null +++ b/elasticsearch/src/model/ListInstanceHistoryEventsResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Elasticsearch; +using namespace AlibabaCloud::Elasticsearch::Model; + +ListInstanceHistoryEventsResult::ListInstanceHistoryEventsResult() : + ServiceResult() +{} + +ListInstanceHistoryEventsResult::ListInstanceHistoryEventsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstanceHistoryEventsResult::~ListInstanceHistoryEventsResult() +{} + +void ListInstanceHistoryEventsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["eventCreateTime"].isNull()) + resultObject.eventCreateTime = valueResultResultItem["eventCreateTime"].asString(); + if(!valueResultResultItem["eventCycleStatus"].isNull()) + resultObject.eventCycleStatus = valueResultResultItem["eventCycleStatus"].asString(); + if(!valueResultResultItem["eventExecuteTime"].isNull()) + resultObject.eventExecuteTime = valueResultResultItem["eventExecuteTime"].asString(); + if(!valueResultResultItem["eventFinashTime"].isNull()) + resultObject.eventFinashTime = valueResultResultItem["eventFinashTime"].asString(); + if(!valueResultResultItem["eventLevel"].isNull()) + resultObject.eventLevel = valueResultResultItem["eventLevel"].asString(); + if(!valueResultResultItem["instanceId"].isNull()) + resultObject.instanceId = valueResultResultItem["instanceId"].asString(); + if(!valueResultResultItem["nodeIP"].isNull()) + resultObject.nodeIP = valueResultResultItem["nodeIP"].asString(); + if(!valueResultResultItem["eventType"].isNull()) + resultObject.eventType = valueResultResultItem["eventType"].asString(); + if(!valueResultResultItem["regionId"].isNull()) + resultObject.regionId = valueResultResultItem["regionId"].asString(); + if(!valueResultResultItem["ecsId"].isNull()) + resultObject.ecsId = valueResultResultItem["ecsId"].asString(); + result_.push_back(resultObject); + } + auto headersNode = value["Headers"]; + if(!headersNode["X-Total-Count"].isNull()) + headers_.xTotalCount = std::stol(headersNode["X-Total-Count"].asString()); + if(!headersNode["X-Total-Failed"].isNull()) + headers_.xTotalFailed = std::stol(headersNode["X-Total-Failed"].asString()); + if(!headersNode["X-Total-Success"].isNull()) + headers_.xTotalSuccess = std::stol(headersNode["X-Total-Success"].asString()); + +} + +ListInstanceHistoryEventsResult::Headers ListInstanceHistoryEventsResult::getHeaders()const +{ + return headers_; +} + +std::vector ListInstanceHistoryEventsResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/ListInstanceIndicesRequest.cc b/elasticsearch/src/model/ListInstanceIndicesRequest.cc index 211714e06..1ee9e766d 100644 --- a/elasticsearch/src/model/ListInstanceIndicesRequest.cc +++ b/elasticsearch/src/model/ListInstanceIndicesRequest.cc @@ -1,107 +1,91 @@ /* * 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 - -using AlibabaCloud::Elasticsearch::Model::ListInstanceIndicesRequest; - -ListInstanceIndicesRequest::ListInstanceIndicesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/indices"); - setMethod(HttpRequest::Method::Get); -} - -ListInstanceIndicesRequest::~ListInstanceIndicesRequest() -{} - -bool ListInstanceIndicesRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListInstanceIndicesRequest; + +ListInstanceIndicesRequest::ListInstanceIndicesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/indices"}; + setMethod(HttpRequest::Method::Get); } -void ListInstanceIndicesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +ListInstanceIndicesRequest::~ListInstanceIndicesRequest() {} + +boolean ListInstanceIndicesRequest::getAll() const { + return all_; } -std::string ListInstanceIndicesRequest::getInstanceId()const -{ - return instanceId_; +void ListInstanceIndicesRequest::setAll(boolean all) { + all_ = all; + setParameter(std::string("all"), std::to_string(all)); } -void ListInstanceIndicesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ListInstanceIndicesRequest::getInstanceId() const { + return instanceId_; } -bool ListInstanceIndicesRequest::getIsManaged()const -{ - return isManaged_; +void ListInstanceIndicesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListInstanceIndicesRequest::setIsManaged(bool isManaged) -{ - isManaged_ = isManaged; - setParameter("IsManaged", isManaged ? "true" : "false"); +boolean ListInstanceIndicesRequest::getIsManaged() const { + return isManaged_; } -int ListInstanceIndicesRequest::getSize()const -{ - return size_; +void ListInstanceIndicesRequest::setIsManaged(boolean isManaged) { + isManaged_ = isManaged; + setParameter(std::string("isManaged"), std::to_string(isManaged)); } -void ListInstanceIndicesRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListInstanceIndicesRequest::getSize() const { + return size_; } -std::string ListInstanceIndicesRequest::getName()const -{ - return name_; +void ListInstanceIndicesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListInstanceIndicesRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +string ListInstanceIndicesRequest::getName() const { + return name_; } -int ListInstanceIndicesRequest::getPage()const -{ - return page_; +void ListInstanceIndicesRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); } -void ListInstanceIndicesRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListInstanceIndicesRequest::getPage() const { + return page_; } -bool ListInstanceIndicesRequest::getIsOpenstore()const -{ - return isOpenstore_; +void ListInstanceIndicesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListInstanceIndicesRequest::setIsOpenstore(bool isOpenstore) -{ - isOpenstore_ = isOpenstore; - setParameter("IsOpenstore", isOpenstore ? "true" : "false"); +boolean ListInstanceIndicesRequest::getIsOpenstore() const { + return isOpenstore_; +} + +void ListInstanceIndicesRequest::setIsOpenstore(boolean isOpenstore) { + isOpenstore_ = isOpenstore; + setParameter(std::string("isOpenstore"), std::to_string(isOpenstore)); } diff --git a/elasticsearch/src/model/ListInstanceRequest.cc b/elasticsearch/src/model/ListInstanceRequest.cc index a16da211d..efdd2fb5b 100644 --- a/elasticsearch/src/model/ListInstanceRequest.cc +++ b/elasticsearch/src/model/ListInstanceRequest.cc @@ -1,151 +1,145 @@ /* * 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 - -using AlibabaCloud::Elasticsearch::Model::ListInstanceRequest; - -ListInstanceRequest::ListInstanceRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances"); - setMethod(HttpRequest::Method::Get); -} - -ListInstanceRequest::~ListInstanceRequest() -{} - -std::string ListInstanceRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListInstanceRequest; + +ListInstanceRequest::ListInstanceRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances"}; + setMethod(HttpRequest::Method::Get); } -void ListInstanceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +ListInstanceRequest::~ListInstanceRequest() {} + +string ListInstanceRequest::getDescription() const { + return description_; } -std::string ListInstanceRequest::getInstanceCategory()const -{ - return instanceCategory_; +void ListInstanceRequest::setDescription(string description) { + description_ = description; + setParameter(std::string("description"), std::to_string(description)); } -void ListInstanceRequest::setInstanceCategory(const std::string& instanceCategory) -{ - instanceCategory_ = instanceCategory; - setParameter("InstanceCategory", instanceCategory); +string ListInstanceRequest::getInstanceCategory() const { + return instanceCategory_; } -std::string ListInstanceRequest::getTags()const -{ - return tags_; +void ListInstanceRequest::setInstanceCategory(string instanceCategory) { + instanceCategory_ = instanceCategory; + setParameter(std::string("instanceCategory"), std::to_string(instanceCategory)); } -void ListInstanceRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +string ListInstanceRequest::getInnerapiOwnerId() const { + return innerapiOwnerId_; } -std::string ListInstanceRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void ListInstanceRequest::setInnerapiOwnerId(string innerapiOwnerId) { + innerapiOwnerId_ = innerapiOwnerId; + setParameter(std::string("innerapiOwnerId"), std::to_string(innerapiOwnerId)); } -void ListInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +string ListInstanceRequest::getTags() const { + return tags_; } -std::string ListInstanceRequest::getInstanceId()const -{ - return instanceId_; +void ListInstanceRequest::setTags(string tags) { + tags_ = tags; + setParameter(std::string("tags"), std::to_string(tags)); } -void ListInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ListInstanceRequest::getProductType() const { + return productType_; } -int ListInstanceRequest::getSize()const -{ - return size_; +void ListInstanceRequest::setProductType(string productType) { + productType_ = productType; + setParameter(std::string("productType"), std::to_string(productType)); } -void ListInstanceRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +string ListInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ListInstanceRequest::getEsVersion()const -{ - return esVersion_; +void ListInstanceRequest::setResourceGroupId(string resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("resourceGroupId"), std::to_string(resourceGroupId)); } -void ListInstanceRequest::setEsVersion(const std::string& esVersion) -{ - esVersion_ = esVersion; - setParameter("EsVersion", esVersion); +string ListInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string ListInstanceRequest::getVpcId()const -{ - return vpcId_; +void ListInstanceRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } -void ListInstanceRequest::setVpcId(const std::string& vpcId) -{ - vpcId_ = vpcId; - setParameter("VpcId", vpcId); +integer ListInstanceRequest::getSize() const { + return size_; } -std::string ListInstanceRequest::getZoneId()const -{ - return zoneId_; +void ListInstanceRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListInstanceRequest::setZoneId(const std::string& zoneId) -{ - zoneId_ = zoneId; - setParameter("ZoneId", zoneId); +string ListInstanceRequest::getEsVersion() const { + return esVersion_; } -int ListInstanceRequest::getPage()const -{ - return page_; +void ListInstanceRequest::setEsVersion(string esVersion) { + esVersion_ = esVersion; + setParameter(std::string("esVersion"), std::to_string(esVersion)); } -void ListInstanceRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +string ListInstanceRequest::getVpcId() const { + return vpcId_; } -std::string ListInstanceRequest::getPaymentType()const -{ - return paymentType_; +void ListInstanceRequest::setVpcId(string vpcId) { + vpcId_ = vpcId; + setParameter(std::string("vpcId"), std::to_string(vpcId)); } -void ListInstanceRequest::setPaymentType(const std::string& paymentType) -{ - paymentType_ = paymentType; - setParameter("PaymentType", paymentType); +string ListInstanceRequest::getZoneId() const { + return zoneId_; +} + +void ListInstanceRequest::setZoneId(string zoneId) { + zoneId_ = zoneId; + setParameter(std::string("zoneId"), std::to_string(zoneId)); +} + +integer ListInstanceRequest::getPage() const { + return page_; +} + +void ListInstanceRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); +} + +string ListInstanceRequest::getPaymentType() const { + return paymentType_; +} + +void ListInstanceRequest::setPaymentType(string paymentType) { + paymentType_ = paymentType; + setParameter(std::string("paymentType"), std::to_string(paymentType)); } diff --git a/elasticsearch/src/model/ListInstanceResult.cc b/elasticsearch/src/model/ListInstanceResult.cc index 285af29c8..57763e1e0 100644 --- a/elasticsearch/src/model/ListInstanceResult.cc +++ b/elasticsearch/src/model/ListInstanceResult.cc @@ -45,32 +45,34 @@ void ListInstanceResult::parse(const std::string &payload) Instance resultObject; if(!valueResultInstance["advancedDedicateMaster"].isNull()) resultObject.advancedDedicateMaster = valueResultInstance["advancedDedicateMaster"].asString() == "true"; - if(!valueResultInstance["createdAt"].isNull()) - resultObject.createdAt = valueResultInstance["createdAt"].asString(); - if(!valueResultInstance["dedicateMaster"].isNull()) - resultObject.dedicateMaster = valueResultInstance["dedicateMaster"].asString() == "true"; - if(!valueResultInstance["description"].isNull()) - resultObject.description = valueResultInstance["description"].asString(); - if(!valueResultInstance["esVersion"].isNull()) - resultObject.esVersion = valueResultInstance["esVersion"].asString(); - if(!valueResultInstance["instanceId"].isNull()) - resultObject.instanceId = valueResultInstance["instanceId"].asString(); if(!valueResultInstance["nodeAmount"].isNull()) resultObject.nodeAmount = std::stoi(valueResultInstance["nodeAmount"].asString()); + if(!valueResultInstance["createdAt"].isNull()) + resultObject.createdAt = valueResultInstance["createdAt"].asString(); + if(!valueResultInstance["status"].isNull()) + resultObject.status = valueResultInstance["status"].asString(); + if(!valueResultInstance["dedicateMaster"].isNull()) + resultObject.dedicateMaster = valueResultInstance["dedicateMaster"].asString() == "true"; + if(!valueResultInstance["serviceVpc"].isNull()) + resultObject.serviceVpc = valueResultInstance["serviceVpc"].asString() == "true"; if(!valueResultInstance["paymentType"].isNull()) resultObject.paymentType = valueResultInstance["paymentType"].asString(); if(!valueResultInstance["resourceGroupId"].isNull()) resultObject.resourceGroupId = valueResultInstance["resourceGroupId"].asString(); - if(!valueResultInstance["status"].isNull()) - resultObject.status = valueResultInstance["status"].asString(); - if(!valueResultInstance["updatedAt"].isNull()) - resultObject.updatedAt = valueResultInstance["updatedAt"].asString(); if(!valueResultInstance["postpaidServiceStatus"].isNull()) resultObject.postpaidServiceStatus = valueResultInstance["postpaidServiceStatus"].asString(); + if(!valueResultInstance["description"].isNull()) + resultObject.description = valueResultInstance["description"].asString(); + if(!valueResultInstance["esVersion"].isNull()) + resultObject.esVersion = valueResultInstance["esVersion"].asString(); if(!valueResultInstance["isNewDeployment"].isNull()) resultObject.isNewDeployment = valueResultInstance["isNewDeployment"].asString(); - if(!valueResultInstance["serviceVpc"].isNull()) - resultObject.serviceVpc = valueResultInstance["serviceVpc"].asString() == "true"; + if(!valueResultInstance["updatedAt"].isNull()) + resultObject.updatedAt = valueResultInstance["updatedAt"].asString(); + if(!valueResultInstance["instanceId"].isNull()) + resultObject.instanceId = valueResultInstance["instanceId"].asString(); + if(!valueResultInstance["vpcInstanceId"].isNull()) + resultObject.vpcInstanceId = valueResultInstance["vpcInstanceId"].asString(); auto alltagsNode = valueResultInstance["tags"]["Tag"]; for (auto valueResultInstancetagsTag : alltagsNode) { @@ -82,15 +84,17 @@ void ListInstanceResult::parse(const std::string &payload) resultObject.tags.push_back(tagsObject); } auto clientNodeConfigurationNode = value["clientNodeConfiguration"]; + if(!clientNodeConfigurationNode["spec"].isNull()) + resultObject.clientNodeConfiguration.spec = clientNodeConfigurationNode["spec"].asString(); if(!clientNodeConfigurationNode["amount"].isNull()) resultObject.clientNodeConfiguration.amount = std::stoi(clientNodeConfigurationNode["amount"].asString()); if(!clientNodeConfigurationNode["disk"].isNull()) resultObject.clientNodeConfiguration.disk = std::stoi(clientNodeConfigurationNode["disk"].asString()); if(!clientNodeConfigurationNode["diskType"].isNull()) resultObject.clientNodeConfiguration.diskType = clientNodeConfigurationNode["diskType"].asString(); - if(!clientNodeConfigurationNode["spec"].isNull()) - resultObject.clientNodeConfiguration.spec = clientNodeConfigurationNode["spec"].asString(); auto elasticDataNodeConfigurationNode = value["elasticDataNodeConfiguration"]; + if(!elasticDataNodeConfigurationNode["spec"].isNull()) + resultObject.elasticDataNodeConfiguration.spec = elasticDataNodeConfigurationNode["spec"].asString(); if(!elasticDataNodeConfigurationNode["amount"].isNull()) resultObject.elasticDataNodeConfiguration.amount = std::stoi(elasticDataNodeConfigurationNode["amount"].asString()); if(!elasticDataNodeConfigurationNode["disk"].isNull()) @@ -99,44 +103,44 @@ void ListInstanceResult::parse(const std::string &payload) resultObject.elasticDataNodeConfiguration.diskEncryption = elasticDataNodeConfigurationNode["diskEncryption"].asString() == "true"; if(!elasticDataNodeConfigurationNode["diskType"].isNull()) resultObject.elasticDataNodeConfiguration.diskType = elasticDataNodeConfigurationNode["diskType"].asString(); - if(!elasticDataNodeConfigurationNode["spec"].isNull()) - resultObject.elasticDataNodeConfiguration.spec = elasticDataNodeConfigurationNode["spec"].asString(); auto kibanaConfigurationNode = value["kibanaConfiguration"]; + if(!kibanaConfigurationNode["spec"].isNull()) + resultObject.kibanaConfiguration.spec = kibanaConfigurationNode["spec"].asString(); if(!kibanaConfigurationNode["amount"].isNull()) resultObject.kibanaConfiguration.amount = std::stoi(kibanaConfigurationNode["amount"].asString()); if(!kibanaConfigurationNode["disk"].isNull()) resultObject.kibanaConfiguration.disk = std::stoi(kibanaConfigurationNode["disk"].asString()); if(!kibanaConfigurationNode["diskType"].isNull()) resultObject.kibanaConfiguration.diskType = kibanaConfigurationNode["diskType"].asString(); - if(!kibanaConfigurationNode["spec"].isNull()) - resultObject.kibanaConfiguration.spec = kibanaConfigurationNode["spec"].asString(); auto masterConfigurationNode = value["masterConfiguration"]; + if(!masterConfigurationNode["spec"].isNull()) + resultObject.masterConfiguration.spec = masterConfigurationNode["spec"].asString(); if(!masterConfigurationNode["amount"].isNull()) resultObject.masterConfiguration.amount = std::stoi(masterConfigurationNode["amount"].asString()); if(!masterConfigurationNode["disk"].isNull()) resultObject.masterConfiguration.disk = std::stoi(masterConfigurationNode["disk"].asString()); if(!masterConfigurationNode["diskType"].isNull()) resultObject.masterConfiguration.diskType = masterConfigurationNode["diskType"].asString(); - if(!masterConfigurationNode["spec"].isNull()) - resultObject.masterConfiguration.spec = masterConfigurationNode["spec"].asString(); auto networkConfigNode = value["networkConfig"]; - if(!networkConfigNode["type"].isNull()) - resultObject.networkConfig.type = networkConfigNode["type"].asString(); if(!networkConfigNode["vpcId"].isNull()) resultObject.networkConfig.vpcId = networkConfigNode["vpcId"].asString(); if(!networkConfigNode["vsArea"].isNull()) resultObject.networkConfig.vsArea = networkConfigNode["vsArea"].asString(); + if(!networkConfigNode["type"].isNull()) + resultObject.networkConfig.type = networkConfigNode["type"].asString(); if(!networkConfigNode["vswitchId"].isNull()) resultObject.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString(); auto nodeSpecNode = value["nodeSpec"]; + if(!nodeSpecNode["spec"].isNull()) + resultObject.nodeSpec.spec = nodeSpecNode["spec"].asString(); if(!nodeSpecNode["disk"].isNull()) resultObject.nodeSpec.disk = std::stoi(nodeSpecNode["disk"].asString()); if(!nodeSpecNode["diskEncryption"].isNull()) resultObject.nodeSpec.diskEncryption = nodeSpecNode["diskEncryption"].asString() == "true"; if(!nodeSpecNode["diskType"].isNull()) resultObject.nodeSpec.diskType = nodeSpecNode["diskType"].asString(); - if(!nodeSpecNode["spec"].isNull()) - resultObject.nodeSpec.spec = nodeSpecNode["spec"].asString(); + if(!nodeSpecNode["performanceLevel"].isNull()) + resultObject.nodeSpec.performanceLevel = nodeSpecNode["performanceLevel"].asString(); auto allExtendConfigs = value["extendConfigs"]["extendConfigs"]; for (auto value : allExtendConfigs) resultObject.extendConfigs.push_back(value.asString()); diff --git a/elasticsearch/src/model/ListKibanaPluginsRequest.cc b/elasticsearch/src/model/ListKibanaPluginsRequest.cc index 5eb1b470d..a0d66eed9 100644 --- a/elasticsearch/src/model/ListKibanaPluginsRequest.cc +++ b/elasticsearch/src/model/ListKibanaPluginsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListKibanaPluginsRequest; - -ListKibanaPluginsRequest::ListKibanaPluginsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins"); - setMethod(HttpRequest::Method::Get); -} - -ListKibanaPluginsRequest::~ListKibanaPluginsRequest() -{} - -std::string ListKibanaPluginsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListKibanaPluginsRequest; + +ListKibanaPluginsRequest::ListKibanaPluginsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins"}; + setMethod(HttpRequest::Method::Get); } -void ListKibanaPluginsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListKibanaPluginsRequest::~ListKibanaPluginsRequest() {} + +string ListKibanaPluginsRequest::getInstanceId() const { + return instanceId_; } -int ListKibanaPluginsRequest::getSize()const -{ - return size_; +void ListKibanaPluginsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListKibanaPluginsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListKibanaPluginsRequest::getSize() const { + return size_; } -std::string ListKibanaPluginsRequest::getPage()const -{ - return page_; +void ListKibanaPluginsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListKibanaPluginsRequest::setPage(const std::string& page) -{ - page_ = page; - setParameter("Page", page); +string ListKibanaPluginsRequest::getPage() const { + return page_; +} + +void ListKibanaPluginsRequest::setPage(string page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } diff --git a/elasticsearch/src/model/ListKibanaPluginsResult.cc b/elasticsearch/src/model/ListKibanaPluginsResult.cc index 3f0a03cc4..617e1fc46 100644 --- a/elasticsearch/src/model/ListKibanaPluginsResult.cc +++ b/elasticsearch/src/model/ListKibanaPluginsResult.cc @@ -43,16 +43,16 @@ void ListKibanaPluginsResult::parse(const std::string &payload) for (auto valueResultPluginItem : allResultNode) { PluginItem resultObject; - if(!valueResultPluginItem["name"].isNull()) - resultObject.name = valueResultPluginItem["name"].asString(); - if(!valueResultPluginItem["state"].isNull()) - resultObject.state = valueResultPluginItem["state"].asString(); - if(!valueResultPluginItem["source"].isNull()) - resultObject.source = valueResultPluginItem["source"].asString(); if(!valueResultPluginItem["description"].isNull()) resultObject.description = valueResultPluginItem["description"].asString(); if(!valueResultPluginItem["specificationUrl"].isNull()) resultObject.specificationUrl = valueResultPluginItem["specificationUrl"].asString(); + if(!valueResultPluginItem["state"].isNull()) + resultObject.state = valueResultPluginItem["state"].asString(); + if(!valueResultPluginItem["source"].isNull()) + resultObject.source = valueResultPluginItem["source"].asString(); + if(!valueResultPluginItem["name"].isNull()) + resultObject.name = valueResultPluginItem["name"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; diff --git a/elasticsearch/src/model/ListLogstashLogRequest.cc b/elasticsearch/src/model/ListLogstashLogRequest.cc index 090c6ff5c..d9672814c 100644 --- a/elasticsearch/src/model/ListLogstashLogRequest.cc +++ b/elasticsearch/src/model/ListLogstashLogRequest.cc @@ -1,107 +1,91 @@ /* * 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 - -using AlibabaCloud::Elasticsearch::Model::ListLogstashLogRequest; - -ListLogstashLogRequest::ListLogstashLogRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/search-log"); - setMethod(HttpRequest::Method::Get); -} - -ListLogstashLogRequest::~ListLogstashLogRequest() -{} - -std::string ListLogstashLogRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListLogstashLogRequest; + +ListLogstashLogRequest::ListLogstashLogRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/search-log"}; + setMethod(HttpRequest::Method::Get); } -void ListLogstashLogRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListLogstashLogRequest::~ListLogstashLogRequest() {} + +string ListLogstashLogRequest::getInstanceId() const { + return instanceId_; } -int ListLogstashLogRequest::getSize()const -{ - return size_; +void ListLogstashLogRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListLogstashLogRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListLogstashLogRequest::getSize() const { + return size_; } -std::string ListLogstashLogRequest::getQuery()const -{ - return query_; +void ListLogstashLogRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListLogstashLogRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +string ListLogstashLogRequest::getQuery() const { + return query_; } -long ListLogstashLogRequest::getEndTime()const -{ - return endTime_; +void ListLogstashLogRequest::setQuery(string query) { + query_ = query; + setParameter(std::string("query"), std::to_string(query)); } -void ListLogstashLogRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +integer ListLogstashLogRequest::getEndTime() const { + return endTime_; } -long ListLogstashLogRequest::getBeginTime()const -{ - return beginTime_; +void ListLogstashLogRequest::setEndTime(integer endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); } -void ListLogstashLogRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +integer ListLogstashLogRequest::getBeginTime() const { + return beginTime_; } -int ListLogstashLogRequest::getPage()const -{ - return page_; +void ListLogstashLogRequest::setBeginTime(integer beginTime) { + beginTime_ = beginTime; + setParameter(std::string("beginTime"), std::to_string(beginTime)); } -void ListLogstashLogRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListLogstashLogRequest::getPage() const { + return page_; } -std::string ListLogstashLogRequest::getType()const -{ - return type_; +void ListLogstashLogRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListLogstashLogRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +string ListLogstashLogRequest::getType() const { + return type_; +} + +void ListLogstashLogRequest::setType(string type) { + type_ = type; + setParameter(std::string("type"), std::to_string(type)); } diff --git a/elasticsearch/src/model/ListLogstashLogResult.cc b/elasticsearch/src/model/ListLogstashLogResult.cc index 1031cf0fa..f546ca487 100644 --- a/elasticsearch/src/model/ListLogstashLogResult.cc +++ b/elasticsearch/src/model/ListLogstashLogResult.cc @@ -43,16 +43,16 @@ void ListLogstashLogResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["timestamp"].isNull()) - resultObject.timestamp = std::stol(valueResultResultItem["timestamp"].asString()); - if(!valueResultResultItem["host"].isNull()) - resultObject.host = valueResultResultItem["host"].asString(); if(!valueResultResultItem["level"].isNull()) resultObject.level = valueResultResultItem["level"].asString(); if(!valueResultResultItem["content"].isNull()) resultObject.content = valueResultResultItem["content"].asString(); + if(!valueResultResultItem["timestamp"].isNull()) + resultObject.timestamp = std::stol(valueResultResultItem["timestamp"].asString()); if(!valueResultResultItem["instanceId"].isNull()) resultObject.instanceId = valueResultResultItem["instanceId"].asString(); + if(!valueResultResultItem["host"].isNull()) + resultObject.host = valueResultResultItem["host"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListLogstashPluginsRequest.cc b/elasticsearch/src/model/ListLogstashPluginsRequest.cc index 8583ef1f4..4d0993e33 100644 --- a/elasticsearch/src/model/ListLogstashPluginsRequest.cc +++ b/elasticsearch/src/model/ListLogstashPluginsRequest.cc @@ -1,85 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListLogstashPluginsRequest; - -ListLogstashPluginsRequest::ListLogstashPluginsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/plugins"); - setMethod(HttpRequest::Method::Get); -} - -ListLogstashPluginsRequest::~ListLogstashPluginsRequest() -{} - -std::string ListLogstashPluginsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListLogstashPluginsRequest; + +ListLogstashPluginsRequest::ListLogstashPluginsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/plugins"}; + setMethod(HttpRequest::Method::Get); } -void ListLogstashPluginsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListLogstashPluginsRequest::~ListLogstashPluginsRequest() {} + +string ListLogstashPluginsRequest::getInstanceId() const { + return instanceId_; } -int ListLogstashPluginsRequest::getSize()const -{ - return size_; +void ListLogstashPluginsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListLogstashPluginsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListLogstashPluginsRequest::getSize() const { + return size_; } -std::string ListLogstashPluginsRequest::getName()const -{ - return name_; +void ListLogstashPluginsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListLogstashPluginsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +string ListLogstashPluginsRequest::getName() const { + return name_; } -int ListLogstashPluginsRequest::getPage()const -{ - return page_; +void ListLogstashPluginsRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); } -void ListLogstashPluginsRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListLogstashPluginsRequest::getPage() const { + return page_; } -std::string ListLogstashPluginsRequest::getSource()const -{ - return source_; +void ListLogstashPluginsRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListLogstashPluginsRequest::setSource(const std::string& source) -{ - source_ = source; - setParameter("Source", source); +string ListLogstashPluginsRequest::getSource() const { + return source_; +} + +void ListLogstashPluginsRequest::setSource(string source) { + source_ = source; + setParameter(std::string("source"), std::to_string(source)); } diff --git a/elasticsearch/src/model/ListLogstashPluginsResult.cc b/elasticsearch/src/model/ListLogstashPluginsResult.cc index 74798c453..c96c837c1 100644 --- a/elasticsearch/src/model/ListLogstashPluginsResult.cc +++ b/elasticsearch/src/model/ListLogstashPluginsResult.cc @@ -43,16 +43,16 @@ void ListLogstashPluginsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); - if(!valueResultResultItem["state"].isNull()) - resultObject.state = valueResultResultItem["state"].asString(); - if(!valueResultResultItem["source"].isNull()) - resultObject.source = valueResultResultItem["source"].asString(); if(!valueResultResultItem["description"].isNull()) resultObject.description = valueResultResultItem["description"].asString(); if(!valueResultResultItem["specificationUrl"].isNull()) resultObject.specificationUrl = valueResultResultItem["specificationUrl"].asString(); + if(!valueResultResultItem["state"].isNull()) + resultObject.state = valueResultResultItem["state"].asString(); + if(!valueResultResultItem["source"].isNull()) + resultObject.source = valueResultResultItem["source"].asString(); + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListLogstashRequest.cc b/elasticsearch/src/model/ListLogstashRequest.cc index 704cc0c2a..ac7b44011 100644 --- a/elasticsearch/src/model/ListLogstashRequest.cc +++ b/elasticsearch/src/model/ListLogstashRequest.cc @@ -1,107 +1,100 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListLogstashRequest; - -ListLogstashRequest::ListLogstashRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes"); - setMethod(HttpRequest::Method::Get); -} - -ListLogstashRequest::~ListLogstashRequest() -{} - -std::string ListLogstashRequest::getResourceGroupId()const -{ - return resourceGroupId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListLogstashRequest; + +ListLogstashRequest::ListLogstashRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes"}; + setMethod(HttpRequest::Method::Get); } -void ListLogstashRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +ListLogstashRequest::~ListLogstashRequest() {} + +string ListLogstashRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string ListLogstashRequest::getInstanceId()const -{ - return instanceId_; +void ListLogstashRequest::setResourceGroupId(string resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("resourceGroupId"), std::to_string(resourceGroupId)); } -void ListLogstashRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ListLogstashRequest::getInstanceId() const { + return instanceId_; } -int ListLogstashRequest::getSize()const -{ - return size_; +void ListLogstashRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } -void ListLogstashRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListLogstashRequest::getSize() const { + return size_; } -std::string ListLogstashRequest::getDescription()const -{ - return description_; +void ListLogstashRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListLogstashRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +string ListLogstashRequest::getDescription() const { + return description_; } -int ListLogstashRequest::getPage()const -{ - return page_; +void ListLogstashRequest::setDescription(string description) { + description_ = description; + setParameter(std::string("description"), std::to_string(description)); } -void ListLogstashRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListLogstashRequest::getPage() const { + return page_; } -std::string ListLogstashRequest::getOwnerId()const -{ - return ownerId_; +void ListLogstashRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListLogstashRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +string ListLogstashRequest::getOwnerId() const { + return ownerId_; } -std::string ListLogstashRequest::getVersion()const -{ - return version_; +void ListLogstashRequest::setOwnerId(string ownerId) { + ownerId_ = ownerId; + setParameter(std::string("ownerId"), std::to_string(ownerId)); } -void ListLogstashRequest::setVersion(const std::string& version) -{ - version_ = version; - setParameter("Version", version); +string ListLogstashRequest::getVersion() const { + return version_; +} + +void ListLogstashRequest::setVersion(string version) { + version_ = version; + setParameter(std::string("version"), std::to_string(version)); +} + +string ListLogstashRequest::getTags() const { + return tags_; +} + +void ListLogstashRequest::setTags(string tags) { + tags_ = tags; + setParameter(std::string("tags"), std::to_string(tags)); } diff --git a/elasticsearch/src/model/ListLogstashResult.cc b/elasticsearch/src/model/ListLogstashResult.cc index 9229f5d6c..4216f3824 100644 --- a/elasticsearch/src/model/ListLogstashResult.cc +++ b/elasticsearch/src/model/ListLogstashResult.cc @@ -43,30 +43,30 @@ void ListLogstashResult::parse(const std::string &payload) for (auto valueResultInstance : allResultNode) { Instance resultObject; - if(!valueResultInstance["instanceId"].isNull()) - resultObject.instanceId = valueResultInstance["instanceId"].asString(); - if(!valueResultInstance["description"].isNull()) - resultObject.description = valueResultInstance["description"].asString(); - if(!valueResultInstance["nodeAmount"].isNull()) - resultObject.nodeAmount = std::stoi(valueResultInstance["nodeAmount"].asString()); if(!valueResultInstance["paymentType"].isNull()) resultObject.paymentType = valueResultInstance["paymentType"].asString(); - if(!valueResultInstance["status"].isNull()) - resultObject.status = valueResultInstance["status"].asString(); - if(!valueResultInstance["version"].isNull()) - resultObject.version = valueResultInstance["version"].asString(); + if(!valueResultInstance["nodeAmount"].isNull()) + resultObject.nodeAmount = std::stoi(valueResultInstance["nodeAmount"].asString()); + if(!valueResultInstance["description"].isNull()) + resultObject.description = valueResultInstance["description"].asString(); if(!valueResultInstance["createdAt"].isNull()) resultObject.createdAt = valueResultInstance["createdAt"].asString(); + if(!valueResultInstance["status"].isNull()) + resultObject.status = valueResultInstance["status"].asString(); if(!valueResultInstance["updatedAt"].isNull()) resultObject.updatedAt = valueResultInstance["updatedAt"].asString(); + if(!valueResultInstance["instanceId"].isNull()) + resultObject.instanceId = valueResultInstance["instanceId"].asString(); + if(!valueResultInstance["version"].isNull()) + resultObject.version = valueResultInstance["version"].asString(); auto allTagsNode = valueResultInstance["Tags"]["tagsItem"]; for (auto valueResultInstanceTagstagsItem : allTagsNode) { Instance::TagsItem tagsObject; - if(!valueResultInstanceTagstagsItem["TagKey"].isNull()) - tagsObject.tagKey = valueResultInstanceTagstagsItem["TagKey"].asString(); if(!valueResultInstanceTagstagsItem["TagValue"].isNull()) tagsObject.tagValue = valueResultInstanceTagstagsItem["TagValue"].asString(); + if(!valueResultInstanceTagstagsItem["TagKey"].isNull()) + tagsObject.tagKey = valueResultInstanceTagstagsItem["TagKey"].asString(); resultObject.tags.push_back(tagsObject); } auto nodeSpecNode = value["nodeSpec"]; @@ -74,19 +74,19 @@ void ListLogstashResult::parse(const std::string &payload) resultObject.nodeSpec.spec = nodeSpecNode["spec"].asString(); if(!nodeSpecNode["disk"].isNull()) resultObject.nodeSpec.disk = std::stoi(nodeSpecNode["disk"].asString()); - if(!nodeSpecNode["diskType"].isNull()) - resultObject.nodeSpec.diskType = nodeSpecNode["diskType"].asString(); if(!nodeSpecNode["diskEncryption"].isNull()) resultObject.nodeSpec.diskEncryption = nodeSpecNode["diskEncryption"].asString() == "true"; + if(!nodeSpecNode["diskType"].isNull()) + resultObject.nodeSpec.diskType = nodeSpecNode["diskType"].asString(); auto networkConfigNode = value["networkConfig"]; - if(!networkConfigNode["type"].isNull()) - resultObject.networkConfig.type = networkConfigNode["type"].asString(); if(!networkConfigNode["vpcId"].isNull()) resultObject.networkConfig.vpcId = networkConfigNode["vpcId"].asString(); - if(!networkConfigNode["vswitchId"].isNull()) - resultObject.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString(); if(!networkConfigNode["vsArea"].isNull()) resultObject.networkConfig.vsArea = networkConfigNode["vsArea"].asString(); + if(!networkConfigNode["type"].isNull()) + resultObject.networkConfig.type = networkConfigNode["type"].asString(); + if(!networkConfigNode["vswitchId"].isNull()) + resultObject.networkConfig.vswitchId = networkConfigNode["vswitchId"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; diff --git a/elasticsearch/src/model/ListNodesRequest.cc b/elasticsearch/src/model/ListNodesRequest.cc index d836fd42d..674ce58c3 100644 --- a/elasticsearch/src/model/ListNodesRequest.cc +++ b/elasticsearch/src/model/ListNodesRequest.cc @@ -1,96 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListNodesRequest; - -ListNodesRequest::ListNodesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/nodes"); - setMethod(HttpRequest::Method::Get); -} - -ListNodesRequest::~ListNodesRequest() -{} - -std::string ListNodesRequest::getEcsInstanceName()const -{ - return ecsInstanceName_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListNodesRequest; + +ListNodesRequest::ListNodesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/nodes"}; + setMethod(HttpRequest::Method::Get); } -void ListNodesRequest::setEcsInstanceName(const std::string& ecsInstanceName) -{ - ecsInstanceName_ = ecsInstanceName; - setParameter("EcsInstanceName", ecsInstanceName); +ListNodesRequest::~ListNodesRequest() {} + +string ListNodesRequest::getEcsInstanceName() const { + return ecsInstanceName_; } -std::string ListNodesRequest::getEcsInstanceIds()const -{ - return ecsInstanceIds_; +void ListNodesRequest::setEcsInstanceName(string ecsInstanceName) { + ecsInstanceName_ = ecsInstanceName; + setParameter(std::string("ecsInstanceName"), std::to_string(ecsInstanceName)); } -void ListNodesRequest::setEcsInstanceIds(const std::string& ecsInstanceIds) -{ - ecsInstanceIds_ = ecsInstanceIds; - setParameter("EcsInstanceIds", ecsInstanceIds); +string ListNodesRequest::getEcsInstanceIds() const { + return ecsInstanceIds_; } -int ListNodesRequest::getSize()const -{ - return size_; +void ListNodesRequest::setEcsInstanceIds(string ecsInstanceIds) { + ecsInstanceIds_ = ecsInstanceIds; + setParameter(std::string("ecsInstanceIds"), std::to_string(ecsInstanceIds)); } -void ListNodesRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListNodesRequest::getSize() const { + return size_; } -int ListNodesRequest::getPage()const -{ - return page_; +void ListNodesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListNodesRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListNodesRequest::getPage() const { + return page_; } -std::string ListNodesRequest::getResId()const -{ - return resId_; +void ListNodesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListNodesRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string ListNodesRequest::getResId() const { + return resId_; } -std::string ListNodesRequest::getTags()const -{ - return tags_; +void ListNodesRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } -void ListNodesRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +string ListNodesRequest::getTags() const { + return tags_; +} + +void ListNodesRequest::setTags(string tags) { + tags_ = tags; + setParameter(std::string("tags"), std::to_string(tags)); } diff --git a/elasticsearch/src/model/ListNodesResult.cc b/elasticsearch/src/model/ListNodesResult.cc index 156e73445..3c9b8fcae 100644 --- a/elasticsearch/src/model/ListNodesResult.cc +++ b/elasticsearch/src/model/ListNodesResult.cc @@ -43,16 +43,16 @@ void ListNodesResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["ecsInstanceId"].isNull()) - resultObject.ecsInstanceId = valueResultResultItem["ecsInstanceId"].asString(); - if(!valueResultResultItem["ecsInstanceName"].isNull()) - resultObject.ecsInstanceName = valueResultResultItem["ecsInstanceName"].asString(); - if(!valueResultResultItem["status"].isNull()) - resultObject.status = valueResultResultItem["status"].asString(); - if(!valueResultResultItem["osType"].isNull()) - resultObject.osType = valueResultResultItem["osType"].asString(); if(!valueResultResultItem["cloudAssistantStatus"].isNull()) resultObject.cloudAssistantStatus = valueResultResultItem["cloudAssistantStatus"].asString(); + if(!valueResultResultItem["ecsInstanceName"].isNull()) + resultObject.ecsInstanceName = valueResultResultItem["ecsInstanceName"].asString(); + if(!valueResultResultItem["ecsInstanceId"].isNull()) + resultObject.ecsInstanceId = valueResultResultItem["ecsInstanceId"].asString(); + if(!valueResultResultItem["osType"].isNull()) + resultObject.osType = valueResultResultItem["osType"].asString(); + if(!valueResultResultItem["status"].isNull()) + resultObject.status = valueResultResultItem["status"].asString(); if(!valueResultResultItem["agentStatus"].isNull()) resultObject.agentStatus = valueResultResultItem["agentStatus"].asString(); auto alltagsNode = valueResultResultItem["tags"]["tagsItem"]; @@ -69,10 +69,10 @@ void ListNodesResult::parse(const std::string &payload) for (auto valueResultResultItemipAddressipAddressItem : allipAddressNode) { ResultItem::IpAddressItem ipAddressObject; - if(!valueResultResultItemipAddressipAddressItem["host"].isNull()) - ipAddressObject.host = valueResultResultItemipAddressipAddressItem["host"].asString(); if(!valueResultResultItemipAddressipAddressItem["ipType"].isNull()) ipAddressObject.ipType = valueResultResultItemipAddressipAddressItem["ipType"].asString(); + if(!valueResultResultItemipAddressipAddressItem["host"].isNull()) + ipAddressObject.host = valueResultResultItemipAddressipAddressItem["host"].asString(); resultObject.ipAddress.push_back(ipAddressObject); } result_.push_back(resultObject); diff --git a/elasticsearch/src/model/ListPipelineIdsRequest.cc b/elasticsearch/src/model/ListPipelineIdsRequest.cc index 9cca161df..36e5ae4c9 100644 --- a/elasticsearch/src/model/ListPipelineIdsRequest.cc +++ b/elasticsearch/src/model/ListPipelineIdsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListPipelineIdsRequest; - -ListPipelineIdsRequest::ListPipelineIdsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/pipeline-ids"); - setMethod(HttpRequest::Method::Post); -} - -ListPipelineIdsRequest::~ListPipelineIdsRequest() -{} - -std::string ListPipelineIdsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListPipelineIdsRequest; + +ListPipelineIdsRequest::ListPipelineIdsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/pipeline-ids"}; + setMethod(HttpRequest::Method::Post); } -void ListPipelineIdsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListPipelineIdsRequest::~ListPipelineIdsRequest() {} + +string ListPipelineIdsRequest::getInstanceId() const { + return instanceId_; +} + +void ListPipelineIdsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +string ListPipelineIdsRequest::getBody() const { + return body_; +} + +void ListPipelineIdsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/ListPipelineRequest.cc b/elasticsearch/src/model/ListPipelineRequest.cc index 0c5a2352e..a69fd8dea 100644 --- a/elasticsearch/src/model/ListPipelineRequest.cc +++ b/elasticsearch/src/model/ListPipelineRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListPipelineRequest; - -ListPipelineRequest::ListPipelineRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/pipelines"); - setMethod(HttpRequest::Method::Get); -} - -ListPipelineRequest::~ListPipelineRequest() -{} - -std::string ListPipelineRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListPipelineRequest; + +ListPipelineRequest::ListPipelineRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/pipelines"}; + setMethod(HttpRequest::Method::Get); } -void ListPipelineRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListPipelineRequest::~ListPipelineRequest() {} + +string ListPipelineRequest::getInstanceId() const { + return instanceId_; } -int ListPipelineRequest::getSize()const -{ - return size_; +void ListPipelineRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListPipelineRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListPipelineRequest::getSize() const { + return size_; } -int ListPipelineRequest::getPage()const -{ - return page_; +void ListPipelineRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListPipelineRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListPipelineRequest::getPage() const { + return page_; } -std::string ListPipelineRequest::getPipelineId()const -{ - return pipelineId_; +void ListPipelineRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListPipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +string ListPipelineRequest::getPipelineId() const { + return pipelineId_; +} + +void ListPipelineRequest::setPipelineId(string pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("pipelineId"), std::to_string(pipelineId)); } diff --git a/elasticsearch/src/model/ListPipelineResult.cc b/elasticsearch/src/model/ListPipelineResult.cc index feffc2aab..3be108806 100644 --- a/elasticsearch/src/model/ListPipelineResult.cc +++ b/elasticsearch/src/model/ListPipelineResult.cc @@ -45,12 +45,12 @@ void ListPipelineResult::parse(const std::string &payload) ResultItem resultObject; if(!valueResultResultItem["pipelineId"].isNull()) resultObject.pipelineId = valueResultResultItem["pipelineId"].asString(); - if(!valueResultResultItem["pipelineStatus"].isNull()) - resultObject.pipelineStatus = valueResultResultItem["pipelineStatus"].asString(); - if(!valueResultResultItem["gmtCreatedTime"].isNull()) - resultObject.gmtCreatedTime = valueResultResultItem["gmtCreatedTime"].asString(); if(!valueResultResultItem["gmtUpdateTime"].isNull()) resultObject.gmtUpdateTime = valueResultResultItem["gmtUpdateTime"].asString(); + if(!valueResultResultItem["gmtCreatedTime"].isNull()) + resultObject.gmtCreatedTime = valueResultResultItem["gmtCreatedTime"].asString(); + if(!valueResultResultItem["pipelineStatus"].isNull()) + resultObject.pipelineStatus = valueResultResultItem["pipelineStatus"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; diff --git a/elasticsearch/src/model/ListPluginsRequest.cc b/elasticsearch/src/model/ListPluginsRequest.cc index b649bb159..13b8b5500 100644 --- a/elasticsearch/src/model/ListPluginsRequest.cc +++ b/elasticsearch/src/model/ListPluginsRequest.cc @@ -1,85 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListPluginsRequest; - -ListPluginsRequest::ListPluginsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/plugins"); - setMethod(HttpRequest::Method::Get); -} - -ListPluginsRequest::~ListPluginsRequest() -{} - -std::string ListPluginsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListPluginsRequest; + +ListPluginsRequest::ListPluginsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/plugins"}; + setMethod(HttpRequest::Method::Get); } -void ListPluginsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListPluginsRequest::~ListPluginsRequest() {} + +string ListPluginsRequest::getInstanceId() const { + return instanceId_; } -int ListPluginsRequest::getSize()const -{ - return size_; +void ListPluginsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListPluginsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListPluginsRequest::getSize() const { + return size_; } -std::string ListPluginsRequest::getName()const -{ - return name_; +void ListPluginsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListPluginsRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +string ListPluginsRequest::getName() const { + return name_; } -std::string ListPluginsRequest::getPage()const -{ - return page_; +void ListPluginsRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); } -void ListPluginsRequest::setPage(const std::string& page) -{ - page_ = page; - setParameter("Page", page); +string ListPluginsRequest::getPage() const { + return page_; } -std::string ListPluginsRequest::getSource()const -{ - return source_; +void ListPluginsRequest::setPage(string page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListPluginsRequest::setSource(const std::string& source) -{ - source_ = source; - setParameter("Source", source); +string ListPluginsRequest::getSource() const { + return source_; +} + +void ListPluginsRequest::setSource(string source) { + source_ = source; + setParameter(std::string("source"), std::to_string(source)); } diff --git a/elasticsearch/src/model/ListPluginsResult.cc b/elasticsearch/src/model/ListPluginsResult.cc index 6f7374f84..45fda1bc0 100644 --- a/elasticsearch/src/model/ListPluginsResult.cc +++ b/elasticsearch/src/model/ListPluginsResult.cc @@ -43,16 +43,16 @@ void ListPluginsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); - if(!valueResultResultItem["state"].isNull()) - resultObject.state = valueResultResultItem["state"].asString(); - if(!valueResultResultItem["source"].isNull()) - resultObject.source = valueResultResultItem["source"].asString(); if(!valueResultResultItem["description"].isNull()) resultObject.description = valueResultResultItem["description"].asString(); if(!valueResultResultItem["specificationUrl"].isNull()) resultObject.specificationUrl = valueResultResultItem["specificationUrl"].asString(); + if(!valueResultResultItem["state"].isNull()) + resultObject.state = valueResultResultItem["state"].asString(); + if(!valueResultResultItem["source"].isNull()) + resultObject.source = valueResultResultItem["source"].asString(); + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; diff --git a/elasticsearch/src/model/ListSearchLogRequest.cc b/elasticsearch/src/model/ListSearchLogRequest.cc index 146b3287e..4113d5858 100644 --- a/elasticsearch/src/model/ListSearchLogRequest.cc +++ b/elasticsearch/src/model/ListSearchLogRequest.cc @@ -1,107 +1,91 @@ /* * 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 - -using AlibabaCloud::Elasticsearch::Model::ListSearchLogRequest; - -ListSearchLogRequest::ListSearchLogRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/search-log"); - setMethod(HttpRequest::Method::Get); -} - -ListSearchLogRequest::~ListSearchLogRequest() -{} - -std::string ListSearchLogRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListSearchLogRequest; + +ListSearchLogRequest::ListSearchLogRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/search-log"}; + setMethod(HttpRequest::Method::Get); } -void ListSearchLogRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListSearchLogRequest::~ListSearchLogRequest() {} + +string ListSearchLogRequest::getInstanceId() const { + return instanceId_; } -int ListSearchLogRequest::getSize()const -{ - return size_; +void ListSearchLogRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListSearchLogRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListSearchLogRequest::getSize() const { + return size_; } -std::string ListSearchLogRequest::getQuery()const -{ - return query_; +void ListSearchLogRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListSearchLogRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +string ListSearchLogRequest::getQuery() const { + return query_; } -long ListSearchLogRequest::getEndTime()const -{ - return endTime_; +void ListSearchLogRequest::setQuery(string query) { + query_ = query; + setParameter(std::string("query"), std::to_string(query)); } -void ListSearchLogRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +integer ListSearchLogRequest::getEndTime() const { + return endTime_; } -long ListSearchLogRequest::getBeginTime()const -{ - return beginTime_; +void ListSearchLogRequest::setEndTime(integer endTime) { + endTime_ = endTime; + setParameter(std::string("endTime"), std::to_string(endTime)); } -void ListSearchLogRequest::setBeginTime(long beginTime) -{ - beginTime_ = beginTime; - setParameter("BeginTime", std::to_string(beginTime)); +integer ListSearchLogRequest::getBeginTime() const { + return beginTime_; } -int ListSearchLogRequest::getPage()const -{ - return page_; +void ListSearchLogRequest::setBeginTime(integer beginTime) { + beginTime_ = beginTime; + setParameter(std::string("beginTime"), std::to_string(beginTime)); } -void ListSearchLogRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListSearchLogRequest::getPage() const { + return page_; } -std::string ListSearchLogRequest::getType()const -{ - return type_; +void ListSearchLogRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } -void ListSearchLogRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +string ListSearchLogRequest::getType() const { + return type_; +} + +void ListSearchLogRequest::setType(string type) { + type_ = type; + setParameter(std::string("type"), std::to_string(type)); } diff --git a/elasticsearch/src/model/ListSearchLogResult.cc b/elasticsearch/src/model/ListSearchLogResult.cc index 07348c05e..bedc6723b 100644 --- a/elasticsearch/src/model/ListSearchLogResult.cc +++ b/elasticsearch/src/model/ListSearchLogResult.cc @@ -43,18 +43,18 @@ void ListSearchLogResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["timestamp"].isNull()) - resultObject.timestamp = std::stol(valueResultResultItem["timestamp"].asString()); - if(!valueResultResultItem["host"].isNull()) - resultObject.host = valueResultResultItem["host"].asString(); - if(!valueResultResultItem["instanceId"].isNull()) - resultObject.instanceId = valueResultResultItem["instanceId"].asString(); - if(!valueResultResultItem["contentCollection"].isNull()) - resultObject.contentCollection = valueResultResultItem["contentCollection"].asString(); if(!valueResultResultItem["level"].isNull()) resultObject.level = valueResultResultItem["level"].asString(); + if(!valueResultResultItem["host"].isNull()) + resultObject.host = valueResultResultItem["host"].asString(); if(!valueResultResultItem["content"].isNull()) resultObject.content = valueResultResultItem["content"].asString(); + if(!valueResultResultItem["timestamp"].isNull()) + resultObject.timestamp = std::stol(valueResultResultItem["timestamp"].asString()); + if(!valueResultResultItem["contentCollection"].isNull()) + resultObject.contentCollection = valueResultResultItem["contentCollection"].asString(); + if(!valueResultResultItem["instanceId"].isNull()) + resultObject.instanceId = valueResultResultItem["instanceId"].asString(); result_.push_back(resultObject); } auto headersNode = value["Headers"]; diff --git a/elasticsearch/src/model/ListShardRecoveriesRequest.cc b/elasticsearch/src/model/ListShardRecoveriesRequest.cc index 0c12cfde8..ce115cc24 100644 --- a/elasticsearch/src/model/ListShardRecoveriesRequest.cc +++ b/elasticsearch/src/model/ListShardRecoveriesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListShardRecoveriesRequest; - -ListShardRecoveriesRequest::ListShardRecoveriesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/cat-recovery"); - setMethod(HttpRequest::Method::Get); -} - -ListShardRecoveriesRequest::~ListShardRecoveriesRequest() -{} - -bool ListShardRecoveriesRequest::getActiveOnly()const -{ - return activeOnly_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListShardRecoveriesRequest; + +ListShardRecoveriesRequest::ListShardRecoveriesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/cat-recovery"}; + setMethod(HttpRequest::Method::Get); } -void ListShardRecoveriesRequest::setActiveOnly(bool activeOnly) -{ - activeOnly_ = activeOnly; - setParameter("ActiveOnly", activeOnly ? "true" : "false"); +ListShardRecoveriesRequest::~ListShardRecoveriesRequest() {} + +boolean ListShardRecoveriesRequest::getActiveOnly() const { + return activeOnly_; } -std::string ListShardRecoveriesRequest::getInstanceId()const -{ - return instanceId_; +void ListShardRecoveriesRequest::setActiveOnly(boolean activeOnly) { + activeOnly_ = activeOnly; + setParameter(std::string("activeOnly"), std::to_string(activeOnly)); } -void ListShardRecoveriesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ListShardRecoveriesRequest::getInstanceId() const { + return instanceId_; +} + +void ListShardRecoveriesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/ListShardRecoveriesResult.cc b/elasticsearch/src/model/ListShardRecoveriesResult.cc index 252dea44a..1d65f3ad2 100644 --- a/elasticsearch/src/model/ListShardRecoveriesResult.cc +++ b/elasticsearch/src/model/ListShardRecoveriesResult.cc @@ -47,26 +47,26 @@ void ListShardRecoveriesResult::parse(const std::string &payload) resultObject.index = valueResultResultItem["index"].asString(); if(!valueResultResultItem["sourceHost"].isNull()) resultObject.sourceHost = valueResultResultItem["sourceHost"].asString(); - if(!valueResultResultItem["targetNode"].isNull()) - resultObject.targetNode = valueResultResultItem["targetNode"].asString(); - if(!valueResultResultItem["stage"].isNull()) - resultObject.stage = valueResultResultItem["stage"].asString(); + if(!valueResultResultItem["sourceNode"].isNull()) + resultObject.sourceNode = valueResultResultItem["sourceNode"].asString(); if(!valueResultResultItem["filesTotal"].isNull()) resultObject.filesTotal = std::stol(valueResultResultItem["filesTotal"].asString()); - if(!valueResultResultItem["filesPercent"].isNull()) - resultObject.filesPercent = valueResultResultItem["filesPercent"].asString(); - if(!valueResultResultItem["bytesTotal"].isNull()) - resultObject.bytesTotal = std::stol(valueResultResultItem["bytesTotal"].asString()); if(!valueResultResultItem["bytesPercent"].isNull()) resultObject.bytesPercent = valueResultResultItem["bytesPercent"].asString(); if(!valueResultResultItem["translogOps"].isNull()) resultObject.translogOps = std::stol(valueResultResultItem["translogOps"].asString()); if(!valueResultResultItem["translogOpsPercent"].isNull()) resultObject.translogOpsPercent = valueResultResultItem["translogOpsPercent"].asString(); - if(!valueResultResultItem["sourceNode"].isNull()) - resultObject.sourceNode = valueResultResultItem["sourceNode"].asString(); + if(!valueResultResultItem["bytesTotal"].isNull()) + resultObject.bytesTotal = std::stol(valueResultResultItem["bytesTotal"].asString()); if(!valueResultResultItem["targetHost"].isNull()) resultObject.targetHost = valueResultResultItem["targetHost"].asString(); + if(!valueResultResultItem["targetNode"].isNull()) + resultObject.targetNode = valueResultResultItem["targetNode"].asString(); + if(!valueResultResultItem["filesPercent"].isNull()) + resultObject.filesPercent = valueResultResultItem["filesPercent"].asString(); + if(!valueResultResultItem["stage"].isNull()) + resultObject.stage = valueResultResultItem["stage"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListSnapshotReposByInstanceIdRequest.cc b/elasticsearch/src/model/ListSnapshotReposByInstanceIdRequest.cc index 376104128..e2d227855 100644 --- a/elasticsearch/src/model/ListSnapshotReposByInstanceIdRequest.cc +++ b/elasticsearch/src/model/ListSnapshotReposByInstanceIdRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListSnapshotReposByInstanceIdRequest; - -ListSnapshotReposByInstanceIdRequest::ListSnapshotReposByInstanceIdRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos"); - setMethod(HttpRequest::Method::Get); -} - -ListSnapshotReposByInstanceIdRequest::~ListSnapshotReposByInstanceIdRequest() -{} - -std::string ListSnapshotReposByInstanceIdRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListSnapshotReposByInstanceIdRequest; + +ListSnapshotReposByInstanceIdRequest::ListSnapshotReposByInstanceIdRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos"}; + setMethod(HttpRequest::Method::Get); } -void ListSnapshotReposByInstanceIdRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListSnapshotReposByInstanceIdRequest::~ListSnapshotReposByInstanceIdRequest() {} + +string ListSnapshotReposByInstanceIdRequest::getInstanceId() const { + return instanceId_; +} + +void ListSnapshotReposByInstanceIdRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/ListSnapshotReposByInstanceIdResult.cc b/elasticsearch/src/model/ListSnapshotReposByInstanceIdResult.cc index a45f471a4..1b82adeb4 100644 --- a/elasticsearch/src/model/ListSnapshotReposByInstanceIdResult.cc +++ b/elasticsearch/src/model/ListSnapshotReposByInstanceIdResult.cc @@ -43,14 +43,14 @@ void ListSnapshotReposByInstanceIdResult::parse(const std::string &payload) for (auto valueResultrepo : allResultNode) { Repo resultObject; - if(!valueResultrepo["instanceId"].isNull()) - resultObject.instanceId = valueResultrepo["instanceId"].asString(); if(!valueResultrepo["snapWarehouse"].isNull()) resultObject.snapWarehouse = valueResultrepo["snapWarehouse"].asString(); if(!valueResultrepo["repoPath"].isNull()) resultObject.repoPath = valueResultrepo["repoPath"].asString(); if(!valueResultrepo["status"].isNull()) resultObject.status = valueResultrepo["status"].asString(); + if(!valueResultrepo["instanceId"].isNull()) + resultObject.instanceId = valueResultrepo["instanceId"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListTagResourcesRequest.cc b/elasticsearch/src/model/ListTagResourcesRequest.cc index 07736fba9..73ae62bcf 100644 --- a/elasticsearch/src/model/ListTagResourcesRequest.cc +++ b/elasticsearch/src/model/ListTagResourcesRequest.cc @@ -1,96 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ListTagResourcesRequest; - -ListTagResourcesRequest::ListTagResourcesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/tags"); - setMethod(HttpRequest::Method::Get); -} - -ListTagResourcesRequest::~ListTagResourcesRequest() -{} - -int ListTagResourcesRequest::getSize()const -{ - return size_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/tags"}; + setMethod(HttpRequest::Method::Get); } -void ListTagResourcesRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +integer ListTagResourcesRequest::getSize() const { + return size_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("Size"), std::to_string(size)); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -int ListTagResourcesRequest::getPage()const -{ - return page_; +void ListTagResourcesRequest::setNextToken(string nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), std::to_string(nextToken)); } -void ListTagResourcesRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListTagResourcesRequest::getPage() const { + return page_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("Page"), std::to_string(page)); } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +string ListTagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string ListTagResourcesRequest::getResourceIds()const -{ - return resourceIds_; +void ListTagResourcesRequest::setResourceType(string resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), std::to_string(resourceType)); } -void ListTagResourcesRequest::setResourceIds(const std::string& resourceIds) -{ - resourceIds_ = resourceIds; - setParameter("ResourceIds", resourceIds); +string ListTagResourcesRequest::getResourceIds() const { + return resourceIds_; } -std::string ListTagResourcesRequest::getTags()const -{ - return tags_; +void ListTagResourcesRequest::setResourceIds(string resourceIds) { + resourceIds_ = resourceIds; + setParameter(std::string("ResourceIds"), std::to_string(resourceIds)); } -void ListTagResourcesRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +string ListTagResourcesRequest::getTags() const { + return tags_; +} + +void ListTagResourcesRequest::setTags(string tags) { + tags_ = tags; + setParameter(std::string("Tags"), std::to_string(tags)); } diff --git a/elasticsearch/src/model/ListTagResourcesResult.cc b/elasticsearch/src/model/ListTagResourcesResult.cc index 74fe97c15..d7a850a22 100644 --- a/elasticsearch/src/model/ListTagResourcesResult.cc +++ b/elasticsearch/src/model/ListTagResourcesResult.cc @@ -47,14 +47,14 @@ void ListTagResourcesResult::parse(const std::string &payload) for (auto tagResourcesNodeTagResourceTagResourceItem : allTagResourceNode) { TagResources::TagResourceItem tagResourceItemObject; - if(!tagResourcesNodeTagResourceTagResourceItem["ResourceId"].isNull()) - tagResourceItemObject.resourceId = tagResourcesNodeTagResourceTagResourceItem["ResourceId"].asString(); - if(!tagResourcesNodeTagResourceTagResourceItem["ResourceType"].isNull()) - tagResourceItemObject.resourceType = tagResourcesNodeTagResourceTagResourceItem["ResourceType"].asString(); - if(!tagResourcesNodeTagResourceTagResourceItem["TagKey"].isNull()) - tagResourceItemObject.tagKey = tagResourcesNodeTagResourceTagResourceItem["TagKey"].asString(); if(!tagResourcesNodeTagResourceTagResourceItem["TagValue"].isNull()) tagResourceItemObject.tagValue = tagResourcesNodeTagResourceTagResourceItem["TagValue"].asString(); + if(!tagResourcesNodeTagResourceTagResourceItem["ResourceType"].isNull()) + tagResourceItemObject.resourceType = tagResourcesNodeTagResourceTagResourceItem["ResourceType"].asString(); + if(!tagResourcesNodeTagResourceTagResourceItem["ResourceId"].isNull()) + tagResourceItemObject.resourceId = tagResourcesNodeTagResourceTagResourceItem["ResourceId"].asString(); + if(!tagResourcesNodeTagResourceTagResourceItem["TagKey"].isNull()) + tagResourceItemObject.tagKey = tagResourcesNodeTagResourceTagResourceItem["TagKey"].asString(); tagResources_.tagResource.push_back(tagResourceItemObject); } if(!value["PageSize"].isNull()) diff --git a/elasticsearch/src/model/ListTagsRequest.cc b/elasticsearch/src/model/ListTagsRequest.cc index 7590e2b2e..10bfcdc66 100644 --- a/elasticsearch/src/model/ListTagsRequest.cc +++ b/elasticsearch/src/model/ListTagsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListTagsRequest; - -ListTagsRequest::ListTagsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/tags/all-tags"); - setMethod(HttpRequest::Method::Get); -} - -ListTagsRequest::~ListTagsRequest() -{} - -int ListTagsRequest::getPageSize()const -{ - return pageSize_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListTagsRequest; + +ListTagsRequest::ListTagsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/tags/all-tags"}; + setMethod(HttpRequest::Method::Get); } -void ListTagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +ListTagsRequest::~ListTagsRequest() {} + +integer ListTagsRequest::getPageSize() const { + return pageSize_; } -std::string ListTagsRequest::getResourceType()const -{ - return resourceType_; +void ListTagsRequest::setPageSize(integer pageSize) { + pageSize_ = pageSize; + setParameter(std::string("pageSize"), std::to_string(pageSize)); } -void ListTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +string ListTagsRequest::getResourceType() const { + return resourceType_; +} + +void ListTagsRequest::setResourceType(string resourceType) { + resourceType_ = resourceType; + setParameter(std::string("resourceType"), std::to_string(resourceType)); } diff --git a/elasticsearch/src/model/ListTagsResult.cc b/elasticsearch/src/model/ListTagsResult.cc index 1f0e71c3c..a015f94a8 100644 --- a/elasticsearch/src/model/ListTagsResult.cc +++ b/elasticsearch/src/model/ListTagsResult.cc @@ -43,10 +43,10 @@ void ListTagsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["TagKey"].isNull()) - resultObject.tagKey = valueResultResultItem["TagKey"].asString(); if(!valueResultResultItem["TagValue"].isNull()) resultObject.tagValue = valueResultResultItem["TagValue"].asString(); + if(!valueResultResultItem["TagKey"].isNull()) + resultObject.tagKey = valueResultResultItem["TagKey"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ListVpcEndpointsRequest.cc b/elasticsearch/src/model/ListVpcEndpointsRequest.cc index 92060175e..e2ed22107 100644 --- a/elasticsearch/src/model/ListVpcEndpointsRequest.cc +++ b/elasticsearch/src/model/ListVpcEndpointsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ListVpcEndpointsRequest; - -ListVpcEndpointsRequest::ListVpcEndpointsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/vpc-endpoints"); - setMethod(HttpRequest::Method::Get); -} - -ListVpcEndpointsRequest::~ListVpcEndpointsRequest() -{} - -std::string ListVpcEndpointsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ListVpcEndpointsRequest; + +ListVpcEndpointsRequest::ListVpcEndpointsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/vpc-endpoints"}; + setMethod(HttpRequest::Method::Get); } -void ListVpcEndpointsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ListVpcEndpointsRequest::~ListVpcEndpointsRequest() {} + +string ListVpcEndpointsRequest::getInstanceId() const { + return instanceId_; } -int ListVpcEndpointsRequest::getSize()const -{ - return size_; +void ListVpcEndpointsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ListVpcEndpointsRequest::setSize(int size) -{ - size_ = size; - setParameter("Size", std::to_string(size)); +integer ListVpcEndpointsRequest::getSize() const { + return size_; } -int ListVpcEndpointsRequest::getPage()const -{ - return page_; +void ListVpcEndpointsRequest::setSize(integer size) { + size_ = size; + setParameter(std::string("size"), std::to_string(size)); } -void ListVpcEndpointsRequest::setPage(int page) -{ - page_ = page; - setParameter("Page", std::to_string(page)); +integer ListVpcEndpointsRequest::getPage() const { + return page_; +} + +void ListVpcEndpointsRequest::setPage(integer page) { + page_ = page; + setParameter(std::string("page"), std::to_string(page)); } diff --git a/elasticsearch/src/model/ListVpcEndpointsResult.cc b/elasticsearch/src/model/ListVpcEndpointsResult.cc index 7a07d0e63..80fbc893f 100644 --- a/elasticsearch/src/model/ListVpcEndpointsResult.cc +++ b/elasticsearch/src/model/ListVpcEndpointsResult.cc @@ -43,24 +43,24 @@ void ListVpcEndpointsResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["connectionStatus"].isNull()) - resultObject.connectionStatus = valueResultResultItem["connectionStatus"].asString(); - if(!valueResultResultItem["createTime"].isNull()) - resultObject.createTime = valueResultResultItem["createTime"].asString(); if(!valueResultResultItem["endpointBusinessStatus"].isNull()) resultObject.endpointBusinessStatus = valueResultResultItem["endpointBusinessStatus"].asString(); - if(!valueResultResultItem["endpointId"].isNull()) - resultObject.endpointId = valueResultResultItem["endpointId"].asString(); - if(!valueResultResultItem["endpointName"].isNull()) - resultObject.endpointName = valueResultResultItem["endpointName"].asString(); - if(!valueResultResultItem["endpointStatus"].isNull()) - resultObject.endpointStatus = valueResultResultItem["endpointStatus"].asString(); if(!valueResultResultItem["serviceId"].isNull()) resultObject.serviceId = valueResultResultItem["serviceId"].asString(); + if(!valueResultResultItem["endpointName"].isNull()) + resultObject.endpointName = valueResultResultItem["endpointName"].asString(); + if(!valueResultResultItem["endpointId"].isNull()) + resultObject.endpointId = valueResultResultItem["endpointId"].asString(); if(!valueResultResultItem["serviceName"].isNull()) resultObject.serviceName = valueResultResultItem["serviceName"].asString(); + if(!valueResultResultItem["createTime"].isNull()) + resultObject.createTime = valueResultResultItem["createTime"].asString(); + if(!valueResultResultItem["connectionStatus"].isNull()) + resultObject.connectionStatus = valueResultResultItem["connectionStatus"].asString(); if(!valueResultResultItem["endpointDomain"].isNull()) resultObject.endpointDomain = valueResultResultItem["endpointDomain"].asString(); + if(!valueResultResultItem["endpointStatus"].isNull()) + resultObject.endpointStatus = valueResultResultItem["endpointStatus"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/MigrateToOtherZoneRequest.cc b/elasticsearch/src/model/MigrateToOtherZoneRequest.cc index dae6976eb..d95efb081 100644 --- a/elasticsearch/src/model/MigrateToOtherZoneRequest.cc +++ b/elasticsearch/src/model/MigrateToOtherZoneRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::MigrateToOtherZoneRequest; - -MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/migrate-zones"); - setMethod(HttpRequest::Method::Post); -} - -MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest() -{} - -std::string MigrateToOtherZoneRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::MigrateToOtherZoneRequest; + +MigrateToOtherZoneRequest::MigrateToOtherZoneRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/migrate-zones"}; + setMethod(HttpRequest::Method::Post); } -void MigrateToOtherZoneRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +MigrateToOtherZoneRequest::~MigrateToOtherZoneRequest() {} + +string MigrateToOtherZoneRequest::getInstanceId() const { + return instanceId_; } -bool MigrateToOtherZoneRequest::getDryRun()const -{ - return dryRun_; +void MigrateToOtherZoneRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void MigrateToOtherZoneRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +boolean MigrateToOtherZoneRequest::getDryRun() const { + return dryRun_; +} + +void MigrateToOtherZoneRequest::setDryRun(boolean dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), std::to_string(dryRun)); +} + +string MigrateToOtherZoneRequest::getBody() const { + return body_; +} + +void MigrateToOtherZoneRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/ModifyDeployMachineRequest.cc b/elasticsearch/src/model/ModifyDeployMachineRequest.cc index 669090403..459dc551b 100644 --- a/elasticsearch/src/model/ModifyDeployMachineRequest.cc +++ b/elasticsearch/src/model/ModifyDeployMachineRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ModifyDeployMachineRequest; - -ModifyDeployMachineRequest::ModifyDeployMachineRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/actions/modify-deploy-machines"); - setMethod(HttpRequest::Method::Post); -} - -ModifyDeployMachineRequest::~ModifyDeployMachineRequest() -{} - -std::string ModifyDeployMachineRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ModifyDeployMachineRequest; + +ModifyDeployMachineRequest::ModifyDeployMachineRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/actions/modify-deploy-machines"}; + setMethod(HttpRequest::Method::Post); } -void ModifyDeployMachineRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ModifyDeployMachineRequest::~ModifyDeployMachineRequest() {} + +string ModifyDeployMachineRequest::getClientToken() const { + return clientToken_; } -std::string ModifyDeployMachineRequest::getResId()const -{ - return resId_; +void ModifyDeployMachineRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void ModifyDeployMachineRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string ModifyDeployMachineRequest::getBody() const { + return body_; +} + +void ModifyDeployMachineRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + +string ModifyDeployMachineRequest::getResId() const { + return resId_; +} + +void ModifyDeployMachineRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/ModifyElastictaskRequest.cc b/elasticsearch/src/model/ModifyElastictaskRequest.cc index 3ebdf172a..01d120f3c 100644 --- a/elasticsearch/src/model/ModifyElastictaskRequest.cc +++ b/elasticsearch/src/model/ModifyElastictaskRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ModifyElastictaskRequest; - -ModifyElastictaskRequest::ModifyElastictaskRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/elastic-task"); - setMethod(HttpRequest::Method::Post); -} - -ModifyElastictaskRequest::~ModifyElastictaskRequest() -{} - -std::string ModifyElastictaskRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ModifyElastictaskRequest; + +ModifyElastictaskRequest::ModifyElastictaskRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/elastic-task"}; + setMethod(HttpRequest::Method::Post); } -void ModifyElastictaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ModifyElastictaskRequest::~ModifyElastictaskRequest() {} + +string ModifyElastictaskRequest::getInstanceId() const { + return instanceId_; +} + +void ModifyElastictaskRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +string ModifyElastictaskRequest::getBody() const { + return body_; +} + +void ModifyElastictaskRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/ModifyElastictaskResult.cc b/elasticsearch/src/model/ModifyElastictaskResult.cc index 27af68e14..e185a83ed 100644 --- a/elasticsearch/src/model/ModifyElastictaskResult.cc +++ b/elasticsearch/src/model/ModifyElastictaskResult.cc @@ -43,24 +43,24 @@ void ModifyElastictaskResult::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()); diff --git a/elasticsearch/src/model/ModifyInstanceMaintainTimeRequest.cc b/elasticsearch/src/model/ModifyInstanceMaintainTimeRequest.cc index cf093e2ac..0599fc76e 100644 --- a/elasticsearch/src/model/ModifyInstanceMaintainTimeRequest.cc +++ b/elasticsearch/src/model/ModifyInstanceMaintainTimeRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ModifyInstanceMaintainTimeRequest; - -ModifyInstanceMaintainTimeRequest::ModifyInstanceMaintainTimeRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/modify-maintaintime"); - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceMaintainTimeRequest::~ModifyInstanceMaintainTimeRequest() -{} - -std::string ModifyInstanceMaintainTimeRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ModifyInstanceMaintainTimeRequest; + +ModifyInstanceMaintainTimeRequest::ModifyInstanceMaintainTimeRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/modify-maintaintime"}; + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceMaintainTimeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ModifyInstanceMaintainTimeRequest::~ModifyInstanceMaintainTimeRequest() {} + +string ModifyInstanceMaintainTimeRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceMaintainTimeRequest::getClientToken()const -{ - return clientToken_; +void ModifyInstanceMaintainTimeRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ModifyInstanceMaintainTimeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string ModifyInstanceMaintainTimeRequest::getClientToken() const { + return clientToken_; +} + +void ModifyInstanceMaintainTimeRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string ModifyInstanceMaintainTimeRequest::getBody() const { + return body_; +} + +void ModifyInstanceMaintainTimeRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/ModifyWhiteIpsRequest.cc b/elasticsearch/src/model/ModifyWhiteIpsRequest.cc index 2b371ff19..327bb2449 100644 --- a/elasticsearch/src/model/ModifyWhiteIpsRequest.cc +++ b/elasticsearch/src/model/ModifyWhiteIpsRequest.cc @@ -1,85 +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 - -using AlibabaCloud::Elasticsearch::Model::ModifyWhiteIpsRequest; - -ModifyWhiteIpsRequest::ModifyWhiteIpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/modify-white-ips"); - setMethod(HttpRequest::Method::Post); -} - -ModifyWhiteIpsRequest::~ModifyWhiteIpsRequest() -{} - -std::string ModifyWhiteIpsRequest::getModifyMode()const -{ - return modifyMode_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ModifyWhiteIpsRequest; + +ModifyWhiteIpsRequest::ModifyWhiteIpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/modify-white-ips"}; + setMethod(HttpRequest::Method::Post); } -void ModifyWhiteIpsRequest::setModifyMode(const std::string& modifyMode) -{ - modifyMode_ = modifyMode; - setBodyParameter("ModifyMode", modifyMode); +ModifyWhiteIpsRequest::~ModifyWhiteIpsRequest() {} + +string ModifyWhiteIpsRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyWhiteIpsRequest::getInstanceId()const -{ - return instanceId_; +void ModifyWhiteIpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ModifyWhiteIpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ModifyWhiteIpsRequest::getClientToken() const { + return clientToken_; } -std::string ModifyWhiteIpsRequest::getNodeType()const -{ - return nodeType_; +void ModifyWhiteIpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void ModifyWhiteIpsRequest::setNodeType(const std::string& nodeType) -{ - nodeType_ = nodeType; - setBodyParameter("NodeType", nodeType); +std::string ModifyWhiteIpsRequest::getBody() const { + return body_; } -std::string ModifyWhiteIpsRequest::getClientToken()const -{ - return clientToken_; -} - -void ModifyWhiteIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string ModifyWhiteIpsRequest::getNetworkType()const -{ - return networkType_; -} - -void ModifyWhiteIpsRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setBodyParameter("NetworkType", networkType); +void ModifyWhiteIpsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/MoveResourceGroupRequest.cc b/elasticsearch/src/model/MoveResourceGroupRequest.cc index 8e160bb7f..7284f055a 100644 --- a/elasticsearch/src/model/MoveResourceGroupRequest.cc +++ b/elasticsearch/src/model/MoveResourceGroupRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::MoveResourceGroupRequest; - -MoveResourceGroupRequest::MoveResourceGroupRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/resourcegroup"); - setMethod(HttpRequest::Method::Post); -} - -MoveResourceGroupRequest::~MoveResourceGroupRequest() -{} - -std::string MoveResourceGroupRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/resourcegroup"}; + setMethod(HttpRequest::Method::Post); } -void MoveResourceGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +MoveResourceGroupRequest::~MoveResourceGroupRequest() {} + +string MoveResourceGroupRequest::getInstanceId() const { + return instanceId_; } -std::string MoveResourceGroupRequest::getClientToken()const -{ - return clientToken_; +void MoveResourceGroupRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void MoveResourceGroupRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string MoveResourceGroupRequest::getClientToken() const { + return clientToken_; +} + +void MoveResourceGroupRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string MoveResourceGroupRequest::getBody() const { + return body_; +} + +void MoveResourceGroupRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/MoveResourceGroupResult.cc b/elasticsearch/src/model/MoveResourceGroupResult.cc index db2654c00..4815405ad 100644 --- a/elasticsearch/src/model/MoveResourceGroupResult.cc +++ b/elasticsearch/src/model/MoveResourceGroupResult.cc @@ -40,58 +40,58 @@ void MoveResourceGroupResult::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["nodeAmount"].isNull()) + result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString()); + if(!resultNode["publicDomain"].isNull()) + result_.publicDomain = resultNode["publicDomain"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["publicPort"].isNull()) + result_.publicPort = std::stoi(resultNode["publicPort"].asString()); + if(!resultNode["kibanaPort"].isNull()) + result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString()); + if(!resultNode["paymentType"].isNull()) + result_.paymentType = resultNode["paymentType"].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["kibanaPort"].isNull()) - result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString()); - if(!resultNode["publicDomain"].isNull()) - result_.publicDomain = resultNode["publicDomain"].asString(); - if(!resultNode["publicPort"].isNull()) - result_.publicPort = std::stoi(resultNode["publicPort"].asString()); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].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 nodeSpecNode = resultNode["nodeSpec"]; @@ -102,32 +102,32 @@ void MoveResourceGroupResult::parse(const std::string &payload) 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 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["diskType"].isNull()) - result_.kibanaConfiguration.diskType = kibanaConfigurationNode["diskType"].asString(); if(!kibanaConfigurationNode["disk"].isNull()) result_.kibanaConfiguration.disk = std::stoi(kibanaConfigurationNode["disk"].asString()); + if(!kibanaConfigurationNode["diskType"].isNull()) + result_.kibanaConfiguration.diskType = kibanaConfigurationNode["diskType"].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(); } diff --git a/elasticsearch/src/model/OpenDiagnosisRequest.cc b/elasticsearch/src/model/OpenDiagnosisRequest.cc index db14b6ea6..d9431fb1a 100644 --- a/elasticsearch/src/model/OpenDiagnosisRequest.cc +++ b/elasticsearch/src/model/OpenDiagnosisRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::OpenDiagnosisRequest; - -OpenDiagnosisRequest::OpenDiagnosisRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/diagnosis/instances/[InstanceId]/actions/open-diagnosis"); - setMethod(HttpRequest::Method::Post); -} - -OpenDiagnosisRequest::~OpenDiagnosisRequest() -{} - -std::string OpenDiagnosisRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::OpenDiagnosisRequest; + +OpenDiagnosisRequest::OpenDiagnosisRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/diagnosis/instances/[InstanceId]/actions/open-diagnosis"}; + setMethod(HttpRequest::Method::Post); } -void OpenDiagnosisRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OpenDiagnosisRequest::~OpenDiagnosisRequest() {} + +string OpenDiagnosisRequest::getInstanceId() const { + return instanceId_; } -std::string OpenDiagnosisRequest::getClientToken()const -{ - return clientToken_; +void OpenDiagnosisRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void OpenDiagnosisRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string OpenDiagnosisRequest::getClientToken() const { + return clientToken_; } -std::string OpenDiagnosisRequest::getLang()const -{ - return lang_; +void OpenDiagnosisRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void OpenDiagnosisRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +string OpenDiagnosisRequest::getLang() const { + return lang_; +} + +void OpenDiagnosisRequest::setLang(string lang) { + lang_ = lang; + setParameter(std::string("lang"), std::to_string(lang)); } diff --git a/elasticsearch/src/model/OpenHttpsRequest.cc b/elasticsearch/src/model/OpenHttpsRequest.cc index 4b9b7c06f..8d3a93775 100644 --- a/elasticsearch/src/model/OpenHttpsRequest.cc +++ b/elasticsearch/src/model/OpenHttpsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::OpenHttpsRequest; - -OpenHttpsRequest::OpenHttpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/open-https"); - setMethod(HttpRequest::Method::Post); -} - -OpenHttpsRequest::~OpenHttpsRequest() -{} - -std::string OpenHttpsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::OpenHttpsRequest; + +OpenHttpsRequest::OpenHttpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/open-https"}; + setMethod(HttpRequest::Method::Post); } -void OpenHttpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +OpenHttpsRequest::~OpenHttpsRequest() {} + +string OpenHttpsRequest::getInstanceId() const { + return instanceId_; } -std::string OpenHttpsRequest::getClientToken()const -{ - return clientToken_; +void OpenHttpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void OpenHttpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string OpenHttpsRequest::getClientToken() const { + return clientToken_; +} + +void OpenHttpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/PostEmonTryAlarmRuleRequest.cc b/elasticsearch/src/model/PostEmonTryAlarmRuleRequest.cc index 811f16709..6642ab007 100644 --- a/elasticsearch/src/model/PostEmonTryAlarmRuleRequest.cc +++ b/elasticsearch/src/model/PostEmonTryAlarmRuleRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::PostEmonTryAlarmRuleRequest; - -PostEmonTryAlarmRuleRequest::PostEmonTryAlarmRuleRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/emon/projects/[ProjectId]/alarm-groups/[AlarmGroupId]/alarm-rules/_test"); - setMethod(HttpRequest::Method::Post); -} - -PostEmonTryAlarmRuleRequest::~PostEmonTryAlarmRuleRequest() -{} - -std::string PostEmonTryAlarmRuleRequest::getAlarmGroupId()const -{ - return alarmGroupId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::PostEmonTryAlarmRuleRequest; + +PostEmonTryAlarmRuleRequest::PostEmonTryAlarmRuleRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/emon/projects/[ProjectId]/alarm-groups/[AlarmGroupId]/alarm-rules/_test"}; + setMethod(HttpRequest::Method::Post); } -void PostEmonTryAlarmRuleRequest::setAlarmGroupId(const std::string& alarmGroupId) -{ - alarmGroupId_ = alarmGroupId; - setParameter("AlarmGroupId", alarmGroupId); +PostEmonTryAlarmRuleRequest::~PostEmonTryAlarmRuleRequest() {} + +string PostEmonTryAlarmRuleRequest::getAlarmGroupId() const { + return alarmGroupId_; } -std::string PostEmonTryAlarmRuleRequest::getProjectId()const -{ - return projectId_; +void PostEmonTryAlarmRuleRequest::setAlarmGroupId(string alarmGroupId) { + alarmGroupId_ = alarmGroupId; + setParameter(std::string("AlarmGroupId"), std::to_string(alarmGroupId)); } -void PostEmonTryAlarmRuleRequest::setProjectId(const std::string& projectId) -{ - projectId_ = projectId; - setParameter("ProjectId", projectId); +string PostEmonTryAlarmRuleRequest::getBody() const { + return body_; +} + +void PostEmonTryAlarmRuleRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + +string PostEmonTryAlarmRuleRequest::getProjectId() const { + return projectId_; +} + +void PostEmonTryAlarmRuleRequest::setProjectId(string projectId) { + projectId_ = projectId; + setParameter(std::string("ProjectId"), std::to_string(projectId)); } diff --git a/elasticsearch/src/model/RecommendTemplatesRequest.cc b/elasticsearch/src/model/RecommendTemplatesRequest.cc index f2cf6cb1c..02540c029 100644 --- a/elasticsearch/src/model/RecommendTemplatesRequest.cc +++ b/elasticsearch/src/model/RecommendTemplatesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RecommendTemplatesRequest; - -RecommendTemplatesRequest::RecommendTemplatesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/recommended-templates"); - setMethod(HttpRequest::Method::Get); -} - -RecommendTemplatesRequest::~RecommendTemplatesRequest() -{} - -std::string RecommendTemplatesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RecommendTemplatesRequest; + +RecommendTemplatesRequest::RecommendTemplatesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/recommended-templates"}; + setMethod(HttpRequest::Method::Get); } -void RecommendTemplatesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RecommendTemplatesRequest::~RecommendTemplatesRequest() {} + +string RecommendTemplatesRequest::getInstanceId() const { + return instanceId_; } -std::string RecommendTemplatesRequest::getUsageScenario()const -{ - return usageScenario_; +void RecommendTemplatesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RecommendTemplatesRequest::setUsageScenario(const std::string& usageScenario) -{ - usageScenario_ = usageScenario; - setParameter("UsageScenario", usageScenario); +string RecommendTemplatesRequest::getUsageScenario() const { + return usageScenario_; +} + +void RecommendTemplatesRequest::setUsageScenario(string usageScenario) { + usageScenario_ = usageScenario; + setParameter(std::string("usageScenario"), std::to_string(usageScenario)); } diff --git a/elasticsearch/src/model/RecommendTemplatesResult.cc b/elasticsearch/src/model/RecommendTemplatesResult.cc index ebd12e6bf..3d9f40b44 100644 --- a/elasticsearch/src/model/RecommendTemplatesResult.cc +++ b/elasticsearch/src/model/RecommendTemplatesResult.cc @@ -43,10 +43,10 @@ void RecommendTemplatesResult::parse(const std::string &payload) for (auto valueResultTemplateConfig : allResultNode) { TemplateConfig resultObject; - if(!valueResultTemplateConfig["templateName"].isNull()) - resultObject.templateName = valueResultTemplateConfig["templateName"].asString(); if(!valueResultTemplateConfig["content"].isNull()) resultObject.content = valueResultTemplateConfig["content"].asString(); + if(!valueResultTemplateConfig["templateName"].isNull()) + resultObject.templateName = valueResultTemplateConfig["templateName"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/ReinstallCollectorRequest.cc b/elasticsearch/src/model/ReinstallCollectorRequest.cc index 555a60097..e3586741f 100644 --- a/elasticsearch/src/model/ReinstallCollectorRequest.cc +++ b/elasticsearch/src/model/ReinstallCollectorRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ReinstallCollectorRequest; - -ReinstallCollectorRequest::ReinstallCollectorRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/actions/reinstall"); - setMethod(HttpRequest::Method::Post); -} - -ReinstallCollectorRequest::~ReinstallCollectorRequest() -{} - -std::string ReinstallCollectorRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ReinstallCollectorRequest; + +ReinstallCollectorRequest::ReinstallCollectorRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/actions/reinstall"}; + setMethod(HttpRequest::Method::Post); } -void ReinstallCollectorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ReinstallCollectorRequest::~ReinstallCollectorRequest() {} + +string ReinstallCollectorRequest::getClientToken() const { + return clientToken_; } -std::string ReinstallCollectorRequest::getResId()const -{ - return resId_; +void ReinstallCollectorRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void ReinstallCollectorRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string ReinstallCollectorRequest::getBody() const { + return body_; +} + +void ReinstallCollectorRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + +string ReinstallCollectorRequest::getResId() const { + return resId_; +} + +void ReinstallCollectorRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/RemoveApmRequest.cc b/elasticsearch/src/model/RemoveApmRequest.cc index 640ff217a..3f0b920b3 100644 --- a/elasticsearch/src/model/RemoveApmRequest.cc +++ b/elasticsearch/src/model/RemoveApmRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RemoveApmRequest; - -RemoveApmRequest::RemoveApmRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/apm/[instanceId]"); - setMethod(HttpRequest::Method::Delete); -} - -RemoveApmRequest::~RemoveApmRequest() -{} - -std::string RemoveApmRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RemoveApmRequest; + +RemoveApmRequest::RemoveApmRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/apm/[instanceId]"}; + setMethod(HttpRequest::Method::Delete); } -void RemoveApmRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RemoveApmRequest::~RemoveApmRequest() {} + +string RemoveApmRequest::getInstanceId() const { + return instanceId_; +} + +void RemoveApmRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/RenewInstanceRequest.cc b/elasticsearch/src/model/RenewInstanceRequest.cc index 9ee47eb09..3fc804629 100644 --- a/elasticsearch/src/model/RenewInstanceRequest.cc +++ b/elasticsearch/src/model/RenewInstanceRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RenewInstanceRequest; - -RenewInstanceRequest::RenewInstanceRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/renew"); - setMethod(HttpRequest::Method::Post); -} - -RenewInstanceRequest::~RenewInstanceRequest() -{} - -std::string RenewInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RenewInstanceRequest; + +RenewInstanceRequest::RenewInstanceRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/renew"}; + setMethod(HttpRequest::Method::Post); } -void RenewInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RenewInstanceRequest::~RenewInstanceRequest() {} + +string RenewInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string RenewInstanceRequest::getClientToken()const -{ - return clientToken_; +void RenewInstanceRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RenewInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string RenewInstanceRequest::getClientToken() const { + return clientToken_; +} + +void RenewInstanceRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string RenewInstanceRequest::getBody() const { + return body_; +} + +void RenewInstanceRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/RenewLogstashRequest.cc b/elasticsearch/src/model/RenewLogstashRequest.cc index 0c08f9ee8..b3f37165b 100644 --- a/elasticsearch/src/model/RenewLogstashRequest.cc +++ b/elasticsearch/src/model/RenewLogstashRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RenewLogstashRequest; - -RenewLogstashRequest::RenewLogstashRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/actions/renew"); - setMethod(HttpRequest::Method::Post); -} - -RenewLogstashRequest::~RenewLogstashRequest() -{} - -std::string RenewLogstashRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RenewLogstashRequest; + +RenewLogstashRequest::RenewLogstashRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/actions/renew"}; + setMethod(HttpRequest::Method::Post); } -void RenewLogstashRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RenewLogstashRequest::~RenewLogstashRequest() {} + +string RenewLogstashRequest::getInstanceId() const { + return instanceId_; } -std::string RenewLogstashRequest::getClientToken()const -{ - return clientToken_; +void RenewLogstashRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RenewLogstashRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string RenewLogstashRequest::getClientToken() const { + return clientToken_; +} + +void RenewLogstashRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string RenewLogstashRequest::getBody() const { + return body_; +} + +void RenewLogstashRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/RestartCollectorRequest.cc b/elasticsearch/src/model/RestartCollectorRequest.cc index 3a70cbf53..237714142 100644 --- a/elasticsearch/src/model/RestartCollectorRequest.cc +++ b/elasticsearch/src/model/RestartCollectorRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RestartCollectorRequest; - -RestartCollectorRequest::RestartCollectorRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/actions/restart"); - setMethod(HttpRequest::Method::Post); -} - -RestartCollectorRequest::~RestartCollectorRequest() -{} - -std::string RestartCollectorRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RestartCollectorRequest; + +RestartCollectorRequest::RestartCollectorRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/actions/restart"}; + setMethod(HttpRequest::Method::Post); } -void RestartCollectorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +RestartCollectorRequest::~RestartCollectorRequest() {} + +string RestartCollectorRequest::getClientToken() const { + return clientToken_; } -std::string RestartCollectorRequest::getResId()const -{ - return resId_; +void RestartCollectorRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void RestartCollectorRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string RestartCollectorRequest::getResId() const { + return resId_; +} + +void RestartCollectorRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/RestartInstanceRequest.cc b/elasticsearch/src/model/RestartInstanceRequest.cc index e9ebfcf04..40aedc7f7 100644 --- a/elasticsearch/src/model/RestartInstanceRequest.cc +++ b/elasticsearch/src/model/RestartInstanceRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RestartInstanceRequest; - -RestartInstanceRequest::RestartInstanceRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/restart"); - setMethod(HttpRequest::Method::Post); -} - -RestartInstanceRequest::~RestartInstanceRequest() -{} - -std::string RestartInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RestartInstanceRequest; + +RestartInstanceRequest::RestartInstanceRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/restart"}; + setMethod(HttpRequest::Method::Post); } -void RestartInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RestartInstanceRequest::~RestartInstanceRequest() {} + +string RestartInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string RestartInstanceRequest::getClientToken()const -{ - return clientToken_; +void RestartInstanceRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RestartInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string RestartInstanceRequest::getClientToken() const { + return clientToken_; } -bool RestartInstanceRequest::getForce()const -{ - return force_; +void RestartInstanceRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void RestartInstanceRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +boolean RestartInstanceRequest::getForce() const { + return force_; +} + +void RestartInstanceRequest::setForce(boolean force) { + force_ = force; + setParameter(std::string("force"), std::to_string(force)); +} + +string RestartInstanceRequest::getBody() const { + return body_; +} + +void RestartInstanceRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/RestartInstanceResult.cc b/elasticsearch/src/model/RestartInstanceResult.cc index d0ebb11e4..9be5f64fb 100644 --- a/elasticsearch/src/model/RestartInstanceResult.cc +++ b/elasticsearch/src/model/RestartInstanceResult.cc @@ -40,44 +40,44 @@ void RestartInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; - if(!resultNode["createdAt"].isNull()) - result_.createdAt = resultNode["createdAt"].asString(); - if(!resultNode["description"].isNull()) - result_.description = resultNode["description"].asString(); - if(!resultNode["domain"].isNull()) - result_.domain = resultNode["domain"].asString(); - if(!resultNode["esVersion"].isNull()) - result_.esVersion = resultNode["esVersion"].asString(); - if(!resultNode["instanceId"].isNull()) - result_.instanceId = resultNode["instanceId"].asString(); - if(!resultNode["kibanaDomain"].isNull()) - result_.kibanaDomain = resultNode["kibanaDomain"].asString(); - if(!resultNode["kibanaPort"].isNull()) - result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString()); if(!resultNode["nodeAmount"].isNull()) result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString()); - if(!resultNode["paymentType"].isNull()) - result_.paymentType = resultNode["paymentType"].asString(); if(!resultNode["publicDomain"].isNull()) result_.publicDomain = resultNode["publicDomain"].asString(); - if(!resultNode["publicPort"].isNull()) - result_.publicPort = std::stoi(resultNode["publicPort"].asString()); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); if(!resultNode["status"].isNull()) result_.status = resultNode["status"].asString(); + if(!resultNode["kibanaPort"].isNull()) + result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString()); + if(!resultNode["publicPort"].isNull()) + result_.publicPort = std::stoi(resultNode["publicPort"].asString()); + if(!resultNode["paymentType"].isNull()) + result_.paymentType = resultNode["paymentType"].asString(); + if(!resultNode["domain"].isNull()) + result_.domain = resultNode["domain"].asString(); + if(!resultNode["description"].isNull()) + result_.description = resultNode["description"].asString(); + if(!resultNode["esVersion"].isNull()) + result_.esVersion = resultNode["esVersion"].asString(); + if(!resultNode["kibanaDomain"].isNull()) + result_.kibanaDomain = resultNode["kibanaDomain"].asString(); if(!resultNode["updatedAt"].isNull()) result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].asString(); auto alldictListNode = resultNode["dictList"]["dictListItem"]; for (auto resultNodedictListdictListItem : alldictListNode) { Result::DictListItem dictListItemObject; if(!resultNodedictListdictListItem["fileSize"].isNull()) dictListItemObject.fileSize = std::stol(resultNodedictListdictListItem["fileSize"].asString()); + if(!resultNodedictListdictListItem["type"].isNull()) + dictListItemObject.type = resultNodedictListdictListItem["type"].asString(); if(!resultNodedictListdictListItem["name"].isNull()) dictListItemObject.name = resultNodedictListdictListItem["name"].asString(); if(!resultNodedictListdictListItem["sourceType"].isNull()) dictListItemObject.sourceType = resultNodedictListdictListItem["sourceType"].asString(); - if(!resultNodedictListdictListItem["type"].isNull()) - dictListItemObject.type = resultNodedictListdictListItem["type"].asString(); result_.dictList.push_back(dictListItemObject); } auto allsynonymsDictsNode = resultNode["synonymsDicts"]["synonymsDictsItem"]; @@ -86,48 +86,48 @@ void RestartInstanceResult::parse(const std::string &payload) Result::SynonymsDictsItem synonymsDictsItemObject; if(!resultNodesynonymsDictssynonymsDictsItem["fileSize"].isNull()) synonymsDictsItemObject.fileSize = std::stol(resultNodesynonymsDictssynonymsDictsItem["fileSize"].asString()); + if(!resultNodesynonymsDictssynonymsDictsItem["type"].isNull()) + synonymsDictsItemObject.type = resultNodesynonymsDictssynonymsDictsItem["type"].asString(); if(!resultNodesynonymsDictssynonymsDictsItem["name"].isNull()) synonymsDictsItemObject.name = resultNodesynonymsDictssynonymsDictsItem["name"].asString(); if(!resultNodesynonymsDictssynonymsDictsItem["sourceType"].isNull()) synonymsDictsItemObject.sourceType = resultNodesynonymsDictssynonymsDictsItem["sourceType"].asString(); - if(!resultNodesynonymsDictssynonymsDictsItem["type"].isNull()) - synonymsDictsItemObject.type = resultNodesynonymsDictssynonymsDictsItem["type"].asString(); result_.synonymsDicts.push_back(synonymsDictsItemObject); } 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["disk"].isNull()) result_.kibanaConfiguration.disk = std::stoi(kibanaConfigurationNode["disk"].asString()); if(!kibanaConfigurationNode["diskType"].isNull()) result_.kibanaConfiguration.diskType = kibanaConfigurationNode["diskType"].asString(); - if(!kibanaConfigurationNode["spec"].isNull()) - result_.kibanaConfiguration.spec = kibanaConfigurationNode["spec"].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["disk"].isNull()) result_.masterConfiguration.disk = std::stoi(masterConfigurationNode["disk"].asString()); if(!masterConfigurationNode["diskType"].isNull()) result_.masterConfiguration.diskType = masterConfigurationNode["diskType"].asString(); - if(!masterConfigurationNode["spec"].isNull()) - result_.masterConfiguration.spec = masterConfigurationNode["spec"].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["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 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["spec"].isNull()) - result_.nodeSpec.spec = nodeSpecNode["spec"].asString(); } diff --git a/elasticsearch/src/model/RestartLogstashRequest.cc b/elasticsearch/src/model/RestartLogstashRequest.cc index 7d7bd350f..4b7578ad8 100644 --- a/elasticsearch/src/model/RestartLogstashRequest.cc +++ b/elasticsearch/src/model/RestartLogstashRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RestartLogstashRequest; - -RestartLogstashRequest::RestartLogstashRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/actions/restart"); - setMethod(HttpRequest::Method::Post); -} - -RestartLogstashRequest::~RestartLogstashRequest() -{} - -std::string RestartLogstashRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RestartLogstashRequest; + +RestartLogstashRequest::RestartLogstashRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/actions/restart"}; + setMethod(HttpRequest::Method::Post); } -void RestartLogstashRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RestartLogstashRequest::~RestartLogstashRequest() {} + +string RestartLogstashRequest::getInstanceId() const { + return instanceId_; } -std::string RestartLogstashRequest::getClientToken()const -{ - return clientToken_; +void RestartLogstashRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RestartLogstashRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string RestartLogstashRequest::getClientToken() const { + return clientToken_; } -bool RestartLogstashRequest::getForce()const -{ - return force_; +void RestartLogstashRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void RestartLogstashRequest::setForce(bool force) -{ - force_ = force; - setParameter("Force", force ? "true" : "false"); +boolean RestartLogstashRequest::getForce() const { + return force_; +} + +void RestartLogstashRequest::setForce(boolean force) { + force_ = force; + setParameter(std::string("force"), std::to_string(force)); +} + +std::string RestartLogstashRequest::getBody() const { + return body_; +} + +void RestartLogstashRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/RestartLogstashResult.cc b/elasticsearch/src/model/RestartLogstashResult.cc index ceea02a09..199fc9dfc 100644 --- a/elasticsearch/src/model/RestartLogstashResult.cc +++ b/elasticsearch/src/model/RestartLogstashResult.cc @@ -39,6 +39,88 @@ void RestartLogstashResult::parse(const std::string &payload) Json::Value value; 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(); } +RestartLogstashResult::Result RestartLogstashResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/ResumeElasticsearchTaskRequest.cc b/elasticsearch/src/model/ResumeElasticsearchTaskRequest.cc index 9dc29003d..e39c29730 100644 --- a/elasticsearch/src/model/ResumeElasticsearchTaskRequest.cc +++ b/elasticsearch/src/model/ResumeElasticsearchTaskRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ResumeElasticsearchTaskRequest; - -ResumeElasticsearchTaskRequest::ResumeElasticsearchTaskRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/resume"); - setMethod(HttpRequest::Method::Post); -} - -ResumeElasticsearchTaskRequest::~ResumeElasticsearchTaskRequest() -{} - -std::string ResumeElasticsearchTaskRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ResumeElasticsearchTaskRequest; + +ResumeElasticsearchTaskRequest::ResumeElasticsearchTaskRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/resume"}; + setMethod(HttpRequest::Method::Post); } -void ResumeElasticsearchTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ResumeElasticsearchTaskRequest::~ResumeElasticsearchTaskRequest() {} + +string ResumeElasticsearchTaskRequest::getInstanceId() const { + return instanceId_; } -std::string ResumeElasticsearchTaskRequest::getClientToken()const -{ - return clientToken_; +void ResumeElasticsearchTaskRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ResumeElasticsearchTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string ResumeElasticsearchTaskRequest::getClientToken() const { + return clientToken_; +} + +void ResumeElasticsearchTaskRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/ResumeLogstashTaskRequest.cc b/elasticsearch/src/model/ResumeLogstashTaskRequest.cc index 07fdf24c3..abbff6442 100644 --- a/elasticsearch/src/model/ResumeLogstashTaskRequest.cc +++ b/elasticsearch/src/model/ResumeLogstashTaskRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ResumeLogstashTaskRequest; - -ResumeLogstashTaskRequest::ResumeLogstashTaskRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/actions/resume"); - setMethod(HttpRequest::Method::Post); -} - -ResumeLogstashTaskRequest::~ResumeLogstashTaskRequest() -{} - -std::string ResumeLogstashTaskRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ResumeLogstashTaskRequest; + +ResumeLogstashTaskRequest::ResumeLogstashTaskRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/actions/resume"}; + setMethod(HttpRequest::Method::Post); } -void ResumeLogstashTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ResumeLogstashTaskRequest::~ResumeLogstashTaskRequest() {} + +string ResumeLogstashTaskRequest::getInstanceId() const { + return instanceId_; } -std::string ResumeLogstashTaskRequest::getClientToken()const -{ - return clientToken_; +void ResumeLogstashTaskRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ResumeLogstashTaskRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string ResumeLogstashTaskRequest::getClientToken() const { + return clientToken_; +} + +void ResumeLogstashTaskRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/RolloverDataStreamRequest.cc b/elasticsearch/src/model/RolloverDataStreamRequest.cc index 287c0b11b..16274908b 100644 --- a/elasticsearch/src/model/RolloverDataStreamRequest.cc +++ b/elasticsearch/src/model/RolloverDataStreamRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RolloverDataStreamRequest; - -RolloverDataStreamRequest::RolloverDataStreamRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/data-streams/[DataStream]/rollover"); - setMethod(HttpRequest::Method::Post); -} - -RolloverDataStreamRequest::~RolloverDataStreamRequest() -{} - -std::string RolloverDataStreamRequest::getDataStream()const -{ - return dataStream_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RolloverDataStreamRequest; + +RolloverDataStreamRequest::RolloverDataStreamRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/data-streams/[DataStream]/rollover"}; + setMethod(HttpRequest::Method::Post); } -void RolloverDataStreamRequest::setDataStream(const std::string& dataStream) -{ - dataStream_ = dataStream; - setParameter("DataStream", dataStream); +RolloverDataStreamRequest::~RolloverDataStreamRequest() {} + +string RolloverDataStreamRequest::getDataStream() const { + return dataStream_; } -std::string RolloverDataStreamRequest::getInstanceId()const -{ - return instanceId_; +void RolloverDataStreamRequest::setDataStream(string dataStream) { + dataStream_ = dataStream; + setParameter(std::string("DataStream"), std::to_string(dataStream)); } -void RolloverDataStreamRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string RolloverDataStreamRequest::getInstanceId() const { + return instanceId_; } -std::string RolloverDataStreamRequest::getClientToken()const -{ - return clientToken_; +void RolloverDataStreamRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RolloverDataStreamRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string RolloverDataStreamRequest::getClientToken() const { + return clientToken_; +} + +void RolloverDataStreamRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/RunPipelinesRequest.cc b/elasticsearch/src/model/RunPipelinesRequest.cc index c06275c8e..3acba6e47 100644 --- a/elasticsearch/src/model/RunPipelinesRequest.cc +++ b/elasticsearch/src/model/RunPipelinesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::RunPipelinesRequest; - -RunPipelinesRequest::RunPipelinesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/pipelines/action/run"); - setMethod(HttpRequest::Method::Post); -} - -RunPipelinesRequest::~RunPipelinesRequest() -{} - -std::string RunPipelinesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::RunPipelinesRequest; + +RunPipelinesRequest::RunPipelinesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/pipelines/action/run"}; + setMethod(HttpRequest::Method::Post); } -void RunPipelinesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +RunPipelinesRequest::~RunPipelinesRequest() {} + +string RunPipelinesRequest::getInstanceId() const { + return instanceId_; } -std::string RunPipelinesRequest::getClientToken()const -{ - return clientToken_; +void RunPipelinesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void RunPipelinesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string RunPipelinesRequest::getClientToken() const { + return clientToken_; +} + +void RunPipelinesRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string RunPipelinesRequest::getBody() const { + return body_; +} + +void RunPipelinesRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/ShrinkNodeRequest.cc b/elasticsearch/src/model/ShrinkNodeRequest.cc index 800ab87ce..4ecbaf557 100644 --- a/elasticsearch/src/model/ShrinkNodeRequest.cc +++ b/elasticsearch/src/model/ShrinkNodeRequest.cc @@ -1,74 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ShrinkNodeRequest; - -ShrinkNodeRequest::ShrinkNodeRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/shrink"); - setMethod(HttpRequest::Method::Post); -} - -ShrinkNodeRequest::~ShrinkNodeRequest() -{} - -bool ShrinkNodeRequest::getIgnoreStatus()const -{ - return ignoreStatus_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ShrinkNodeRequest; + +ShrinkNodeRequest::ShrinkNodeRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/shrink"}; + setMethod(HttpRequest::Method::Post); } -void ShrinkNodeRequest::setIgnoreStatus(bool ignoreStatus) -{ - ignoreStatus_ = ignoreStatus; - setParameter("IgnoreStatus", ignoreStatus ? "true" : "false"); +ShrinkNodeRequest::~ShrinkNodeRequest() {} + +boolean ShrinkNodeRequest::getIgnoreStatus() const { + return ignoreStatus_; } -std::string ShrinkNodeRequest::getInstanceId()const -{ - return instanceId_; +void ShrinkNodeRequest::setIgnoreStatus(boolean ignoreStatus) { + ignoreStatus_ = ignoreStatus; + setParameter(std::string("ignoreStatus"), std::to_string(ignoreStatus)); } -void ShrinkNodeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ShrinkNodeRequest::getInstanceId() const { + return instanceId_; } -std::string ShrinkNodeRequest::getNodeType()const -{ - return nodeType_; +void ShrinkNodeRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ShrinkNodeRequest::setNodeType(const std::string& nodeType) -{ - nodeType_ = nodeType; - setParameter("NodeType", nodeType); +string ShrinkNodeRequest::getNodeType() const { + return nodeType_; } -std::string ShrinkNodeRequest::getClientToken()const -{ - return clientToken_; +void ShrinkNodeRequest::setNodeType(string nodeType) { + nodeType_ = nodeType; + setParameter(std::string("nodeType"), std::to_string(nodeType)); } -void ShrinkNodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string ShrinkNodeRequest::getClientToken() const { + return clientToken_; +} + +void ShrinkNodeRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +integer ShrinkNodeRequest::getCount() const { + return count_; +} + +void ShrinkNodeRequest::setCount(integer count) { + count_ = count; + setParameter(std::string("count"), std::to_string(count)); +} + +std::string ShrinkNodeRequest::getBody() const { + return body_; +} + +void ShrinkNodeRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/StartApmRequest.cc b/elasticsearch/src/model/StartApmRequest.cc index 425d67e14..2b1fc6acf 100644 --- a/elasticsearch/src/model/StartApmRequest.cc +++ b/elasticsearch/src/model/StartApmRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::StartApmRequest; - -StartApmRequest::StartApmRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/apm/[instanceId]/actions/start"); - setMethod(HttpRequest::Method::Post); -} - -StartApmRequest::~StartApmRequest() -{} - -std::string StartApmRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::StartApmRequest; + +StartApmRequest::StartApmRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/apm/[instanceId]/actions/start"}; + setMethod(HttpRequest::Method::Post); } -void StartApmRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +StartApmRequest::~StartApmRequest() {} + +string StartApmRequest::getInstanceId() const { + return instanceId_; +} + +void StartApmRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/StartCollectorRequest.cc b/elasticsearch/src/model/StartCollectorRequest.cc index 3013d6461..9067f2304 100644 --- a/elasticsearch/src/model/StartCollectorRequest.cc +++ b/elasticsearch/src/model/StartCollectorRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::StartCollectorRequest; - -StartCollectorRequest::StartCollectorRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/actions/start"); - setMethod(HttpRequest::Method::Post); -} - -StartCollectorRequest::~StartCollectorRequest() -{} - -std::string StartCollectorRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::StartCollectorRequest; + +StartCollectorRequest::StartCollectorRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/actions/start"}; + setMethod(HttpRequest::Method::Post); } -void StartCollectorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +StartCollectorRequest::~StartCollectorRequest() {} + +string StartCollectorRequest::getClientToken() const { + return clientToken_; } -std::string StartCollectorRequest::getResId()const -{ - return resId_; +void StartCollectorRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void StartCollectorRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string StartCollectorRequest::getResId() const { + return resId_; +} + +void StartCollectorRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/StopApmRequest.cc b/elasticsearch/src/model/StopApmRequest.cc index 78d16e2a7..525d75b08 100644 --- a/elasticsearch/src/model/StopApmRequest.cc +++ b/elasticsearch/src/model/StopApmRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::StopApmRequest; - -StopApmRequest::StopApmRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/apm/[instanceId]/actions/stop"); - setMethod(HttpRequest::Method::Post); -} - -StopApmRequest::~StopApmRequest() -{} - -std::string StopApmRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::StopApmRequest; + +StopApmRequest::StopApmRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/apm/[instanceId]/actions/stop"}; + setMethod(HttpRequest::Method::Post); } -void StopApmRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +StopApmRequest::~StopApmRequest() {} + +string StopApmRequest::getInstanceId() const { + return instanceId_; +} + +void StopApmRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } diff --git a/elasticsearch/src/model/StopCollectorRequest.cc b/elasticsearch/src/model/StopCollectorRequest.cc index e2b9dfa32..9097ae138 100644 --- a/elasticsearch/src/model/StopCollectorRequest.cc +++ b/elasticsearch/src/model/StopCollectorRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::StopCollectorRequest; - -StopCollectorRequest::StopCollectorRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/actions/stop"); - setMethod(HttpRequest::Method::Post); -} - -StopCollectorRequest::~StopCollectorRequest() -{} - -std::string StopCollectorRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::StopCollectorRequest; + +StopCollectorRequest::StopCollectorRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/actions/stop"}; + setMethod(HttpRequest::Method::Post); } -void StopCollectorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +StopCollectorRequest::~StopCollectorRequest() {} + +string StopCollectorRequest::getClientToken() const { + return clientToken_; } -std::string StopCollectorRequest::getResId()const -{ - return resId_; +void StopCollectorRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void StopCollectorRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string StopCollectorRequest::getResId() const { + return resId_; +} + +void StopCollectorRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/StopPipelinesRequest.cc b/elasticsearch/src/model/StopPipelinesRequest.cc index e2ce9d92b..282860b95 100644 --- a/elasticsearch/src/model/StopPipelinesRequest.cc +++ b/elasticsearch/src/model/StopPipelinesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::StopPipelinesRequest; - -StopPipelinesRequest::StopPipelinesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/pipelines/action/stop"); - setMethod(HttpRequest::Method::Post); -} - -StopPipelinesRequest::~StopPipelinesRequest() -{} - -std::string StopPipelinesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::StopPipelinesRequest; + +StopPipelinesRequest::StopPipelinesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/pipelines/action/stop"}; + setMethod(HttpRequest::Method::Post); } -void StopPipelinesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +StopPipelinesRequest::~StopPipelinesRequest() {} + +string StopPipelinesRequest::getInstanceId() const { + return instanceId_; } -std::string StopPipelinesRequest::getClientToken()const -{ - return clientToken_; +void StopPipelinesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void StopPipelinesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string StopPipelinesRequest::getClientToken() const { + return clientToken_; +} + +void StopPipelinesRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string StopPipelinesRequest::getBody() const { + return body_; +} + +void StopPipelinesRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/TagResourcesRequest.cc b/elasticsearch/src/model/TagResourcesRequest.cc index 08b83d26a..5d0269583 100644 --- a/elasticsearch/src/model/TagResourcesRequest.cc +++ b/elasticsearch/src/model/TagResourcesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::TagResourcesRequest; - -TagResourcesRequest::TagResourcesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/tags"); - setMethod(HttpRequest::Method::Post); -} - -TagResourcesRequest::~TagResourcesRequest() -{} - + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/tags"}; + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::string TagResourcesRequest::getBody() const { + return body_; +} + +void TagResourcesRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/elasticsearch/src/model/TagResourcesResult.cc b/elasticsearch/src/model/TagResourcesResult.cc index 20ee9b876..698b53dd5 100644 --- a/elasticsearch/src/model/TagResourcesResult.cc +++ b/elasticsearch/src/model/TagResourcesResult.cc @@ -39,6 +39,13 @@ void TagResourcesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; } +bool TagResourcesResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/TransferNodeRequest.cc b/elasticsearch/src/model/TransferNodeRequest.cc index 5ca569660..86b618f86 100644 --- a/elasticsearch/src/model/TransferNodeRequest.cc +++ b/elasticsearch/src/model/TransferNodeRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::TransferNodeRequest; - -TransferNodeRequest::TransferNodeRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/transfer"); - setMethod(HttpRequest::Method::Post); -} - -TransferNodeRequest::~TransferNodeRequest() -{} - -std::string TransferNodeRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::TransferNodeRequest; + +TransferNodeRequest::TransferNodeRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/transfer"}; + setMethod(HttpRequest::Method::Post); } -void TransferNodeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +TransferNodeRequest::~TransferNodeRequest() {} + +string TransferNodeRequest::getInstanceId() const { + return instanceId_; } -std::string TransferNodeRequest::getNodeType()const -{ - return nodeType_; +void TransferNodeRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void TransferNodeRequest::setNodeType(const std::string& nodeType) -{ - nodeType_ = nodeType; - setParameter("NodeType", nodeType); +string TransferNodeRequest::getNodeType() const { + return nodeType_; } -std::string TransferNodeRequest::getClientToken()const -{ - return clientToken_; +void TransferNodeRequest::setNodeType(string nodeType) { + nodeType_ = nodeType; + setParameter(std::string("nodeType"), std::to_string(nodeType)); } -void TransferNodeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string TransferNodeRequest::getClientToken() const { + return clientToken_; +} + +void TransferNodeRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/TriggerNetworkRequest.cc b/elasticsearch/src/model/TriggerNetworkRequest.cc index 18392028d..21c766adc 100644 --- a/elasticsearch/src/model/TriggerNetworkRequest.cc +++ b/elasticsearch/src/model/TriggerNetworkRequest.cc @@ -1,85 +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 - -using AlibabaCloud::Elasticsearch::Model::TriggerNetworkRequest; - -TriggerNetworkRequest::TriggerNetworkRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/network-trigger"); - setMethod(HttpRequest::Method::Post); -} - -TriggerNetworkRequest::~TriggerNetworkRequest() -{} - -std::string TriggerNetworkRequest::getActionType()const -{ - return actionType_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::TriggerNetworkRequest; + +TriggerNetworkRequest::TriggerNetworkRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/network-trigger"}; + setMethod(HttpRequest::Method::Post); } -void TriggerNetworkRequest::setActionType(const std::string& actionType) -{ - actionType_ = actionType; - setBodyParameter("ActionType", actionType); +TriggerNetworkRequest::~TriggerNetworkRequest() {} + +string TriggerNetworkRequest::getInstanceId() const { + return instanceId_; } -std::string TriggerNetworkRequest::getInstanceId()const -{ - return instanceId_; +void TriggerNetworkRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void TriggerNetworkRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string TriggerNetworkRequest::getClientToken() const { + return clientToken_; } -std::string TriggerNetworkRequest::getNodeType()const -{ - return nodeType_; +void TriggerNetworkRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void TriggerNetworkRequest::setNodeType(const std::string& nodeType) -{ - nodeType_ = nodeType; - setBodyParameter("NodeType", nodeType); +std::string TriggerNetworkRequest::getBody() const { + return body_; } -std::string TriggerNetworkRequest::getClientToken()const -{ - return clientToken_; -} - -void TriggerNetworkRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); -} - -std::string TriggerNetworkRequest::getNetworkType()const -{ - return networkType_; -} - -void TriggerNetworkRequest::setNetworkType(const std::string& networkType) -{ - networkType_ = networkType; - setBodyParameter("NetworkType", networkType); +void TriggerNetworkRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UninstallKibanaPluginRequest.cc b/elasticsearch/src/model/UninstallKibanaPluginRequest.cc index fc85bc76a..af145b396 100644 --- a/elasticsearch/src/model/UninstallKibanaPluginRequest.cc +++ b/elasticsearch/src/model/UninstallKibanaPluginRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UninstallKibanaPluginRequest; - -UninstallKibanaPluginRequest::UninstallKibanaPluginRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins/actions/uninstall"); - setMethod(HttpRequest::Method::Post); -} - -UninstallKibanaPluginRequest::~UninstallKibanaPluginRequest() -{} - -std::string UninstallKibanaPluginRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UninstallKibanaPluginRequest; + +UninstallKibanaPluginRequest::UninstallKibanaPluginRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins/actions/uninstall"}; + setMethod(HttpRequest::Method::Post); } -void UninstallKibanaPluginRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UninstallKibanaPluginRequest::~UninstallKibanaPluginRequest() {} + +string UninstallKibanaPluginRequest::getInstanceId() const { + return instanceId_; } -std::string UninstallKibanaPluginRequest::getClientToken()const -{ - return clientToken_; +void UninstallKibanaPluginRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UninstallKibanaPluginRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UninstallKibanaPluginRequest::getClientToken() const { + return clientToken_; +} + +void UninstallKibanaPluginRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UninstallKibanaPluginRequest::getBody() const { + return body_; +} + +void UninstallKibanaPluginRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UninstallLogstashPluginRequest.cc b/elasticsearch/src/model/UninstallLogstashPluginRequest.cc index b87af70d0..3b94ec241 100644 --- a/elasticsearch/src/model/UninstallLogstashPluginRequest.cc +++ b/elasticsearch/src/model/UninstallLogstashPluginRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UninstallLogstashPluginRequest; - -UninstallLogstashPluginRequest::UninstallLogstashPluginRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/plugins/actions/uninstall"); - setMethod(HttpRequest::Method::Post); -} - -UninstallLogstashPluginRequest::~UninstallLogstashPluginRequest() -{} - -std::string UninstallLogstashPluginRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UninstallLogstashPluginRequest; + +UninstallLogstashPluginRequest::UninstallLogstashPluginRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/plugins/actions/uninstall"}; + setMethod(HttpRequest::Method::Post); } -void UninstallLogstashPluginRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UninstallLogstashPluginRequest::~UninstallLogstashPluginRequest() {} + +string UninstallLogstashPluginRequest::getInstanceId() const { + return instanceId_; } -std::string UninstallLogstashPluginRequest::getClientToken()const -{ - return clientToken_; +void UninstallLogstashPluginRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UninstallLogstashPluginRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UninstallLogstashPluginRequest::getClientToken() const { + return clientToken_; +} + +void UninstallLogstashPluginRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +std::string UninstallLogstashPluginRequest::getBody() const { + return body_; +} + +void UninstallLogstashPluginRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UninstallLogstashPluginResult.cc b/elasticsearch/src/model/UninstallLogstashPluginResult.cc index 9b4570470..c2fb943a7 100644 --- a/elasticsearch/src/model/UninstallLogstashPluginResult.cc +++ b/elasticsearch/src/model/UninstallLogstashPluginResult.cc @@ -42,9 +42,16 @@ void UninstallLogstashPluginResult::parse(const std::string &payload) auto allResult = value["Result"]["Result"]; for (const auto &item : allResult) result_.push_back(item.asString()); + if(!value["Headers"].isNull()) + headers_ = value["Headers"].asString(); } +std::string UninstallLogstashPluginResult::getHeaders()const +{ + return headers_; +} + std::vector UninstallLogstashPluginResult::getResult()const { return result_; diff --git a/elasticsearch/src/model/UninstallPluginRequest.cc b/elasticsearch/src/model/UninstallPluginRequest.cc index 916d0015e..dcf66c545 100644 --- a/elasticsearch/src/model/UninstallPluginRequest.cc +++ b/elasticsearch/src/model/UninstallPluginRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UninstallPluginRequest; - -UninstallPluginRequest::UninstallPluginRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/plugins/actions/uninstall"); - setMethod(HttpRequest::Method::Post); -} - -UninstallPluginRequest::~UninstallPluginRequest() -{} - -std::string UninstallPluginRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UninstallPluginRequest; + +UninstallPluginRequest::UninstallPluginRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/plugins/actions/uninstall"}; + setMethod(HttpRequest::Method::Post); } -void UninstallPluginRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UninstallPluginRequest::~UninstallPluginRequest() {} + +string UninstallPluginRequest::getInstanceId() const { + return instanceId_; } -std::string UninstallPluginRequest::getClientToken()const -{ - return clientToken_; +void UninstallPluginRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UninstallPluginRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UninstallPluginRequest::getClientToken() const { + return clientToken_; +} + +void UninstallPluginRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UninstallPluginRequest::getBody() const { + return body_; +} + +void UninstallPluginRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UntagResourcesRequest.cc b/elasticsearch/src/model/UntagResourcesRequest.cc index fc5a7ba4d..6734e79aa 100644 --- a/elasticsearch/src/model/UntagResourcesRequest.cc +++ b/elasticsearch/src/model/UntagResourcesRequest.cc @@ -1,74 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::UntagResourcesRequest; - -UntagResourcesRequest::UntagResourcesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/tags"); - setMethod(HttpRequest::Method::Delete); -} - -UntagResourcesRequest::~UntagResourcesRequest() -{} - -bool UntagResourcesRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/tags"}; + setMethod(HttpRequest::Method::Delete); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +UntagResourcesRequest::~UntagResourcesRequest() {} + +boolean UntagResourcesRequest::getAll() const { + return all_; } -std::string UntagResourcesRequest::getTagKeys()const -{ - return tagKeys_; +void UntagResourcesRequest::setAll(boolean all) { + all_ = all; + setParameter(std::string("All"), std::to_string(all)); } -void UntagResourcesRequest::setTagKeys(const std::string& tagKeys) -{ - tagKeys_ = tagKeys; - setParameter("TagKeys", tagKeys); +string UntagResourcesRequest::getTagKeys() const { + return tagKeys_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setTagKeys(string tagKeys) { + tagKeys_ = tagKeys; + setParameter(std::string("TagKeys"), std::to_string(tagKeys)); } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +string UntagResourcesRequest::getBody() const { + return body_; } -std::string UntagResourcesRequest::getResourceIds()const -{ - return resourceIds_; +void UntagResourcesRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } -void UntagResourcesRequest::setResourceIds(const std::string& resourceIds) -{ - resourceIds_ = resourceIds; - setParameter("ResourceIds", resourceIds); +string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(string resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), std::to_string(resourceType)); +} + +string UntagResourcesRequest::getResourceIds() const { + return resourceIds_; +} + +void UntagResourcesRequest::setResourceIds(string resourceIds) { + resourceIds_ = resourceIds; + setParameter(std::string("ResourceIds"), std::to_string(resourceIds)); } diff --git a/elasticsearch/src/model/UpdateAdminPasswordRequest.cc b/elasticsearch/src/model/UpdateAdminPasswordRequest.cc index dbde1af5e..7d6a865de 100644 --- a/elasticsearch/src/model/UpdateAdminPasswordRequest.cc +++ b/elasticsearch/src/model/UpdateAdminPasswordRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateAdminPasswordRequest; - -UpdateAdminPasswordRequest::UpdateAdminPasswordRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/admin-pwd"); - setMethod(HttpRequest::Method::Post); -} - -UpdateAdminPasswordRequest::~UpdateAdminPasswordRequest() -{} - -std::string UpdateAdminPasswordRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateAdminPasswordRequest; + +UpdateAdminPasswordRequest::UpdateAdminPasswordRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/admin-pwd"}; + setMethod(HttpRequest::Method::Post); } -void UpdateAdminPasswordRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateAdminPasswordRequest::~UpdateAdminPasswordRequest() {} + +string UpdateAdminPasswordRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateAdminPasswordRequest::getClientToken()const -{ - return clientToken_; +void UpdateAdminPasswordRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateAdminPasswordRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateAdminPasswordRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAdminPasswordRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +std::string UpdateAdminPasswordRequest::getBody() const { + return body_; +} + +void UpdateAdminPasswordRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdateAdminPasswordResult.cc b/elasticsearch/src/model/UpdateAdminPasswordResult.cc index 5c5ee2363..fa96f0f78 100644 --- a/elasticsearch/src/model/UpdateAdminPasswordResult.cc +++ b/elasticsearch/src/model/UpdateAdminPasswordResult.cc @@ -39,6 +39,13 @@ void UpdateAdminPasswordResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString() == "true"; } +bool UpdateAdminPasswordResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/UpdateAdvancedSettingRequest.cc b/elasticsearch/src/model/UpdateAdvancedSettingRequest.cc index 066fdf9e3..b562a3234 100644 --- a/elasticsearch/src/model/UpdateAdvancedSettingRequest.cc +++ b/elasticsearch/src/model/UpdateAdvancedSettingRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateAdvancedSettingRequest; - -UpdateAdvancedSettingRequest::UpdateAdvancedSettingRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/update-advanced-setting"); - setMethod(HttpRequest::Method::Post); -} - -UpdateAdvancedSettingRequest::~UpdateAdvancedSettingRequest() -{} - -std::string UpdateAdvancedSettingRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateAdvancedSettingRequest; + +UpdateAdvancedSettingRequest::UpdateAdvancedSettingRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/update-advanced-setting"}; + setMethod(HttpRequest::Method::Post); } -void UpdateAdvancedSettingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateAdvancedSettingRequest::~UpdateAdvancedSettingRequest() {} + +string UpdateAdvancedSettingRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateAdvancedSettingRequest::getClientToken()const -{ - return clientToken_; +void UpdateAdvancedSettingRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateAdvancedSettingRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateAdvancedSettingRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAdvancedSettingRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateAdvancedSettingRequest::getBody() const { + return body_; +} + +void UpdateAdvancedSettingRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateAliwsDictRequest.cc b/elasticsearch/src/model/UpdateAliwsDictRequest.cc index cd923ad9a..c25f46632 100644 --- a/elasticsearch/src/model/UpdateAliwsDictRequest.cc +++ b/elasticsearch/src/model/UpdateAliwsDictRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateAliwsDictRequest; - -UpdateAliwsDictRequest::UpdateAliwsDictRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/aliws-dict"); - setMethod(HttpRequest::Method::Put); -} - -UpdateAliwsDictRequest::~UpdateAliwsDictRequest() -{} - -std::string UpdateAliwsDictRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateAliwsDictRequest; + +UpdateAliwsDictRequest::UpdateAliwsDictRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/aliws-dict"}; + setMethod(HttpRequest::Method::Put); } -void UpdateAliwsDictRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateAliwsDictRequest::~UpdateAliwsDictRequest() {} + +string UpdateAliwsDictRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateAliwsDictRequest::getClientToken()const -{ - return clientToken_; +void UpdateAliwsDictRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateAliwsDictRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateAliwsDictRequest::getClientToken() const { + return clientToken_; +} + +void UpdateAliwsDictRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateAliwsDictRequest::getBody() const { + return body_; +} + +void UpdateAliwsDictRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateAliwsDictResult.cc b/elasticsearch/src/model/UpdateAliwsDictResult.cc index 6df49d9f6..d5e3e5117 100644 --- a/elasticsearch/src/model/UpdateAliwsDictResult.cc +++ b/elasticsearch/src/model/UpdateAliwsDictResult.cc @@ -43,14 +43,14 @@ void UpdateAliwsDictResult::parse(const std::string &payload) for (auto valueResultDictList : allResultNode) { DictList resultObject; - if(!valueResultDictList["name"].isNull()) - resultObject.name = valueResultDictList["name"].asString(); if(!valueResultDictList["fileSize"].isNull()) resultObject.fileSize = std::stol(valueResultDictList["fileSize"].asString()); - if(!valueResultDictList["type"].isNull()) - resultObject.type = valueResultDictList["type"].asString(); if(!valueResultDictList["sourceType"].isNull()) resultObject.sourceType = valueResultDictList["sourceType"].asString(); + if(!valueResultDictList["name"].isNull()) + resultObject.name = valueResultDictList["name"].asString(); + if(!valueResultDictList["type"].isNull()) + resultObject.type = valueResultDictList["type"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/UpdateApmRequest.cc b/elasticsearch/src/model/UpdateApmRequest.cc index 60590691d..f1a7f737e 100644 --- a/elasticsearch/src/model/UpdateApmRequest.cc +++ b/elasticsearch/src/model/UpdateApmRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateApmRequest; - -UpdateApmRequest::UpdateApmRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/apm/[instanceId]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateApmRequest::~UpdateApmRequest() -{} - -std::string UpdateApmRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateApmRequest; + +UpdateApmRequest::UpdateApmRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/apm/[instanceId]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateApmRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateApmRequest::~UpdateApmRequest() {} + +string UpdateApmRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateApmRequest::getBody()const -{ - return body_; +void UpdateApmRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("instanceId"), std::to_string(instanceId)); } -void UpdateApmRequest::setBody(const std::string& body) -{ - body_ = body; - setBodyParameter("Body", body); +std::string UpdateApmRequest::getBody() const { + return body_; +} + +void UpdateApmRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdateBlackIpsRequest.cc b/elasticsearch/src/model/UpdateBlackIpsRequest.cc index faa7a7408..083621522 100644 --- a/elasticsearch/src/model/UpdateBlackIpsRequest.cc +++ b/elasticsearch/src/model/UpdateBlackIpsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateBlackIpsRequest; - -UpdateBlackIpsRequest::UpdateBlackIpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/black-ips"); - setMethod(HttpRequest::Method::Post); -} - -UpdateBlackIpsRequest::~UpdateBlackIpsRequest() -{} - -std::string UpdateBlackIpsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateBlackIpsRequest; + +UpdateBlackIpsRequest::UpdateBlackIpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/black-ips"}; + setMethod(HttpRequest::Method::Post); } -void UpdateBlackIpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateBlackIpsRequest::~UpdateBlackIpsRequest() {} + +string UpdateBlackIpsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateBlackIpsRequest::getClientToken()const -{ - return clientToken_; +void UpdateBlackIpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateBlackIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateBlackIpsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateBlackIpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } diff --git a/elasticsearch/src/model/UpdateCollectorNameRequest.cc b/elasticsearch/src/model/UpdateCollectorNameRequest.cc index 0e3aba572..3d138e054 100644 --- a/elasticsearch/src/model/UpdateCollectorNameRequest.cc +++ b/elasticsearch/src/model/UpdateCollectorNameRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateCollectorNameRequest; - -UpdateCollectorNameRequest::UpdateCollectorNameRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]/actions/rename"); - setMethod(HttpRequest::Method::Post); -} - -UpdateCollectorNameRequest::~UpdateCollectorNameRequest() -{} - -std::string UpdateCollectorNameRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateCollectorNameRequest; + +UpdateCollectorNameRequest::UpdateCollectorNameRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]/actions/rename"}; + setMethod(HttpRequest::Method::Post); } -void UpdateCollectorNameRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateCollectorNameRequest::~UpdateCollectorNameRequest() {} + +string UpdateCollectorNameRequest::getClientToken() const { + return clientToken_; } -std::string UpdateCollectorNameRequest::getResId()const -{ - return resId_; +void UpdateCollectorNameRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void UpdateCollectorNameRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string UpdateCollectorNameRequest::getBody() const { + return body_; +} + +void UpdateCollectorNameRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + +string UpdateCollectorNameRequest::getResId() const { + return resId_; +} + +void UpdateCollectorNameRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/UpdateCollectorNameResult.cc b/elasticsearch/src/model/UpdateCollectorNameResult.cc index dbf7be374..7fc987f84 100644 --- a/elasticsearch/src/model/UpdateCollectorNameResult.cc +++ b/elasticsearch/src/model/UpdateCollectorNameResult.cc @@ -40,72 +40,72 @@ void UpdateCollectorNameResult::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"]; diff --git a/elasticsearch/src/model/UpdateCollectorRequest.cc b/elasticsearch/src/model/UpdateCollectorRequest.cc index efa31b80c..a19a343b9 100644 --- a/elasticsearch/src/model/UpdateCollectorRequest.cc +++ b/elasticsearch/src/model/UpdateCollectorRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateCollectorRequest; - -UpdateCollectorRequest::UpdateCollectorRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/collectors/[ResId]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateCollectorRequest::~UpdateCollectorRequest() -{} - -std::string UpdateCollectorRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateCollectorRequest; + +UpdateCollectorRequest::UpdateCollectorRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/collectors/[ResId]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateCollectorRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +UpdateCollectorRequest::~UpdateCollectorRequest() {} + +string UpdateCollectorRequest::getClientToken() const { + return clientToken_; } -std::string UpdateCollectorRequest::getResId()const -{ - return resId_; +void UpdateCollectorRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void UpdateCollectorRequest::setResId(const std::string& resId) -{ - resId_ = resId; - setParameter("ResId", resId); +string UpdateCollectorRequest::getBody() const { + return body_; +} + +void UpdateCollectorRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + +string UpdateCollectorRequest::getResId() const { + return resId_; +} + +void UpdateCollectorRequest::setResId(string resId) { + resId_ = resId; + setParameter(std::string("ResId"), std::to_string(resId)); } diff --git a/elasticsearch/src/model/UpdateCollectorResult.cc b/elasticsearch/src/model/UpdateCollectorResult.cc index 8cf37195c..7104a6f17 100644 --- a/elasticsearch/src/model/UpdateCollectorResult.cc +++ b/elasticsearch/src/model/UpdateCollectorResult.cc @@ -40,72 +40,72 @@ void UpdateCollectorResult::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"]; diff --git a/elasticsearch/src/model/UpdateComponentIndexRequest.cc b/elasticsearch/src/model/UpdateComponentIndexRequest.cc new file mode 100644 index 000000000..ad216cd1f --- /dev/null +++ b/elasticsearch/src/model/UpdateComponentIndexRequest.cc @@ -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 + +using AlibabaCloud::Elasticsearch::Model::UpdateComponentIndexRequest; + +UpdateComponentIndexRequest::UpdateComponentIndexRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/component-index/[name]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateComponentIndexRequest::~UpdateComponentIndexRequest() {} + +string UpdateComponentIndexRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateComponentIndexRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +string UpdateComponentIndexRequest::getName() const { + return name_; +} + +void UpdateComponentIndexRequest::setName(string name) { + name_ = name; + setParameter(std::string("name"), std::to_string(name)); +} + +std::string UpdateComponentIndexRequest::getBody() const { + return body_; +} + +void UpdateComponentIndexRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/elasticsearch/src/model/UpdateComponentIndexResult.cc b/elasticsearch/src/model/UpdateComponentIndexResult.cc new file mode 100644 index 000000000..4ae9493b2 --- /dev/null +++ b/elasticsearch/src/model/UpdateComponentIndexResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Elasticsearch; +using namespace AlibabaCloud::Elasticsearch::Model; + +UpdateComponentIndexResult::UpdateComponentIndexResult() : + ServiceResult() +{} + +UpdateComponentIndexResult::UpdateComponentIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateComponentIndexResult::~UpdateComponentIndexResult() +{} + +void UpdateComponentIndexResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["requestId"].isNull()) + requestId_ = value["requestId"].asString(); + +} + +std::string UpdateComponentIndexResult::getRequestId()const +{ + return requestId_; +} + diff --git a/elasticsearch/src/model/UpdateDescriptionRequest.cc b/elasticsearch/src/model/UpdateDescriptionRequest.cc index 93278b0ce..b6fcd708e 100644 --- a/elasticsearch/src/model/UpdateDescriptionRequest.cc +++ b/elasticsearch/src/model/UpdateDescriptionRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateDescriptionRequest; - -UpdateDescriptionRequest::UpdateDescriptionRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/description"); - setMethod(HttpRequest::Method::Post); -} - -UpdateDescriptionRequest::~UpdateDescriptionRequest() -{} - -std::string UpdateDescriptionRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateDescriptionRequest; + +UpdateDescriptionRequest::UpdateDescriptionRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/description"}; + setMethod(HttpRequest::Method::Post); } -void UpdateDescriptionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateDescriptionRequest::~UpdateDescriptionRequest() {} + +string UpdateDescriptionRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateDescriptionRequest::getClientToken()const -{ - return clientToken_; +void UpdateDescriptionRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateDescriptionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateDescriptionRequest::getClientToken() const { + return clientToken_; } -std::string UpdateDescriptionRequest::getBody()const -{ - return body_; +void UpdateDescriptionRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void UpdateDescriptionRequest::setBody(const std::string& body) -{ - body_ = body; - setBodyParameter("Body", body); +std::string UpdateDescriptionRequest::getBody() const { + return body_; +} + +void UpdateDescriptionRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdateDiagnosisSettingsRequest.cc b/elasticsearch/src/model/UpdateDiagnosisSettingsRequest.cc index 29d60ad4a..875c805b8 100644 --- a/elasticsearch/src/model/UpdateDiagnosisSettingsRequest.cc +++ b/elasticsearch/src/model/UpdateDiagnosisSettingsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateDiagnosisSettingsRequest; - -UpdateDiagnosisSettingsRequest::UpdateDiagnosisSettingsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/diagnosis/instances/[InstanceId]/settings"); - setMethod(HttpRequest::Method::Put); -} - -UpdateDiagnosisSettingsRequest::~UpdateDiagnosisSettingsRequest() -{} - -std::string UpdateDiagnosisSettingsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateDiagnosisSettingsRequest; + +UpdateDiagnosisSettingsRequest::UpdateDiagnosisSettingsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/diagnosis/instances/[InstanceId]/settings"}; + setMethod(HttpRequest::Method::Put); } -void UpdateDiagnosisSettingsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateDiagnosisSettingsRequest::~UpdateDiagnosisSettingsRequest() {} + +string UpdateDiagnosisSettingsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateDiagnosisSettingsRequest::getClientToken()const -{ - return clientToken_; +void UpdateDiagnosisSettingsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateDiagnosisSettingsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateDiagnosisSettingsRequest::getClientToken() const { + return clientToken_; } -std::string UpdateDiagnosisSettingsRequest::getLang()const -{ - return lang_; +void UpdateDiagnosisSettingsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void UpdateDiagnosisSettingsRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +string UpdateDiagnosisSettingsRequest::getLang() const { + return lang_; +} + +void UpdateDiagnosisSettingsRequest::setLang(string lang) { + lang_ = lang; + setParameter(std::string("lang"), std::to_string(lang)); +} + +string UpdateDiagnosisSettingsRequest::getBody() const { + return body_; +} + +void UpdateDiagnosisSettingsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateDictRequest.cc b/elasticsearch/src/model/UpdateDictRequest.cc index 34f4f375d..c5bd65831 100644 --- a/elasticsearch/src/model/UpdateDictRequest.cc +++ b/elasticsearch/src/model/UpdateDictRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateDictRequest; - -UpdateDictRequest::UpdateDictRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/dict"); - setMethod(HttpRequest::Method::Put); -} - -UpdateDictRequest::~UpdateDictRequest() -{} - -std::string UpdateDictRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateDictRequest; + +UpdateDictRequest::UpdateDictRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/dict"}; + setMethod(HttpRequest::Method::Put); } -void UpdateDictRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateDictRequest::~UpdateDictRequest() {} + +string UpdateDictRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateDictRequest::getClientToken()const -{ - return clientToken_; +void UpdateDictRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateDictRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateDictRequest::getClientToken() const { + return clientToken_; +} + +void UpdateDictRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateDictRequest::getBody() const { + return body_; +} + +void UpdateDictRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateDictResult.cc b/elasticsearch/src/model/UpdateDictResult.cc index d01be5b93..866feee15 100644 --- a/elasticsearch/src/model/UpdateDictResult.cc +++ b/elasticsearch/src/model/UpdateDictResult.cc @@ -43,14 +43,14 @@ void UpdateDictResult::parse(const std::string &payload) for (auto valueResultDictList : allResultNode) { DictList resultObject; - if(!valueResultDictList["name"].isNull()) - resultObject.name = valueResultDictList["name"].asString(); if(!valueResultDictList["fileSize"].isNull()) resultObject.fileSize = std::stol(valueResultDictList["fileSize"].asString()); - if(!valueResultDictList["type"].isNull()) - resultObject.type = valueResultDictList["type"].asString(); if(!valueResultDictList["sourceType"].isNull()) resultObject.sourceType = valueResultDictList["sourceType"].asString(); + if(!valueResultDictList["name"].isNull()) + resultObject.name = valueResultDictList["name"].asString(); + if(!valueResultDictList["type"].isNull()) + resultObject.type = valueResultDictList["type"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/UpdateDynamicSettingsRequest.cc b/elasticsearch/src/model/UpdateDynamicSettingsRequest.cc new file mode 100644 index 000000000..e9013d82d --- /dev/null +++ b/elasticsearch/src/model/UpdateDynamicSettingsRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateDynamicSettingsRequest; + +UpdateDynamicSettingsRequest::UpdateDynamicSettingsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/dynamic-settings"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateDynamicSettingsRequest::~UpdateDynamicSettingsRequest() {} + +string UpdateDynamicSettingsRequest::getMode() const { + return mode_; +} + +void UpdateDynamicSettingsRequest::setMode(string mode) { + mode_ = mode; + setParameter(std::string("mode"), std::to_string(mode)); +} + +string UpdateDynamicSettingsRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateDynamicSettingsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +string UpdateDynamicSettingsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateDynamicSettingsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string UpdateDynamicSettingsRequest::getRegionId() const { + return regionId_; +} + +void UpdateDynamicSettingsRequest::setRegionId(string regionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), std::to_string(regionId)); +} + +string UpdateDynamicSettingsRequest::getBody() const { + return body_; +} + +void UpdateDynamicSettingsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + diff --git a/elasticsearch/src/model/UpdateDynamicSettingsResult.cc b/elasticsearch/src/model/UpdateDynamicSettingsResult.cc new file mode 100644 index 000000000..f34f3355c --- /dev/null +++ b/elasticsearch/src/model/UpdateDynamicSettingsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Elasticsearch; +using namespace AlibabaCloud::Elasticsearch::Model; + +UpdateDynamicSettingsResult::UpdateDynamicSettingsResult() : + ServiceResult() +{} + +UpdateDynamicSettingsResult::UpdateDynamicSettingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDynamicSettingsResult::~UpdateDynamicSettingsResult() +{} + +void UpdateDynamicSettingsResult::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 UpdateDynamicSettingsResult::getResult()const +{ + return result_; +} + diff --git a/elasticsearch/src/model/UpdateExtendConfigRequest.cc b/elasticsearch/src/model/UpdateExtendConfigRequest.cc index ffcc6db8d..6d9fac3f4 100644 --- a/elasticsearch/src/model/UpdateExtendConfigRequest.cc +++ b/elasticsearch/src/model/UpdateExtendConfigRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateExtendConfigRequest; - -UpdateExtendConfigRequest::UpdateExtendConfigRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/extend-configs/actions/update"); - setMethod(HttpRequest::Method::Post); -} - -UpdateExtendConfigRequest::~UpdateExtendConfigRequest() -{} - -std::string UpdateExtendConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateExtendConfigRequest; + +UpdateExtendConfigRequest::UpdateExtendConfigRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/extend-configs/actions/update"}; + setMethod(HttpRequest::Method::Post); } -void UpdateExtendConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateExtendConfigRequest::~UpdateExtendConfigRequest() {} + +string UpdateExtendConfigRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateExtendConfigRequest::getClientToken()const -{ - return clientToken_; +void UpdateExtendConfigRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateExtendConfigRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateExtendConfigRequest::getClientToken() const { + return clientToken_; +} + +void UpdateExtendConfigRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string UpdateExtendConfigRequest::getBody() const { + return body_; +} + +void UpdateExtendConfigRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateExtendfilesRequest.cc b/elasticsearch/src/model/UpdateExtendfilesRequest.cc index 6a52557ae..15285aff2 100644 --- a/elasticsearch/src/model/UpdateExtendfilesRequest.cc +++ b/elasticsearch/src/model/UpdateExtendfilesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateExtendfilesRequest; - -UpdateExtendfilesRequest::UpdateExtendfilesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/extendfiles"); - setMethod(HttpRequest::Method::Put); -} - -UpdateExtendfilesRequest::~UpdateExtendfilesRequest() -{} - -std::string UpdateExtendfilesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateExtendfilesRequest; + +UpdateExtendfilesRequest::UpdateExtendfilesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/extendfiles"}; + setMethod(HttpRequest::Method::Put); } -void UpdateExtendfilesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateExtendfilesRequest::~UpdateExtendfilesRequest() {} + +string UpdateExtendfilesRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateExtendfilesRequest::getClientToken()const -{ - return clientToken_; +void UpdateExtendfilesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateExtendfilesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateExtendfilesRequest::getClientToken() const { + return clientToken_; +} + +void UpdateExtendfilesRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string UpdateExtendfilesRequest::getBody() const { + return body_; +} + +void UpdateExtendfilesRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateExtendfilesResult.cc b/elasticsearch/src/model/UpdateExtendfilesResult.cc index 3ee6c15f7..c19efc25b 100644 --- a/elasticsearch/src/model/UpdateExtendfilesResult.cc +++ b/elasticsearch/src/model/UpdateExtendfilesResult.cc @@ -43,10 +43,10 @@ void UpdateExtendfilesResult::parse(const std::string &payload) for (auto valueResultResultItem : allResultNode) { ResultItem resultObject; - if(!valueResultResultItem["name"].isNull()) - resultObject.name = valueResultResultItem["name"].asString(); if(!valueResultResultItem["fileSize"].isNull()) resultObject.fileSize = std::stol(valueResultResultItem["fileSize"].asString()); + if(!valueResultResultItem["name"].isNull()) + resultObject.name = valueResultResultItem["name"].asString(); if(!valueResultResultItem["sourceType"].isNull()) resultObject.sourceType = valueResultResultItem["sourceType"].asString(); result_.push_back(resultObject); diff --git a/elasticsearch/src/model/UpdateHotIkDictsRequest.cc b/elasticsearch/src/model/UpdateHotIkDictsRequest.cc index ebe071e3c..1ccfa1ebb 100644 --- a/elasticsearch/src/model/UpdateHotIkDictsRequest.cc +++ b/elasticsearch/src/model/UpdateHotIkDictsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateHotIkDictsRequest; - -UpdateHotIkDictsRequest::UpdateHotIkDictsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/ik-hot-dict"); - setMethod(HttpRequest::Method::Put); -} - -UpdateHotIkDictsRequest::~UpdateHotIkDictsRequest() -{} - -std::string UpdateHotIkDictsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateHotIkDictsRequest; + +UpdateHotIkDictsRequest::UpdateHotIkDictsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/ik-hot-dict"}; + setMethod(HttpRequest::Method::Put); } -void UpdateHotIkDictsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateHotIkDictsRequest::~UpdateHotIkDictsRequest() {} + +string UpdateHotIkDictsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateHotIkDictsRequest::getClientToken()const -{ - return clientToken_; +void UpdateHotIkDictsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateHotIkDictsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateHotIkDictsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateHotIkDictsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateHotIkDictsRequest::getBody() const { + return body_; +} + +void UpdateHotIkDictsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateHotIkDictsResult.cc b/elasticsearch/src/model/UpdateHotIkDictsResult.cc index b07ebb1c2..56a83adce 100644 --- a/elasticsearch/src/model/UpdateHotIkDictsResult.cc +++ b/elasticsearch/src/model/UpdateHotIkDictsResult.cc @@ -43,14 +43,14 @@ void UpdateHotIkDictsResult::parse(const std::string &payload) for (auto valueResultDictList : allResultNode) { DictList resultObject; - if(!valueResultDictList["name"].isNull()) - resultObject.name = valueResultDictList["name"].asString(); if(!valueResultDictList["fileSize"].isNull()) resultObject.fileSize = std::stol(valueResultDictList["fileSize"].asString()); - if(!valueResultDictList["type"].isNull()) - resultObject.type = valueResultDictList["type"].asString(); if(!valueResultDictList["sourceType"].isNull()) resultObject.sourceType = valueResultDictList["sourceType"].asString(); + if(!valueResultDictList["name"].isNull()) + resultObject.name = valueResultDictList["name"].asString(); + if(!valueResultDictList["type"].isNull()) + resultObject.type = valueResultDictList["type"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/UpdateILMPolicyRequest.cc b/elasticsearch/src/model/UpdateILMPolicyRequest.cc index e1c2011f2..48345562f 100644 --- a/elasticsearch/src/model/UpdateILMPolicyRequest.cc +++ b/elasticsearch/src/model/UpdateILMPolicyRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateILMPolicyRequest; - -UpdateILMPolicyRequest::UpdateILMPolicyRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/ilm-policies/[PolicyName]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateILMPolicyRequest::~UpdateILMPolicyRequest() -{} - -std::string UpdateILMPolicyRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateILMPolicyRequest; + +UpdateILMPolicyRequest::UpdateILMPolicyRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/ilm-policies/[PolicyName]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateILMPolicyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateILMPolicyRequest::~UpdateILMPolicyRequest() {} + +string UpdateILMPolicyRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateILMPolicyRequest::getClientToken()const -{ - return clientToken_; +void UpdateILMPolicyRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateILMPolicyRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateILMPolicyRequest::getClientToken() const { + return clientToken_; } -std::string UpdateILMPolicyRequest::getPolicyName()const -{ - return policyName_; +void UpdateILMPolicyRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void UpdateILMPolicyRequest::setPolicyName(const std::string& policyName) -{ - policyName_ = policyName; - setParameter("PolicyName", policyName); +string UpdateILMPolicyRequest::getPolicyName() const { + return policyName_; +} + +void UpdateILMPolicyRequest::setPolicyName(string policyName) { + policyName_ = policyName; + setParameter(std::string("PolicyName"), std::to_string(policyName)); +} + +string UpdateILMPolicyRequest::getBody() const { + return body_; +} + +void UpdateILMPolicyRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateIndexTemplateRequest.cc b/elasticsearch/src/model/UpdateIndexTemplateRequest.cc index a7f737391..dace843ca 100644 --- a/elasticsearch/src/model/UpdateIndexTemplateRequest.cc +++ b/elasticsearch/src/model/UpdateIndexTemplateRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateIndexTemplateRequest; - -UpdateIndexTemplateRequest::UpdateIndexTemplateRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/index-templates/[IndexTemplate]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateIndexTemplateRequest::~UpdateIndexTemplateRequest() -{} - -std::string UpdateIndexTemplateRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateIndexTemplateRequest; + +UpdateIndexTemplateRequest::UpdateIndexTemplateRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/index-templates/[IndexTemplate]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateIndexTemplateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateIndexTemplateRequest::~UpdateIndexTemplateRequest() {} + +string UpdateIndexTemplateRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateIndexTemplateRequest::getClientToken()const -{ - return clientToken_; +void UpdateIndexTemplateRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateIndexTemplateRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateIndexTemplateRequest::getClientToken() const { + return clientToken_; } -std::string UpdateIndexTemplateRequest::getIndexTemplate()const -{ - return indexTemplate_; +void UpdateIndexTemplateRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void UpdateIndexTemplateRequest::setIndexTemplate(const std::string& indexTemplate) -{ - indexTemplate_ = indexTemplate; - setParameter("IndexTemplate", indexTemplate); +string UpdateIndexTemplateRequest::getBody() const { + return body_; +} + +void UpdateIndexTemplateRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); +} + +string UpdateIndexTemplateRequest::getIndexTemplate() const { + return indexTemplate_; +} + +void UpdateIndexTemplateRequest::setIndexTemplate(string indexTemplate) { + indexTemplate_ = indexTemplate; + setParameter(std::string("IndexTemplate"), std::to_string(indexTemplate)); } diff --git a/elasticsearch/src/model/UpdateInstanceChargeTypeRequest.cc b/elasticsearch/src/model/UpdateInstanceChargeTypeRequest.cc index d161365ad..79dac2e29 100644 --- a/elasticsearch/src/model/UpdateInstanceChargeTypeRequest.cc +++ b/elasticsearch/src/model/UpdateInstanceChargeTypeRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateInstanceChargeTypeRequest; - -UpdateInstanceChargeTypeRequest::UpdateInstanceChargeTypeRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/convert-pay-type"); - setMethod(HttpRequest::Method::Post); -} - -UpdateInstanceChargeTypeRequest::~UpdateInstanceChargeTypeRequest() -{} - -std::string UpdateInstanceChargeTypeRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateInstanceChargeTypeRequest; + +UpdateInstanceChargeTypeRequest::UpdateInstanceChargeTypeRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/convert-pay-type"}; + setMethod(HttpRequest::Method::Post); } -void UpdateInstanceChargeTypeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateInstanceChargeTypeRequest::~UpdateInstanceChargeTypeRequest() {} + +string UpdateInstanceChargeTypeRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateInstanceChargeTypeRequest::getClientToken()const -{ - return clientToken_; +void UpdateInstanceChargeTypeRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateInstanceChargeTypeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateInstanceChargeTypeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateInstanceChargeTypeRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateInstanceChargeTypeRequest::getBody() const { + return body_; +} + +void UpdateInstanceChargeTypeRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateInstanceRequest.cc b/elasticsearch/src/model/UpdateInstanceRequest.cc index 171478d8d..949a5d893 100644 --- a/elasticsearch/src/model/UpdateInstanceRequest.cc +++ b/elasticsearch/src/model/UpdateInstanceRequest.cc @@ -1,74 +1,82 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::UpdateInstanceRequest; - -UpdateInstanceRequest::UpdateInstanceRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateInstanceRequest::~UpdateInstanceRequest() -{} - -bool UpdateInstanceRequest::getIgnoreStatus()const -{ - return ignoreStatus_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateInstanceRequest; + +UpdateInstanceRequest::UpdateInstanceRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateInstanceRequest::setIgnoreStatus(bool ignoreStatus) -{ - ignoreStatus_ = ignoreStatus; - setParameter("IgnoreStatus", ignoreStatus ? "true" : "false"); +UpdateInstanceRequest::~UpdateInstanceRequest() {} + +boolean UpdateInstanceRequest::getIgnoreStatus() const { + return ignoreStatus_; } -std::string UpdateInstanceRequest::getInstanceId()const -{ - return instanceId_; +void UpdateInstanceRequest::setIgnoreStatus(boolean ignoreStatus) { + ignoreStatus_ = ignoreStatus; + setParameter(std::string("ignoreStatus"), std::to_string(ignoreStatus)); } -void UpdateInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string UpdateInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateInstanceRequest::getClientToken()const -{ - return clientToken_; +void UpdateInstanceRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateInstanceRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateInstanceRequest::getClientToken() const { + return clientToken_; } -std::string UpdateInstanceRequest::getOrderActionType()const -{ - return orderActionType_; +void UpdateInstanceRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void UpdateInstanceRequest::setOrderActionType(const std::string& orderActionType) -{ - orderActionType_ = orderActionType; - setParameter("OrderActionType", orderActionType); +boolean UpdateInstanceRequest::getForce() const { + return force_; +} + +void UpdateInstanceRequest::setForce(boolean force) { + force_ = force; + setParameter(std::string("force"), std::to_string(force)); +} + +std::string UpdateInstanceRequest::getBody() const { + return body_; +} + +void UpdateInstanceRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + +string UpdateInstanceRequest::getOrderActionType() const { + return orderActionType_; +} + +void UpdateInstanceRequest::setOrderActionType(string orderActionType) { + orderActionType_ = orderActionType; + setParameter(std::string("orderActionType"), std::to_string(orderActionType)); } diff --git a/elasticsearch/src/model/UpdateInstanceResult.cc b/elasticsearch/src/model/UpdateInstanceResult.cc index e4b4d2481..e415f0ecd 100644 --- a/elasticsearch/src/model/UpdateInstanceResult.cc +++ b/elasticsearch/src/model/UpdateInstanceResult.cc @@ -40,58 +40,58 @@ void UpdateInstanceResult::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["nodeAmount"].isNull()) + result_.nodeAmount = std::stoi(resultNode["nodeAmount"].asString()); + if(!resultNode["publicDomain"].isNull()) + result_.publicDomain = resultNode["publicDomain"].asString(); + if(!resultNode["createdAt"].isNull()) + result_.createdAt = resultNode["createdAt"].asString(); + if(!resultNode["status"].isNull()) + result_.status = resultNode["status"].asString(); + if(!resultNode["publicPort"].isNull()) + result_.publicPort = std::stoi(resultNode["publicPort"].asString()); + if(!resultNode["kibanaPort"].isNull()) + result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString()); + if(!resultNode["paymentType"].isNull()) + result_.paymentType = resultNode["paymentType"].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["kibanaPort"].isNull()) - result_.kibanaPort = std::stoi(resultNode["kibanaPort"].asString()); - if(!resultNode["publicDomain"].isNull()) - result_.publicDomain = resultNode["publicDomain"].asString(); - if(!resultNode["publicPort"].isNull()) - result_.publicPort = std::stoi(resultNode["publicPort"].asString()); + if(!resultNode["updatedAt"].isNull()) + result_.updatedAt = resultNode["updatedAt"].asString(); + if(!resultNode["instanceId"].isNull()) + result_.instanceId = resultNode["instanceId"].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 nodeSpecNode = resultNode["nodeSpec"]; @@ -102,32 +102,32 @@ void UpdateInstanceResult::parse(const std::string &payload) 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 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["diskType"].isNull()) - result_.kibanaConfiguration.diskType = kibanaConfigurationNode["diskType"].asString(); if(!kibanaConfigurationNode["disk"].isNull()) result_.kibanaConfiguration.disk = std::stoi(kibanaConfigurationNode["disk"].asString()); + if(!kibanaConfigurationNode["diskType"].isNull()) + result_.kibanaConfiguration.diskType = kibanaConfigurationNode["diskType"].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(); } diff --git a/elasticsearch/src/model/UpdateInstanceSettingsRequest.cc b/elasticsearch/src/model/UpdateInstanceSettingsRequest.cc index 967585cd5..94f9c7ad8 100644 --- a/elasticsearch/src/model/UpdateInstanceSettingsRequest.cc +++ b/elasticsearch/src/model/UpdateInstanceSettingsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateInstanceSettingsRequest; - -UpdateInstanceSettingsRequest::UpdateInstanceSettingsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/instance-settings"); - setMethod(HttpRequest::Method::Post); -} - -UpdateInstanceSettingsRequest::~UpdateInstanceSettingsRequest() -{} - -std::string UpdateInstanceSettingsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateInstanceSettingsRequest; + +UpdateInstanceSettingsRequest::UpdateInstanceSettingsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/instance-settings"}; + setMethod(HttpRequest::Method::Post); } -void UpdateInstanceSettingsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateInstanceSettingsRequest::~UpdateInstanceSettingsRequest() {} + +string UpdateInstanceSettingsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateInstanceSettingsRequest::getClientToken()const -{ - return clientToken_; +void UpdateInstanceSettingsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateInstanceSettingsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateInstanceSettingsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateInstanceSettingsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateInstanceSettingsRequest::getBody() const { + return body_; +} + +void UpdateInstanceSettingsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateKibanaSettingsRequest.cc b/elasticsearch/src/model/UpdateKibanaSettingsRequest.cc index 49fea6bb1..7aade15a0 100644 --- a/elasticsearch/src/model/UpdateKibanaSettingsRequest.cc +++ b/elasticsearch/src/model/UpdateKibanaSettingsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateKibanaSettingsRequest; - -UpdateKibanaSettingsRequest::UpdateKibanaSettingsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/update-kibana-settings"); - setMethod(HttpRequest::Method::Post); -} - -UpdateKibanaSettingsRequest::~UpdateKibanaSettingsRequest() -{} - -std::string UpdateKibanaSettingsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateKibanaSettingsRequest; + +UpdateKibanaSettingsRequest::UpdateKibanaSettingsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/update-kibana-settings"}; + setMethod(HttpRequest::Method::Post); } -void UpdateKibanaSettingsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateKibanaSettingsRequest::~UpdateKibanaSettingsRequest() {} + +string UpdateKibanaSettingsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateKibanaSettingsRequest::getClientToken()const -{ - return clientToken_; +void UpdateKibanaSettingsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateKibanaSettingsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateKibanaSettingsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateKibanaSettingsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateKibanaSettingsRequest::getBody() const { + return body_; +} + +void UpdateKibanaSettingsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateKibanaWhiteIpsRequest.cc b/elasticsearch/src/model/UpdateKibanaWhiteIpsRequest.cc index a5ccb13b7..b35edf52b 100644 --- a/elasticsearch/src/model/UpdateKibanaWhiteIpsRequest.cc +++ b/elasticsearch/src/model/UpdateKibanaWhiteIpsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateKibanaWhiteIpsRequest; - -UpdateKibanaWhiteIpsRequest::UpdateKibanaWhiteIpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/kibana-white-ips"); - setMethod(HttpRequest::Method::Post); -} - -UpdateKibanaWhiteIpsRequest::~UpdateKibanaWhiteIpsRequest() -{} - -std::string UpdateKibanaWhiteIpsRequest::getModifyMode()const -{ - return modifyMode_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateKibanaWhiteIpsRequest; + +UpdateKibanaWhiteIpsRequest::UpdateKibanaWhiteIpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/kibana-white-ips"}; + setMethod(HttpRequest::Method::Post); } -void UpdateKibanaWhiteIpsRequest::setModifyMode(const std::string& modifyMode) -{ - modifyMode_ = modifyMode; - setParameter("ModifyMode", modifyMode); +UpdateKibanaWhiteIpsRequest::~UpdateKibanaWhiteIpsRequest() {} + +string UpdateKibanaWhiteIpsRequest::getModifyMode() const { + return modifyMode_; } -std::string UpdateKibanaWhiteIpsRequest::getInstanceId()const -{ - return instanceId_; +void UpdateKibanaWhiteIpsRequest::setModifyMode(string modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("modifyMode"), std::to_string(modifyMode)); } -void UpdateKibanaWhiteIpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string UpdateKibanaWhiteIpsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateKibanaWhiteIpsRequest::getClientToken()const -{ - return clientToken_; +void UpdateKibanaWhiteIpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateKibanaWhiteIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateKibanaWhiteIpsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateKibanaWhiteIpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +std::string UpdateKibanaWhiteIpsRequest::getBody() const { + return body_; +} + +void UpdateKibanaWhiteIpsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdateKibanaWhiteIpsResult.cc b/elasticsearch/src/model/UpdateKibanaWhiteIpsResult.cc index 57ccc9e07..4062dc611 100644 --- a/elasticsearch/src/model/UpdateKibanaWhiteIpsResult.cc +++ b/elasticsearch/src/model/UpdateKibanaWhiteIpsResult.cc @@ -40,12 +40,34 @@ void UpdateKibanaWhiteIpsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; - auto allKibanaIPWhitelist = resultNode["kibanaIPWhitelist"]["kibanaIPWhitelist"]; - for (auto value : allKibanaIPWhitelist) - result_.kibanaIPWhitelist.push_back(value.asString()); + auto networkConfigNode = resultNode["networkConfig"]; + 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(); + 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(); + auto allIps = value["ips"]["ips"]; + for (auto value : allIps) + whiteIpGroupListItemObject.ips.push_back(value.asString()); + result_.networkConfig.whiteIpGroupList.push_back(whiteIpGroupListItemObject); + } auto allKibanaPrivateIPWhitelist = resultNode["kibanaPrivateIPWhitelist"]["kibanaPrivateIPWhitelist"]; for (auto value : allKibanaPrivateIPWhitelist) result_.kibanaPrivateIPWhitelist.push_back(value.asString()); + auto allKibanaIPWhitelist = resultNode["kibanaIPWhitelist"]["kibanaIPWhitelist"]; + for (auto value : allKibanaIPWhitelist) + result_.kibanaIPWhitelist.push_back(value.asString()); } diff --git a/elasticsearch/src/model/UpdateLogstashChargeTypeRequest.cc b/elasticsearch/src/model/UpdateLogstashChargeTypeRequest.cc index 67f504766..0ecc2272e 100644 --- a/elasticsearch/src/model/UpdateLogstashChargeTypeRequest.cc +++ b/elasticsearch/src/model/UpdateLogstashChargeTypeRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateLogstashChargeTypeRequest; - -UpdateLogstashChargeTypeRequest::UpdateLogstashChargeTypeRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/actions/convert-pay-type"); - setMethod(HttpRequest::Method::Post); -} - -UpdateLogstashChargeTypeRequest::~UpdateLogstashChargeTypeRequest() -{} - -std::string UpdateLogstashChargeTypeRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateLogstashChargeTypeRequest; + +UpdateLogstashChargeTypeRequest::UpdateLogstashChargeTypeRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/actions/convert-pay-type"}; + setMethod(HttpRequest::Method::Post); } -void UpdateLogstashChargeTypeRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateLogstashChargeTypeRequest::~UpdateLogstashChargeTypeRequest() {} + +string UpdateLogstashChargeTypeRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateLogstashChargeTypeRequest::getClientToken()const -{ - return clientToken_; +void UpdateLogstashChargeTypeRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateLogstashChargeTypeRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateLogstashChargeTypeRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLogstashChargeTypeRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateLogstashChargeTypeRequest::getBody() const { + return body_; +} + +void UpdateLogstashChargeTypeRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateLogstashDescriptionRequest.cc b/elasticsearch/src/model/UpdateLogstashDescriptionRequest.cc index 7e77c28ab..a7daeec10 100644 --- a/elasticsearch/src/model/UpdateLogstashDescriptionRequest.cc +++ b/elasticsearch/src/model/UpdateLogstashDescriptionRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateLogstashDescriptionRequest; - -UpdateLogstashDescriptionRequest::UpdateLogstashDescriptionRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/description"); - setMethod(HttpRequest::Method::Post); -} - -UpdateLogstashDescriptionRequest::~UpdateLogstashDescriptionRequest() -{} - -std::string UpdateLogstashDescriptionRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateLogstashDescriptionRequest; + +UpdateLogstashDescriptionRequest::UpdateLogstashDescriptionRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/description"}; + setMethod(HttpRequest::Method::Post); } -void UpdateLogstashDescriptionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateLogstashDescriptionRequest::~UpdateLogstashDescriptionRequest() {} + +string UpdateLogstashDescriptionRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateLogstashDescriptionRequest::getClientToken()const -{ - return clientToken_; +void UpdateLogstashDescriptionRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateLogstashDescriptionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateLogstashDescriptionRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLogstashDescriptionRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateLogstashDescriptionRequest::getBody() const { + return body_; +} + +void UpdateLogstashDescriptionRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateLogstashRequest.cc b/elasticsearch/src/model/UpdateLogstashRequest.cc index 5ffa37d52..4f3fcac3e 100644 --- a/elasticsearch/src/model/UpdateLogstashRequest.cc +++ b/elasticsearch/src/model/UpdateLogstashRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateLogstashRequest; - -UpdateLogstashRequest::UpdateLogstashRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]"); - setMethod(HttpRequest::Method::Put); -} - -UpdateLogstashRequest::~UpdateLogstashRequest() -{} - -std::string UpdateLogstashRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateLogstashRequest; + +UpdateLogstashRequest::UpdateLogstashRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]"}; + setMethod(HttpRequest::Method::Put); } -void UpdateLogstashRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateLogstashRequest::~UpdateLogstashRequest() {} + +string UpdateLogstashRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateLogstashRequest::getClientToken()const -{ - return clientToken_; +void UpdateLogstashRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateLogstashRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateLogstashRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLogstashRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +std::string UpdateLogstashRequest::getBody() const { + return body_; +} + +void UpdateLogstashRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdateLogstashSettingsRequest.cc b/elasticsearch/src/model/UpdateLogstashSettingsRequest.cc index ead382562..1e51650ad 100644 --- a/elasticsearch/src/model/UpdateLogstashSettingsRequest.cc +++ b/elasticsearch/src/model/UpdateLogstashSettingsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateLogstashSettingsRequest; - -UpdateLogstashSettingsRequest::UpdateLogstashSettingsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/instance-settings"); - setMethod(HttpRequest::Method::Post); -} - -UpdateLogstashSettingsRequest::~UpdateLogstashSettingsRequest() -{} - -std::string UpdateLogstashSettingsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateLogstashSettingsRequest; + +UpdateLogstashSettingsRequest::UpdateLogstashSettingsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/instance-settings"}; + setMethod(HttpRequest::Method::Post); } -void UpdateLogstashSettingsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateLogstashSettingsRequest::~UpdateLogstashSettingsRequest() {} + +string UpdateLogstashSettingsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateLogstashSettingsRequest::getClientToken()const -{ - return clientToken_; +void UpdateLogstashSettingsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateLogstashSettingsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateLogstashSettingsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateLogstashSettingsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateLogstashSettingsRequest::getBody() const { + return body_; +} + +void UpdateLogstashSettingsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdatePipelineManagementConfigRequest.cc b/elasticsearch/src/model/UpdatePipelineManagementConfigRequest.cc index 973eb029b..021c760ca 100644 --- a/elasticsearch/src/model/UpdatePipelineManagementConfigRequest.cc +++ b/elasticsearch/src/model/UpdatePipelineManagementConfigRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdatePipelineManagementConfigRequest; - -UpdatePipelineManagementConfigRequest::UpdatePipelineManagementConfigRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/pipeline-management-config"); - setMethod(HttpRequest::Method::Post); -} - -UpdatePipelineManagementConfigRequest::~UpdatePipelineManagementConfigRequest() -{} - -std::string UpdatePipelineManagementConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdatePipelineManagementConfigRequest; + +UpdatePipelineManagementConfigRequest::UpdatePipelineManagementConfigRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/pipeline-management-config"}; + setMethod(HttpRequest::Method::Post); } -void UpdatePipelineManagementConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdatePipelineManagementConfigRequest::~UpdatePipelineManagementConfigRequest() {} + +string UpdatePipelineManagementConfigRequest::getInstanceId() const { + return instanceId_; } -std::string UpdatePipelineManagementConfigRequest::getClientToken()const -{ - return clientToken_; +void UpdatePipelineManagementConfigRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdatePipelineManagementConfigRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdatePipelineManagementConfigRequest::getClientToken() const { + return clientToken_; +} + +void UpdatePipelineManagementConfigRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +std::string UpdatePipelineManagementConfigRequest::getBody() const { + return body_; +} + +void UpdatePipelineManagementConfigRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdatePipelinesRequest.cc b/elasticsearch/src/model/UpdatePipelinesRequest.cc index 80bd60fc0..b1e3d08bc 100644 --- a/elasticsearch/src/model/UpdatePipelinesRequest.cc +++ b/elasticsearch/src/model/UpdatePipelinesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdatePipelinesRequest; - -UpdatePipelinesRequest::UpdatePipelinesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/pipelines"); - setMethod(HttpRequest::Method::Put); -} - -UpdatePipelinesRequest::~UpdatePipelinesRequest() -{} - -std::string UpdatePipelinesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdatePipelinesRequest; + +UpdatePipelinesRequest::UpdatePipelinesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/pipelines"}; + setMethod(HttpRequest::Method::Put); } -void UpdatePipelinesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdatePipelinesRequest::~UpdatePipelinesRequest() {} + +string UpdatePipelinesRequest::getInstanceId() const { + return instanceId_; } -std::string UpdatePipelinesRequest::getClientToken()const -{ - return clientToken_; +void UpdatePipelinesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdatePipelinesRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdatePipelinesRequest::getClientToken() const { + return clientToken_; } -bool UpdatePipelinesRequest::getTrigger()const -{ - return trigger_; +void UpdatePipelinesRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void UpdatePipelinesRequest::setTrigger(bool trigger) -{ - trigger_ = trigger; - setParameter("Trigger", trigger ? "true" : "false"); +boolean UpdatePipelinesRequest::getTrigger() const { + return trigger_; +} + +void UpdatePipelinesRequest::setTrigger(boolean trigger) { + trigger_ = trigger; + setParameter(std::string("trigger"), std::to_string(trigger)); +} + +string UpdatePipelinesRequest::getBody() const { + return body_; +} + +void UpdatePipelinesRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdatePrivateNetworkWhiteIpsRequest.cc b/elasticsearch/src/model/UpdatePrivateNetworkWhiteIpsRequest.cc index df2619c82..3d11768a0 100644 --- a/elasticsearch/src/model/UpdatePrivateNetworkWhiteIpsRequest.cc +++ b/elasticsearch/src/model/UpdatePrivateNetworkWhiteIpsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdatePrivateNetworkWhiteIpsRequest; - -UpdatePrivateNetworkWhiteIpsRequest::UpdatePrivateNetworkWhiteIpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/private-network-white-ips"); - setMethod(HttpRequest::Method::Post); -} - -UpdatePrivateNetworkWhiteIpsRequest::~UpdatePrivateNetworkWhiteIpsRequest() -{} - -std::string UpdatePrivateNetworkWhiteIpsRequest::getModifyMode()const -{ - return modifyMode_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdatePrivateNetworkWhiteIpsRequest; + +UpdatePrivateNetworkWhiteIpsRequest::UpdatePrivateNetworkWhiteIpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/private-network-white-ips"}; + setMethod(HttpRequest::Method::Post); } -void UpdatePrivateNetworkWhiteIpsRequest::setModifyMode(const std::string& modifyMode) -{ - modifyMode_ = modifyMode; - setParameter("ModifyMode", modifyMode); +UpdatePrivateNetworkWhiteIpsRequest::~UpdatePrivateNetworkWhiteIpsRequest() {} + +string UpdatePrivateNetworkWhiteIpsRequest::getModifyMode() const { + return modifyMode_; } -std::string UpdatePrivateNetworkWhiteIpsRequest::getInstanceId()const -{ - return instanceId_; +void UpdatePrivateNetworkWhiteIpsRequest::setModifyMode(string modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("modifyMode"), std::to_string(modifyMode)); } -void UpdatePrivateNetworkWhiteIpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string UpdatePrivateNetworkWhiteIpsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdatePrivateNetworkWhiteIpsRequest::getClientToken()const -{ - return clientToken_; +void UpdatePrivateNetworkWhiteIpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdatePrivateNetworkWhiteIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdatePrivateNetworkWhiteIpsRequest::getClientToken() const { + return clientToken_; +} + +void UpdatePrivateNetworkWhiteIpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdatePrivateNetworkWhiteIpsRequest::getBody() const { + return body_; +} + +void UpdatePrivateNetworkWhiteIpsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdatePublicNetworkRequest.cc b/elasticsearch/src/model/UpdatePublicNetworkRequest.cc index 69baf0174..3b9f6df54 100644 --- a/elasticsearch/src/model/UpdatePublicNetworkRequest.cc +++ b/elasticsearch/src/model/UpdatePublicNetworkRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdatePublicNetworkRequest; - -UpdatePublicNetworkRequest::UpdatePublicNetworkRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/public-network"); - setMethod(HttpRequest::Method::Post); -} - -UpdatePublicNetworkRequest::~UpdatePublicNetworkRequest() -{} - -std::string UpdatePublicNetworkRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdatePublicNetworkRequest; + +UpdatePublicNetworkRequest::UpdatePublicNetworkRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/public-network"}; + setMethod(HttpRequest::Method::Post); } -void UpdatePublicNetworkRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdatePublicNetworkRequest::~UpdatePublicNetworkRequest() {} + +string UpdatePublicNetworkRequest::getInstanceId() const { + return instanceId_; } -std::string UpdatePublicNetworkRequest::getClientToken()const -{ - return clientToken_; +void UpdatePublicNetworkRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdatePublicNetworkRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdatePublicNetworkRequest::getClientToken() const { + return clientToken_; +} + +void UpdatePublicNetworkRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdatePublicNetworkRequest::getBody() const { + return body_; +} + +void UpdatePublicNetworkRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdatePublicWhiteIpsRequest.cc b/elasticsearch/src/model/UpdatePublicWhiteIpsRequest.cc index d9bc6803d..ebe24e8b2 100644 --- a/elasticsearch/src/model/UpdatePublicWhiteIpsRequest.cc +++ b/elasticsearch/src/model/UpdatePublicWhiteIpsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdatePublicWhiteIpsRequest; - -UpdatePublicWhiteIpsRequest::UpdatePublicWhiteIpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/public-white-ips"); - setMethod(HttpRequest::Method::Post); -} - -UpdatePublicWhiteIpsRequest::~UpdatePublicWhiteIpsRequest() -{} - -std::string UpdatePublicWhiteIpsRequest::getModifyMode()const -{ - return modifyMode_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdatePublicWhiteIpsRequest; + +UpdatePublicWhiteIpsRequest::UpdatePublicWhiteIpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/public-white-ips"}; + setMethod(HttpRequest::Method::Post); } -void UpdatePublicWhiteIpsRequest::setModifyMode(const std::string& modifyMode) -{ - modifyMode_ = modifyMode; - setParameter("ModifyMode", modifyMode); +UpdatePublicWhiteIpsRequest::~UpdatePublicWhiteIpsRequest() {} + +string UpdatePublicWhiteIpsRequest::getModifyMode() const { + return modifyMode_; } -std::string UpdatePublicWhiteIpsRequest::getInstanceId()const -{ - return instanceId_; +void UpdatePublicWhiteIpsRequest::setModifyMode(string modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("modifyMode"), std::to_string(modifyMode)); } -void UpdatePublicWhiteIpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string UpdatePublicWhiteIpsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdatePublicWhiteIpsRequest::getClientToken()const -{ - return clientToken_; +void UpdatePublicWhiteIpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdatePublicWhiteIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdatePublicWhiteIpsRequest::getClientToken() const { + return clientToken_; +} + +void UpdatePublicWhiteIpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdatePublicWhiteIpsRequest::getBody() const { + return body_; +} + +void UpdatePublicWhiteIpsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateReadWritePolicyRequest.cc b/elasticsearch/src/model/UpdateReadWritePolicyRequest.cc index 4c32a6984..04d567c89 100644 --- a/elasticsearch/src/model/UpdateReadWritePolicyRequest.cc +++ b/elasticsearch/src/model/UpdateReadWritePolicyRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateReadWritePolicyRequest; - -UpdateReadWritePolicyRequest::UpdateReadWritePolicyRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/update-read-write-policy"); - setMethod(HttpRequest::Method::Post); -} - -UpdateReadWritePolicyRequest::~UpdateReadWritePolicyRequest() -{} - -std::string UpdateReadWritePolicyRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateReadWritePolicyRequest; + +UpdateReadWritePolicyRequest::UpdateReadWritePolicyRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/update-read-write-policy"}; + setMethod(HttpRequest::Method::Post); } -void UpdateReadWritePolicyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateReadWritePolicyRequest::~UpdateReadWritePolicyRequest() {} + +string UpdateReadWritePolicyRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateReadWritePolicyRequest::getClientToken()const -{ - return clientToken_; +void UpdateReadWritePolicyRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateReadWritePolicyRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateReadWritePolicyRequest::getClientToken() const { + return clientToken_; +} + +void UpdateReadWritePolicyRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string UpdateReadWritePolicyRequest::getBody() const { + return body_; +} + +void UpdateReadWritePolicyRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateSnapshotSettingRequest.cc b/elasticsearch/src/model/UpdateSnapshotSettingRequest.cc index c469bc7e3..ad767d737 100644 --- a/elasticsearch/src/model/UpdateSnapshotSettingRequest.cc +++ b/elasticsearch/src/model/UpdateSnapshotSettingRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateSnapshotSettingRequest; - -UpdateSnapshotSettingRequest::UpdateSnapshotSettingRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/snapshot-setting"); - setMethod(HttpRequest::Method::Post); -} - -UpdateSnapshotSettingRequest::~UpdateSnapshotSettingRequest() -{} - -std::string UpdateSnapshotSettingRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateSnapshotSettingRequest; + +UpdateSnapshotSettingRequest::UpdateSnapshotSettingRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/snapshot-setting"}; + setMethod(HttpRequest::Method::Post); } -void UpdateSnapshotSettingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateSnapshotSettingRequest::~UpdateSnapshotSettingRequest() {} + +string UpdateSnapshotSettingRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateSnapshotSettingRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); +} + +string UpdateSnapshotSettingRequest::getBody() const { + return body_; +} + +void UpdateSnapshotSettingRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateSynonymsDictsRequest.cc b/elasticsearch/src/model/UpdateSynonymsDictsRequest.cc index d081de4fd..484932d82 100644 --- a/elasticsearch/src/model/UpdateSynonymsDictsRequest.cc +++ b/elasticsearch/src/model/UpdateSynonymsDictsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateSynonymsDictsRequest; - -UpdateSynonymsDictsRequest::UpdateSynonymsDictsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/synonymsDict"); - setMethod(HttpRequest::Method::Put); -} - -UpdateSynonymsDictsRequest::~UpdateSynonymsDictsRequest() -{} - -std::string UpdateSynonymsDictsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateSynonymsDictsRequest; + +UpdateSynonymsDictsRequest::UpdateSynonymsDictsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/synonymsDict"}; + setMethod(HttpRequest::Method::Put); } -void UpdateSynonymsDictsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateSynonymsDictsRequest::~UpdateSynonymsDictsRequest() {} + +string UpdateSynonymsDictsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateSynonymsDictsRequest::getClientToken()const -{ - return clientToken_; +void UpdateSynonymsDictsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateSynonymsDictsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateSynonymsDictsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateSynonymsDictsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +string UpdateSynonymsDictsRequest::getBody() const { + return body_; +} + +void UpdateSynonymsDictsRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateSynonymsDictsResult.cc b/elasticsearch/src/model/UpdateSynonymsDictsResult.cc index 4d5fd5e56..8762b7057 100644 --- a/elasticsearch/src/model/UpdateSynonymsDictsResult.cc +++ b/elasticsearch/src/model/UpdateSynonymsDictsResult.cc @@ -43,14 +43,14 @@ void UpdateSynonymsDictsResult::parse(const std::string &payload) for (auto valueResultDictList : allResultNode) { DictList resultObject; - if(!valueResultDictList["name"].isNull()) - resultObject.name = valueResultDictList["name"].asString(); if(!valueResultDictList["fileSize"].isNull()) resultObject.fileSize = std::stol(valueResultDictList["fileSize"].asString()); - if(!valueResultDictList["type"].isNull()) - resultObject.type = valueResultDictList["type"].asString(); if(!valueResultDictList["sourceType"].isNull()) resultObject.sourceType = valueResultDictList["sourceType"].asString(); + if(!valueResultDictList["name"].isNull()) + resultObject.name = valueResultDictList["name"].asString(); + if(!valueResultDictList["type"].isNull()) + resultObject.type = valueResultDictList["type"].asString(); result_.push_back(resultObject); } diff --git a/elasticsearch/src/model/UpdateTemplateRequest.cc b/elasticsearch/src/model/UpdateTemplateRequest.cc index 4fb3fb6be..b7379af2b 100644 --- a/elasticsearch/src/model/UpdateTemplateRequest.cc +++ b/elasticsearch/src/model/UpdateTemplateRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateTemplateRequest; - -UpdateTemplateRequest::UpdateTemplateRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/templates/[TemplateName]"); - setMethod(HttpRequest::Method::Post); -} - -UpdateTemplateRequest::~UpdateTemplateRequest() -{} - -std::string UpdateTemplateRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateTemplateRequest; + +UpdateTemplateRequest::UpdateTemplateRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/templates/[TemplateName]"}; + setMethod(HttpRequest::Method::Post); } -void UpdateTemplateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateTemplateRequest::~UpdateTemplateRequest() {} + +string UpdateTemplateRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateTemplateRequest::getClientToken()const -{ - return clientToken_; +void UpdateTemplateRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateTemplateRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateTemplateRequest::getClientToken() const { + return clientToken_; } -std::string UpdateTemplateRequest::getTemplateName()const -{ - return templateName_; +void UpdateTemplateRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void UpdateTemplateRequest::setTemplateName(const std::string& templateName) -{ - templateName_ = templateName; - setParameter("TemplateName", templateName); +string UpdateTemplateRequest::getTemplateName() const { + return templateName_; +} + +void UpdateTemplateRequest::setTemplateName(string templateName) { + templateName_ = templateName; + setParameter(std::string("TemplateName"), std::to_string(templateName)); +} + +string UpdateTemplateRequest::getBody() const { + return body_; +} + +void UpdateTemplateRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/UpdateWhiteIpsRequest.cc b/elasticsearch/src/model/UpdateWhiteIpsRequest.cc index 370193ba3..df509805b 100644 --- a/elasticsearch/src/model/UpdateWhiteIpsRequest.cc +++ b/elasticsearch/src/model/UpdateWhiteIpsRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateWhiteIpsRequest; - -UpdateWhiteIpsRequest::UpdateWhiteIpsRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/white-ips"); - setMethod(HttpRequest::Method::Post); -} - -UpdateWhiteIpsRequest::~UpdateWhiteIpsRequest() -{} - -std::string UpdateWhiteIpsRequest::getModifyMode()const -{ - return modifyMode_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateWhiteIpsRequest; + +UpdateWhiteIpsRequest::UpdateWhiteIpsRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/white-ips"}; + setMethod(HttpRequest::Method::Post); } -void UpdateWhiteIpsRequest::setModifyMode(const std::string& modifyMode) -{ - modifyMode_ = modifyMode; - setParameter("ModifyMode", modifyMode); +UpdateWhiteIpsRequest::~UpdateWhiteIpsRequest() {} + +string UpdateWhiteIpsRequest::getModifyMode() const { + return modifyMode_; } -std::string UpdateWhiteIpsRequest::getInstanceId()const -{ - return instanceId_; +void UpdateWhiteIpsRequest::setModifyMode(string modifyMode) { + modifyMode_ = modifyMode; + setParameter(std::string("modifyMode"), std::to_string(modifyMode)); } -void UpdateWhiteIpsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string UpdateWhiteIpsRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateWhiteIpsRequest::getClientToken()const -{ - return clientToken_; +void UpdateWhiteIpsRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateWhiteIpsRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateWhiteIpsRequest::getClientToken() const { + return clientToken_; +} + +void UpdateWhiteIpsRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); +} + +std::string UpdateWhiteIpsRequest::getBody() const { + return body_; +} + +void UpdateWhiteIpsRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpdateWhiteIpsResult.cc b/elasticsearch/src/model/UpdateWhiteIpsResult.cc index 74b2e624d..baee8c89b 100644 --- a/elasticsearch/src/model/UpdateWhiteIpsResult.cc +++ b/elasticsearch/src/model/UpdateWhiteIpsResult.cc @@ -40,6 +40,20 @@ void UpdateWhiteIpsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto resultNode = value["Result"]; + auto networkConfigNode = resultNode["networkConfig"]; + 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(); + auto allIps = value["ips"]["ips"]; + for (auto value : allIps) + whiteIpGroupListItemObject.ips.push_back(value.asString()); + result_.networkConfig.whiteIpGroupList.push_back(whiteIpGroupListItemObject); + } auto allEsIPWhitelist = resultNode["esIPWhitelist"]["esIPWhitelist"]; for (auto value : allEsIPWhitelist) result_.esIPWhitelist.push_back(value.asString()); diff --git a/elasticsearch/src/model/UpdateXpackMonitorConfigRequest.cc b/elasticsearch/src/model/UpdateXpackMonitorConfigRequest.cc index 71ada89c6..06a928dfe 100644 --- a/elasticsearch/src/model/UpdateXpackMonitorConfigRequest.cc +++ b/elasticsearch/src/model/UpdateXpackMonitorConfigRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::UpdateXpackMonitorConfigRequest; - -UpdateXpackMonitorConfigRequest::UpdateXpackMonitorConfigRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/xpack-monitor-config"); - setMethod(HttpRequest::Method::Post); -} - -UpdateXpackMonitorConfigRequest::~UpdateXpackMonitorConfigRequest() -{} - -std::string UpdateXpackMonitorConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpdateXpackMonitorConfigRequest; + +UpdateXpackMonitorConfigRequest::UpdateXpackMonitorConfigRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/xpack-monitor-config"}; + setMethod(HttpRequest::Method::Post); } -void UpdateXpackMonitorConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpdateXpackMonitorConfigRequest::~UpdateXpackMonitorConfigRequest() {} + +string UpdateXpackMonitorConfigRequest::getInstanceId() const { + return instanceId_; } -std::string UpdateXpackMonitorConfigRequest::getClientToken()const -{ - return clientToken_; +void UpdateXpackMonitorConfigRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpdateXpackMonitorConfigRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpdateXpackMonitorConfigRequest::getClientToken() const { + return clientToken_; +} + +void UpdateXpackMonitorConfigRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +std::string UpdateXpackMonitorConfigRequest::getBody() const { + return body_; +} + +void UpdateXpackMonitorConfigRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpgradeEngineVersionRequest.cc b/elasticsearch/src/model/UpgradeEngineVersionRequest.cc index 27204d607..576c58883 100644 --- a/elasticsearch/src/model/UpgradeEngineVersionRequest.cc +++ b/elasticsearch/src/model/UpgradeEngineVersionRequest.cc @@ -1,85 +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 - -using AlibabaCloud::Elasticsearch::Model::UpgradeEngineVersionRequest; - -UpgradeEngineVersionRequest::UpgradeEngineVersionRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/actions/upgrade-version"); - setMethod(HttpRequest::Method::Post); -} - -UpgradeEngineVersionRequest::~UpgradeEngineVersionRequest() -{} - -std::string UpgradeEngineVersionRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::UpgradeEngineVersionRequest; + +UpgradeEngineVersionRequest::UpgradeEngineVersionRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/actions/upgrade-version"}; + setMethod(HttpRequest::Method::Post); } -void UpgradeEngineVersionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +UpgradeEngineVersionRequest::~UpgradeEngineVersionRequest() {} + +string UpgradeEngineVersionRequest::getInstanceId() const { + return instanceId_; } -bool UpgradeEngineVersionRequest::getDryRun()const -{ - return dryRun_; +void UpgradeEngineVersionRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void UpgradeEngineVersionRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setParameter("DryRun", dryRun ? "true" : "false"); +boolean UpgradeEngineVersionRequest::getDryRun() const { + return dryRun_; } -std::string UpgradeEngineVersionRequest::getClientToken()const -{ - return clientToken_; +void UpgradeEngineVersionRequest::setDryRun(boolean dryRun) { + dryRun_ = dryRun; + setParameter(std::string("dryRun"), std::to_string(dryRun)); } -void UpgradeEngineVersionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string UpgradeEngineVersionRequest::getClientToken() const { + return clientToken_; } -std::string UpgradeEngineVersionRequest::getType()const -{ - return type_; +void UpgradeEngineVersionRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("clientToken"), std::to_string(clientToken)); } -void UpgradeEngineVersionRequest::setType(const std::string& type) -{ - type_ = type; - setBodyParameter("Type", type); +std::string UpgradeEngineVersionRequest::getBody() const { + return body_; } -std::string UpgradeEngineVersionRequest::getVersion()const -{ - return version_; -} - -void UpgradeEngineVersionRequest::setVersion(const std::string& version) -{ - version_ = version; - setBodyParameter("Version", version); +void UpgradeEngineVersionRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/UpgradeEngineVersionResult.cc b/elasticsearch/src/model/UpgradeEngineVersionResult.cc index 763b42da1..ecbaf9159 100644 --- a/elasticsearch/src/model/UpgradeEngineVersionResult.cc +++ b/elasticsearch/src/model/UpgradeEngineVersionResult.cc @@ -39,22 +39,32 @@ void UpgradeEngineVersionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto resultNode = value["Result"]; - if(!resultNode["validateType"].isNull()) - result_.validateType = resultNode["validateType"].asString(); - if(!resultNode["status"].isNull()) - result_.status = resultNode["status"].asString(); - auto validateResultNode = resultNode["validateResult"]; - if(!validateResultNode["errorType"].isNull()) - result_.validateResult.errorType = validateResultNode["errorType"].asString(); - if(!validateResultNode["errorCode"].isNull()) - result_.validateResult.errorCode = validateResultNode["errorCode"].asString(); - if(!validateResultNode["errorMsg"].isNull()) - result_.validateResult.errorMsg = validateResultNode["errorMsg"].asString(); + auto allResultNode = value["Result"]["ResultItem"]; + for (auto valueResultResultItem : allResultNode) + { + ResultItem resultObject; + if(!valueResultResultItem["validateType"].isNull()) + resultObject.validateType = valueResultResultItem["validateType"].asString(); + if(!valueResultResultItem["status"].isNull()) + resultObject.status = valueResultResultItem["status"].asString(); + auto allvalidateResultNode = valueResultResultItem["validateResult"]["validateResultItem"]; + for (auto valueResultResultItemvalidateResultvalidateResultItem : allvalidateResultNode) + { + ResultItem::ValidateResultItem validateResultObject; + if(!valueResultResultItemvalidateResultvalidateResultItem["errorType"].isNull()) + validateResultObject.errorType = valueResultResultItemvalidateResultvalidateResultItem["errorType"].asString(); + if(!valueResultResultItemvalidateResultvalidateResultItem["errorCode"].isNull()) + validateResultObject.errorCode = valueResultResultItemvalidateResultvalidateResultItem["errorCode"].asString(); + if(!valueResultResultItemvalidateResultvalidateResultItem["errorMsg"].isNull()) + validateResultObject.errorMsg = valueResultResultItemvalidateResultvalidateResultItem["errorMsg"].asString(); + resultObject.validateResult.push_back(validateResultObject); + } + result_.push_back(resultObject); + } } -UpgradeEngineVersionResult::Result UpgradeEngineVersionResult::getResult()const +std::vector UpgradeEngineVersionResult::getResult()const { return result_; } diff --git a/elasticsearch/src/model/ValidateConnectionRequest.cc b/elasticsearch/src/model/ValidateConnectionRequest.cc index 7f3ec6b99..4d1a226ab 100644 --- a/elasticsearch/src/model/ValidateConnectionRequest.cc +++ b/elasticsearch/src/model/ValidateConnectionRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ValidateConnectionRequest; - -ValidateConnectionRequest::ValidateConnectionRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/logstashes/[InstanceId]/validate-connection"); - setMethod(HttpRequest::Method::Post); -} - -ValidateConnectionRequest::~ValidateConnectionRequest() -{} - -std::string ValidateConnectionRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ValidateConnectionRequest; + +ValidateConnectionRequest::ValidateConnectionRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/logstashes/[InstanceId]/validate-connection"}; + setMethod(HttpRequest::Method::Post); } -void ValidateConnectionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ValidateConnectionRequest::~ValidateConnectionRequest() {} + +string ValidateConnectionRequest::getInstanceId() const { + return instanceId_; } -std::string ValidateConnectionRequest::getClientToken()const -{ - return clientToken_; +void ValidateConnectionRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ValidateConnectionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +string ValidateConnectionRequest::getClientToken() const { + return clientToken_; +} + +void ValidateConnectionRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); +} + +string ValidateConnectionRequest::getBody() const { + return body_; +} + +void ValidateConnectionRequest::setBody(string body) { + body_ = body; + setBodyParameter(std::string("body"), std::to_string(body)); } diff --git a/elasticsearch/src/model/ValidateShrinkNodesRequest.cc b/elasticsearch/src/model/ValidateShrinkNodesRequest.cc index c1c494c7e..9149c0f09 100644 --- a/elasticsearch/src/model/ValidateShrinkNodesRequest.cc +++ b/elasticsearch/src/model/ValidateShrinkNodesRequest.cc @@ -1,63 +1,73 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Elasticsearch::Model::ValidateShrinkNodesRequest; - -ValidateShrinkNodesRequest::ValidateShrinkNodesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/validate-shrink-nodes"); - setMethod(HttpRequest::Method::Post); -} - -ValidateShrinkNodesRequest::~ValidateShrinkNodesRequest() -{} - -bool ValidateShrinkNodesRequest::getIgnoreStatus()const -{ - return ignoreStatus_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ValidateShrinkNodesRequest; + +ValidateShrinkNodesRequest::ValidateShrinkNodesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/validate-shrink-nodes"}; + setMethod(HttpRequest::Method::Post); } -void ValidateShrinkNodesRequest::setIgnoreStatus(bool ignoreStatus) -{ - ignoreStatus_ = ignoreStatus; - setParameter("IgnoreStatus", ignoreStatus ? "true" : "false"); +ValidateShrinkNodesRequest::~ValidateShrinkNodesRequest() {} + +boolean ValidateShrinkNodesRequest::getIgnoreStatus() const { + return ignoreStatus_; } -std::string ValidateShrinkNodesRequest::getInstanceId()const -{ - return instanceId_; +void ValidateShrinkNodesRequest::setIgnoreStatus(boolean ignoreStatus) { + ignoreStatus_ = ignoreStatus; + setParameter(std::string("ignoreStatus"), std::to_string(ignoreStatus)); } -void ValidateShrinkNodesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +string ValidateShrinkNodesRequest::getInstanceId() const { + return instanceId_; } -std::string ValidateShrinkNodesRequest::getNodeType()const -{ - return nodeType_; +void ValidateShrinkNodesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ValidateShrinkNodesRequest::setNodeType(const std::string& nodeType) -{ - nodeType_ = nodeType; - setParameter("NodeType", nodeType); +string ValidateShrinkNodesRequest::getNodeType() const { + return nodeType_; +} + +void ValidateShrinkNodesRequest::setNodeType(string nodeType) { + nodeType_ = nodeType; + setParameter(std::string("nodeType"), std::to_string(nodeType)); +} + +integer ValidateShrinkNodesRequest::getCount() const { + return count_; +} + +void ValidateShrinkNodesRequest::setCount(integer count) { + count_ = count; + setParameter(std::string("count"), std::to_string(count)); +} + +std::string ValidateShrinkNodesRequest::getBody() const { + return body_; +} + +void ValidateShrinkNodesRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); } diff --git a/elasticsearch/src/model/ValidateSlrPermissionRequest.cc b/elasticsearch/src/model/ValidateSlrPermissionRequest.cc index 2fd2eab89..fb434c2a4 100644 --- a/elasticsearch/src/model/ValidateSlrPermissionRequest.cc +++ b/elasticsearch/src/model/ValidateSlrPermissionRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ValidateSlrPermissionRequest; - -ValidateSlrPermissionRequest::ValidateSlrPermissionRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/user/servicerolepermission"); - setMethod(HttpRequest::Method::Get); -} - -ValidateSlrPermissionRequest::~ValidateSlrPermissionRequest() -{} - -std::string ValidateSlrPermissionRequest::getClientToken()const -{ - return clientToken_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ValidateSlrPermissionRequest; + +ValidateSlrPermissionRequest::ValidateSlrPermissionRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/user/servicerolepermission"}; + setMethod(HttpRequest::Method::Get); } -void ValidateSlrPermissionRequest::setClientToken(const std::string& clientToken) -{ - clientToken_ = clientToken; - setParameter("ClientToken", clientToken); +ValidateSlrPermissionRequest::~ValidateSlrPermissionRequest() {} + +string ValidateSlrPermissionRequest::getClientToken() const { + return clientToken_; } -std::string ValidateSlrPermissionRequest::getRolename()const -{ - return rolename_; +void ValidateSlrPermissionRequest::setClientToken(string clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), std::to_string(clientToken)); } -void ValidateSlrPermissionRequest::setRolename(const std::string& rolename) -{ - rolename_ = rolename; - setParameter("Rolename", rolename); +string ValidateSlrPermissionRequest::getRolename() const { + return rolename_; +} + +void ValidateSlrPermissionRequest::setRolename(string rolename) { + rolename_ = rolename; + setParameter(std::string("rolename"), std::to_string(rolename)); } diff --git a/elasticsearch/src/model/ValidateTransferableNodesRequest.cc b/elasticsearch/src/model/ValidateTransferableNodesRequest.cc index 5b0190ada..da63a4195 100644 --- a/elasticsearch/src/model/ValidateTransferableNodesRequest.cc +++ b/elasticsearch/src/model/ValidateTransferableNodesRequest.cc @@ -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 - -using AlibabaCloud::Elasticsearch::Model::ValidateTransferableNodesRequest; - -ValidateTransferableNodesRequest::ValidateTransferableNodesRequest() : - RoaServiceRequest("elasticsearch", "2017-06-13") -{ - setResourcePath("/openapi/instances/[InstanceId]/validate-transfer-nodes"); - setMethod(HttpRequest::Method::Post); -} - -ValidateTransferableNodesRequest::~ValidateTransferableNodesRequest() -{} - -std::string ValidateTransferableNodesRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::Elasticsearch::Model::ValidateTransferableNodesRequest; + +ValidateTransferableNodesRequest::ValidateTransferableNodesRequest() + : RoaServiceRequest("elasticsearch", "2017-06-13") { + setResourcePath("/openapi/instances/[InstanceId]/validate-transfer-nodes"}; + setMethod(HttpRequest::Method::Post); } -void ValidateTransferableNodesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +ValidateTransferableNodesRequest::~ValidateTransferableNodesRequest() {} + +string ValidateTransferableNodesRequest::getInstanceId() const { + return instanceId_; } -std::string ValidateTransferableNodesRequest::getNodeType()const -{ - return nodeType_; +void ValidateTransferableNodesRequest::setInstanceId(string instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), std::to_string(instanceId)); } -void ValidateTransferableNodesRequest::setNodeType(const std::string& nodeType) -{ - nodeType_ = nodeType; - setParameter("NodeType", nodeType); +string ValidateTransferableNodesRequest::getNodeType() const { + return nodeType_; +} + +void ValidateTransferableNodesRequest::setNodeType(string nodeType) { + nodeType_ = nodeType; + setParameter(std::string("nodeType"), std::to_string(nodeType)); }