Fixed bugs for GetScriptFileNames result.pathName

This commit is contained in:
sdk-team
2022-12-01 02:49:39 +00:00
parent 9f078db0ce
commit 595c192584
487 changed files with 16663 additions and 9775 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CompileSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
CompileSortScriptRequest::~CompileSortScriptRequest() {}
std::string CompileSortScriptRequest::getAppVersionId() const {
return appVersionId_;
}
std::string CompileSortScriptRequest::getScriptName()const
{
return scriptName_;
void CompileSortScriptRequest::setAppVersionId(const std::string &appVersionId) {
appVersionId_ = appVersionId;
setParameter(std::string("appVersionId"), appVersionId);
}
void CompileSortScriptRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
std::string CompileSortScriptRequest::getScriptName() const {
return scriptName_;
}
std::string CompileSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CompileSortScriptRequest::setScriptName(const std::string &scriptName) {
scriptName_ = scriptName;
setParameter(std::string("scriptName"), scriptName);
}
void CompileSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CompileSortScriptRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CompileSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateABTestExperimentRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
CreateABTestExperimentRequest::~CreateABTestExperimentRequest() {}
int CreateABTestExperimentRequest::getGroupId() const {
return groupId_;
}
int CreateABTestExperimentRequest::getSceneId()const
{
return sceneId_;
void CreateABTestExperimentRequest::setGroupId(int groupId) {
groupId_ = groupId;
setParameter(std::string("groupId"), std::to_string(groupId));
}
void CreateABTestExperimentRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
int CreateABTestExperimentRequest::getSceneId() const {
return sceneId_;
}
std::string CreateABTestExperimentRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateABTestExperimentRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void CreateABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateABTestExperimentRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,20 +40,20 @@ void CreateABTestExperimentResult::parse(const std::string &payload)
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["params"].isNull())
result_.params = resultNode["params"].asString();
if(!resultNode["traffic"].isNull())
result_.traffic = std::stoi(resultNode["traffic"].asString());
if(!resultNode["online"].isNull())
result_.online = resultNode["online"].asString() == "true";
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateABTestGroupRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
CreateABTestGroupRequest::~CreateABTestGroupRequest() {}
int CreateABTestGroupRequest::getSceneId() const {
return sceneId_;
}
std::string CreateABTestGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateABTestGroupRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void CreateABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateABTestGroupRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,16 +40,16 @@ void CreateABTestGroupResult::parse(const std::string &payload)
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["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

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

View File

@@ -40,16 +40,16 @@ void CreateABTestSceneResult::parse(const std::string &payload)
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["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
auto allValues = resultNode["values"]["values"];
for (auto value : allValues)
result_.values.push_back(value.asString());

View File

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

@@ -40,61 +40,61 @@ void CreateAppGroupResult::parse(const std::string &payload)
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["currentVersion"].isNull())
result_.currentVersion = resultNode["currentVersion"].asString();
if(!resultNode["switchedTime"].isNull())
result_.switchedTime = std::stoi(resultNode["switchedTime"].asString());
if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull())
result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString());
if(!resultNode["lockMode"].isNull())
result_.lockMode = resultNode["lockMode"].asString();
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["chargeType"].isNull())
result_.chargeType = resultNode["chargeType"].asString();
if(!resultNode["hasPendingQuotaReviewTask"].isNull())
result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString());
if(!resultNode["secondRankAlgoDeploymentId"].isNull())
result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["instanceId"].isNull())
result_.instanceId = resultNode["instanceId"].asString();
if(!resultNode["processingOrderId"].isNull())
result_.processingOrderId = resultNode["processingOrderId"].asString();
if(!resultNode["chargingWay"].isNull())
result_.chargingWay = std::stoi(resultNode["chargingWay"].asString());
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].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["switchedTime"].isNull())
result_.switchedTime = std::stoi(resultNode["switchedTime"].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["expireOn"].isNull())
result_.expireOn = resultNode["expireOn"].asString();
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["firstRankAlgoDeploymentId"].isNull())
result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].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();
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
auto quotaNode = resultNode["quota"];
if(!quotaNode["spec"].isNull())
result_.quota.spec = quotaNode["spec"].asString();
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();

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateAppRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
CreateAppRequest::~CreateAppRequest() {}
bool CreateAppRequest::getDryRun() const {
return dryRun_;
}
std::string CreateAppRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateAppRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("dryRun"), dryRun ? "true" : "false");
}
void CreateAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateAppRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateAppRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void CreateAppResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

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

View File

@@ -40,24 +40,24 @@ void CreateDataCollectionResult::parse(const std::string &payload)
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["dataCollectionType"].isNull())
result_.dataCollectionType = resultNode["dataCollectionType"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["industryName"].isNull())
result_.industryName = resultNode["industryName"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["sundialId"].isNull())
result_.sundialId = resultNode["sundialId"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateFirstRankRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
CreateFirstRankRequest::~CreateFirstRankRequest() {}
bool CreateFirstRankRequest::getDryRun() const {
return dryRun_;
}
int CreateFirstRankRequest::getAppId()const
{
return appId_;
void CreateFirstRankRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("dryRun"), dryRun ? "true" : "false");
}
void CreateFirstRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
int CreateFirstRankRequest::getAppId() const {
return appId_;
}
std::string CreateFirstRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateFirstRankRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void CreateFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateFirstRankRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateFirstRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,18 +40,18 @@ void CreateFirstRankResult::parse(const std::string &payload)
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["name"].isNull())
result_.name = resultNode["name"].asString();
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["attribute"].isNull())
metaItemObject.attribute = resultNodemetametaItem["attribute"].asString();
if(!resultNodemetametaItem["weight"].isNull())
metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString());
result_.meta.push_back(metaItemObject);

View File

