Generated 2018-10-12 for Airec.

This commit is contained in:
sdk-team
2020-07-03 16:53:23 +08:00
parent 8d0bff56a9
commit 1a401aa70a
266 changed files with 19306 additions and 1 deletions

2393
airec/src/AirecClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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/airec/model/CreateRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
CreateRuleResult::CreateRuleResult() :
ServiceResult()
{}
CreateRuleResult::CreateRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateRuleResult::~CreateRuleResult()
{}
void CreateRuleResult::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["Status"].isNull())
result_.status = resultNode["Status"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
if(!resultNode["RuleId"].isNull())
result_.ruleId = resultNode["RuleId"].asString();
}
CreateRuleResult::Result CreateRuleResult::getResult()const
{
return result_;
}

View File

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

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/airec/model/CreateSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
CreateSceneResult::CreateSceneResult() :
ServiceResult()
{}
CreateSceneResult::CreateSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSceneResult::~CreateSceneResult()
{}
void CreateSceneResult::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["SceneId"].isNull())
result_.sceneId = resultNode["SceneId"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
if(!resultNode["Status"].isNull())
result_.status = resultNode["Status"].asString();
}
CreateSceneResult::Result CreateSceneResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeDataSetReportResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeDataSetReportResult::DescribeDataSetReportResult() :
ServiceResult()
{}
DescribeDataSetReportResult::DescribeDataSetReportResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDataSetReportResult::~DescribeDataSetReportResult()
{}
void DescribeDataSetReportResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
auto allDetailNode = resultNode["Detail"]["DetailItem"];
for (auto resultNodeDetailDetailItem : allDetailNode)
{
Result::DetailItem detailItemObject;
if(!resultNodeDetailDetailItem["BizDate"].isNull())
detailItemObject.bizDate = std::stol(resultNodeDetailDetailItem["BizDate"].asString());
if(!resultNodeDetailDetailItem["Pv"].isNull())
detailItemObject.pv = std::stol(resultNodeDetailDetailItem["Pv"].asString());
if(!resultNodeDetailDetailItem["Uv"].isNull())
detailItemObject.uv = std::stol(resultNodeDetailDetailItem["Uv"].asString());
if(!resultNodeDetailDetailItem["Click"].isNull())
detailItemObject.click = std::stol(resultNodeDetailDetailItem["Click"].asString());
if(!resultNodeDetailDetailItem["Ctr"].isNull())
detailItemObject.ctr = std::stof(resultNodeDetailDetailItem["Ctr"].asString());
if(!resultNodeDetailDetailItem["UvCtr"].isNull())
detailItemObject.uvCtr = std::stof(resultNodeDetailDetailItem["UvCtr"].asString());
if(!resultNodeDetailDetailItem["PerUvBhv"].isNull())
detailItemObject.perUvBhv = std::stof(resultNodeDetailDetailItem["PerUvBhv"].asString());
if(!resultNodeDetailDetailItem["PerUvClick"].isNull())
detailItemObject.perUvClick = std::stof(resultNodeDetailDetailItem["PerUvClick"].asString());
if(!resultNodeDetailDetailItem["ClickUser"].isNull())
detailItemObject.clickUser = std::stol(resultNodeDetailDetailItem["ClickUser"].asString());
if(!resultNodeDetailDetailItem["ActiveItem"].isNull())
detailItemObject.activeItem = std::stol(resultNodeDetailDetailItem["ActiveItem"].asString());
result_.detail.push_back(detailItemObject);
}
auto overallNode = resultNode["Overall"];
if(!overallNode["BhvCount"].isNull())
result_.overall.bhvCount = std::stoi(overallNode["BhvCount"].asString());
if(!overallNode["ItemItemCount"].isNull())
result_.overall.itemItemCount = std::stoi(overallNode["ItemItemCount"].asString());
if(!overallNode["UserUserCount"].isNull())
result_.overall.userUserCount = std::stoi(overallNode["UserUserCount"].asString());
if(!overallNode["ItemRepetitiveRate"].isNull())
result_.overall.itemRepetitiveRate = std::stof(overallNode["ItemRepetitiveRate"].asString());
if(!overallNode["UserRepetitiveRate"].isNull())
result_.overall.userRepetitiveRate = std::stof(overallNode["UserRepetitiveRate"].asString());
if(!overallNode["UserLegalRate"].isNull())
result_.overall.userLegalRate = std::stof(overallNode["UserLegalRate"].asString());
if(!overallNode["ItemLegalRate"].isNull())
result_.overall.itemLegalRate = std::stof(overallNode["ItemLegalRate"].asString());
if(!overallNode["BhvLegalRate"].isNull())
result_.overall.bhvLegalRate = std::stof(overallNode["BhvLegalRate"].asString());
if(!overallNode["UserCompleteRate"].isNull())
result_.overall.userCompleteRate = std::stof(overallNode["UserCompleteRate"].asString());
if(!overallNode["ItemCompleteRate"].isNull())
result_.overall.itemCompleteRate = std::stof(overallNode["ItemCompleteRate"].asString());
if(!overallNode["UserLoginRate"].isNull())
result_.overall.userLoginRate = std::stof(overallNode["UserLoginRate"].asString());
if(!overallNode["ItemLoginRate"].isNull())
result_.overall.itemLoginRate = std::stof(overallNode["ItemLoginRate"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeDataSetReportResult::getMessage()const
{
return message_;
}
std::string DescribeDataSetReportResult::getCode()const
{
return code_;
}
DescribeDataSetReportResult::Result DescribeDataSetReportResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeInstanceResult::DescribeInstanceResult() :
ServiceResult()
{}
DescribeInstanceResult::DescribeInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeInstanceResult::~DescribeInstanceResult()
{}
void DescribeInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["InstanceId"].isNull())
result_.instanceId = resultNode["InstanceId"].asString();
if(!resultNode["ChargeType"].isNull())
result_.chargeType = resultNode["ChargeType"].asString();
if(!resultNode["RegionId"].isNull())
result_.regionId = resultNode["RegionId"].asString();
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["Type"].isNull())
result_.type = resultNode["Type"].asString();
if(!resultNode["ExpiredTime"].isNull())
result_.expiredTime = resultNode["ExpiredTime"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
if(!resultNode["Status"].isNull())
result_.status = resultNode["Status"].asString();
if(!resultNode["Industry"].isNull())
result_.industry = resultNode["Industry"].asString();
if(!resultNode["Scene"].isNull())
result_.scene = resultNode["Scene"].asString();
if(!resultNode["DataSetVersion"].isNull())
result_.dataSetVersion = resultNode["DataSetVersion"].asString();
if(!resultNode["CommodityCode"].isNull())
result_.commodityCode = resultNode["CommodityCode"].asString();
if(!resultNode["LockMode"].isNull())
result_.lockMode = resultNode["LockMode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeInstanceResult::getMessage()const
{
return message_;
}
std::string DescribeInstanceResult::getCode()const
{
return code_;
}
DescribeInstanceResult::Result DescribeInstanceResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeQuotaResult::DescribeQuotaResult() :
ServiceResult()
{}
DescribeQuotaResult::DescribeQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeQuotaResult::~DescribeQuotaResult()
{}
void DescribeQuotaResult::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["UserCount"].isNull())
result_.userCount = std::stol(resultNode["UserCount"].asString());
if(!resultNode["UserCountUsed"].isNull())
result_.userCountUsed = std::stol(resultNode["UserCountUsed"].asString());
if(!resultNode["ItemCount"].isNull())
result_.itemCount = std::stol(resultNode["ItemCount"].asString());
if(!resultNode["ItemCountUsed"].isNull())
result_.itemCountUsed = std::stol(resultNode["ItemCountUsed"].asString());
if(!resultNode["Qps"].isNull())
result_.qps = std::stoi(resultNode["Qps"].asString());
if(!resultNode["CurrentQps"].isNull())
result_.currentQps = std::stoi(resultNode["CurrentQps"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeQuotaResult::getMessage()const
{
return message_;
}
std::string DescribeQuotaResult::getCode()const
{
return code_;
}
DescribeQuotaResult::Result DescribeQuotaResult::getResult()const
{
return result_;
}

View File

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

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/airec/model/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["Item"];
for (auto valueResultItem : allResultNode)
{
Item resultObject;
if(!valueResultItem["RegionId"].isNull())
resultObject.regionId = valueResultItem["RegionId"].asString();
if(!valueResultItem["LocalName"].isNull())
resultObject.localName = valueResultItem["LocalName"].asString();
if(!valueResultItem["Endpoint"].isNull())
resultObject.endpoint = valueResultItem["Endpoint"].asString();
if(!valueResultItem["Status"].isNull())
resultObject.status = valueResultItem["Status"].asString();
if(!valueResultItem["ConsoleUrl"].isNull())
resultObject.consoleUrl = valueResultItem["ConsoleUrl"].asString();
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeRegionsResult::getMessage()const
{
return message_;
}
std::string DescribeRegionsResult::getCode()const
{
return code_;
}
std::vector<DescribeRegionsResult::Item> DescribeRegionsResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeRuleRequest.h>
using AlibabaCloud::Airec::Model::DescribeRuleRequest;
DescribeRuleRequest::DescribeRuleRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/rules/[RuleId]");
setMethod(HttpRequest::Method::Get);
}
DescribeRuleRequest::~DescribeRuleRequest()
{}
std::string DescribeRuleRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeRuleRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeRuleRequest::getRuleType()const
{
return ruleType_;
}
void DescribeRuleRequest::setRuleType(const std::string& ruleType)
{
ruleType_ = ruleType;
setParameter("RuleType", ruleType);
}
std::string DescribeRuleRequest::getSceneId()const
{
return sceneId_;
}
void DescribeRuleRequest::setSceneId(const std::string& sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", sceneId);
}
std::string DescribeRuleRequest::getRuleId()const
{
return ruleId_;
}
void DescribeRuleRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setParameter("RuleId", ruleId);
}

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/airec/model/DescribeRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeRuleResult::DescribeRuleResult() :
ServiceResult()
{}
DescribeRuleResult::DescribeRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRuleResult::~DescribeRuleResult()
{}
void DescribeRuleResult::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["RuleId"].isNull())
result_.ruleId = resultNode["RuleId"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
if(!resultNode["Status"].isNull())
result_.status = resultNode["Status"].asString();
}
DescribeRuleResult::Result DescribeRuleResult::getResult()const
{
return result_;
}

View File

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

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/airec/model/DescribeSceneResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeSceneResult::DescribeSceneResult() :
ServiceResult()
{}
DescribeSceneResult::DescribeSceneResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSceneResult::~DescribeSceneResult()
{}
void DescribeSceneResult::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["SceneId"].isNull())
result_.sceneId = resultNode["SceneId"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
if(!resultNode["Status"].isNull())
result_.status = resultNode["Status"].asString();
}
DescribeSceneResult::Result DescribeSceneResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

