Add ConvertPayType.

This commit is contained in:
sdk-team
2019-11-21 15:32:21 +08:00
parent 76073f9272
commit c1cb2b567a
187 changed files with 7822 additions and 195 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/AddConnectableClusterRequest.h>
using AlibabaCloud::Elasticsearch::Model::AddConnectableClusterRequest;
AddConnectableClusterRequest::AddConnectableClusterRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/instances/[InstanceId]/connected-clusters");
setMethod(HttpRequest::Method::Post);
}
AddConnectableClusterRequest::~AddConnectableClusterRequest()
{}
std::string AddConnectableClusterRequest::getInstanceId()const
{
return instanceId_;
}
void AddConnectableClusterRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string AddConnectableClusterRequest::getClientToken()const
{
return clientToken_;
}
void AddConnectableClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/AddConnectableClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
AddConnectableClusterResult::AddConnectableClusterResult() :
ServiceResult()
{}
AddConnectableClusterResult::AddConnectableClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddConnectableClusterResult::~AddConnectableClusterResult()
{}
void AddConnectableClusterResult::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 AddConnectableClusterResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,41 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/AddSnapshotRepoRequest.h>
using AlibabaCloud::Elasticsearch::Model::AddSnapshotRepoRequest;
AddSnapshotRepoRequest::AddSnapshotRepoRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos");
setMethod(HttpRequest::Method::Post);
}
AddSnapshotRepoRequest::~AddSnapshotRepoRequest()
{}
std::string AddSnapshotRepoRequest::getInstanceId()const
{
return instanceId_;
}
void AddSnapshotRepoRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/AddSnapshotRepoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
AddSnapshotRepoResult::AddSnapshotRepoResult() :
ServiceResult()
{}
AddSnapshotRepoResult::AddSnapshotRepoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddSnapshotRepoResult::~AddSnapshotRepoResult()
{}
void AddSnapshotRepoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string AddSnapshotRepoResult::getMessage()const
{
return message_;
}
std::string AddSnapshotRepoResult::getCode()const
{
return code_;
}
bool AddSnapshotRepoResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -39,25 +39,11 @@ void CancelTaskResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string CancelTaskResult::getMessage()const
{
return message_;
}
std::string CancelTaskResult::getCode()const
{
return code_;
}
bool CancelTaskResult::getResult()const
{
return result_;

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ConvertLogstashPayTypeRequest.h>
using AlibabaCloud::Elasticsearch::Model::ConvertLogstashPayTypeRequest;
ConvertLogstashPayTypeRequest::ConvertLogstashPayTypeRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/logstashes/[InstanceId]/convert-pay-type");
setMethod(HttpRequest::Method::Post);
}
ConvertLogstashPayTypeRequest::~ConvertLogstashPayTypeRequest()
{}
std::string ConvertLogstashPayTypeRequest::getInstanceId()const
{
return instanceId_;
}
void ConvertLogstashPayTypeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string ConvertLogstashPayTypeRequest::getClientToken()const
{
return clientToken_;
}
void ConvertLogstashPayTypeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ConvertLogstashPayTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ConvertLogstashPayTypeResult::ConvertLogstashPayTypeResult() :
ServiceResult()
{}
ConvertLogstashPayTypeResult::ConvertLogstashPayTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConvertLogstashPayTypeResult::~ConvertLogstashPayTypeResult()
{}
void ConvertLogstashPayTypeResult::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 ConvertLogstashPayTypeResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ConvertPayTypeRequest.h>
using AlibabaCloud::Elasticsearch::Model::ConvertPayTypeRequest;
ConvertPayTypeRequest::ConvertPayTypeRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/instances/[InstanceId]/convert-pay-type");
setMethod(HttpRequest::Method::Post);
}
ConvertPayTypeRequest::~ConvertPayTypeRequest()
{}
std::string ConvertPayTypeRequest::getInstanceId()const
{
return instanceId_;
}
void ConvertPayTypeRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string ConvertPayTypeRequest::getClientToken()const
{
return clientToken_;
}
void ConvertPayTypeRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ConvertPayTypeResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ConvertPayTypeResult::ConvertPayTypeResult() :
ServiceResult()
{}
ConvertPayTypeResult::ConvertPayTypeResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ConvertPayTypeResult::~ConvertPayTypeResult()
{}
void ConvertPayTypeResult::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 ConvertPayTypeResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::CreateInstanceRequest;
CreateInstanceRequest::CreateInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances");
setMethod(HttpRequest::Method::Post);
}
CreateInstanceRequest::~CreateInstanceRequest()
{}

View File