@@ -0,0 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/CreateFunctionInstanceRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateFunctionInstanceRequest;
CreateFunctionInstanceRequest::CreateFunctionInstanceRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances"};
setMethod(HttpRequest::Method::Post);
}
CreateFunctionInstanceRequest::~CreateFunctionInstanceRequest() {}
std::string CreateFunctionInstanceRequest::getFunctionName() const {
return functionName_;
}
void CreateFunctionInstanceRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("functionName"), functionName);
}
std::string CreateFunctionInstanceRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateFunctionInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/CreateFunctionInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateFunctionInstanceResult::CreateFunctionInstanceResult() :
ServiceResult()
{}
CreateFunctionInstanceResult::CreateFunctionInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFunctionInstanceResult::~CreateFunctionInstanceResult()
{}
void CreateFunctionInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["HttpCode"].isNull())
httpCode_ = std::stol(value["HttpCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Latency"].isNull())
latency_ = std::stol(value["Latency"].asString());
}
std::string CreateFunctionInstanceResult::getStatus()const
{
return status_;
}
long CreateFunctionInstanceResult::getHttpCode()const
{
return httpCode_;
}
std::string CreateFunctionInstanceResult::getMessage()const
{
return message_;
}
std::string CreateFunctionInstanceResult::getCode()const
{
return code_;
}
long CreateFunctionInstanceResult::getLatency()const
{
return latency_;
}

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/CreateFunctionTaskRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateFunctionTaskRequest;
CreateFunctionTaskRequest::CreateFunctionTaskRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]/tasks"};
setMethod(HttpRequest::Method::Post);
}
CreateFunctionTaskRequest::~CreateFunctionTaskRequest() {}
std::string CreateFunctionTaskRequest::getInstanceName() const {
return instanceName_;
}
void CreateFunctionTaskRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("instanceName"), instanceName);
}
std::string CreateFunctionTaskRequest::getFunctionName() const {
return functionName_;
}
void CreateFunctionTaskRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("functionName"), functionName);
}
std::string CreateFunctionTaskRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateFunctionTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/CreateFunctionTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateFunctionTaskResult::CreateFunctionTaskResult() :
ServiceResult()
{}
CreateFunctionTaskResult::CreateFunctionTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateFunctionTaskResult::~CreateFunctionTaskResult()
{}
void CreateFunctionTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["HttpCode"].isNull())
httpCode_ = std::stol(value["HttpCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Latency"].isNull())
latency_ = std::stol(value["Latency"].asString());
}
std::string CreateFunctionTaskResult::getStatus()const
{
return status_;
}
long CreateFunctionTaskResult::getHttpCode()const
{
return httpCode_;
}
std::string CreateFunctionTaskResult::getMessage()const
{
return message_;
}
std::string CreateFunctionTaskResult::getCode()const
{
return code_;
}
long CreateFunctionTaskResult::getLatency()const
{
return latency_;
}

View File

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