@@ -0,0 +1,85 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeSyncReportDetailRequest.h>
using AlibabaCloud::Airec::Model::DescribeSyncReportDetailRequest;
DescribeSyncReportDetailRequest::DescribeSyncReportDetailRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/sync-reports/detail");
setMethod(HttpRequest::Method::Get);
}
DescribeSyncReportDetailRequest::~DescribeSyncReportDetailRequest()
{}
std::string DescribeSyncReportDetailRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeSyncReportDetailRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeSyncReportDetailRequest::getLevelType()const
{
return levelType_;
}
void DescribeSyncReportDetailRequest::setLevelType(const std::string& levelType)
{
levelType_ = levelType;
setParameter("LevelType", levelType);
}
long DescribeSyncReportDetailRequest::getEndTime()const
{
return endTime_;
}
void DescribeSyncReportDetailRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeSyncReportDetailRequest::getStartTime()const
{
return startTime_;
}
void DescribeSyncReportDetailRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeSyncReportDetailRequest::getType()const
{
return type_;
}
void DescribeSyncReportDetailRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeSyncReportDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
DescribeSyncReportDetailResult::DescribeSyncReportDetailResult() :
ServiceResult()
{}
DescribeSyncReportDetailResult::DescribeSyncReportDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeSyncReportDetailResult::~DescribeSyncReportDetailResult()
{}
void DescribeSyncReportDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["Type"].isNull())
resultObject.type = valueResultResultItem["Type"].asString();
if(!valueResultResultItem["ErrorPercent"].isNull())
resultObject.errorPercent = std::stof(valueResultResultItem["ErrorPercent"].asString());
if(!valueResultResultItem["ErrorCount"].isNull())
resultObject.errorCount = std::stoi(valueResultResultItem["ErrorCount"].asString());
if(!valueResultResultItem["DefaultDisplay"].isNull())
resultObject.defaultDisplay = valueResultResultItem["DefaultDisplay"].asString() == "true";
if(!valueResultResultItem["SampleDisplay"].isNull())
resultObject.sampleDisplay = valueResultResultItem["SampleDisplay"].asString() == "true";
auto allHistoryDataNode = allResultNode["HistoryData"]["HistoryDataItem"];
for (auto allResultNodeHistoryDataHistoryDataItem : allHistoryDataNode)
{
ResultItem::HistoryDataItem historyDataObject;
if(!allResultNodeHistoryDataHistoryDataItem["ErrorPercent"].isNull())
historyDataObject.errorPercent = std::stof(allResultNodeHistoryDataHistoryDataItem["ErrorPercent"].asString());
if(!allResultNodeHistoryDataHistoryDataItem["StartTime"].isNull())
historyDataObject.startTime = std::stol(allResultNodeHistoryDataHistoryDataItem["StartTime"].asString());
if(!allResultNodeHistoryDataHistoryDataItem["EndTime"].isNull())
historyDataObject.endTime = std::stol(allResultNodeHistoryDataHistoryDataItem["EndTime"].asString());
resultObject.historyData.push_back(historyDataObject);
}
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DescribeSyncReportDetailResult::getMessage()const
{
return message_;
}
std::string DescribeSyncReportDetailResult::getCode()const
{
return code_;
}
std::vector<DescribeSyncReportDetailResult::ResultItem> DescribeSyncReportDetailResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeSyncReportOutliersRequest.h>
using AlibabaCloud::Airec::Model::DescribeSyncReportOutliersRequest;
DescribeSyncReportOutliersRequest::DescribeSyncReportOutliersRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/sync-reports/outliers");
setMethod(HttpRequest::Method::Get);
}
DescribeSyncReportOutliersRequest::~DescribeSyncReportOutliersRequest()
{}
std::string DescribeSyncReportOutliersRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeSyncReportOutliersRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string DescribeSyncReportOutliersRequest::getLevelType()const
{
return levelType_;
}
void DescribeSyncReportOutliersRequest::setLevelType(const std::string& levelType)
{
levelType_ = levelType;
setParameter("LevelType", levelType);
}
long DescribeSyncReportOutliersRequest::getEndTime()const
{
return endTime_;
}
void DescribeSyncReportOutliersRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeSyncReportOutliersRequest::getStartTime()const
{
return startTime_;
}
void DescribeSyncReportOutliersRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string DescribeSyncReportOutliersRequest::getType()const
{
return type_;
}
void DescribeSyncReportOutliersRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string DescribeSyncReportOutliersRequest::getKey()const
{
return key_;
}
void DescribeSyncReportOutliersRequest::setKey(const std::string& key)
{
key_ = key;
setParameter("Key", key);
}