@@ -0,0 +1,41 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/CreateLogstashRequest.h>
using AlibabaCloud::Elasticsearch::Model::CreateLogstashRequest;
CreateLogstashRequest::CreateLogstashRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/logstashes");
setMethod(HttpRequest::Method::Post);
}
CreateLogstashRequest::~CreateLogstashRequest()
{}
std::string CreateLogstashRequest::getClientToken()const
{
return clientToken_;
}
void CreateLogstashRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/CreateLogstashResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
CreateLogstashResult::CreateLogstashResult() :
ServiceResult()
{}
CreateLogstashResult::CreateLogstashResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLogstashResult::~CreateLogstashResult()
{}
void CreateLogstashResult::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["instanceId"].isNull())
result_.instanceId = resultNode["instanceId"].asString();
}
CreateLogstashResult::Result CreateLogstashResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::CreateProjectRequest;
CreateProjectRequest::CreateProjectRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/projects");
setMethod(HttpRequest::Method::Post);
}
CreateProjectRequest::~CreateProjectRequest()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/elasticsearch/model/DeleteConnectedClusterRequest.h>
using AlibabaCloud::Elasticsearch::Model::DeleteConnectedClusterRequest;
DeleteConnectedClusterRequest::DeleteConnectedClusterRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/instances/[InstanceId]/connected-clusters");
setMethod(HttpRequest::Method::Delete);
}
DeleteConnectedClusterRequest::~DeleteConnectedClusterRequest()
{}
std::string DeleteConnectedClusterRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteConnectedClusterRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DeleteConnectedClusterRequest::getClientToken()const
{
return clientToken_;
}
void DeleteConnectedClusterRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
std::string DeleteConnectedClusterRequest::getConnectedInstanceId()const
{
return connectedInstanceId_;
}
void DeleteConnectedClusterRequest::setConnectedInstanceId(const std::string& connectedInstanceId)
{
connectedInstanceId_ = connectedInstanceId;
setCoreParameter("ConnectedInstanceId", connectedInstanceId);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DeleteConnectedClusterResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DeleteConnectedClusterResult::DeleteConnectedClusterResult() :
ServiceResult()
{}
DeleteConnectedClusterResult::DeleteConnectedClusterResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteConnectedClusterResult::~DeleteConnectedClusterResult()
{}
void DeleteConnectedClusterResult::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 DeleteConnectedClusterResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::DeleteInstanceRequest;
DeleteInstanceRequest::DeleteInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]");
setMethod(HttpRequest::Method::Delete);
}
DeleteInstanceRequest::~DeleteInstanceRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DeleteLogstashRequest.h>
using AlibabaCloud::Elasticsearch::Model::DeleteLogstashRequest;
DeleteLogstashRequest::DeleteLogstashRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/logstashes/[InstanceId]");
setMethod(HttpRequest::Method::Delete);
}
DeleteLogstashRequest::~DeleteLogstashRequest()
{}
std::string DeleteLogstashRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteLogstashRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DeleteLogstashRequest::getClientToken()const
{
return clientToken_;
}
void DeleteLogstashRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DeleteLogstashResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DeleteLogstashResult::DeleteLogstashResult() :
ServiceResult()
{}
DeleteLogstashResult::DeleteLogstashResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLogstashResult::~DeleteLogstashResult()
{}
void DeleteLogstashResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::DeleteProjectRequest;
DeleteProjectRequest::DeleteProjectRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/projects/[Id]");
setMethod(HttpRequest::Method::Delete);
}
DeleteProjectRequest::~DeleteProjectRequest()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DeleteSnapshotRepoRequest.h>
using AlibabaCloud::Elasticsearch::Model::DeleteSnapshotRepoRequest;
DeleteSnapshotRepoRequest::DeleteSnapshotRepoRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/instances/[InstanceId]/snapshot-repos");
setMethod(HttpRequest::Method::Delete);
}
DeleteSnapshotRepoRequest::~DeleteSnapshotRepoRequest()
{}
std::string DeleteSnapshotRepoRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteSnapshotRepoRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DeleteSnapshotRepoRequest::getRepoPath()const
{
return repoPath_;
}
void DeleteSnapshotRepoRequest::setRepoPath(const std::string& repoPath)
{
repoPath_ = repoPath;
setCoreParameter("RepoPath", repoPath);
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DeleteSnapshotRepoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DeleteSnapshotRepoResult::DeleteSnapshotRepoResult() :
ServiceResult()
{}
DeleteSnapshotRepoResult::DeleteSnapshotRepoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSnapshotRepoResult::~DeleteSnapshotRepoResult()
{}
void DeleteSnapshotRepoResult::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 DeleteSnapshotRepoResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribeConnectableClustersRequest.h>
using AlibabaCloud::Elasticsearch::Model::DescribeConnectableClustersRequest;
DescribeConnectableClustersRequest::DescribeConnectableClustersRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/instances/[InstanceId]/connectable-clusters");
setMethod(HttpRequest::Method::Get);
}
DescribeConnectableClustersRequest::~DescribeConnectableClustersRequest()
{}
std::string DescribeConnectableClustersRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeConnectableClustersRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
bool DescribeConnectableClustersRequest::getAlreadySetItems()const
{
return alreadySetItems_;
}
void DescribeConnectableClustersRequest::setAlreadySetItems(bool alreadySetItems)
{
alreadySetItems_ = alreadySetItems;
setCoreParameter("AlreadySetItems", alreadySetItems ? "true" : "false");
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribeConnectableClustersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DescribeConnectableClustersResult::DescribeConnectableClustersResult() :
ServiceResult()
{}
DescribeConnectableClustersResult::DescribeConnectableClustersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeConnectableClustersResult::~DescribeConnectableClustersResult()
{}
void DescribeConnectableClustersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ConnectableClustersInfo"];
for (auto valueResultConnectableClustersInfo : allResultNode)
{
ConnectableClustersInfo resultObject;
if(!valueResultConnectableClustersInfo["instances"].isNull())
resultObject.instances = valueResultConnectableClustersInfo["instances"].asString();
if(!valueResultConnectableClustersInfo["networkType"].isNull())
resultObject.networkType = valueResultConnectableClustersInfo["networkType"].asString();
result_.push_back(resultObject);
}
}
std::vector<DescribeConnectableClustersResult::ConnectableClustersInfo> DescribeConnectableClustersResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::DescribeElasticsearchHealthRequest;
DescribeElasticsearchHealthRequest::DescribeElasticsearchHealthRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/elasticsearch-health");
setMethod(HttpRequest::Method::Get);
}
DescribeElasticsearchHealthRequest::~DescribeElasticsearchHealthRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::DescribeInstanceRequest;
DescribeInstanceRequest::DescribeInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]");
setMethod(HttpRequest::Method::Get);
}
DescribeInstanceRequest::~DescribeInstanceRequest()
{}