@@ -40,16 +40,16 @@ void CreateInterventionDictionaryResult::parse(const std::string &payload)
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["analyzer"].isNull())
result_.analyzer = resultNode["analyzer"].asString();
if(!resultNode["updated"].isNull())
result_.updated = resultNode["updated"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

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

View File

@@ -39,10 +39,10 @@ void CreateModelResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateQueryProcessorRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
CreateQueryProcessorRequest::~CreateQueryProcessorRequest() {}
bool CreateQueryProcessorRequest::getDryRun() const {
return dryRun_;
}
int CreateQueryProcessorRequest::getAppId()const
{
return appId_;
void CreateQueryProcessorRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("dryRun"), dryRun ? "true" : "false");
}
void CreateQueryProcessorRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
int CreateQueryProcessorRequest::getAppId() const {
return appId_;
}
std::string CreateQueryProcessorRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateQueryProcessorRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void CreateQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateQueryProcessorRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateQueryProcessorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,16 +40,16 @@ void CreateQueryProcessorResult::parse(const std::string &payload)
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["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
auto allIndexes = resultNode["indexes"]["indexes"];
for (auto value : allIndexes)
result_.indexes.push_back(value.asString());

View File

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

View File

@@ -39,10 +39,10 @@ void CreateScheduledTaskResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -0,0 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/CreateSearchStrategyRequest.h>
using AlibabaCloud::OpenSearch::Model::CreateSearchStrategyRequest;
CreateSearchStrategyRequest::CreateSearchStrategyRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]/search-strategies"};
setMethod(HttpRequest::Method::Post);
}
CreateSearchStrategyRequest::~CreateSearchStrategyRequest() {}
std::string CreateSearchStrategyRequest::getAppId() const {
return appId_;
}
void CreateSearchStrategyRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("appId"), appId);
}
std::string CreateSearchStrategyRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateSearchStrategyRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("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/CreateSearchStrategyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
CreateSearchStrategyResult::CreateSearchStrategyResult() :
ServiceResult()
{}
CreateSearchStrategyResult::CreateSearchStrategyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSearchStrategyResult::~CreateSearchStrategyResult()
{}
void CreateSearchStrategyResult::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 CreateSearchStrategyResult::getRequestId()const
{
return requestId_;
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateSecondRankRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setParameter("DryRun", dryRun ? "true" : "false");
CreateSecondRankRequest::~CreateSecondRankRequest() {}
bool CreateSecondRankRequest::getDryRun() const {
return dryRun_;
}
int CreateSecondRankRequest::getAppId()const
{
return appId_;
void CreateSecondRankRequest::setDryRun(bool dryRun) {
dryRun_ = dryRun;
setParameter(std::string("dryRun"), dryRun ? "true" : "false");
}
void CreateSecondRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
int CreateSecondRankRequest::getAppId() const {
return appId_;
}
std::string CreateSecondRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateSecondRankRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void CreateSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateSecondRankRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateSecondRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void CreateSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
CreateSortScriptRequest::~CreateSortScriptRequest() {}
std::string CreateSortScriptRequest::getAppVersionId() const {
return appVersionId_;
}
std::string CreateSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void CreateSortScriptRequest::setAppVersionId(const std::string &appVersionId) {
appVersionId_ = appVersionId;
setParameter(std::string("appVersionId"), appVersionId);
}
void CreateSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string CreateSortScriptRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void CreateSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

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

@@ -1,74 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DeleteABTestExperimentRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
DeleteABTestExperimentRequest::~DeleteABTestExperimentRequest() {}
int DeleteABTestExperimentRequest::getGroupId() const {
return groupId_;
}
int DeleteABTestExperimentRequest::getSceneId()const
{
return sceneId_;
void DeleteABTestExperimentRequest::setGroupId(int groupId) {
groupId_ = groupId;
setParameter(std::string("groupId"), std::to_string(groupId));
}
void DeleteABTestExperimentRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
int DeleteABTestExperimentRequest::getSceneId() const {
return sceneId_;
}
int DeleteABTestExperimentRequest::getExperimentId()const
{
return experimentId_;
void DeleteABTestExperimentRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void DeleteABTestExperimentRequest::setExperimentId(int experimentId)
{
experimentId_ = experimentId;
setParameter("ExperimentId", std::to_string(experimentId));
int DeleteABTestExperimentRequest::getExperimentId() const {
return experimentId_;
}
std::string DeleteABTestExperimentRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DeleteABTestExperimentRequest::setExperimentId(int experimentId) {
experimentId_ = experimentId;
setParameter(std::string("experimentId"), std::to_string(experimentId));
}
void DeleteABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DeleteABTestExperimentRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void DeleteABTestExperimentResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DeleteABTestGroupRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
DeleteABTestGroupRequest::~DeleteABTestGroupRequest() {}
int DeleteABTestGroupRequest::getGroupId() const {
return groupId_;
}
int DeleteABTestGroupRequest::getSceneId()const
{
return sceneId_;
void DeleteABTestGroupRequest::setGroupId(int groupId) {
groupId_ = groupId;
setParameter(std::string("groupId"), std::to_string(groupId));
}
void DeleteABTestGroupRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
int DeleteABTestGroupRequest::getSceneId() const {
return sceneId_;
}
std::string DeleteABTestGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DeleteABTestGroupRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void DeleteABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DeleteABTestGroupRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void DeleteABTestGroupResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DeleteABTestSceneRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
DeleteABTestSceneRequest::~DeleteABTestSceneRequest() {}
int DeleteABTestSceneRequest::getSceneId() const {
return sceneId_;
}
std::string DeleteABTestSceneRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DeleteABTestSceneRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void DeleteABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DeleteABTestSceneRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteABTestSceneRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void DeleteABTestSceneResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -0,0 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/DeleteFunctionInstanceRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteFunctionInstanceRequest;
DeleteFunctionInstanceRequest::DeleteFunctionInstanceRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]"};
setMethod(HttpRequest::Method::Delete);
}
DeleteFunctionInstanceRequest::~DeleteFunctionInstanceRequest() {}
std::string DeleteFunctionInstanceRequest::getInstanceName() const {
return instanceName_;
}
void DeleteFunctionInstanceRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("instanceName"), instanceName);
}
std::string DeleteFunctionInstanceRequest::getFunctionName() const {
return functionName_;
}
void DeleteFunctionInstanceRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("functionName"), functionName);
}
std::string DeleteFunctionInstanceRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteFunctionInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/DeleteFunctionInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteFunctionInstanceResult::DeleteFunctionInstanceResult() :
ServiceResult()
{}
DeleteFunctionInstanceResult::DeleteFunctionInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFunctionInstanceResult::~DeleteFunctionInstanceResult()
{}
void DeleteFunctionInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["HttpCode"].isNull())
httpCode_ = std::stol(value["HttpCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Latency"].isNull())
latency_ = std::stol(value["Latency"].asString());
}
std::string DeleteFunctionInstanceResult::getStatus()const
{
return status_;
}
long DeleteFunctionInstanceResult::getHttpCode()const
{
return httpCode_;
}
std::string DeleteFunctionInstanceResult::getMessage()const
{
return message_;
}
std::string DeleteFunctionInstanceResult::getCode()const
{
return code_;
}
long DeleteFunctionInstanceResult::getLatency()const
{
return latency_;
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/DeleteFunctionTaskRequest.h>
using AlibabaCloud::OpenSearch::Model::DeleteFunctionTaskRequest;
DeleteFunctionTaskRequest::DeleteFunctionTaskRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/instances/[instanceName]/tasks/[generation]"};
setMethod(HttpRequest::Method::Delete);
}
DeleteFunctionTaskRequest::~DeleteFunctionTaskRequest() {}
std::string DeleteFunctionTaskRequest::getGeneration() const {
return generation_;
}
void DeleteFunctionTaskRequest::setGeneration(const std::string &generation) {
generation_ = generation;
setParameter(std::string("generation"), generation);
}
std::string DeleteFunctionTaskRequest::getInstanceName() const {
return instanceName_;
}
void DeleteFunctionTaskRequest::setInstanceName(const std::string &instanceName) {
instanceName_ = instanceName;
setParameter(std::string("instanceName"), instanceName);
}
std::string DeleteFunctionTaskRequest::getFunctionName() const {
return functionName_;
}
void DeleteFunctionTaskRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("functionName"), functionName);
}
std::string DeleteFunctionTaskRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteFunctionTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -0,0 +1,79 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/DeleteFunctionTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
DeleteFunctionTaskResult::DeleteFunctionTaskResult() :
ServiceResult()
{}
DeleteFunctionTaskResult::DeleteFunctionTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteFunctionTaskResult::~DeleteFunctionTaskResult()
{}
void DeleteFunctionTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["HttpCode"].isNull())
httpCode_ = std::stol(value["HttpCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Latency"].isNull())
latency_ = std::stol(value["Latency"].asString());
}
std::string DeleteFunctionTaskResult::getStatus()const
{
return status_;
}
long DeleteFunctionTaskResult::getHttpCode()const
{
return httpCode_;
}
std::string DeleteFunctionTaskResult::getMessage()const
{
return message_;
}
std::string DeleteFunctionTaskResult::getCode()const
{
return code_;
}
long DeleteFunctionTaskResult::getLatency()const
{
return latency_;
}

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DeleteModelRequest::setModelName(const std::string& modelName)
{
modelName_ = modelName;
setParameter("ModelName", modelName);
DeleteModelRequest::~DeleteModelRequest() {}
std::string DeleteModelRequest::getModelName() const {
return modelName_;
}
std::string DeleteModelRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DeleteModelRequest::setModelName(const std::string &modelName) {
modelName_ = modelName;
setParameter(std::string("modelName"), modelName);
}
void DeleteModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DeleteModelRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void DeleteModelResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,74 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DeleteSortScriptFileRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
DeleteSortScriptFileRequest::~DeleteSortScriptFileRequest() {}
std::string DeleteSortScriptFileRequest::getAppVersionId() const {
return appVersionId_;
}
std::string DeleteSortScriptFileRequest::getFileName()const
{
return fileName_;
void DeleteSortScriptFileRequest::setAppVersionId(const std::string &appVersionId) {
appVersionId_ = appVersionId;
setParameter(std::string("appVersionId"), appVersionId);
}
void DeleteSortScriptFileRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
std::string DeleteSortScriptFileRequest::getFileName() const {
return fileName_;
}
std::string DeleteSortScriptFileRequest::getScriptName()const
{
return scriptName_;
void DeleteSortScriptFileRequest::setFileName(const std::string &fileName) {
fileName_ = fileName;
setParameter(std::string("fileName"), fileName);
}
void DeleteSortScriptFileRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
std::string DeleteSortScriptFileRequest::getScriptName() const {
return scriptName_;
}
std::string DeleteSortScriptFileRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DeleteSortScriptFileRequest::setScriptName(const std::string &scriptName) {
scriptName_ = scriptName;
setParameter(std::string("scriptName"), scriptName);
}
void DeleteSortScriptFileRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DeleteSortScriptFileRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteSortScriptFileRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DeleteSortScriptRequest::setAppVersionId(const std::string& appVersionId)
{
appVersionId_ = appVersionId;
setParameter("AppVersionId", appVersionId);
DeleteSortScriptRequest::~DeleteSortScriptRequest() {}
std::string DeleteSortScriptRequest::getAppVersionId() const {
return appVersionId_;
}
std::string DeleteSortScriptRequest::getScriptName()const
{
return scriptName_;
void DeleteSortScriptRequest::setAppVersionId(const std::string &appVersionId) {
appVersionId_ = appVersionId;
setParameter(std::string("appVersionId"), appVersionId);
}
void DeleteSortScriptRequest::setScriptName(const std::string& scriptName)
{
scriptName_ = scriptName;
setParameter("ScriptName", scriptName);
std::string DeleteSortScriptRequest::getScriptName() const {
return scriptName_;
}
std::string DeleteSortScriptRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DeleteSortScriptRequest::setScriptName(const std::string &scriptName) {
scriptName_ = scriptName;
setParameter(std::string("scriptName"), scriptName);
}
void DeleteSortScriptRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DeleteSortScriptRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DeleteSortScriptRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -1,74 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeABTestExperimentRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
DescribeABTestExperimentRequest::~DescribeABTestExperimentRequest() {}
int DescribeABTestExperimentRequest::getGroupId() const {
return groupId_;
}
int DescribeABTestExperimentRequest::getSceneId()const
{
return sceneId_;
void DescribeABTestExperimentRequest::setGroupId(int groupId) {
groupId_ = groupId;
setParameter(std::string("groupId"), std::to_string(groupId));
}
void DescribeABTestExperimentRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
int DescribeABTestExperimentRequest::getSceneId() const {
return sceneId_;
}
int DescribeABTestExperimentRequest::getExperimentId()const
{
return experimentId_;
void DescribeABTestExperimentRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void DescribeABTestExperimentRequest::setExperimentId(int experimentId)
{
experimentId_ = experimentId;
setParameter("ExperimentId", std::to_string(experimentId));
int DescribeABTestExperimentRequest::getExperimentId() const {
return experimentId_;
}
std::string DescribeABTestExperimentRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeABTestExperimentRequest::setExperimentId(int experimentId) {
experimentId_ = experimentId;
setParameter(std::string("experimentId"), std::to_string(experimentId));
}
void DescribeABTestExperimentRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeABTestExperimentRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeABTestExperimentRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,18 +40,18 @@ void DescribeABTestExperimentResult::parse(const std::string &payload)
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());
if(!resultNode["online"].isNull())
result_.online = resultNode["online"].asString() == "true";
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
auto paramsNode = resultNode["params"];
if(!paramsNode["first_formula_name"].isNull())
result_.params.first_formula_name = paramsNode["first_formula_name"].asString();

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeABTestGroupRequest::setGroupId(int groupId)
{
groupId_ = groupId;
setParameter("GroupId", std::to_string(groupId));
DescribeABTestGroupRequest::~DescribeABTestGroupRequest() {}
int DescribeABTestGroupRequest::getGroupId() const {
return groupId_;
}
int DescribeABTestGroupRequest::getSceneId()const
{
return sceneId_;
void DescribeABTestGroupRequest::setGroupId(int groupId) {
groupId_ = groupId;
setParameter(std::string("groupId"), std::to_string(groupId));
}
void DescribeABTestGroupRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
int DescribeABTestGroupRequest::getSceneId() const {
return sceneId_;
}
std::string DescribeABTestGroupRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeABTestGroupRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void DescribeABTestGroupRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeABTestGroupRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeABTestGroupRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,16 +40,16 @@ void DescribeABTestGroupResult::parse(const std::string &payload)
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["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeABTestSceneRequest::setSceneId(int sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
DescribeABTestSceneRequest::~DescribeABTestSceneRequest() {}
int DescribeABTestSceneRequest::getSceneId() const {
return sceneId_;
}
std::string DescribeABTestSceneRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeABTestSceneRequest::setSceneId(int sceneId) {
sceneId_ = sceneId;
setParameter(std::string("sceneId"), std::to_string(sceneId));
}
void DescribeABTestSceneRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeABTestSceneRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeABTestSceneRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,16 +40,16 @@ void DescribeABTestSceneResult::parse(const std::string &payload)
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["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
auto allValues = resultNode["values"]["values"];
for (auto value : allValues)
result_.values.push_back(value.asString());

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeAppGroupDataReportRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
DescribeAppGroupDataReportRequest::~DescribeAppGroupDataReportRequest() {}
std::string DescribeAppGroupDataReportRequest::getEndTime() const {
return endTime_;
}
std::string DescribeAppGroupDataReportRequest::getStartTime()const
{
return startTime_;
void DescribeAppGroupDataReportRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("endTime"), endTime);
}
void DescribeAppGroupDataReportRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
std::string DescribeAppGroupDataReportRequest::getStartTime() const {
return startTime_;
}
std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeAppGroupDataReportRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("startTime"), startTime);
}
void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeAppGroupDataReportRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeAppGroupDataReportRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -49,26 +49,26 @@ void DescribeAppGroupDataReportResult::parse(const std::string &payload)
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["arg3"].isNull())
receivedSampleItemObject.message.arg3 = messageNode["arg3"].asString();
if(!messageNode["arg1"].isNull())
receivedSampleItemObject.message.arg1 = messageNode["arg1"].asString();
if(!messageNode["sdkVersion"].isNull())
receivedSampleItemObject.message.sdkVersion = messageNode["sdkVersion"].asString();
if(!messageNode["userId"].isNull())
receivedSampleItemObject.message.userId = messageNode["userId"].asString();
if(!messageNode["page"].isNull())
receivedSampleItemObject.message.page = messageNode["page"].asString();
if(!messageNode["args"].isNull())
receivedSampleItemObject.message.args = messageNode["args"].asString();
if(!messageNode["sessionId"].isNull())
receivedSampleItemObject.message.sessionId = messageNode["sessionId"].asString();
if(!messageNode["sdkType"].isNull())
receivedSampleItemObject.message.sdkType = messageNode["sdkType"].asString();
if(!messageNode["clientIp"].isNull())
receivedSampleItemObject.message.clientIp = messageNode["clientIp"].asString();
result_.receivedSample.push_back(receivedSampleItemObject);
}
if(!value["requestId"].isNull())

View File

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

View File

@@ -40,61 +40,71 @@ void DescribeAppGroupResult::parse(const std::string &payload)
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["currentVersion"].isNull())
result_.currentVersion = resultNode["currentVersion"].asString();
if(!resultNode["switchedTime"].isNull())
result_.switchedTime = std::stoi(resultNode["switchedTime"].asString());
if(!resultNode["pendingSecondRankAlgoDeploymentId"].isNull())
result_.pendingSecondRankAlgoDeploymentId = std::stoi(resultNode["pendingSecondRankAlgoDeploymentId"].asString());
if(!resultNode["lockMode"].isNull())
result_.lockMode = resultNode["lockMode"].asString();
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["chargeType"].isNull())
result_.chargeType = resultNode["chargeType"].asString();
if(!resultNode["hasPendingQuotaReviewTask"].isNull())
result_.hasPendingQuotaReviewTask = std::stoi(resultNode["hasPendingQuotaReviewTask"].asString());
if(!resultNode["secondRankAlgoDeploymentId"].isNull())
result_.secondRankAlgoDeploymentId = std::stoi(resultNode["secondRankAlgoDeploymentId"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["instanceId"].isNull())
result_.instanceId = resultNode["instanceId"].asString();
if(!resultNode["processingOrderId"].isNull())
result_.processingOrderId = resultNode["processingOrderId"].asString();
if(!resultNode["chargingWay"].isNull())
result_.chargingWay = std::stoi(resultNode["chargingWay"].asString());
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["status"].isNull())
result_.status = resultNode["status"].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["switchedTime"].isNull())
result_.switchedTime = std::stoi(resultNode["switchedTime"].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["expireOn"].isNull())
result_.expireOn = resultNode["expireOn"].asString();
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["firstRankAlgoDeploymentId"].isNull())
result_.firstRankAlgoDeploymentId = std::stoi(resultNode["firstRankAlgoDeploymentId"].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();
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
auto alltagsNode = resultNode["tags"]["tagsItem"];
for (auto resultNodetagstagsItem : alltagsNode)
{
Result::TagsItem tagsItemObject;
if(!resultNodetagstagsItem["key"].isNull())
tagsItemObject.key = resultNodetagstagsItem["key"].asString();
if(!resultNodetagstagsItem["value"].isNull())
tagsItemObject.value = resultNodetagstagsItem["value"].asString();
result_.tags.push_back(tagsItemObject);
}
auto quotaNode = resultNode["quota"];
if(!quotaNode["spec"].isNull())
result_.quota.spec = quotaNode["spec"].asString();
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();

View File

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

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeAppRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
DescribeAppRequest::~DescribeAppRequest() {}
int DescribeAppRequest::getAppId() const {
return appId_;
}
std::string DescribeAppRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeAppRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void DescribeAppRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeAppRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeAppRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,50 +40,50 @@ void DescribeAppResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["result"];
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!resultNode["created"].isNull())
result_.created = std::stoi(resultNode["created"].asString());
if(!resultNode["clusterName"].isNull())
result_.clusterName = resultNode["clusterName"].asString();
if(!resultNode["autoSwitch"].isNull())
result_.autoSwitch = resultNode["autoSwitch"].asString() == "true";
if(!resultNode["algoDeploymentId"].isNull())
result_.algoDeploymentId = std::stoi(resultNode["algoDeploymentId"].asString());
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].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();
if(!resultNode["progressPercent"].isNull())
result_.progressPercent = std::stoi(resultNode["progressPercent"].asString());
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
auto quotaNode = resultNode["quota"];
if(!quotaNode["spec"].isNull())
result_.quota.spec = quotaNode["spec"].asString();
if(!quotaNode["qps"].isNull())
result_.quota.qps = std::stoi(quotaNode["qps"].asString());
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 domainNode = resultNode["domain"];
if(!domainNode["name"].isNull())
result_.domain.name = domainNode["name"].asString();
if(!domainNode["category"].isNull())
result_.domain.category = domainNode["category"].asString();
if(!domainNode["name"].isNull())
result_.domain.name = domainNode["name"].asString();
auto functionsNode = domainNode["functions"];
auto allService = functionsNode["service"]["service"];
for (auto value : allService)
result_.domain.functions.service.push_back(value.asString());
auto allQp = functionsNode["qp"]["qp"];
for (auto value : allQp)
result_.domain.functions.qp.push_back(value.asString());
auto allAlgo = functionsNode["algo"]["algo"];
for (auto value : allAlgo)
result_.domain.functions.algo.push_back(value.asString());
auto allService = functionsNode["service"]["service"];
for (auto value : allService)
result_.domain.functions.service.push_back(value.asString());
auto allFetchFields = resultNode["fetchFields"]["fetchFields"];
for (auto value : allFetchFields)
result_.fetchFields.push_back(value.asString());

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeAppStatisticsRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setParameter("AppId", appId);
DescribeAppStatisticsRequest::~DescribeAppStatisticsRequest() {}
std::string DescribeAppStatisticsRequest::getAppId() const {
return appId_;
}
std::string DescribeAppStatisticsRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeAppStatisticsRequest::setAppId(const std::string &appId) {
appId_ = appId;
setParameter(std::string("appId"), appId);
}
void DescribeAppStatisticsRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeAppStatisticsRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeAppStatisticsRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void DescribeAppStatisticsResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

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

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeDataCollctionRequest::setDataCollectionIdentity(const std::string& dataCollectionIdentity)
{
dataCollectionIdentity_ = dataCollectionIdentity;
setParameter("DataCollectionIdentity", dataCollectionIdentity);
DescribeDataCollctionRequest::~DescribeDataCollctionRequest() {}
std::string DescribeDataCollctionRequest::getDataCollectionIdentity() const {
return dataCollectionIdentity_;
}
std::string DescribeDataCollctionRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeDataCollctionRequest::setDataCollectionIdentity(const std::string &dataCollectionIdentity) {
dataCollectionIdentity_ = dataCollectionIdentity;
setParameter(std::string("dataCollectionIdentity"), dataCollectionIdentity);
}
void DescribeDataCollctionRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeDataCollctionRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeDataCollctionRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,24 +40,24 @@ void DescribeDataCollctionResult::parse(const std::string &payload)
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["dataCollectionType"].isNull())
result_.dataCollectionType = resultNode["dataCollectionType"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["industryName"].isNull())
result_.industryName = resultNode["industryName"].asString();
if(!resultNode["status"].isNull())
result_.status = std::stoi(resultNode["status"].asString());
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["sundialId"].isNull())
result_.sundialId = resultNode["sundialId"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeFirstRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
DescribeFirstRankRequest::~DescribeFirstRankRequest() {}
int DescribeFirstRankRequest::getAppId() const {
return appId_;
}
std::string DescribeFirstRankRequest::getName()const
{
return name_;
void DescribeFirstRankRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void DescribeFirstRankRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string DescribeFirstRankRequest::getName() const {
return name_;
}
std::string DescribeFirstRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeFirstRankRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("name"), name);
}
void DescribeFirstRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeFirstRankRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeFirstRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,20 +40,20 @@ void DescribeFirstRankResult::parse(const std::string &payload)
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";
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
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["attribute"].isNull())
metaItemObject.attribute = resultNodemetametaItem["attribute"].asString();
if(!resultNodemetametaItem["weight"].isNull())
metaItemObject.weight = std::stof(resultNodemetametaItem["weight"].asString());
result_.meta.push_back(metaItemObject);