View File

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

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/DescribeUserMetricsRequest.h>
using AlibabaCloud::Airec::Model::DescribeUserMetricsRequest;
DescribeUserMetricsRequest::DescribeUserMetricsRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/metrics");
setMethod(HttpRequest::Method::Get);
}
DescribeUserMetricsRequest::~DescribeUserMetricsRequest()
{}
std::string DescribeUserMetricsRequest::getMetricType()const
{
return metricType_;
}
void DescribeUserMetricsRequest::setMetricType(const std::string& metricType)
{
metricType_ = metricType;
setParameter("MetricType", metricType);
}
std::string DescribeUserMetricsRequest::getInstanceId()const
{
return instanceId_;
}
void DescribeUserMetricsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long DescribeUserMetricsRequest::getEndTime()const
{
return endTime_;
}
void DescribeUserMetricsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long DescribeUserMetricsRequest::getStartTime()const
{
return startTime_;
}
void DescribeUserMetricsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDashboardDetailsFlowsRequest.h>
using AlibabaCloud::Airec::Model::ListDashboardDetailsFlowsRequest;
ListDashboardDetailsFlowsRequest::ListDashboardDetailsFlowsRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/dashboard/details/flows");
setMethod(HttpRequest::Method::Get);
}
ListDashboardDetailsFlowsRequest::~ListDashboardDetailsFlowsRequest()
{}
std::string ListDashboardDetailsFlowsRequest::getMetricType()const
{
return metricType_;
}
void ListDashboardDetailsFlowsRequest::setMetricType(const std::string& metricType)
{
metricType_ = metricType;
setParameter("MetricType", metricType);
}
std::string ListDashboardDetailsFlowsRequest::getInstanceId()const
{
return instanceId_;
}
void ListDashboardDetailsFlowsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListDashboardDetailsFlowsRequest::getTraceIds()const
{
return traceIds_;
}
void ListDashboardDetailsFlowsRequest::setTraceIds(const std::string& traceIds)
{
traceIds_ = traceIds;
setParameter("TraceIds", traceIds);
}
long ListDashboardDetailsFlowsRequest::getEndTime()const
{
return endTime_;
}
void ListDashboardDetailsFlowsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListDashboardDetailsFlowsRequest::getStartTime()const
{
return startTime_;
}
void ListDashboardDetailsFlowsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string ListDashboardDetailsFlowsRequest::getSceneIds()const
{
return sceneIds_;
}
void ListDashboardDetailsFlowsRequest::setSceneIds(const std::string& sceneIds)
{
sceneIds_ = sceneIds;
setParameter("SceneIds", sceneIds);
}

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/airec/model/ListDashboardDetailsFlowsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListDashboardDetailsFlowsResult::ListDashboardDetailsFlowsResult() :
ServiceResult()
{}
ListDashboardDetailsFlowsResult::ListDashboardDetailsFlowsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDashboardDetailsFlowsResult::~ListDashboardDetailsFlowsResult()
{}
void ListDashboardDetailsFlowsResult::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["MetricType"].isNull())
result_.metricType = resultNode["MetricType"].asString();
auto allMetricDataNode = resultNode["MetricData"]["MetricDataItem"];
for (auto resultNodeMetricDataMetricDataItem : allMetricDataNode)
{
Result::MetricDataItem metricDataItemObject;
if(!resultNodeMetricDataMetricDataItem["TraceId"].isNull())
metricDataItemObject.traceId = resultNodeMetricDataMetricDataItem["TraceId"].asString();
if(!resultNodeMetricDataMetricDataItem["SceneId"].isNull())
metricDataItemObject.sceneId = resultNodeMetricDataMetricDataItem["SceneId"].asString();
if(!resultNodeMetricDataMetricDataItem["MetricRes"].isNull())
metricDataItemObject.metricRes = resultNodeMetricDataMetricDataItem["MetricRes"].asString();
result_.metricData.push_back(metricDataItemObject);
}
}
ListDashboardDetailsFlowsResult::Result ListDashboardDetailsFlowsResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDashboardDetailsRequest.h>
using AlibabaCloud::Airec::Model::ListDashboardDetailsRequest;
ListDashboardDetailsRequest::ListDashboardDetailsRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/dashboard/details");
setMethod(HttpRequest::Method::Get);
}
ListDashboardDetailsRequest::~ListDashboardDetailsRequest()
{}
std::string ListDashboardDetailsRequest::getMetricType()const
{
return metricType_;
}
void ListDashboardDetailsRequest::setMetricType(const std::string& metricType)
{
metricType_ = metricType;
setParameter("MetricType", metricType);
}
std::string ListDashboardDetailsRequest::getInstanceId()const
{
return instanceId_;
}
void ListDashboardDetailsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
std::string ListDashboardDetailsRequest::getTraceIds()const
{
return traceIds_;
}
void ListDashboardDetailsRequest::setTraceIds(const std::string& traceIds)
{
traceIds_ = traceIds;
setParameter("TraceIds", traceIds);
}
long ListDashboardDetailsRequest::getEndTime()const
{
return endTime_;
}
void ListDashboardDetailsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListDashboardDetailsRequest::getStartTime()const
{
return startTime_;
}
void ListDashboardDetailsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string ListDashboardDetailsRequest::getSceneIds()const
{
return sceneIds_;
}
void ListDashboardDetailsRequest::setSceneIds(const std::string& sceneIds)
{
sceneIds_ = sceneIds;
setParameter("SceneIds", sceneIds);
}

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/airec/model/ListDashboardDetailsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListDashboardDetailsResult::ListDashboardDetailsResult() :
ServiceResult()
{}
ListDashboardDetailsResult::ListDashboardDetailsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDashboardDetailsResult::~ListDashboardDetailsResult()
{}
void ListDashboardDetailsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["TraceId"].isNull())
resultObject.traceId = valueResultResultItem["TraceId"].asString();
if(!valueResultResultItem["SceneId"].isNull())
resultObject.sceneId = valueResultResultItem["SceneId"].asString();
auto metricResNode = value["MetricRes"];
if(!metricResNode["Total"].isNull())
resultObject.metricRes.total = metricResNode["Total"].asString();
if(!metricResNode["Detail"].isNull())
resultObject.metricRes.detail = metricResNode["Detail"].asString();
result_.push_back(resultObject);
}
}
std::vector<ListDashboardDetailsResult::ResultItem> ListDashboardDetailsResult::getResult()const
{
return result_;
}

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDashboardMetricsFlowsRequest.h>
using AlibabaCloud::Airec::Model::ListDashboardMetricsFlowsRequest;
ListDashboardMetricsFlowsRequest::ListDashboardMetricsFlowsRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/dashboard/metrics/flows");
setMethod(HttpRequest::Method::Get);
}
ListDashboardMetricsFlowsRequest::~ListDashboardMetricsFlowsRequest()
{}
std::string ListDashboardMetricsFlowsRequest::getMetricType()const
{
return metricType_;
}
void ListDashboardMetricsFlowsRequest::setMetricType(const std::string& metricType)
{
metricType_ = metricType;
setParameter("MetricType", metricType);
}
std::string ListDashboardMetricsFlowsRequest::getInstanceId()const
{
return instanceId_;
}
void ListDashboardMetricsFlowsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long ListDashboardMetricsFlowsRequest::getEndTime()const
{
return endTime_;
}
void ListDashboardMetricsFlowsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListDashboardMetricsFlowsRequest::getStartTime()const
{
return startTime_;
}
void ListDashboardMetricsFlowsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}