View File

@@ -128,6 +128,20 @@ void DescribeInstanceResult::parse(const std::string &payload)
zoneInfoObject.status = resultNodezoneInfosZoneInfo["status"].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();
result_.aliwsDicts.push_back(dictObject);
}
auto nodeSpecNode = resultNode["nodeSpec"];
if(!nodeSpecNode["spec"].isNull())
result_.nodeSpec.spec = nodeSpecNode["spec"].asString();
@@ -135,6 +149,8 @@ void DescribeInstanceResult::parse(const std::string &payload)
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";
auto networkConfigNode = resultNode["networkConfig"];
if(!networkConfigNode["type"].isNull())
result_.networkConfig.type = networkConfigNode["type"].asString();
@@ -180,6 +196,11 @@ void DescribeInstanceResult::parse(const std::string &payload)
result_.warmNodeConfiguration.diskType = warmNodeConfigurationNode["diskType"].asString();
if(!warmNodeConfigurationNode["disk"].isNull())
result_.warmNodeConfiguration.disk = std::stoi(warmNodeConfigurationNode["disk"].asString());
if(!warmNodeConfigurationNode["diskEncryption"].isNull())
result_.warmNodeConfiguration.diskEncryption = warmNodeConfigurationNode["diskEncryption"].asString() == "true";
auto advancedSettingNode = resultNode["advancedSetting"];
if(!advancedSettingNode["gcName"].isNull())
result_.advancedSetting.gcName = advancedSettingNode["gcName"].asString();
auto allEsIPWhitelist = resultNode["esIPWhitelist"]["EsIPWhitelist"];
for (auto value : allEsIPWhitelist)
result_.esIPWhitelist.push_back(value.asString());

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::DescribeKibanaSettingsRequest;
DescribeKibanaSettingsRequest::DescribeKibanaSettingsRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/kibana-settings");
setMethod(HttpRequest::Method::Get);
}
DescribeKibanaSettingsRequest::~DescribeKibanaSettingsRequest()
{}

View File