View File

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

View File

@@ -40,16 +40,16 @@ void DescribeInterventionDictionaryResult::parse(const std::string &payload)
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["analyzer"].isNull())
result_.analyzer = resultNode["analyzer"].asString();
if(!resultNode["updated"].isNull())
result_.updated = resultNode["updated"].asString();
if(!resultNode["type"].isNull())
result_.type = resultNode["type"].asString();
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeModelRequest::setModelName(const std::string& modelName)
{
modelName_ = modelName;
setParameter("ModelName", modelName);
DescribeModelRequest::~DescribeModelRequest() {}
std::string DescribeModelRequest::getModelName() const {
return modelName_;
}
std::string DescribeModelRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeModelRequest::setModelName(const std::string &modelName) {
modelName_ = modelName;
setParameter(std::string("modelName"), modelName);
}
void DescribeModelRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeModelRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeModelRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void DescribeModelResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeQueryProcessorRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
DescribeQueryProcessorRequest::~DescribeQueryProcessorRequest() {}
int DescribeQueryProcessorRequest::getAppId() const {
return appId_;
}
std::string DescribeQueryProcessorRequest::getName()const
{
return name_;
void DescribeQueryProcessorRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void DescribeQueryProcessorRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string DescribeQueryProcessorRequest::getName() const {
return name_;
}
std::string DescribeQueryProcessorRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeQueryProcessorRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("name"), name);
}
void DescribeQueryProcessorRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeQueryProcessorRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeQueryProcessorRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,16 +40,16 @@ void DescribeQueryProcessorResult::parse(const std::string &payload)
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["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["domain"].isNull())
result_.domain = resultNode["domain"].asString();
auto allIndexes = resultNode["indexes"]["indexes"];
for (auto value : allIndexes)
result_.indexes.push_back(value.asString());

View File

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

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

@@ -43,12 +43,12 @@ void DescribeRegionsResult::parse(const std::string &payload)
for (auto valueresultresultItem : allresultNode)
{
ResultItem resultObject;
if(!valueresultresultItem["endpoint"].isNull())
resultObject.endpoint = valueresultresultItem["endpoint"].asString();
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);

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeScheduledTaskRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
DescribeScheduledTaskRequest::~DescribeScheduledTaskRequest() {}
std::string DescribeScheduledTaskRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
std::string DescribeScheduledTaskRequest::getTaskId()const
{
return taskId_;
void DescribeScheduledTaskRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}
void DescribeScheduledTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
std::string DescribeScheduledTaskRequest::getTaskId() const {
return taskId_;
}
void DescribeScheduledTaskRequest::setTaskId(const std::string &taskId) {
taskId_ = taskId;
setParameter(std::string("taskId"), taskId);
}

View File

@@ -39,10 +39,10 @@ void DescribeScheduledTaskResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,63 +1,55 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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_;
*/
#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);
}
void DescribeSecondRankRequest::setAppId(int appId)
{
appId_ = appId;
setParameter("AppId", std::to_string(appId));
DescribeSecondRankRequest::~DescribeSecondRankRequest() {}
int DescribeSecondRankRequest::getAppId() const {
return appId_;
}
std::string DescribeSecondRankRequest::getName()const
{
return name_;
void DescribeSecondRankRequest::setAppId(int appId) {
appId_ = appId;
setParameter(std::string("appId"), std::to_string(appId));
}
void DescribeSecondRankRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
std::string DescribeSecondRankRequest::getName() const {
return name_;
}
std::string DescribeSecondRankRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void DescribeSecondRankRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("name"), name);
}
void DescribeSecondRankRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string DescribeSecondRankRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void DescribeSecondRankRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -40,24 +40,24 @@ void DescribeSecondRankResult::parse(const std::string &payload)
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["active"].isNull())
result_.active = resultNode["active"].asString() == "true";
if(!resultNode["isDefault"].isNull())
result_.isDefault = resultNode["isDefault"].asString();
if(!resultNode["isSys"].isNull())
result_.isSys = resultNode["isSys"].asString();
if(!resultNode["description"].isNull())
result_.description = resultNode["description"].asString();
if(!resultNode["updated"].isNull())
result_.updated = std::stoi(resultNode["updated"].asString());
if(!resultNode["name"].isNull())
result_.name = resultNode["name"].asString();
if(!resultNode["meta"].isNull())
result_.meta = resultNode["meta"].asString();
if(!resultNode["id"].isNull())
result_.id = resultNode["id"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

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

View File

@@ -42,10 +42,10 @@ void DescribeSlowQueryStatusResult::parse(const std::string &payload)
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(!resultNode["appGroupId"].isNull())
result_.appGroupId = resultNode["appGroupId"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

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

View File

@@ -39,10 +39,10 @@ void DescribeUserAnalyzerResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

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

View File

@@ -39,10 +39,10 @@ void DisableSlowQueryResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

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

View File

@@ -39,10 +39,10 @@ void EnableSlowQueryResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

View File

@@ -1,41 +1,37 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/GenerateMergedTableRequest.h>
using AlibabaCloud::OpenSearch::Model::GenerateMergedTableRequest;
GenerateMergedTableRequest::GenerateMergedTableRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/assist/schema/actions/merge");
setMethod(HttpRequest::Method::Post);
}
GenerateMergedTableRequest::~GenerateMergedTableRequest()
{}
std::string GenerateMergedTableRequest::getSpec()const
{
return spec_;
*/
#include <alibabacloud/opensearch/model/GenerateMergedTableRequest.h>
using AlibabaCloud::OpenSearch::Model::GenerateMergedTableRequest;
GenerateMergedTableRequest::GenerateMergedTableRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/assist/schema/actions/merge"};
setMethod(HttpRequest::Method::Post);
}
void GenerateMergedTableRequest::setSpec(const std::string& spec)
{
spec_ = spec;
setParameter("Spec", spec);
GenerateMergedTableRequest::~GenerateMergedTableRequest() {}
std::string GenerateMergedTableRequest::getSpec() const {
return spec_;
}
void GenerateMergedTableRequest::setSpec(const std::string &spec) {
spec_ = spec;
setParameter(std::string("spec"), spec);
}

View File

@@ -40,12 +40,12 @@ void GenerateMergedTableResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["result"];
if(!resultNode["primaryKey"].isNull())
result_.primaryKey = resultNode["primaryKey"].asString();
if(!resultNode["mergeTable"].isNull())
result_.mergeTable = resultNode["mergeTable"].asString();
if(!resultNode["fromTable"].isNull())
result_.fromTable = resultNode["fromTable"].asString();
if(!resultNode["primaryKey"].isNull())
result_.primaryKey = resultNode["primaryKey"].asString();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();

View File

@@ -1,52 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/GetDomainRequest.h>
using AlibabaCloud::OpenSearch::Model::GetDomainRequest;
GetDomainRequest::GetDomainRequest() :
RoaServiceRequest("opensearch", "2017-12-25")
{
setResourcePath("/v4/openapi/domains/[domainName]");
setMethod(HttpRequest::Method::Get);
}
GetDomainRequest::~GetDomainRequest()
{}
std::string GetDomainRequest::getDomainName()const
{
return domainName_;
*/
#include <alibabacloud/opensearch/model/GetDomainRequest.h>
using AlibabaCloud::OpenSearch::Model::GetDomainRequest;
GetDomainRequest::GetDomainRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/domains/[domainName]"};
setMethod(HttpRequest::Method::Get);
}
void GetDomainRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
GetDomainRequest::~GetDomainRequest() {}
std::string GetDomainRequest::getDomainName() const {
return domainName_;
}
std::string GetDomainRequest::getAppGroupIdentity()const
{
return appGroupIdentity_;
void GetDomainRequest::setDomainName(const std::string &domainName) {
domainName_ = domainName;
setParameter(std::string("domainName"), domainName);
}
void GetDomainRequest::setAppGroupIdentity(const std::string& appGroupIdentity)
{
appGroupIdentity_ = appGroupIdentity;
setParameter("AppGroupIdentity", appGroupIdentity);
std::string GetDomainRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void GetDomainRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

View File

@@ -39,10 +39,10 @@ void GetDomainResult::parse(const std::string &payload)
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();
if(!value["requestId"].isNull())
requestId_ = value["requestId"].asString();
}

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/GetFunctionCurrentVersionRequest.h>
using AlibabaCloud::OpenSearch::Model::GetFunctionCurrentVersionRequest;
GetFunctionCurrentVersionRequest::GetFunctionCurrentVersionRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/functions/[functionName]/current-version"};
setMethod(HttpRequest::Method::Get);
}
GetFunctionCurrentVersionRequest::~GetFunctionCurrentVersionRequest() {}
std::string GetFunctionCurrentVersionRequest::getModelType() const {
return modelType_;
}
void GetFunctionCurrentVersionRequest::setModelType(const std::string &modelType) {
modelType_ = modelType;
setParameter(std::string("modelType"), modelType);
}
std::string GetFunctionCurrentVersionRequest::getFunctionName() const {
return functionName_;
}
void GetFunctionCurrentVersionRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("functionName"), functionName);
}
std::string GetFunctionCurrentVersionRequest::getDomain() const {
return domain_;
}
void GetFunctionCurrentVersionRequest::setDomain(const std::string &domain) {
domain_ = domain;
setParameter(std::string("domain"), domain);
}
std::string GetFunctionCurrentVersionRequest::getFunctionType() const {
return functionType_;
}
void GetFunctionCurrentVersionRequest::setFunctionType(const std::string &functionType) {
functionType_ = functionType;
setParameter(std::string("functionType"), functionType);
}
std::string GetFunctionCurrentVersionRequest::getCategory() const {
return category_;
}
void GetFunctionCurrentVersionRequest::setCategory(const std::string &category) {
category_ = category;
setParameter(std::string("category"), category);
}

