Add API CreateSortScriptValidation.

This commit is contained in:
sdk-team
2021-01-15 03:59:05 +00:00
parent 1794d57757
commit 2d49d2072f
445 changed files with 31552 additions and 0 deletions

File diff suppressed because it is too large Load Diff

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/opensearch/model/CompileSortScriptRequest.h>
using AlibabaCloud::OpenSearch::Model::CompileSortScriptRequest;
CompileSortScriptRequest::CompileSortScriptRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/compiling");
setMethod(HttpRequest::Method::Post);
}
CompileSortScriptRequest::~CompileSortScriptRequest()
{}
std::string CompileSortScriptRequest::getAppVersionId()const
{
return appVersionId_;
}
void CompileSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string CompileSortScriptRequest::getScriptName()const
{
return scriptName_;
}
void CompileSortScriptRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string CompileSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CompileSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/CompileSortScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CompileSortScriptResult::CompileSortScriptResult() :
ServiceResult()
{}
CompileSortScriptResult::CompileSortScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CompileSortScriptResult::~CompileSortScriptResult()
{}
void CompileSortScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CompileSortScriptResult::getRequestId()const
{
return requestId_;
}

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/opensearch/model/CreateABTestExperimentRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateABTestExperimentRequest;
CreateABTestExperimentRequest::CreateABTestExperimentRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments");
setMethod(HttpRequest::Method::Post);
}
CreateABTestExperimentRequest::~CreateABTestExperimentRequest()
{}
int CreateABTestExperimentRequest::getGroupId()const
{
return groupId_;
}
void CreateABTestExperimentRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int CreateABTestExperimentRequest::getSceneId()const
{
return sceneId_;
}
void CreateABTestExperimentRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string CreateABTestExperimentRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,71 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateABTestExperimentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateABTestExperimentResult::CreateABTestExperimentResult() :
ServiceResult()
{}
CreateABTestExperimentResult::CreateABTestExperimentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateABTestExperimentResult::~CreateABTestExperimentResult()
{}
void CreateABTestExperimentResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["params"].isNull())
result_.params = resultNode["params"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["online"].isNull())
result_.online = resultNode["online"].asString() == "true";
if(!resultNode["traffic"].isNull())
result_.traffic = std::stoi(resultNode["traffic"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateABTestExperimentResult::getRequestId()const
{
return requestId_;
}
CreateABTestExperimentResult::Result CreateABTestExperimentResult::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/opensearch/model/CreateABTestGroupRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateABTestGroupRequest;
CreateABTestGroupRequest::CreateABTestGroupRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups");
setMethod(HttpRequest::Method::Post);
}
CreateABTestGroupRequest::~CreateABTestGroupRequest()
{}
int CreateABTestGroupRequest::getSceneId()const
{
return sceneId_;
}
void CreateABTestGroupRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string CreateABTestGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateABTestGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateABTestGroupResult::CreateABTestGroupResult() :
ServiceResult()
{}
CreateABTestGroupResult::CreateABTestGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateABTestGroupResult::~CreateABTestGroupResult()
{}
void CreateABTestGroupResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateABTestGroupResult::getRequestId()const
{
return requestId_;
}
CreateABTestGroupResult::Result CreateABTestGroupResult::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/opensearch/model/CreateABTestSceneRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateABTestSceneRequest;
CreateABTestSceneRequest::CreateABTestSceneRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes");
setMethod(HttpRequest::Method::Post);
}
CreateABTestSceneRequest::~CreateABTestSceneRequest()
{}
std::string CreateABTestSceneRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateABTestSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateABTestSceneResult::CreateABTestSceneResult() :
ServiceResult()
{}
CreateABTestSceneResult::CreateABTestSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateABTestSceneResult::~CreateABTestSceneResult()
{}
void CreateABTestSceneResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
auto allValues = resultNode["values"]["values"];
for (auto value : allValues)
result_.values.push_back(value.asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateABTestSceneResult::getRequestId()const
{
return requestId_;
}
CreateABTestSceneResult::Result CreateABTestSceneResult::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/opensearch/model/CreateAppGroupRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateAppGroupRequest;
CreateAppGroupRequest::CreateAppGroupRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups");
setMethod(HttpRequest::Method::Post);
}
CreateAppGroupRequest::~CreateAppGroupRequest()
{}

View File