@@ -0,0 +1,41 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribeLogstashRequest.h>
using AlibabaCloud::Elasticsearch::Model::DescribeLogstashRequest;
DescribeLogstashRequest::DescribeLogstashRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/logstashes/[InstanceId]");
setMethod(HttpRequest::Method::Get);
}
DescribeLogstashRequest::~DescribeLogstashRequest()
{}
std::string DescribeLogstashRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeLogstashRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribeLogstashResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DescribeLogstashResult::DescribeLogstashResult() :
ServiceResult()
{}
DescribeLogstashResult::DescribeLogstashResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeLogstashResult::~DescribeLogstashResult()
{}
void DescribeLogstashResult::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["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();
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();
result_.endpointList.push_back(endpointObject);
}
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();
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();
}
DescribeLogstashResult::Result DescribeLogstashResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribePipelineManagementConfigRequest.h>
using AlibabaCloud::Elasticsearch::Model::DescribePipelineManagementConfigRequest;
DescribePipelineManagementConfigRequest::DescribePipelineManagementConfigRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/logstashes/[InstanceId]//pipeline-management-config");
setMethod(HttpRequest::Method::Get);
}
DescribePipelineManagementConfigRequest::~DescribePipelineManagementConfigRequest()
{}
std::string DescribePipelineManagementConfigRequest::getInstanceId()const
{
return instanceId_;
}
void DescribePipelineManagementConfigRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DescribePipelineManagementConfigRequest::getClientToken()const
{
return clientToken_;
}
void DescribePipelineManagementConfigRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribePipelineManagementConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DescribePipelineManagementConfigResult::DescribePipelineManagementConfigResult() :
ServiceResult()
{}
DescribePipelineManagementConfigResult::DescribePipelineManagementConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribePipelineManagementConfigResult::~DescribePipelineManagementConfigResult()
{}
void DescribePipelineManagementConfigResult::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["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();
auto allPipelineIds = resultNode["pipelineIds"]["pipelineid"];
for (auto value : allPipelineIds)
result_.pipelineIds.push_back(value.asString());
}
DescribePipelineManagementConfigResult::Result DescribePipelineManagementConfigResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,30 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribeRegionsRequest.h>
using AlibabaCloud::Elasticsearch::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{
setResourcePath("/openapi/regions");
setMethod(HttpRequest::Method::Get);
}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["regionInfo"];
for (auto valueResultregionInfo : allResultNode)
{
RegionInfo resultObject;
if(!valueResultregionInfo["regionId"].isNull())
resultObject.regionId = valueResultregionInfo["regionId"].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);
}
}
std::vector<DescribeRegionsResult::RegionInfo> DescribeRegionsResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::GetRegionConfigurationRequest;
GetRegionConfigurationRequest::GetRegionConfigurationRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/region");
setMethod(HttpRequest::Method::Get);
}
GetRegionConfigurationRequest::~GetRegionConfigurationRequest()
{}

View File

@@ -121,6 +121,24 @@ void GetRegionConfigurationResult::parse(const std::string &payload)
diskObject.scaleLimit = std::stoi(resultNodemasterDiskListdisk["scaleLimit"].asString());
result_.masterDiskList.push_back(diskObject);
}
auto allsupportVersionsNode = resultNode["supportVersions"]["CategoryEntity"];
for (auto resultNodesupportVersionsCategoryEntity : allsupportVersionsNode)
{
Result::CategoryEntity categoryEntityObject;
if(!resultNodesupportVersionsCategoryEntity["instanceCategory"].isNull())
categoryEntityObject.instanceCategory = resultNodesupportVersionsCategoryEntity["instanceCategory"].asString();
auto allsupportVersionListNode = allsupportVersionsNode["supportVersionList"]["VersionEntity"];
for (auto allsupportVersionsNodesupportVersionListVersionEntity : allsupportVersionListNode)
{
Result::CategoryEntity::VersionEntity supportVersionListObject;
if(!allsupportVersionsNodesupportVersionListVersionEntity["key"].isNull())
supportVersionListObject.key = allsupportVersionsNodesupportVersionListVersionEntity["key"].asString();
if(!allsupportVersionsNodesupportVersionListVersionEntity["value"].isNull())
supportVersionListObject.value = allsupportVersionsNodesupportVersionListVersionEntity["value"].asString();
categoryEntityObject.supportVersionList.push_back(supportVersionListObject);
}
result_.supportVersions.push_back(categoryEntityObject);
}
auto nodeNode = resultNode["node"];
if(!nodeNode["minAmount"].isNull())
result_.node.minAmount = std::stoi(nodeNode["minAmount"].asString());

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -49,23 +49,9 @@ void GetSuggestShrinkableNodesResult::parse(const std::string &payload)
resultObject.port = std::stoi(valueResultResultItem["port"].asString());
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetSuggestShrinkableNodesResult::getMessage()const
{
return message_;
}
std::string GetSuggestShrinkableNodesResult::getCode()const
{
return code_;
}
std::vector<GetSuggestShrinkableNodesResult::ResultItem> GetSuggestShrinkableNodesResult::getResult()const
{
return result_;

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::GetTransferableNodesRequest;
GetTransferableNodesRequest::GetTransferableNodesRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/transferable-nodes");
setMethod(HttpRequest::Method::Get);
}
GetTransferableNodesRequest::~GetTransferableNodesRequest()
{}