View File

@@ -0,0 +1,128 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES 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/GetFunctionCurrentVersionResult.h>
#include <json/json.h>
using namespace AlibabaCloud::OpenSearch;
using namespace AlibabaCloud::OpenSearch::Model;
GetFunctionCurrentVersionResult::GetFunctionCurrentVersionResult() :
ServiceResult()
{}
GetFunctionCurrentVersionResult::GetFunctionCurrentVersionResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFunctionCurrentVersionResult::~GetFunctionCurrentVersionResult()
{}
void GetFunctionCurrentVersionResult::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["FunctionName"].isNull())
result_.functionName = resultNode["FunctionName"].asString();
if(!resultNode["FunctionType"].isNull())
result_.functionType = resultNode["FunctionType"].asString();
if(!resultNode["ModelType"].isNull())
result_.modelType = resultNode["ModelType"].asString();
if(!resultNode["VersionId"].isNull())
result_.versionId = std::stol(resultNode["VersionId"].asString());
if(!resultNode["VersionName"].isNull())
result_.versionName = resultNode["VersionName"].asString();
auto versionConfigNode = resultNode["VersionConfig"];
auto allCreateParametersNode = versionConfigNode["CreateParameters"]["CreateParametersItem"];
for (auto versionConfigNodeCreateParametersCreateParametersItem : allCreateParametersNode)
{
Result::VersionConfig::CreateParametersItem createParametersItemObject;
if(!versionConfigNodeCreateParametersCreateParametersItem["Name"].isNull())
createParametersItemObject.name = versionConfigNodeCreateParametersCreateParametersItem["Name"].asString();
if(!versionConfigNodeCreateParametersCreateParametersItem["Required"].isNull())
createParametersItemObject.required = versionConfigNodeCreateParametersCreateParametersItem["Required"].asString();
result_.versionConfig.createParameters.push_back(createParametersItemObject);
}
auto allDependsNode = versionConfigNode["Depends"]["DependsItem"];
for (auto versionConfigNodeDependsDependsItem : allDependsNode)
{
Result::VersionConfig::DependsItem dependsItemObject;
if(!versionConfigNodeDependsDependsItem["Condition"].isNull())
dependsItemObject.condition = versionConfigNodeDependsDependsItem["Condition"].asString();
if(!versionConfigNodeDependsDependsItem["Dependency"].isNull())
dependsItemObject.dependency = versionConfigNodeDependsDependsItem["Dependency"].asString();
if(!versionConfigNodeDependsDependsItem["Description"].isNull())
dependsItemObject.description = versionConfigNodeDependsDependsItem["Description"].asString();
result_.versionConfig.depends.push_back(dependsItemObject);
}
auto allUsageParametersNode = versionConfigNode["UsageParameters"]["UsageParametersItem"];
for (auto versionConfigNodeUsageParametersUsageParametersItem : allUsageParametersNode)
{
Result::VersionConfig::UsageParametersItem usageParametersItemObject;
if(!versionConfigNodeUsageParametersUsageParametersItem["Name"].isNull())
usageParametersItemObject.name = versionConfigNodeUsageParametersUsageParametersItem["Name"].asString();
if(!versionConfigNodeUsageParametersUsageParametersItem["Required"].isNull())
usageParametersItemObject.required = versionConfigNodeUsageParametersUsageParametersItem["Required"].asString();
result_.versionConfig.usageParameters.push_back(usageParametersItemObject);
}
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["HttpCode"].isNull())
httpCode_ = std::stol(value["HttpCode"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Latency"].isNull())
latency_ = std::stol(value["Latency"].asString());
}
std::string GetFunctionCurrentVersionResult::getStatus()const
{
return status_;
}
long GetFunctionCurrentVersionResult::getHttpCode()const
{
return httpCode_;
}
std::string GetFunctionCurrentVersionResult::getMessage()const
{
return message_;
}
std::string GetFunctionCurrentVersionResult::getCode()const
{
return code_;
}
GetFunctionCurrentVersionResult::Result GetFunctionCurrentVersionResult::getResult()const
{
return result_;
}
long GetFunctionCurrentVersionResult::getLatency()const
{
return latency_;
}

View File

@@ -0,0 +1,46 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/opensearch/model/GetFunctionDefaultInstanceRequest.h>
using AlibabaCloud::OpenSearch::Model::GetFunctionDefaultInstanceRequest;
GetFunctionDefaultInstanceRequest::GetFunctionDefaultInstanceRequest()
: RoaServiceRequest("opensearch", "2017-12-25") {
setResourcePath("/v4/openapi/app-groups/[appGroupIdentity]/functions/[functionName]/default-instance"};
setMethod(HttpRequest::Method::Get);
}
GetFunctionDefaultInstanceRequest::~GetFunctionDefaultInstanceRequest() {}
std::string GetFunctionDefaultInstanceRequest::getFunctionName() const {
return functionName_;
}
void GetFunctionDefaultInstanceRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("functionName"), functionName);
}
std::string GetFunctionDefaultInstanceRequest::getAppGroupIdentity() const {
return appGroupIdentity_;
}
void GetFunctionDefaultInstanceRequest::setAppGroupIdentity(const std::string &appGroupIdentity) {
appGroupIdentity_ = appGroupIdentity;
setParameter(std::string("appGroupIdentity"), appGroupIdentity);
}

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