View File

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

View File

@@ -0,0 +1,74 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDashboardMetricsRequest.h>
using AlibabaCloud::Airec::Model::ListDashboardMetricsRequest;
ListDashboardMetricsRequest::ListDashboardMetricsRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/dashboard/metrics");
setMethod(HttpRequest::Method::Get);
}
ListDashboardMetricsRequest::~ListDashboardMetricsRequest()
{}
std::string ListDashboardMetricsRequest::getMetricType()const
{
return metricType_;
}
void ListDashboardMetricsRequest::setMetricType(const std::string& metricType)
{
metricType_ = metricType;
setParameter("MetricType", metricType);
}
std::string ListDashboardMetricsRequest::getInstanceId()const
{
return instanceId_;
}
void ListDashboardMetricsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long ListDashboardMetricsRequest::getEndTime()const
{
return endTime_;
}
void ListDashboardMetricsRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long ListDashboardMetricsRequest::getStartTime()const
{
return startTime_;
}
void ListDashboardMetricsRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDashboardRequest.h>
using AlibabaCloud::Airec::Model::ListDashboardRequest;
ListDashboardRequest::ListDashboardRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/dashboard/statistics");
setMethod(HttpRequest::Method::Get);
}
ListDashboardRequest::~ListDashboardRequest()
{}
std::string ListDashboardRequest::getTraceId()const
{
return traceId_;
}
void ListDashboardRequest::setTraceId(const std::string& traceId)
{
traceId_ = traceId;
setParameter("TraceId", traceId);
}
std::string ListDashboardRequest::getInstanceId()const
{
return instanceId_;
}
void ListDashboardRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
long ListDashboardRequest::getEndDate()const
{
return endDate_;
}
void ListDashboardRequest::setEndDate(long endDate)
{
endDate_ = endDate;
setParameter("EndDate", std::to_string(endDate));
}
int ListDashboardRequest::getSize()const
{
return size_;
}
void ListDashboardRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
std::string ListDashboardRequest::getSceneId()const
{
return sceneId_;
}
void ListDashboardRequest::setSceneId(const std::string& sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", sceneId);
}
int ListDashboardRequest::getPage()const
{
return page_;
}
void ListDashboardRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}
long ListDashboardRequest::getStartDate()const
{
return startDate_;
}
void ListDashboardRequest::setStartDate(long startDate)
{
startDate_ = startDate;
setParameter("StartDate", std::to_string(startDate));
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDashboardResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListDashboardResult::ListDashboardResult() :
ServiceResult()
{}
ListDashboardResult::ListDashboardResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDashboardResult::~ListDashboardResult()
{}
void ListDashboardResult::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["Num"].isNull())
result_.num = std::stoi(resultNode["Num"].asString());
auto allListNode = resultNode["List"]["ListItem"];
for (auto resultNodeListListItem : allListNode)
{
Result::ListItem listItemObject;
if(!resultNodeListListItem["BizDate"].isNull())
listItemObject.bizDate = std::stol(resultNodeListListItem["BizDate"].asString());
if(!resultNodeListListItem["Pv"].isNull())
listItemObject.pv = std::stol(resultNodeListListItem["Pv"].asString());
if(!resultNodeListListItem["Uv"].isNull())
listItemObject.uv = std::stol(resultNodeListListItem["Uv"].asString());
if(!resultNodeListListItem["Click"].isNull())
listItemObject.click = std::stol(resultNodeListListItem["Click"].asString());
if(!resultNodeListListItem["Ctr"].isNull())
listItemObject.ctr = std::stof(resultNodeListListItem["Ctr"].asString());
if(!resultNodeListListItem["UvCtr"].isNull())
listItemObject.uvCtr = std::stof(resultNodeListListItem["UvCtr"].asString());
if(!resultNodeListListItem["PerUvBhv"].isNull())
listItemObject.perUvBhv = std::stof(resultNodeListListItem["PerUvBhv"].asString());
if(!resultNodeListListItem["PerUvClick"].isNull())
listItemObject.perUvClick = std::stof(resultNodeListListItem["PerUvClick"].asString());
if(!resultNodeListListItem["ClickUser"].isNull())
listItemObject.clickUser = std::stol(resultNodeListListItem["ClickUser"].asString());
if(!resultNodeListListItem["ActiveItem"].isNull())
listItemObject.activeItem = std::stol(resultNodeListListItem["ActiveItem"].asString());
if(!resultNodeListListItem["TraceId"].isNull())
listItemObject.traceId = resultNodeListListItem["TraceId"].asString();
if(!resultNodeListListItem["SceneId"].isNull())
listItemObject.sceneId = resultNodeListListItem["SceneId"].asString();
result_.list.push_back(listItemObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListDashboardResult::getMessage()const
{
return message_;
}
std::string ListDashboardResult::getCode()const
{
return code_;
}
ListDashboardResult::Result ListDashboardResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

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/airec/model/ListDataSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListDataSetResult::ListDataSetResult() :
ServiceResult()
{}
ListDataSetResult::ListDataSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataSetResult::~ListDataSetResult()
{}
void ListDataSetResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["InstanceId"].isNull())
resultObject.instanceId = valueResultResultItem["InstanceId"].asString();
if(!valueResultResultItem["VersionId"].isNull())
resultObject.versionId = valueResultResultItem["VersionId"].asString();
if(!valueResultResultItem["State"].isNull())
resultObject.state = valueResultResultItem["State"].asString();
if(!valueResultResultItem["GmtCreate"].isNull())
resultObject.gmtCreate = std::stol(valueResultResultItem["GmtCreate"].asString());
if(!valueResultResultItem["GmtModified"].isNull())
resultObject.gmtModified = std::stol(valueResultResultItem["GmtModified"].asString());
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListDataSetResult::getMessage()const
{
return message_;
}
std::string ListDataSetResult::getCode()const
{
return code_;
}
std::vector<ListDataSetResult::ResultItem> ListDataSetResult::getResult()const
{
return result_;
}

View File

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

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListDataSourceResult::ListDataSourceResult() :
ServiceResult()
{}
ListDataSourceResult::ListDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataSourceResult::~ListDataSourceResult()
{}
void ListDataSourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["TableName"].isNull())
resultObject.tableName = valueResultResultItem["TableName"].asString();
if(!valueResultResultItem["GmtCreate"].isNull())
resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString();
if(!valueResultResultItem["GmtModified"].isNull())
resultObject.gmtModified = valueResultResultItem["GmtModified"].asString();
auto metaNode = value["Meta"];
if(!metaNode["AccessKeyId"].isNull())
resultObject.meta.accessKeyId = metaNode["AccessKeyId"].asString();
if(!metaNode["ProjectName"].isNull())
resultObject.meta.projectName = metaNode["ProjectName"].asString();
if(!metaNode["TableName"].isNull())
resultObject.meta.tableName = metaNode["TableName"].asString();
if(!metaNode["Partition"].isNull())
resultObject.meta.partition = metaNode["Partition"].asString();
if(!metaNode["Timestamp"].isNull())
resultObject.meta.timestamp = std::stol(metaNode["Timestamp"].asString());
if(!metaNode["BucketName"].isNull())
resultObject.meta.bucketName = metaNode["BucketName"].asString();
if(!metaNode["Path"].isNull())
resultObject.meta.path = metaNode["Path"].asString();
if(!metaNode["Type"].isNull())
resultObject.meta.type = metaNode["Type"].asString();
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListDataSourceResult::getMessage()const
{
return message_;
}
std::string ListDataSourceResult::getCode()const
{
return code_;
}
std::vector<ListDataSourceResult::ResultItem> ListDataSourceResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