View File

@@ -49,23 +49,9 @@ void GetTransferableNodesResult::parse(const std::string &payload)
resultObject.port = std::stoi(valueResultResultItem["port"].asString());
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string GetTransferableNodesResult::getMessage()const
{
return message_;
}
std::string GetTransferableNodesResult::getCode()const
{
return code_;
}
std::vector<GetTransferableNodesResult::ResultItem> GetTransferableNodesResult::getResult()const
{
return result_;

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/InstallLogstashSystemPluginRequest.h>
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_;
}
void InstallLogstashSystemPluginRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string InstallLogstashSystemPluginRequest::getClientToken()const
{
return clientToken_;
}
void InstallLogstashSystemPluginRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/InstallLogstashSystemPluginResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
InstallLogstashSystemPluginResult::InstallLogstashSystemPluginResult() :
ServiceResult()
{}
InstallLogstashSystemPluginResult::InstallLogstashSystemPluginResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InstallLogstashSystemPluginResult::~InstallLogstashSystemPluginResult()
{}
void InstallLogstashSystemPluginResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResult = value["Result"]["Result"];
for (const auto &item : allResult)
result_.push_back(item.asString());
}
std::vector<std::string> InstallLogstashSystemPluginResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/InterruptElasticsearchTaskRequest.h>
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_;
}
void InterruptElasticsearchTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string InterruptElasticsearchTaskRequest::getClientToken()const
{
return clientToken_;
}
void InterruptElasticsearchTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/InterruptElasticsearchTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
InterruptElasticsearchTaskResult::InterruptElasticsearchTaskResult() :
ServiceResult()
{}
InterruptElasticsearchTaskResult::InterruptElasticsearchTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InterruptElasticsearchTaskResult::~InterruptElasticsearchTaskResult()
{}
void InterruptElasticsearchTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string InterruptElasticsearchTaskResult::getMessage()const
{
return message_;
}
std::string InterruptElasticsearchTaskResult::getCode()const
{
return code_;
}
bool InterruptElasticsearchTaskResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/InterruptLogstashTaskRequest.h>
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_;
}
void InterruptLogstashTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string InterruptLogstashTaskRequest::getClientToken()const
{
return clientToken_;
}
void InterruptLogstashTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/InterruptLogstashTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
InterruptLogstashTaskResult::InterruptLogstashTaskResult() :
ServiceResult()
{}
InterruptLogstashTaskResult::InterruptLogstashTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InterruptLogstashTaskResult::~InterruptLogstashTaskResult()
{}
void InterruptLogstashTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string InterruptLogstashTaskResult::getMessage()const
{
return message_;
}
std::string InterruptLogstashTaskResult::getCode()const
{
return code_;
}
bool InterruptLogstashTaskResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::ListAllNodeRequest;
ListAllNodeRequest::ListAllNodeRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/nodes");
setMethod(HttpRequest::Method::Get);
}
ListAllNodeRequest::~ListAllNodeRequest()
{}

View File

@@ -61,23 +61,9 @@ void ListAllNodeResult::parse(const std::string &payload)
resultObject.health = valueResultResultItem["health"].asString();
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListAllNodeResult::getMessage()const
{
return message_;
}
std::string ListAllNodeResult::getCode()const
{
return code_;
}
std::vector<ListAllNodeResult::ResultItem> ListAllNodeResult::getResult()const
{
return result_;

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposRequest.h>
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_;
}
void ListAlternativeSnapshotReposRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
bool ListAlternativeSnapshotReposRequest::getAlreadySetItems()const
{
return alreadySetItems_;
}
void ListAlternativeSnapshotReposRequest::setAlreadySetItems(bool alreadySetItems)
{
alreadySetItems_ = alreadySetItems;
setCoreParameter("AlreadySetItems", alreadySetItems ? "true" : "false");
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListAlternativeSnapshotReposResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ListAlternativeSnapshotReposResult::ListAlternativeSnapshotReposResult() :
ServiceResult()
{}
ListAlternativeSnapshotReposResult::ListAlternativeSnapshotReposResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAlternativeSnapshotReposResult::~ListAlternativeSnapshotReposResult()
{}
void ListAlternativeSnapshotReposResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["repo"];
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();
result_.push_back(resultObject);
}
}
std::vector<ListAlternativeSnapshotReposResult::Repo> ListAlternativeSnapshotReposResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::ListInstanceRequest;
ListInstanceRequest::ListInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances");
setMethod(HttpRequest::Method::Get);
}
ListInstanceRequest::~ListInstanceRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::ListKibanaPluginsRequest;
ListKibanaPluginsRequest::ListKibanaPluginsRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/kibana-plugins");
setMethod(HttpRequest::Method::Get);
}
ListKibanaPluginsRequest::~ListKibanaPluginsRequest()
{}