@@ -0,0 +1,110 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateAppGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateAppGroupResult::CreateAppGroupResult() :
ServiceResult()
{}
CreateAppGroupResult::CreateAppGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAppGroupResult::~CreateAppGroupResult()
{}
void CreateAppGroupResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["currentVersion"].isNull())
result_.currentVersion = resultNode["currentVersion"].asString();
if(!resultNode["switchedTime"].isNull())
result_.switchedTime = std::stoi(resultNode["switchedTime"].asString());
if(!resultNode["chargingWay"].isNull())
result_.chargingWay = std::stoi(resultNode["chargingWay"].asString());
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["projectId"].isNull())
result_.projectId = resultNode["projectId"].asString();
if(!resultNode["chargeType"].isNull())
result_.chargeType = resultNode["chargeType"].asString();
if(!resultNode["expireOn"].isNull())
result_.expireOn = resultNode["expireOn"].asString();
if(!resultNode["instanceId"].isNull())
result_.instanceId = resultNode["instanceId"].asString();
if(!resultNode["commodityCode"].isNull())
result_.commodityCode = resultNode["commodityCode"].asString();
if(!resultNode["processingOrderId"].isNull())
result_.processingOrderId = resultNode["processingOrderId"].asString();
if(!resultNode["firstRankAlgoDeploymentId"].isNull())
result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString());
if(!resultNode["secondRankAlgoDeploymentId"].isNull())
result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString());
if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull())
result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString());
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["produced"].isNull())
result_.produced = std::stoi(resultNode["produced"].asString());
if(!resultNode["lockedByExpiration"].isNull())
result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString());
if(!resultNode["hasPendingQuotaReviewTask"].isNull())
result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].asString();
if(!resultNode["lockMode"].isNull())
result_.lockMode = resultNode["lockMode"].asString();
auto quotaNode = resultNode["quota"];
if(!quotaNode["docSize"].isNull())
result_.quota.docSize = std::stoi(quotaNode["docSize"].asString());
if(!quotaNode["computeResource"].isNull())
result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString());
if(!quotaNode["spec"].isNull())
result_.quota.spec = quotaNode["spec"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateAppGroupResult::getRequestId()const
{
return requestId_;
}
CreateAppGroupResult::Result CreateAppGroupResult::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/opensearch/model/CreateAppRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateAppRequest;
CreateAppRequest::CreateAppRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps");
setMethod(HttpRequest::Method::Post);
}
CreateAppRequest::~CreateAppRequest()
{}
bool CreateAppRequest::getDryRun()const
{
return dryRun_;
}
void CreateAppRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
std::string CreateAppRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateAppResult::CreateAppResult() :
ServiceResult()
{}
CreateAppResult::CreateAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateAppResult::~CreateAppResult()
{}
void CreateAppResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string CreateAppResult::getRequestId()const
{
return requestId_;
}
std::string CreateAppResult::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/opensearch/model/CreateDataCollectionRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateDataCollectionRequest;
CreateDataCollectionRequest::CreateDataCollectionRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections");
setMethod(HttpRequest::Method::Post);
}
CreateDataCollectionRequest::~CreateDataCollectionRequest()
{}
std::string CreateDataCollectionRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateDataCollectionRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateDataCollectionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateDataCollectionResult::CreateDataCollectionResult() :
ServiceResult()
{}
CreateDataCollectionResult::CreateDataCollectionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDataCollectionResult::~CreateDataCollectionResult()
{}
void CreateDataCollectionResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["dataCollectionType"].isNull())
result_.dataCollectionType = resultNode["dataCollectionType"].asString();
if(!resultNode["industryName"].isNull())
result_.industryName = resultNode["industryName"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["sundialId"].isNull())
result_.sundialId = resultNode["sundialId"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateDataCollectionResult::getRequestId()const
{
return requestId_;
}
CreateDataCollectionResult::Result CreateDataCollectionResult::getResult()const
{
return result_;
}

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/opensearch/model/CreateFirstRankRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateFirstRankRequest;
CreateFirstRankRequest::CreateFirstRankRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks");
setMethod(HttpRequest::Method::Post);
}
CreateFirstRankRequest::~CreateFirstRankRequest()
{}
bool CreateFirstRankRequest::getDryRun()const
{
return dryRun_;
}
void CreateFirstRankRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
int CreateFirstRankRequest::getAppId()const
{
return appId_;
}
void CreateFirstRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string CreateFirstRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/CreateFirstRankResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateFirstRankResult::CreateFirstRankResult() :
ServiceResult()
{}
CreateFirstRankResult::CreateFirstRankResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFirstRankResult::~CreateFirstRankResult()
{}
void CreateFirstRankResult::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["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
auto allmetaNode = resultNode["meta"]["metaItem"];
for (auto resultNodemetametaItem : allmetaNode)
{
Result::MetaItem metaItemObject;
if(!resultNodemetametaItem["attribute"].isNull())
metaItemObject.attribute = resultNodemetametaItem["attribute"].asString();
if(!resultNodemetametaItem["arg"].isNull())
metaItemObject.arg = resultNodemetametaItem["arg"].asString();
if(!resultNodemetametaItem["weight"].isNull())
metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString());
result_.meta.push_back(metaItemObject);
}
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateFirstRankResult::getRequestId()const
{
return requestId_;
}
CreateFirstRankResult::Result CreateFirstRankResult::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/opensearch/model/CreateInterventionDictionaryRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateInterventionDictionaryRequest;
CreateInterventionDictionaryRequest::CreateInterventionDictionaryRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/intervention-dictionaries");
setMethod(HttpRequest::Method::Post);
}
CreateInterventionDictionaryRequest::~CreateInterventionDictionaryRequest()
{}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateInterventionDictionaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateInterventionDictionaryResult::CreateInterventionDictionaryResult() :
ServiceResult()
{}
CreateInterventionDictionaryResult::CreateInterventionDictionaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateInterventionDictionaryResult::~CreateInterventionDictionaryResult()
{}
void CreateInterventionDictionaryResult::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["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["analyzer"].isNull())
result_.analyzer = resultNode["analyzer"].asString();
if(!resultNode["created"].isNull())
result_.created = resultNode["created"].asString();
if(!resultNode["updated"].isNull())
result_.updated = resultNode["updated"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateInterventionDictionaryResult::getRequestId()const
{
return requestId_;
}
CreateInterventionDictionaryResult::Result CreateInterventionDictionaryResult::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/opensearch/model/CreateModelRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateModelRequest;
CreateModelRequest::CreateModelRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models");
setMethod(HttpRequest::Method::Post);
}
CreateModelRequest::~CreateModelRequest()
{}
std::string CreateModelRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateModelResult::CreateModelResult() :
ServiceResult()
{}
CreateModelResult::CreateModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateModelResult::~CreateModelResult()
{}
void CreateModelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string CreateModelResult::getRequestId()const
{
return requestId_;
}
std::string CreateModelResult::getResult()const
{
return result_;
}

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/opensearch/model/CreateQueryProcessorRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateQueryProcessorRequest;
CreateQueryProcessorRequest::CreateQueryProcessorRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors");
setMethod(HttpRequest::Method::Post);
}
CreateQueryProcessorRequest::~CreateQueryProcessorRequest()
{}
bool CreateQueryProcessorRequest::getDryRun()const
{
return dryRun_;
}
void CreateQueryProcessorRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
int CreateQueryProcessorRequest::getAppId()const
{
return appId_;
}
void CreateQueryProcessorRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string CreateQueryProcessorRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/CreateQueryProcessorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateQueryProcessorResult::CreateQueryProcessorResult() :
ServiceResult()
{}
CreateQueryProcessorResult::CreateQueryProcessorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateQueryProcessorResult::~CreateQueryProcessorResult()
{}
void CreateQueryProcessorResult::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["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
auto allIndexes = resultNode["indexes"]["indexes"];
for (auto value : allIndexes)
result_.indexes.push_back(value.asString());
auto allProcessors = resultNode["processors"]["processors"];
for (auto value : allProcessors)
result_.processors.push_back(value.asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateQueryProcessorResult::getRequestId()const
{
return requestId_;
}
CreateQueryProcessorResult::Result CreateQueryProcessorResult::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/opensearch/model/CreateScheduledTaskRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateScheduledTaskRequest;
CreateScheduledTaskRequest::CreateScheduledTaskRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks");
setMethod(HttpRequest::Method::Post);
}
CreateScheduledTaskRequest::~CreateScheduledTaskRequest()
{}
std::string CreateScheduledTaskRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/CreateScheduledTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateScheduledTaskResult::CreateScheduledTaskResult() :
ServiceResult()
{}
CreateScheduledTaskResult::CreateScheduledTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateScheduledTaskResult::~CreateScheduledTaskResult()
{}
void CreateScheduledTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string CreateScheduledTaskResult::getRequestId()const
{
return requestId_;
}
std::string CreateScheduledTaskResult::getResult()const
{
return result_;
}

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/opensearch/model/CreateSecondRankRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateSecondRankRequest;
CreateSecondRankRequest::CreateSecondRankRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks");
setMethod(HttpRequest::Method::Post);
}
CreateSecondRankRequest::~CreateSecondRankRequest()
{}
bool CreateSecondRankRequest::getDryRun()const
{
return dryRun_;
}
void CreateSecondRankRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
}
int CreateSecondRankRequest::getAppId()const
{
return appId_;
}
void CreateSecondRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string CreateSecondRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/CreateSecondRankResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateSecondRankResult::CreateSecondRankResult() :
ServiceResult()
{}
CreateSecondRankResult::CreateSecondRankResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSecondRankResult::~CreateSecondRankResult()
{}
void CreateSecondRankResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string CreateSecondRankResult::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/opensearch/model/CreateSortScriptRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateSortScriptRequest;
CreateSortScriptRequest::CreateSortScriptRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts");
setMethod(HttpRequest::Method::Post);
}
CreateSortScriptRequest::~CreateSortScriptRequest()
{}
std::string CreateSortScriptRequest::getAppVersionId()const
{
return appVersionId_;
}
void CreateSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string CreateSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void CreateSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/CreateSortScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateSortScriptResult::CreateSortScriptResult() :
ServiceResult()
{}
CreateSortScriptResult::CreateSortScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSortScriptResult::~CreateSortScriptResult()
{}
void CreateSortScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string CreateSortScriptResult::getRequestId()const
{
return requestId_;
}

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/opensearch/model/CreateUserAnalyzerRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateUserAnalyzerRequest;
CreateUserAnalyzerRequest::CreateUserAnalyzerRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/user-analyzers");
setMethod(HttpRequest::Method::Post);
}
CreateUserAnalyzerRequest::~CreateUserAnalyzerRequest()
{}

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/opensearch/model/CreateUserAnalyzerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateUserAnalyzerResult::CreateUserAnalyzerResult() :
ServiceResult()
{}
CreateUserAnalyzerResult::CreateUserAnalyzerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUserAnalyzerResult::~CreateUserAnalyzerResult()
{}
void CreateUserAnalyzerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string CreateUserAnalyzerResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DeleteABTestExperimentRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteABTestExperimentRequest;
DeleteABTestExperimentRequest::DeleteABTestExperimentRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]");
setMethod(HttpRequest::Method::Delete);
}
DeleteABTestExperimentRequest::~DeleteABTestExperimentRequest()
{}
int DeleteABTestExperimentRequest::getGroupId()const
{
return groupId_;
}
void DeleteABTestExperimentRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int DeleteABTestExperimentRequest::getSceneId()const
{
return sceneId_;
}
void DeleteABTestExperimentRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
int DeleteABTestExperimentRequest::getExperimentId()const
{
return experimentId_;
}
void DeleteABTestExperimentRequest::setExperimentId(int experimentId)
{
experimentId_ = experimentId;
setParameter("ExperimentId", std::to_string(experimentId));
}
std::string DeleteABTestExperimentRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DeleteABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DeleteABTestExperimentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteABTestExperimentResult::DeleteABTestExperimentResult() :
ServiceResult()
{}
DeleteABTestExperimentResult::DeleteABTestExperimentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteABTestExperimentResult::~DeleteABTestExperimentResult()
{}
void DeleteABTestExperimentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DeleteABTestExperimentResult::getRequestId()const
{
return requestId_;
}
std::string DeleteABTestExperimentResult::getResult()const
{
return result_;
}

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/opensearch/model/DeleteABTestGroupRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteABTestGroupRequest;
DeleteABTestGroupRequest::DeleteABTestGroupRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]");
setMethod(HttpRequest::Method::Delete);
}
DeleteABTestGroupRequest::~DeleteABTestGroupRequest()
{}
int DeleteABTestGroupRequest::getGroupId()const
{
return groupId_;
}
void DeleteABTestGroupRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int DeleteABTestGroupRequest::getSceneId()const
{
return sceneId_;
}
void DeleteABTestGroupRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string DeleteABTestGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DeleteABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DeleteABTestGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteABTestGroupResult::DeleteABTestGroupResult() :
ServiceResult()
{}
DeleteABTestGroupResult::DeleteABTestGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteABTestGroupResult::~DeleteABTestGroupResult()
{}
void DeleteABTestGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DeleteABTestGroupResult::getRequestId()const
{
return requestId_;
}
std::string DeleteABTestGroupResult::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/opensearch/model/DeleteABTestSceneRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteABTestSceneRequest;
DeleteABTestSceneRequest::DeleteABTestSceneRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]");
setMethod(HttpRequest::Method::Delete);
}
DeleteABTestSceneRequest::~DeleteABTestSceneRequest()
{}
int DeleteABTestSceneRequest::getSceneId()const
{
return sceneId_;
}
void DeleteABTestSceneRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string DeleteABTestSceneRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DeleteABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DeleteABTestSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteABTestSceneResult::DeleteABTestSceneResult() :
ServiceResult()
{}
DeleteABTestSceneResult::DeleteABTestSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteABTestSceneResult::~DeleteABTestSceneResult()
{}
void DeleteABTestSceneResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DeleteABTestSceneResult::getRequestId()const
{
return requestId_;
}
std::string DeleteABTestSceneResult::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/opensearch/model/DeleteModelRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteModelRequest;
DeleteModelRequest::DeleteModelRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]");
setMethod(HttpRequest::Method::Delete);
}
DeleteModelRequest::~DeleteModelRequest()
{}
std::string DeleteModelRequest::getModelName()const
{
return modelName_;
}
void DeleteModelRequest::setModelName(const std::string& modelName)
{
modelName_ = modelName;
setParameter("ModelName", modelName);
}
std::string DeleteModelRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DeleteModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DeleteModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteModelResult::DeleteModelResult() :
ServiceResult()
{}
DeleteModelResult::DeleteModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteModelResult::~DeleteModelResult()
{}
void DeleteModelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DeleteModelResult::getRequestId()const
{
return requestId_;
}
std::string DeleteModelResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DeleteSortScriptFileRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteSortScriptFileRequest;
DeleteSortScriptFileRequest::DeleteSortScriptFileRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/[fileName]");
setMethod(HttpRequest::Method::Delete);
}
DeleteSortScriptFileRequest::~DeleteSortScriptFileRequest()
{}
std::string DeleteSortScriptFileRequest::getAppVersionId()const
{
return appVersionId_;
}
void DeleteSortScriptFileRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string DeleteSortScriptFileRequest::getFileName()const
{
return fileName_;
}
void DeleteSortScriptFileRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
}
std::string DeleteSortScriptFileRequest::getScriptName()const
{
return scriptName_;
}
void DeleteSortScriptFileRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string DeleteSortScriptFileRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DeleteSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/DeleteSortScriptFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteSortScriptFileResult::DeleteSortScriptFileResult() :
ServiceResult()
{}
DeleteSortScriptFileResult::DeleteSortScriptFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSortScriptFileResult::~DeleteSortScriptFileResult()
{}
void DeleteSortScriptFileResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DeleteSortScriptFileResult::getRequestId()const
{
return requestId_;
}

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/opensearch/model/DeleteSortScriptRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteSortScriptRequest;
DeleteSortScriptRequest::DeleteSortScriptRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]");
setMethod(HttpRequest::Method::Delete);
}
DeleteSortScriptRequest::~DeleteSortScriptRequest()
{}
std::string DeleteSortScriptRequest::getAppVersionId()const
{
return appVersionId_;
}
void DeleteSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string DeleteSortScriptRequest::getScriptName()const
{
return scriptName_;
}
void DeleteSortScriptRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string DeleteSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DeleteSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/DeleteSortScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteSortScriptResult::DeleteSortScriptResult() :
ServiceResult()
{}
DeleteSortScriptResult::DeleteSortScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteSortScriptResult::~DeleteSortScriptResult()
{}
void DeleteSortScriptResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DeleteSortScriptResult::getRequestId()const
{
return requestId_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeABTestExperimentRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeABTestExperimentRequest;
DescribeABTestExperimentRequest::DescribeABTestExperimentRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments/[experimentId]");
setMethod(HttpRequest::Method::Get);
}
DescribeABTestExperimentRequest::~DescribeABTestExperimentRequest()
{}
int DescribeABTestExperimentRequest::getGroupId()const
{
return groupId_;
}
void DescribeABTestExperimentRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int DescribeABTestExperimentRequest::getSceneId()const
{
return sceneId_;
}
void DescribeABTestExperimentRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
int DescribeABTestExperimentRequest::getExperimentId()const
{
return experimentId_;
}
void DescribeABTestExperimentRequest::setExperimentId(int experimentId)
{
experimentId_ = experimentId;
setParameter("ExperimentId", std::to_string(experimentId));
}
std::string DescribeABTestExperimentRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

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

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/opensearch/model/DescribeABTestGroupRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeABTestGroupRequest;
DescribeABTestGroupRequest::DescribeABTestGroupRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]");
setMethod(HttpRequest::Method::Get);
}
DescribeABTestGroupRequest::~DescribeABTestGroupRequest()
{}
int DescribeABTestGroupRequest::getGroupId()const
{
return groupId_;
}
void DescribeABTestGroupRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int DescribeABTestGroupRequest::getSceneId()const
{
return sceneId_;
}
void DescribeABTestGroupRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string DescribeABTestGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeABTestGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeABTestGroupResult::DescribeABTestGroupResult() :
ServiceResult()
{}
DescribeABTestGroupResult::DescribeABTestGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeABTestGroupResult::~DescribeABTestGroupResult()
{}
void DescribeABTestGroupResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeABTestGroupResult::getRequestId()const
{
return requestId_;
}
DescribeABTestGroupResult::Result DescribeABTestGroupResult::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/opensearch/model/DescribeABTestSceneRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeABTestSceneRequest;
DescribeABTestSceneRequest::DescribeABTestSceneRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]");
setMethod(HttpRequest::Method::Get);
}
DescribeABTestSceneRequest::~DescribeABTestSceneRequest()
{}
int DescribeABTestSceneRequest::getSceneId()const
{
return sceneId_;
}
void DescribeABTestSceneRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string DescribeABTestSceneRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeABTestSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeABTestSceneResult::DescribeABTestSceneResult() :
ServiceResult()
{}
DescribeABTestSceneResult::DescribeABTestSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeABTestSceneResult::~DescribeABTestSceneResult()
{}
void DescribeABTestSceneResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
auto allValues = resultNode["values"]["values"];
for (auto value : allValues)
result_.values.push_back(value.asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeABTestSceneResult::getRequestId()const
{
return requestId_;
}
DescribeABTestSceneResult::Result DescribeABTestSceneResult::getResult()const
{
return result_;
}

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/opensearch/model/DescribeAppGroupDataReportRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeAppGroupDataReportRequest;
DescribeAppGroupDataReportRequest::DescribeAppGroupDataReportRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-report");
setMethod(HttpRequest::Method::Get);
}
DescribeAppGroupDataReportRequest::~DescribeAppGroupDataReportRequest()
{}
std::string DescribeAppGroupDataReportRequest::getEndTime()const
{
return endTime_;
}
void DescribeAppGroupDataReportRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeAppGroupDataReportRequest::getStartTime()const
{
return startTime_;
}
void DescribeAppGroupDataReportRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,88 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeAppGroupDataReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeAppGroupDataReportResult::DescribeAppGroupDataReportResult() :
ServiceResult()
{}
DescribeAppGroupDataReportResult::DescribeAppGroupDataReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppGroupDataReportResult::~DescribeAppGroupDataReportResult()
{}
void DescribeAppGroupDataReportResult::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["receivedCount"].isNull())
result_.receivedCount = std::stoi(resultNode["receivedCount"].asString());
auto allreceivedSampleNode = resultNode["receivedSample"]["receivedSampleItem"];
for (auto resultNodereceivedSamplereceivedSampleItem : allreceivedSampleNode)
{
Result::ReceivedSampleItem receivedSampleItemObject;
if(!resultNodereceivedSamplereceivedSampleItem["receivedTimeMs"].isNull())
receivedSampleItemObject.receivedTimeMs = std::stol(resultNodereceivedSamplereceivedSampleItem["receivedTimeMs"].asString());
auto messageNode = value["message"];
if(!messageNode["clientIp"].isNull())
receivedSampleItemObject.message.clientIp = messageNode["clientIp"].asString();
if(!messageNode["arg3"].isNull())
receivedSampleItemObject.message.arg3 = messageNode["arg3"].asString();
if(!messageNode["userId"].isNull())
receivedSampleItemObject.message.userId = messageNode["userId"].asString();
if(!messageNode["args"].isNull())
receivedSampleItemObject.message.args = messageNode["args"].asString();
if(!messageNode["arg1"].isNull())
receivedSampleItemObject.message.arg1 = messageNode["arg1"].asString();
if(!messageNode["sdkType"].isNull())
receivedSampleItemObject.message.sdkType = messageNode["sdkType"].asString();
if(!messageNode["sessionId"].isNull())
receivedSampleItemObject.message.sessionId = messageNode["sessionId"].asString();
if(!messageNode["eventId"].isNull())
receivedSampleItemObject.message.eventId = std::stoi(messageNode["eventId"].asString());
if(!messageNode["sdkVersion"].isNull())
receivedSampleItemObject.message.sdkVersion = messageNode["sdkVersion"].asString();
if(!messageNode["page"].isNull())
receivedSampleItemObject.message.page = messageNode["page"].asString();
result_.receivedSample.push_back(receivedSampleItemObject);
}
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeAppGroupDataReportResult::getRequestId()const
{
return requestId_;
}
DescribeAppGroupDataReportResult::Result DescribeAppGroupDataReportResult::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/opensearch/model/DescribeAppGroupRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeAppGroupRequest;
DescribeAppGroupRequest::DescribeAppGroupRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]");
setMethod(HttpRequest::Method::Get);
}
DescribeAppGroupRequest::~DescribeAppGroupRequest()
{}
std::string DescribeAppGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeAppGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,110 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeAppGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeAppGroupResult::DescribeAppGroupResult() :
ServiceResult()
{}
DescribeAppGroupResult::DescribeAppGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppGroupResult::~DescribeAppGroupResult()
{}
void DescribeAppGroupResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["currentVersion"].isNull())
result_.currentVersion = resultNode["currentVersion"].asString();
if(!resultNode["switchedTime"].isNull())
result_.switchedTime = std::stoi(resultNode["switchedTime"].asString());
if(!resultNode["chargingWay"].isNull())
result_.chargingWay = std::stoi(resultNode["chargingWay"].asString());
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["projectId"].isNull())
result_.projectId = resultNode["projectId"].asString();
if(!resultNode["chargeType"].isNull())
result_.chargeType = resultNode["chargeType"].asString();
if(!resultNode["expireOn"].isNull())
result_.expireOn = resultNode["expireOn"].asString();
if(!resultNode["instanceId"].isNull())
result_.instanceId = resultNode["instanceId"].asString();
if(!resultNode["commodityCode"].isNull())
result_.commodityCode = resultNode["commodityCode"].asString();
if(!resultNode["processingOrderId"].isNull())
result_.processingOrderId = resultNode["processingOrderId"].asString();
if(!resultNode["firstRankAlgoDeploymentId"].isNull())
result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].asString());
if(!resultNode["secondRankAlgoDeploymentId"].isNull())
result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString());
if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull())
result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString());
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["produced"].isNull())
result_.produced = std::stoi(resultNode["produced"].asString());
if(!resultNode["lockedByExpiration"].isNull())
result_.lockedByExpiration = std::stoi(resultNode["lockedByExpiration"].asString());
if(!resultNode["hasPendingQuotaReviewTask"].isNull())
result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].asString();
if(!resultNode["lockMode"].isNull())
result_.lockMode = resultNode["lockMode"].asString();
auto quotaNode = resultNode["quota"];
if(!quotaNode["docSize"].isNull())
result_.quota.docSize = std::stoi(quotaNode["docSize"].asString());
if(!quotaNode["computeResource"].isNull())
result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString());
if(!quotaNode["spec"].isNull())
result_.quota.spec = quotaNode["spec"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeAppGroupResult::getRequestId()const
{
return requestId_;
}
DescribeAppGroupResult::Result DescribeAppGroupResult::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/opensearch/model/DescribeAppRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeAppRequest;
DescribeAppRequest::DescribeAppRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]");
setMethod(HttpRequest::Method::Get);
}
DescribeAppRequest::~DescribeAppRequest()
{}
int DescribeAppRequest::getAppId()const
{
return appId_;
}
void DescribeAppRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string DescribeAppRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeAppResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeAppResult::DescribeAppResult() :
ServiceResult()
{}
DescribeAppResult::DescribeAppResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppResult::~DescribeAppResult()
{}
void DescribeAppResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["clusterName"].isNull())
result_.clusterName = resultNode["clusterName"].asString();
if(!resultNode["algoDeploymentId"].isNull())
result_.algoDeploymentId = std::stoi(resultNode["algoDeploymentId"].asString());
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["autoSwitch"].isNull())
result_.autoSwitch = resultNode["autoSwitch"].asString() == "true";
if(!resultNode["progressPercent"].isNull())
result_.progressPercent = std::stoi(resultNode["progressPercent"].asString());
if(!resultNode["schema"].isNull())
result_.schema = resultNode["schema"].asString();
auto quotaNode = resultNode["quota"];
if(!quotaNode["docSize"].isNull())
result_.quota.docSize = std::stoi(quotaNode["docSize"].asString());
if(!quotaNode["computeResource"].isNull())
result_.quota.computeResource = std::stoi(quotaNode["computeResource"].asString());
if(!quotaNode["qps"].isNull())
result_.quota.qps = std::stoi(quotaNode["qps"].asString());
if(!quotaNode["spec"].isNull())
result_.quota.spec = quotaNode["spec"].asString();
auto allFetchFields = resultNode["fetchFields"]["fetchFields"];
for (auto value : allFetchFields)
result_.fetchFields.push_back(value.asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeAppResult::getRequestId()const
{
return requestId_;
}
DescribeAppResult::Result DescribeAppResult::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/opensearch/model/DescribeAppStatisticsRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeAppStatisticsRequest;
DescribeAppStatisticsRequest::DescribeAppStatisticsRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/statistics");
setMethod(HttpRequest::Method::Get);
}
DescribeAppStatisticsRequest::~DescribeAppStatisticsRequest()
{}
std::string DescribeAppStatisticsRequest::getAppId()const
{
return appId_;
}
void DescribeAppStatisticsRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
}
std::string DescribeAppStatisticsRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeAppStatisticsRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeAppStatisticsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeAppStatisticsResult::DescribeAppStatisticsResult() :
ServiceResult()
{}
DescribeAppStatisticsResult::DescribeAppStatisticsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppStatisticsResult::~DescribeAppStatisticsResult()
{}
void DescribeAppStatisticsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DescribeAppStatisticsResult::getRequestId()const
{
return requestId_;
}
std::string DescribeAppStatisticsResult::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/opensearch/model/DescribeAppsRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeAppsRequest;
DescribeAppsRequest::DescribeAppsRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps");
setMethod(HttpRequest::Method::Get);
}
DescribeAppsRequest::~DescribeAppsRequest()
{}
std::string DescribeAppsRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeAppsRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/DescribeAppsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeAppsResult::DescribeAppsResult() :
ServiceResult()
{}
DescribeAppsResult::DescribeAppsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppsResult::~DescribeAppsResult()
{}
void DescribeAppsResult::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());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeAppsResult::getRequestId()const
{
return requestId_;
}
std::vector<std::string> DescribeAppsResult::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/opensearch/model/DescribeDataCollctionRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeDataCollctionRequest;
DescribeDataCollctionRequest::DescribeDataCollctionRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/data-collections/[dataCollectionIdentity]");
setMethod(HttpRequest::Method::Get);
}
DescribeDataCollctionRequest::~DescribeDataCollctionRequest()
{}
std::string DescribeDataCollctionRequest::getDataCollectionIdentity()const
{
return dataCollectionIdentity_;
}
void DescribeDataCollctionRequest::setDataCollectionIdentity(const std::string& dataCollectionIdentity)
{
dataCollectionIdentity_ = dataCollectionIdentity;
setParameter("DataCollectionIdentity", dataCollectionIdentity);
}
std::string DescribeDataCollctionRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeDataCollctionRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeDataCollctionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeDataCollctionResult::DescribeDataCollctionResult() :
ServiceResult()
{}
DescribeDataCollctionResult::DescribeDataCollctionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataCollctionResult::~DescribeDataCollctionResult()
{}
void DescribeDataCollctionResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["dataCollectionType"].isNull())
result_.dataCollectionType = resultNode["dataCollectionType"].asString();
if(!resultNode["industryName"].isNull())
result_.industryName = resultNode["industryName"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["sundialId"].isNull())
result_.sundialId = resultNode["sundialId"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeDataCollctionResult::getRequestId()const
{
return requestId_;
}
DescribeDataCollctionResult::Result DescribeDataCollctionResult::getResult()const
{
return result_;
}

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/opensearch/model/DescribeFirstRankRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeFirstRankRequest;
DescribeFirstRankRequest::DescribeFirstRankRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/first-ranks/[name]");
setMethod(HttpRequest::Method::Get);
}
DescribeFirstRankRequest::~DescribeFirstRankRequest()
{}
int DescribeFirstRankRequest::getAppId()const
{
return appId_;
}
void DescribeFirstRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string DescribeFirstRankRequest::getName()const
{
return name_;
}
void DescribeFirstRankRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeFirstRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeFirstRankResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeFirstRankResult::DescribeFirstRankResult() :
ServiceResult()
{}
DescribeFirstRankResult::DescribeFirstRankResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFirstRankResult::~DescribeFirstRankResult()
{}
void DescribeFirstRankResult::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["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
auto allmetaNode = resultNode["meta"]["metaItem"];
for (auto resultNodemetametaItem : allmetaNode)
{
Result::MetaItem metaItemObject;
if(!resultNodemetametaItem["attribute"].isNull())
metaItemObject.attribute = resultNodemetametaItem["attribute"].asString();
if(!resultNodemetametaItem["arg"].isNull())
metaItemObject.arg = resultNodemetametaItem["arg"].asString();
if(!resultNodemetametaItem["weight"].isNull())
metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString());
result_.meta.push_back(metaItemObject);
}
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeFirstRankResult::getRequestId()const
{
return requestId_;
}
DescribeFirstRankResult::Result DescribeFirstRankResult::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/opensearch/model/DescribeInterventionDictionaryRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeInterventionDictionaryRequest;
DescribeInterventionDictionaryRequest::DescribeInterventionDictionaryRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/intervention-dictionaries/[name]");
setMethod(HttpRequest::Method::Get);
}
DescribeInterventionDictionaryRequest::~DescribeInterventionDictionaryRequest()
{}
std::string DescribeInterventionDictionaryRequest::getName()const
{
return name_;
}
void DescribeInterventionDictionaryRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeInterventionDictionaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeInterventionDictionaryResult::DescribeInterventionDictionaryResult() :
ServiceResult()
{}
DescribeInterventionDictionaryResult::DescribeInterventionDictionaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInterventionDictionaryResult::~DescribeInterventionDictionaryResult()
{}
void DescribeInterventionDictionaryResult::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["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["analyzer"].isNull())
result_.analyzer = resultNode["analyzer"].asString();
if(!resultNode["created"].isNull())
result_.created = resultNode["created"].asString();
if(!resultNode["updated"].isNull())
result_.updated = resultNode["updated"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeInterventionDictionaryResult::getRequestId()const
{
return requestId_;
}
DescribeInterventionDictionaryResult::Result DescribeInterventionDictionaryResult::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/opensearch/model/DescribeModelRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeModelRequest;
DescribeModelRequest::DescribeModelRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]");
setMethod(HttpRequest::Method::Get);
}
DescribeModelRequest::~DescribeModelRequest()
{}
std::string DescribeModelRequest::getModelName()const
{
return modelName_;
}
void DescribeModelRequest::setModelName(const std::string& modelName)
{
modelName_ = modelName;
setParameter("ModelName", modelName);
}
std::string DescribeModelRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeModelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeModelResult::DescribeModelResult() :
ServiceResult()
{}
DescribeModelResult::DescribeModelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeModelResult::~DescribeModelResult()
{}
void DescribeModelResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DescribeModelResult::getRequestId()const
{
return requestId_;
}
std::string DescribeModelResult::getResult()const
{
return result_;
}

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/opensearch/model/DescribeQueryProcessorRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeQueryProcessorRequest;
DescribeQueryProcessorRequest::DescribeQueryProcessorRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/query-processors/[name]");
setMethod(HttpRequest::Method::Get);
}
DescribeQueryProcessorRequest::~DescribeQueryProcessorRequest()
{}
int DescribeQueryProcessorRequest::getAppId()const
{
return appId_;
}
void DescribeQueryProcessorRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string DescribeQueryProcessorRequest::getName()const
{
return name_;
}
void DescribeQueryProcessorRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeQueryProcessorRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/DescribeQueryProcessorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeQueryProcessorResult::DescribeQueryProcessorResult() :
ServiceResult()
{}
DescribeQueryProcessorResult::DescribeQueryProcessorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeQueryProcessorResult::~DescribeQueryProcessorResult()
{}
void DescribeQueryProcessorResult::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["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
auto allIndexes = resultNode["indexes"]["indexes"];
for (auto value : allIndexes)
result_.indexes.push_back(value.asString());
auto allProcessors = resultNode["processors"]["processors"];
for (auto value : allProcessors)
result_.processors.push_back(value.asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeQueryProcessorResult::getRequestId()const
{
return requestId_;
}
DescribeQueryProcessorResult::Result DescribeQueryProcessorResult::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/opensearch/model/DescribeRegionRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeRegionRequest;
DescribeRegionRequest::DescribeRegionRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/region");
setMethod(HttpRequest::Method::Get);
}
DescribeRegionRequest::~DescribeRegionRequest()
{}

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/opensearch/model/DescribeRegionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeRegionResult::DescribeRegionResult() :
ServiceResult()
{}
DescribeRegionResult::DescribeRegionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionResult::~DescribeRegionResult()
{}
void DescribeRegionResult::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["regionId"].isNull())
result_.regionId = resultNode["regionId"].asString();
if(!resultNode["config"].isNull())
result_.config = resultNode["config"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeRegionResult::getRequestId()const
{
return requestId_;
}
DescribeRegionResult::Result DescribeRegionResult::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/opensearch/model/DescribeRegionsRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeRegionsRequest;
DescribeRegionsRequest::DescribeRegionsRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/regions");
setMethod(HttpRequest::Method::Get);
}
DescribeRegionsRequest::~DescribeRegionsRequest()
{}

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::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"]["resultItem"];
for (auto valueresultresultItem : allresultNode)
{
ResultItem resultObject;
if(!valueresultresultItem["regionId"].isNull())
resultObject.regionId = valueresultresultItem["regionId"].asString();
if(!valueresultresultItem["localName"].isNull())
resultObject.localName = valueresultresultItem["localName"].asString();
if(!valueresultresultItem["endpoint"].isNull())
resultObject.endpoint = valueresultresultItem["endpoint"].asString();
if(!valueresultresultItem["consoleUrl"].isNull())
resultObject.consoleUrl = valueresultresultItem["consoleUrl"].asString();
result_.push_back(resultObject);
}
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::vector<DescribeRegionsResult::ResultItem> DescribeRegionsResult::getresult()const
{
return result_;
}
std::string DescribeRegionsResult::getRequestId()const
{
return requestId_;
}

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/opensearch/model/DescribeScheduledTaskRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeScheduledTaskRequest;
DescribeScheduledTaskRequest::DescribeScheduledTaskRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scheduled-tasks/[taskId]");
setMethod(HttpRequest::Method::Get);
}
DescribeScheduledTaskRequest::~DescribeScheduledTaskRequest()
{}
std::string DescribeScheduledTaskRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}
std::string DescribeScheduledTaskRequest::getTaskId()const
{
return taskId_;
}
void DescribeScheduledTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeScheduledTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeScheduledTaskResult::DescribeScheduledTaskResult() :
ServiceResult()
{}
DescribeScheduledTaskResult::DescribeScheduledTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeScheduledTaskResult::~DescribeScheduledTaskResult()
{}
void DescribeScheduledTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DescribeScheduledTaskResult::getRequestId()const
{
return requestId_;
}
std::string DescribeScheduledTaskResult::getResult()const
{
return result_;
}

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/opensearch/model/DescribeSecondRankRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeSecondRankRequest;
DescribeSecondRankRequest::DescribeSecondRankRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/second-ranks/[name]");
setMethod(HttpRequest::Method::Get);
}
DescribeSecondRankRequest::~DescribeSecondRankRequest()
{}
int DescribeSecondRankRequest::getAppId()const
{
return appId_;
}
void DescribeSecondRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
}
std::string DescribeSecondRankRequest::getName()const
{
return name_;
}
void DescribeSecondRankRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string DescribeSecondRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeSecondRankResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeSecondRankResult::DescribeSecondRankResult() :
ServiceResult()
{}
DescribeSecondRankResult::DescribeSecondRankResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSecondRankResult::~DescribeSecondRankResult()
{}
void DescribeSecondRankResult::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["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["meta"].isNull())
result_.meta = resultNode["meta"].asString();
if(!resultNode["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["isDefault"].isNull())
result_.isDefault = resultNode["isDefault"].asString();
if(!resultNode["isSys"].isNull())
result_.isSys = resultNode["isSys"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeSecondRankResult::getRequestId()const
{
return requestId_;
}
DescribeSecondRankResult::Result DescribeSecondRankResult::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/opensearch/model/DescribeSlowQueryStatusRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeSlowQueryStatusRequest;
DescribeSlowQueryStatusRequest::DescribeSlowQueryStatusRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query");
setMethod(HttpRequest::Method::Get);
}
DescribeSlowQueryStatusRequest::~DescribeSlowQueryStatusRequest()
{}
std::string DescribeSlowQueryStatusRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DescribeSlowQueryStatusRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/DescribeSlowQueryStatusResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeSlowQueryStatusResult::DescribeSlowQueryStatusResult() :
ServiceResult()
{}
DescribeSlowQueryStatusResult::DescribeSlowQueryStatusResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSlowQueryStatusResult::~DescribeSlowQueryStatusResult()
{}
void DescribeSlowQueryStatusResult::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["region"].isNull())
result_.region = resultNode["region"].asString();
if(!resultNode["appGroupId"].isNull())
result_.appGroupId = resultNode["appGroupId"].asString();
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string DescribeSlowQueryStatusResult::getRequestId()const
{
return requestId_;
}
DescribeSlowQueryStatusResult::Result DescribeSlowQueryStatusResult::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/opensearch/model/DescribeUserAnalyzerRequest.h>
using AlibabaCloud::OpenSearch::Model::DescribeUserAnalyzerRequest;
DescribeUserAnalyzerRequest::DescribeUserAnalyzerRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/user-analyzers/[name]");
setMethod(HttpRequest::Method::Get);
}
DescribeUserAnalyzerRequest::~DescribeUserAnalyzerRequest()
{}
std::string DescribeUserAnalyzerRequest::getWith()const
{
return with_;
}
void DescribeUserAnalyzerRequest::setWith(const std::string& with)
{
with_ = with;
setParameter("With", with);
}
std::string DescribeUserAnalyzerRequest::getName()const
{
return name_;
}
void DescribeUserAnalyzerRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DescribeUserAnalyzerResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DescribeUserAnalyzerResult::DescribeUserAnalyzerResult() :
ServiceResult()
{}
DescribeUserAnalyzerResult::DescribeUserAnalyzerResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserAnalyzerResult::~DescribeUserAnalyzerResult()
{}
void DescribeUserAnalyzerResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DescribeUserAnalyzerResult::getRequestId()const
{
return requestId_;
}
std::string DescribeUserAnalyzerResult::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/opensearch/model/DisableSlowQueryRequest.h>
using AlibabaCloud::OpenSearch::Model::DisableSlowQueryRequest;
DisableSlowQueryRequest::DisableSlowQueryRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/actions/disable");
setMethod(HttpRequest::Method::Post);
}
DisableSlowQueryRequest::~DisableSlowQueryRequest()
{}
std::string DisableSlowQueryRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void DisableSlowQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/DisableSlowQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DisableSlowQueryResult::DisableSlowQueryResult() :
ServiceResult()
{}
DisableSlowQueryResult::DisableSlowQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableSlowQueryResult::~DisableSlowQueryResult()
{}
void DisableSlowQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string DisableSlowQueryResult::getRequestId()const
{
return requestId_;
}
std::string DisableSlowQueryResult::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/opensearch/model/EnableSlowQueryRequest.h>
using AlibabaCloud::OpenSearch::Model::EnableSlowQueryRequest;
EnableSlowQueryRequest::EnableSlowQueryRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/optimizers/slow-query/actions/enable");
setMethod(HttpRequest::Method::Post);
}
EnableSlowQueryRequest::~EnableSlowQueryRequest()
{}
std::string EnableSlowQueryRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void EnableSlowQueryRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/EnableSlowQueryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
EnableSlowQueryResult::EnableSlowQueryResult() :
ServiceResult()
{}
EnableSlowQueryResult::EnableSlowQueryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableSlowQueryResult::~EnableSlowQueryResult()
{}
void EnableSlowQueryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string EnableSlowQueryResult::getRequestId()const
{
return requestId_;
}
std::string EnableSlowQueryResult::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/opensearch/model/GetModelProgressRequest.h>
using AlibabaCloud::OpenSearch::Model::GetModelProgressRequest;
GetModelProgressRequest::GetModelProgressRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/progress");
setMethod(HttpRequest::Method::Get);
}
GetModelProgressRequest::~GetModelProgressRequest()
{}
std::string GetModelProgressRequest::getModelName()const
{
return modelName_;
}
void GetModelProgressRequest::setModelName(const std::string& modelName)
{
modelName_ = modelName;
setParameter("ModelName", modelName);
}
std::string GetModelProgressRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetModelProgressRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/GetModelProgressResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetModelProgressResult::GetModelProgressResult() :
ServiceResult()
{}
GetModelProgressResult::GetModelProgressResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetModelProgressResult::~GetModelProgressResult()
{}
void GetModelProgressResult::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["progress"].isNull())
result_.progress = std::stoi(resultNode["progress"].asString());
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string GetModelProgressResult::getRequestId()const
{
return requestId_;
}
GetModelProgressResult::Result GetModelProgressResult::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/opensearch/model/GetModelReportRequest.h>
using AlibabaCloud::OpenSearch::Model::GetModelReportRequest;
GetModelReportRequest::GetModelReportRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/models/[modelName]/report");
setMethod(HttpRequest::Method::Get);
}
GetModelReportRequest::~GetModelReportRequest()
{}
std::string GetModelReportRequest::getModelName()const
{
return modelName_;
}
void GetModelReportRequest::setModelName(const std::string& modelName)
{
modelName_ = modelName;
setParameter("ModelName", modelName);
}
std::string GetModelReportRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetModelReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,58 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/GetModelReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetModelReportResult::GetModelReportResult() :
ServiceResult()
{}
GetModelReportResult::GetModelReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetModelReportResult::~GetModelReportResult()
{}
void GetModelReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
if(!value["result"].isNull())
result_ = value["result"].asString();
}
std::string GetModelReportResult::getRequestId()const
{
return requestId_;
}
std::string GetModelReportResult::getResult()const
{
return result_;
}

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/opensearch/model/GetScriptFileNamesRequest.h>
using AlibabaCloud::OpenSearch::Model::GetScriptFileNamesRequest;
GetScriptFileNamesRequest::GetScriptFileNamesRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/file-names");
setMethod(HttpRequest::Method::Get);
}
GetScriptFileNamesRequest::~GetScriptFileNamesRequest()
{}
std::string GetScriptFileNamesRequest::getAppVersionId()const
{
return appVersionId_;
}
void GetScriptFileNamesRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string GetScriptFileNamesRequest::getScriptName()const
{
return scriptName_;
}
void GetScriptFileNamesRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string GetScriptFileNamesRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetScriptFileNamesRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

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

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/GetSortScriptFileRequest.h>
using AlibabaCloud::OpenSearch::Model::GetSortScriptFileRequest;
GetSortScriptFileRequest::GetSortScriptFileRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/[fileName]");
setMethod(HttpRequest::Method::Get);
}
GetSortScriptFileRequest::~GetSortScriptFileRequest()
{}
std::string GetSortScriptFileRequest::getAppVersionId()const
{
return appVersionId_;
}
void GetSortScriptFileRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string GetSortScriptFileRequest::getFileName()const
{
return fileName_;
}
void GetSortScriptFileRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
}
std::string GetSortScriptFileRequest::getScriptName()const
{
return scriptName_;
}
void GetSortScriptFileRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string GetSortScriptFileRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/GetSortScriptFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetSortScriptFileResult::GetSortScriptFileResult() :
ServiceResult()
{}
GetSortScriptFileResult::GetSortScriptFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSortScriptFileResult::~GetSortScriptFileResult()
{}
void GetSortScriptFileResult::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["content"].isNull())
result_.content = resultNode["content"].asString();
if(!resultNode["version"].isNull())
result_.version = std::stol(resultNode["version"].asString());
if(!resultNode["createTime"].isNull())
result_.createTime = resultNode["createTime"].asString();
if(!resultNode["modifyTime"].isNull())
result_.modifyTime = resultNode["modifyTime"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string GetSortScriptFileResult::getRequestId()const
{
return requestId_;
}
GetSortScriptFileResult::Result GetSortScriptFileResult::getResult()const
{
return result_;
}

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/opensearch/model/GetSortScriptRequest.h>
using AlibabaCloud::OpenSearch::Model::GetSortScriptRequest;
GetSortScriptRequest::GetSortScriptRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]");
setMethod(HttpRequest::Method::Get);
}
GetSortScriptRequest::~GetSortScriptRequest()
{}
std::string GetSortScriptRequest::getAppVersionId()const
{
return appVersionId_;
}
void GetSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
}
std::string GetSortScriptRequest::getScriptName()const
{
return scriptName_;
}
void GetSortScriptRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
}
std::string GetSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/opensearch/model/GetSortScriptResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetSortScriptResult::GetSortScriptResult() :
ServiceResult()
{}
GetSortScriptResult::GetSortScriptResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSortScriptResult::~GetSortScriptResult()
{}
void GetSortScriptResult::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["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["scope"].isNull())
result_.scope = resultNode["scope"].asString();
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].asString();
if(!resultNode["createTime"].isNull())
result_.createTime = resultNode["createTime"].asString();
if(!resultNode["modifyTime"].isNull())
result_.modifyTime = resultNode["modifyTime"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string GetSortScriptResult::getRequestId()const
{
return requestId_;
}
GetSortScriptResult::Result GetSortScriptResult::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/opensearch/model/GetValidationErrorRequest.h>
using AlibabaCloud::OpenSearch::Model::GetValidationErrorRequest;
GetValidationErrorRequest::GetValidationErrorRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-error");
setMethod(HttpRequest::Method::Get);
}
GetValidationErrorRequest::~GetValidationErrorRequest()
{}
std::string GetValidationErrorRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetValidationErrorRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}
std::string GetValidationErrorRequest::getErrorCode()const
{
return errorCode_;
}
void GetValidationErrorRequest::setErrorCode(const std::string& errorCode)
{
errorCode_ = errorCode;
setParameter("ErrorCode", errorCode);
}

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/opensearch/model/GetValidationErrorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetValidationErrorResult::GetValidationErrorResult() :
ServiceResult()
{}
GetValidationErrorResult::GetValidationErrorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetValidationErrorResult::~GetValidationErrorResult()
{}
void GetValidationErrorResult::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());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string GetValidationErrorResult::getRequestId()const
{
return requestId_;
}
std::vector<std::string> GetValidationErrorResult::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/opensearch/model/GetValidationReportRequest.h>
using AlibabaCloud::OpenSearch::Model::GetValidationReportRequest;
GetValidationReportRequest::GetValidationReportRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/algorithm/data/validation-report");
setMethod(HttpRequest::Method::Get);
}
GetValidationReportRequest::~GetValidationReportRequest()
{}
std::string GetValidationReportRequest::getType()const
{
return type_;
}
void GetValidationReportRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string GetValidationReportRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void GetValidationReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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/opensearch/model/GetValidationReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetValidationReportResult::GetValidationReportResult() :
ServiceResult()
{}
GetValidationReportResult::GetValidationReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetValidationReportResult::~GetValidationReportResult()
{}
void GetValidationReportResult::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());
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}
std::string GetValidationReportResult::getRequestId()const
{
return requestId_;
}
std::vector<std::string> GetValidationReportResult::getResult()const
{
return result_;
}

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/opensearch/model/ListABTestExperimentsRequest.h>
using AlibabaCloud::OpenSearch::Model::ListABTestExperimentsRequest;
ListABTestExperimentsRequest::ListABTestExperimentsRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/scenes/[sceneId]/groups/[groupId]/experiments");
setMethod(HttpRequest::Method::Get);
}
ListABTestExperimentsRequest::~ListABTestExperimentsRequest()
{}
int ListABTestExperimentsRequest::getGroupId()const
{
return groupId_;
}
void ListABTestExperimentsRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
}
int ListABTestExperimentsRequest::getSceneId()const
{
return sceneId_;
}
void ListABTestExperimentsRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
std::string ListABTestExperimentsRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
}
void ListABTestExperimentsRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
}

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