@@ -0,0 +1,52 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListInstanceRequest.h>
using AlibabaCloud::Airec::Model::ListInstanceRequest;
ListInstanceRequest::ListInstanceRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances");
setMethod(HttpRequest::Method::Get);
}
ListInstanceRequest::~ListInstanceRequest()
{}
int ListInstanceRequest::getSize()const
{
return size_;
}
void ListInstanceRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
int ListInstanceRequest::getPage()const
{
return page_;
}
void ListInstanceRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListInstanceResult::ListInstanceResult() :
ServiceResult()
{}
ListInstanceResult::ListInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstanceResult::~ListInstanceResult()
{}
void ListInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["InstanceId"].isNull())
resultObject.instanceId = valueResultResultItem["InstanceId"].asString();
if(!valueResultResultItem["ChargeType"].isNull())
resultObject.chargeType = valueResultResultItem["ChargeType"].asString();
if(!valueResultResultItem["RegionId"].isNull())
resultObject.regionId = valueResultResultItem["RegionId"].asString();
if(!valueResultResultItem["Name"].isNull())
resultObject.name = valueResultResultItem["Name"].asString();
if(!valueResultResultItem["Type"].isNull())
resultObject.type = valueResultResultItem["Type"].asString();
if(!valueResultResultItem["ExpiredTime"].isNull())
resultObject.expiredTime = valueResultResultItem["ExpiredTime"].asString();
if(!valueResultResultItem["GmtCreate"].isNull())
resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString();
if(!valueResultResultItem["GmtModified"].isNull())
resultObject.gmtModified = valueResultResultItem["GmtModified"].asString();
if(!valueResultResultItem["Status"].isNull())
resultObject.status = valueResultResultItem["Status"].asString();
if(!valueResultResultItem["Industry"].isNull())
resultObject.industry = valueResultResultItem["Industry"].asString();
if(!valueResultResultItem["Scene"].isNull())
resultObject.scene = valueResultResultItem["Scene"].asString();
if(!valueResultResultItem["DataSetVersion"].isNull())
resultObject.dataSetVersion = valueResultResultItem["DataSetVersion"].asString();
if(!valueResultResultItem["CommodityCode"].isNull())
resultObject.commodityCode = valueResultResultItem["CommodityCode"].asString();
if(!valueResultResultItem["LockMode"].isNull())
resultObject.lockMode = valueResultResultItem["LockMode"].asString();
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListInstanceResult::getMessage()const
{
return message_;
}
std::string ListInstanceResult::getCode()const
{
return code_;
}
std::vector<ListInstanceResult::ResultItem> ListInstanceResult::getResult()const
{
return result_;
}