View File

@@ -0,0 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListLogstashLogRequest.h>
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_;
}
void ListLogstashLogRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
int ListLogstashLogRequest::getSize()const
{
return size_;
}
void ListLogstashLogRequest::setSize(int size)
{
size_ = size;
setCoreParameter("Size", std::to_string(size));
}
std::string ListLogstashLogRequest::getQuery()const
{
return query_;
}
void ListLogstashLogRequest::setQuery(const std::string& query)
{
query_ = query;
setCoreParameter("Query", query);
}
long ListLogstashLogRequest::getEndTime()const
{
return endTime_;
}
void ListLogstashLogRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
}
long ListLogstashLogRequest::getBeginTime()const
{
return beginTime_;
}
void ListLogstashLogRequest::setBeginTime(long beginTime)
{
beginTime_ = beginTime;
setCoreParameter("BeginTime", std::to_string(beginTime));
}
int ListLogstashLogRequest::getPage()const
{
return page_;
}
void ListLogstashLogRequest::setPage(int page)
{
page_ = page;
setCoreParameter("Page", std::to_string(page));
}
std::string ListLogstashLogRequest::getType()const
{
return type_;
}
void ListLogstashLogRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListLogstashLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ListLogstashLogResult::ListLogstashLogResult() :
ServiceResult()
{}
ListLogstashLogResult::ListLogstashLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLogstashLogResult::~ListLogstashLogResult()
{}
void ListLogstashLogResult::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["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["instanceId"].isNull())
resultObject.instanceId = valueResultResultItem["instanceId"].asString();
result_.push_back(resultObject);
}
}
std::vector<ListLogstashLogResult::ResultItem> ListLogstashLogResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListLogstashPluginsRequest.h>
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_;
}
void ListLogstashPluginsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
int ListLogstashPluginsRequest::getSize()const
{
return size_;
}
void ListLogstashPluginsRequest::setSize(int size)
{
size_ = size;
setCoreParameter("Size", std::to_string(size));
}
std::string ListLogstashPluginsRequest::getName()const
{
return name_;
}
void ListLogstashPluginsRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
std::string ListLogstashPluginsRequest::getPage()const
{
return page_;
}
void ListLogstashPluginsRequest::setPage(const std::string& page)
{
page_ = page;
setCoreParameter("Page", page);
}
std::string ListLogstashPluginsRequest::getSource()const
{
return source_;
}
void ListLogstashPluginsRequest::setSource(const std::string& source)
{
source_ = source;
setCoreParameter("Source", source);
}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/elasticsearch/model/ListLogstashPluginsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ListLogstashPluginsResult::ListLogstashPluginsResult() :
ServiceResult()
{}
ListLogstashPluginsResult::ListLogstashPluginsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLogstashPluginsResult::~ListLogstashPluginsResult()
{}
void ListLogstashPluginsResult::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();
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();
result_.push_back(resultObject);
}
}
std::vector<ListLogstashPluginsResult::ResultItem> ListLogstashPluginsResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListLogstashRequest.h>
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_;
}
void ListLogstashRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setCoreParameter("ResourceGroupId", resourceGroupId);
}
std::string ListLogstashRequest::getInstanceId()const
{
return instanceId_;
}
void ListLogstashRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
int ListLogstashRequest::getSize()const
{
return size_;
}
void ListLogstashRequest::setSize(int size)
{
size_ = size;
setCoreParameter("Size", std::to_string(size));
}
std::string ListLogstashRequest::getDescription()const
{
return description_;
}
void ListLogstashRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
int ListLogstashRequest::getPage()const
{
return page_;
}
void ListLogstashRequest::setPage(int page)
{
page_ = page;
setCoreParameter("Page", std::to_string(page));
}
std::string ListLogstashRequest::getOwnerId()const
{
return ownerId_;
}
void ListLogstashRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string ListLogstashRequest::getVersion()const
{
return version_;
}
void ListLogstashRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}

View File