View File

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

View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListInstanceTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListInstanceTaskResult::ListInstanceTaskResult() :
ServiceResult()
{}
ListInstanceTaskResult::ListInstanceTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstanceTaskResult::~ListInstanceTaskResult()
{}
void ListInstanceTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["Name"].isNull())
resultObject.name = valueResultResultItem["Name"].asString();
if(!valueResultResultItem["TotalProgress"].isNull())
resultObject.totalProgress = std::stoi(valueResultResultItem["TotalProgress"].asString());
auto allSubProgressInfosNode = allResultNode["SubProgressInfos"]["SubProgressInfosItem"];
for (auto allResultNodeSubProgressInfosSubProgressInfosItem : allSubProgressInfosNode)
{
ResultItem::SubProgressInfosItem subProgressInfosObject;
if(!allResultNodeSubProgressInfosSubProgressInfosItem["Type"].isNull())
subProgressInfosObject.type = allResultNodeSubProgressInfosSubProgressInfosItem["Type"].asString();
if(!allResultNodeSubProgressInfosSubProgressInfosItem["Progress"].isNull())
subProgressInfosObject.progress = std::stoi(allResultNodeSubProgressInfosSubProgressInfosItem["Progress"].asString());
if(!allResultNodeSubProgressInfosSubProgressInfosItem["Detail"].isNull())
subProgressInfosObject.detail = allResultNodeSubProgressInfosSubProgressInfosItem["Detail"].asString();
if(!allResultNodeSubProgressInfosSubProgressInfosItem["TotalNum"].isNull())
subProgressInfosObject.totalNum = std::stoi(allResultNodeSubProgressInfosSubProgressInfosItem["TotalNum"].asString());
if(!allResultNodeSubProgressInfosSubProgressInfosItem["FinishedNum"].isNull())
subProgressInfosObject.finishedNum = std::stoi(allResultNodeSubProgressInfosSubProgressInfosItem["FinishedNum"].asString());
resultObject.subProgressInfos.push_back(subProgressInfosObject);
}
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListInstanceTaskResult::getMessage()const
{
return message_;
}
std::string ListInstanceTaskResult::getCode()const
{
return code_;
}
std::vector<ListInstanceTaskResult::ResultItem> ListInstanceTaskResult::getResult()const
{
return result_;
}