@@ -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 <alibabacloud/elasticsearch/model/ListLogstashResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ListLogstashResult::ListLogstashResult() :
ServiceResult()
{}
ListLogstashResult::ListLogstashResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLogstashResult::~ListLogstashResult()
{}
void ListLogstashResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["Instance"];
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["createdAt"].isNull())
resultObject.createdAt = valueResultInstance["createdAt"].asString();
if(!valueResultInstance["updatedAt"].isNull())
resultObject.updatedAt = valueResultInstance["updatedAt"].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["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();
result_.push_back(resultObject);
}
}
std::vector<ListLogstashResult::Instance> ListLogstashResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::ListPluginsRequest;
ListPluginsRequest::ListPluginsRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/plugins");
setMethod(HttpRequest::Method::Get);
}
ListPluginsRequest::~ListPluginsRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::ListSearchLogRequest;
ListSearchLogRequest::ListSearchLogRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/search-log");
setMethod(HttpRequest::Method::Get);
}
ListSearchLogRequest::~ListSearchLogRequest()
{}

View File

@@ -0,0 +1,41 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ListSnapshotReposByInstanceIdRequest.h>
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_;
}
void ListSnapshotReposByInstanceIdRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/elasticsearch/model/ListSnapshotReposByInstanceIdResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ListSnapshotReposByInstanceIdResult::ListSnapshotReposByInstanceIdResult() :
ServiceResult()
{}
ListSnapshotReposByInstanceIdResult::ListSnapshotReposByInstanceIdResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSnapshotReposByInstanceIdResult::~ListSnapshotReposByInstanceIdResult()
{}
void ListSnapshotReposByInstanceIdResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["repo"];
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();
result_.push_back(resultObject);
}
}
std::vector<ListSnapshotReposByInstanceIdResult::Repo> ListSnapshotReposByInstanceIdResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::MoveResourceGroupRequest;
MoveResourceGroupRequest::MoveResourceGroupRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/resourcegroup");
setMethod(HttpRequest::Method::Put);
}
MoveResourceGroupRequest::~MoveResourceGroupRequest()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::RestartInstanceRequest;
RestartInstanceRequest::RestartInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/actions/restart");
setMethod(HttpRequest::Method::Post);
}
RestartInstanceRequest::~RestartInstanceRequest()
{}

View File

@@ -0,0 +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.
*/
#include <alibabacloud/elasticsearch/model/RestartLogstashRequest.h>
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_;
}
void RestartLogstashRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string RestartLogstashRequest::getClientToken()const
{
return clientToken_;
}
void RestartLogstashRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}
bool RestartLogstashRequest::getForce()const
{
return force_;
}
void RestartLogstashRequest::setForce(bool force)
{
force_ = force;
setCoreParameter("Force", force ? "true" : "false");
}

View File

@@ -0,0 +1,44 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/RestartLogstashResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
RestartLogstashResult::RestartLogstashResult() :
ServiceResult()
{}
RestartLogstashResult::RestartLogstashResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RestartLogstashResult::~RestartLogstashResult()
{}
void RestartLogstashResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ResumeElasticsearchTaskRequest.h>
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_;
}
void ResumeElasticsearchTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string ResumeElasticsearchTaskRequest::getClientToken()const
{
return clientToken_;
}
void ResumeElasticsearchTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ResumeElasticsearchTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ResumeElasticsearchTaskResult::ResumeElasticsearchTaskResult() :
ServiceResult()
{}
ResumeElasticsearchTaskResult::ResumeElasticsearchTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResumeElasticsearchTaskResult::~ResumeElasticsearchTaskResult()
{}
void ResumeElasticsearchTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string ResumeElasticsearchTaskResult::getMessage()const
{
return message_;
}
std::string ResumeElasticsearchTaskResult::getCode()const
{
return code_;
}
bool ResumeElasticsearchTaskResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ResumeLogstashTaskRequest.h>
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_;
}
void ResumeLogstashTaskRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string ResumeLogstashTaskRequest::getClientToken()const
{
return clientToken_;
}
void ResumeLogstashTaskRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/ResumeLogstashTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
ResumeLogstashTaskResult::ResumeLogstashTaskResult() :
ServiceResult()
{}
ResumeLogstashTaskResult::ResumeLogstashTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ResumeLogstashTaskResult::~ResumeLogstashTaskResult()
{}
void ResumeLogstashTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string ResumeLogstashTaskResult::getMessage()const
{
return message_;
}
std::string ResumeLogstashTaskResult::getCode()const
{
return code_;
}
bool ResumeLogstashTaskResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::RollbackInstanceRequest;
RollbackInstanceRequest::RollbackInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/actions/rollback");
setMethod(HttpRequest::Method::Post);
}
RollbackInstanceRequest::~RollbackInstanceRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::ShrinkNodeRequest;
ShrinkNodeRequest::ShrinkNodeRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/actions/shrink");
setMethod(HttpRequest::Method::Post);
}
ShrinkNodeRequest::~ShrinkNodeRequest()
{}

View File

@@ -39,25 +39,11 @@ void ShrinkNodeResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string ShrinkNodeResult::getMessage()const
{
return message_;
}
std::string ShrinkNodeResult::getCode()const
{
return code_;
}
bool ShrinkNodeResult::getResult()const
{
return result_;

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::TransferNodeRequest;
TransferNodeRequest::TransferNodeRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/actions/transfer");
setMethod(HttpRequest::Method::Post);
}
TransferNodeRequest::~TransferNodeRequest()
{}

View File

@@ -39,25 +39,11 @@ void TransferNodeResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString() == "true";
}
std::string TransferNodeResult::getMessage()const
{
return message_;
}
std::string TransferNodeResult::getCode()const
{
return code_;
}
bool TransferNodeResult::getResult()const
{
return result_;

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/UninstallLogstashPluginRequest.h>
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_;
}
void UninstallLogstashPluginRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string UninstallLogstashPluginRequest::getClientToken()const
{
return clientToken_;
}
void UninstallLogstashPluginRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/UninstallLogstashPluginResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Elasticsearch;
using namespace AlibabaCloud::Elasticsearch::Model;
UninstallLogstashPluginResult::UninstallLogstashPluginResult() :
ServiceResult()
{}
UninstallLogstashPluginResult::UninstallLogstashPluginResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UninstallLogstashPluginResult::~UninstallLogstashPluginResult()
{}
void UninstallLogstashPluginResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResult = value["Result"]["Result"];
for (const auto &item : allResult)
result_.push_back(item.asString());
}
std::vector<std::string> UninstallLogstashPluginResult::getResult()const
{
return result_;
}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateAdminPasswordRequest;
UpdateAdminPasswordRequest::UpdateAdminPasswordRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/admin-pwd");
setMethod(HttpRequest::Method::Post);
}
UpdateAdminPasswordRequest::~UpdateAdminPasswordRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateAdvancedSettingRequest;
UpdateAdvancedSettingRequest::UpdateAdvancedSettingRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/actions/update-advanced-setting");
setMethod(HttpRequest::Method::Put);
}
UpdateAdvancedSettingRequest::~UpdateAdvancedSettingRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateAliwsDictRequest;
UpdateAliwsDictRequest::UpdateAliwsDictRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/aliws-dict");
setMethod(HttpRequest::Method::Put);
}
UpdateAliwsDictRequest::~UpdateAliwsDictRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateBlackIpsRequest;
UpdateBlackIpsRequest::UpdateBlackIpsRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/black-ips");
setMethod(HttpRequest::Method::Post);
}
UpdateBlackIpsRequest::~UpdateBlackIpsRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateDescriptionRequest;
UpdateDescriptionRequest::UpdateDescriptionRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/description");
setMethod(HttpRequest::Method::Post);
}
UpdateDescriptionRequest::~UpdateDescriptionRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateDictRequest;
UpdateDictRequest::UpdateDictRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/dict");
setMethod(HttpRequest::Method::Put);
}
UpdateDictRequest::~UpdateDictRequest()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateInstanceRequest;
UpdateInstanceRequest::UpdateInstanceRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]");
setMethod(HttpRequest::Method::Put);
}
UpdateInstanceRequest::~UpdateInstanceRequest()
{}

View File

@@ -20,7 +20,10 @@ using AlibabaCloud::Elasticsearch::Model::UpdateInstanceSettingsRequest;
UpdateInstanceSettingsRequest::UpdateInstanceSettingsRequest() :
RoaServiceRequest("elasticsearch", "2017-06-13")
{}
{
setResourcePath("/openapi/instances/[InstanceId]/instance-settings");
setMethod(HttpRequest::Method::Post);
}
UpdateInstanceSettingsRequest::~UpdateInstanceSettingsRequest()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -20,7 +20,10 @@ 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()
{}

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/elasticsearch/model/UpdateLogstashDescriptionRequest.h>
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_;
}
void UpdateLogstashDescriptionRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string UpdateLogstashDescriptionRequest::getClientToken()const
{
return clientToken_;
}
void UpdateLogstashDescriptionRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setCoreParameter("ClientToken", clientToken);
}

Some files were not shown because too many files have changed in this diff Show More