View File

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

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListMixResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListMixResult::ListMixResult() :
ServiceResult()
{}
ListMixResult::ListMixResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListMixResult::~ListMixResult()
{}
void ListMixResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultNode = value["Result"]["ResultItem"];
for (auto valueResultResultItem : allResultNode)
{
ResultItem resultObject;
if(!valueResultResultItem["Name"].isNull())
resultObject.name = valueResultResultItem["Name"].asString();
if(!valueResultResultItem["GmtCreate"].isNull())
resultObject.gmtCreate = valueResultResultItem["GmtCreate"].asString();
if(!valueResultResultItem["GmtModified"].isNull())
resultObject.gmtModified = valueResultResultItem["GmtModified"].asString();
auto _parameterNode = value["Parameter"];
auto allSettingsNode = _parameterNode["Settings"]["SettingsItem"];
for (auto _parameterNodeSettingsSettingsItem : allSettingsNode)
{
ResultItem::_Parameter::SettingsItem settingsItemObject;
if(!_parameterNodeSettingsSettingsItem["Name"].isNull())
settingsItemObject.name = _parameterNodeSettingsSettingsItem["Name"].asString();
if(!_parameterNodeSettingsSettingsItem["Value"].isNull())
settingsItemObject.value = std::stoi(_parameterNodeSettingsSettingsItem["Value"].asString());
resultObject._parameter.settings.push_back(settingsItemObject);
}
result_.push_back(resultObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ListMixResult::getMessage()const
{
return message_;
}
std::string ListMixResult::getCode()const
{
return code_;
}
std::vector<ListMixResult::ResultItem> ListMixResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListRulesRequest.h>
using AlibabaCloud::Airec::Model::ListRulesRequest;
ListRulesRequest::ListRulesRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/rules");
setMethod(HttpRequest::Method::Get);
}
ListRulesRequest::~ListRulesRequest()
{}
std::string ListRulesRequest::getInstanceId()const
{
return instanceId_;
}
void ListRulesRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListRulesRequest::getSize()const
{
return size_;
}
void ListRulesRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
std::string ListRulesRequest::getRuleType()const
{
return ruleType_;
}
void ListRulesRequest::setRuleType(const std::string& ruleType)
{
ruleType_ = ruleType;
setParameter("RuleType", ruleType);
}
std::string ListRulesRequest::getSceneId()const
{
return sceneId_;
}
void ListRulesRequest::setSceneId(const std::string& sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", sceneId);
}
long ListRulesRequest::getEndTime()const
{
return endTime_;
}
void ListRulesRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
int ListRulesRequest::getPage()const
{
return page_;
}
void ListRulesRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}
long ListRulesRequest::getStartTime()const
{
return startTime_;
}
void ListRulesRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
std::string ListRulesRequest::getStatus()const
{
return status_;
}
void ListRulesRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

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

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListSceneItemsRequest.h>
using AlibabaCloud::Airec::Model::ListSceneItemsRequest;
ListSceneItemsRequest::ListSceneItemsRequest() :
RoaServiceRequest("airec", "2018-10-12")
{
setResourcePath("/openapi/instances/[InstanceId]/scenes/[SceneId]/items");
setMethod(HttpRequest::Method::Get);
}
ListSceneItemsRequest::~ListSceneItemsRequest()
{}
std::string ListSceneItemsRequest::getSelectionRuleId()const
{
return selectionRuleId_;
}
void ListSceneItemsRequest::setSelectionRuleId(const std::string& selectionRuleId)
{
selectionRuleId_ = selectionRuleId;
setParameter("SelectionRuleId", selectionRuleId);
}
std::string ListSceneItemsRequest::getInstanceId()const
{
return instanceId_;
}
void ListSceneItemsRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setParameter("InstanceId", instanceId);
}
int ListSceneItemsRequest::getSize()const
{
return size_;
}
void ListSceneItemsRequest::setSize(int size)
{
size_ = size;
setParameter("Size", std::to_string(size));
}
int ListSceneItemsRequest::getQueryCount()const
{
return queryCount_;
}
void ListSceneItemsRequest::setQueryCount(int queryCount)
{
queryCount_ = queryCount;
setParameter("QueryCount", std::to_string(queryCount));
}
std::string ListSceneItemsRequest::getSceneId()const
{
return sceneId_;
}
void ListSceneItemsRequest::setSceneId(const std::string& sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", sceneId);
}
std::string ListSceneItemsRequest::getOperationRuleId()const
{
return operationRuleId_;
}
void ListSceneItemsRequest::setOperationRuleId(const std::string& operationRuleId)
{
operationRuleId_ = operationRuleId;
setParameter("OperationRuleId", operationRuleId);
}
std::string ListSceneItemsRequest::getPreviewType()const
{
return previewType_;
}
void ListSceneItemsRequest::setPreviewType(const std::string& previewType)
{
previewType_ = previewType;
setParameter("PreviewType", previewType);
}
int ListSceneItemsRequest::getPage()const
{
return page_;
}
void ListSceneItemsRequest::setPage(int page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}

View File

@@ -0,0 +1,91 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ListSceneItemsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ListSceneItemsResult::ListSceneItemsResult() :
ServiceResult()
{}
ListSceneItemsResult::ListSceneItemsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSceneItemsResult::~ListSceneItemsResult()
{}
void ListSceneItemsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
auto allDetailNode = resultNode["Detail"]["DetailItem"];
for (auto resultNodeDetailDetailItem : allDetailNode)
{
Result::DetailItem detailItemObject;
if(!resultNodeDetailDetailItem["ItemId"].isNull())
detailItemObject.itemId = resultNodeDetailDetailItem["ItemId"].asString();
if(!resultNodeDetailDetailItem["ItemType"].isNull())
detailItemObject.itemType = resultNodeDetailDetailItem["ItemType"].asString();
if(!resultNodeDetailDetailItem["ExpireTime"].isNull())
detailItemObject.expireTime = resultNodeDetailDetailItem["ExpireTime"].asString();
if(!resultNodeDetailDetailItem["CategoryPath"].isNull())
detailItemObject.categoryPath = resultNodeDetailDetailItem["CategoryPath"].asString();
if(!resultNodeDetailDetailItem["PubTime"].isNull())
detailItemObject.pubTime = resultNodeDetailDetailItem["PubTime"].asString();
if(!resultNodeDetailDetailItem["BrandId"].isNull())
detailItemObject.brandId = resultNodeDetailDetailItem["BrandId"].asString();
if(!resultNodeDetailDetailItem["ShopId"].isNull())
detailItemObject.shopId = resultNodeDetailDetailItem["ShopId"].asString();
if(!resultNodeDetailDetailItem["Title"].isNull())
detailItemObject.title = resultNodeDetailDetailItem["Title"].asString();
if(!resultNodeDetailDetailItem["Status"].isNull())
detailItemObject.status = resultNodeDetailDetailItem["Status"].asString();
if(!resultNodeDetailDetailItem["Duration"].isNull())
detailItemObject.duration = resultNodeDetailDetailItem["Duration"].asString();
if(!resultNodeDetailDetailItem["Author"].isNull())
detailItemObject.author = resultNodeDetailDetailItem["Author"].asString();
if(!resultNodeDetailDetailItem["Channel"].isNull())
detailItemObject.channel = resultNodeDetailDetailItem["Channel"].asString();
result_.detail.push_back(detailItemObject);
}
auto totalNode = resultNode["Total"];
if(!totalNode["InstanceRecommendItem"].isNull())
result_.total.instanceRecommendItem = std::stol(totalNode["InstanceRecommendItem"].asString());
if(!totalNode["SceneRecommendItem"].isNull())
result_.total.sceneRecommendItem = std::stol(totalNode["SceneRecommendItem"].asString());
if(!totalNode["WeightItem"].isNull())
result_.total.weightItem = std::stol(totalNode["WeightItem"].asString());
if(!totalNode["SceneWeightItem"].isNull())
result_.total.sceneWeightItem = std::stol(totalNode["SceneWeightItem"].asString());
if(!totalNode["TotalCount"].isNull())
result_.total.totalCount = std::stol(totalNode["TotalCount"].asString());
}
ListSceneItemsResult::Result ListSceneItemsResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,87 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ModifyDataSourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ModifyDataSourceResult::ModifyDataSourceResult() :
ServiceResult()
{}
ModifyDataSourceResult::ModifyDataSourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDataSourceResult::~ModifyDataSourceResult()
{}
void ModifyDataSourceResult::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["TableName"].isNull())
result_.tableName = resultNode["TableName"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
auto metaNode = resultNode["Meta"];
if(!metaNode["AccessKeyId"].isNull())
result_.meta.accessKeyId = metaNode["AccessKeyId"].asString();
if(!metaNode["ProjectName"].isNull())
result_.meta.projectName = metaNode["ProjectName"].asString();
if(!metaNode["TableName"].isNull())
result_.meta.tableName = metaNode["TableName"].asString();
if(!metaNode["Partition"].isNull())
result_.meta.partition = metaNode["Partition"].asString();
if(!metaNode["Timestamp"].isNull())
result_.meta.timestamp = std::stol(metaNode["Timestamp"].asString());
if(!metaNode["BucketName"].isNull())
result_.meta.bucketName = metaNode["BucketName"].asString();
if(!metaNode["Path"].isNull())
result_.meta.path = metaNode["Path"].asString();
if(!metaNode["Type"].isNull())
result_.meta.type = metaNode["Type"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ModifyDataSourceResult::getMessage()const
{
return message_;
}
std::string ModifyDataSourceResult::getCode()const
{
return code_;
}
ModifyDataSourceResult::Result ModifyDataSourceResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/airec/model/ModifyInstanceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Airec;
using namespace AlibabaCloud::Airec::Model;
ModifyInstanceResult::ModifyInstanceResult() :
ServiceResult()
{}
ModifyInstanceResult::ModifyInstanceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyInstanceResult::~ModifyInstanceResult()
{}
void ModifyInstanceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resultNode = value["Result"];
if(!resultNode["InstanceId"].isNull())
result_.instanceId = resultNode["InstanceId"].asString();
if(!resultNode["ChargeType"].isNull())
result_.chargeType = resultNode["ChargeType"].asString();
if(!resultNode["RegionId"].isNull())
result_.regionId = resultNode["RegionId"].asString();
if(!resultNode["Name"].isNull())
result_.name = resultNode["Name"].asString();
if(!resultNode["Type"].isNull())
result_.type = resultNode["Type"].asString();
if(!resultNode["ExpiredTime"].isNull())
result_.expiredTime = resultNode["ExpiredTime"].asString();
if(!resultNode["GmtCreate"].isNull())
result_.gmtCreate = resultNode["GmtCreate"].asString();
if(!resultNode["GmtModified"].isNull())
result_.gmtModified = resultNode["GmtModified"].asString();
if(!resultNode["Status"].isNull())
result_.status = resultNode["Status"].asString();
if(!resultNode["Industry"].isNull())
result_.industry = resultNode["Industry"].asString();
if(!resultNode["Scene"].isNull())
result_.scene = resultNode["Scene"].asString();
if(!resultNode["DataSetVersion"].isNull())
result_.dataSetVersion = resultNode["DataSetVersion"].asString();
if(!resultNode["CommodityCode"].isNull())
result_.commodityCode = resultNode["CommodityCode"].asString();
if(!resultNode["LockMode"].isNull())
result_.lockMode = resultNode["LockMode"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ModifyInstanceResult::getMessage()const
{
return message_;
}
std::string ModifyInstanceResult::getCode()const
{
return code_;
}
ModifyInstanceResult::Result ModifyInstanceResult::getResult()const
{
return result_;
}

View File

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

View File

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

View File

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

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