IOT SDK Auto Released By cheyun.lxf,Version:1.27.9

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-10-13 15:03:41 +08:00
parent 1a86503742
commit a2308b2c95
9 changed files with 4 additions and 284 deletions

View File

@@ -47,8 +47,6 @@ set(iot_public_header_model
include/alibabacloud/iot/model/GetThingTopoResult.h
include/alibabacloud/iot/model/QueryPageByApplyIdRequest.h
include/alibabacloud/iot/model/QueryPageByApplyIdResult.h
include/alibabacloud/iot/model/ForceSetDeviceGroupTagRequest.h
include/alibabacloud/iot/model/ForceSetDeviceGroupTagResult.h
include/alibabacloud/iot/model/CreateTopicRouteTableRequest.h
include/alibabacloud/iot/model/CreateTopicRouteTableResult.h
include/alibabacloud/iot/model/CreateProductRequest.h
@@ -186,8 +184,6 @@ set(iot_src
src/model/GetThingTopoResult.cc
src/model/QueryPageByApplyIdRequest.cc
src/model/QueryPageByApplyIdResult.cc
src/model/ForceSetDeviceGroupTagRequest.cc
src/model/ForceSetDeviceGroupTagResult.cc
src/model/CreateTopicRouteTableRequest.cc
src/model/CreateTopicRouteTableResult.cc
src/model/CreateProductRequest.cc

View File

@@ -48,8 +48,6 @@
#include "model/GetThingTopoResult.h"
#include "model/QueryPageByApplyIdRequest.h"
#include "model/QueryPageByApplyIdResult.h"
#include "model/ForceSetDeviceGroupTagRequest.h"
#include "model/ForceSetDeviceGroupTagResult.h"
#include "model/CreateTopicRouteTableRequest.h"
#include "model/CreateTopicRouteTableResult.h"
#include "model/CreateProductRequest.h"
@@ -206,9 +204,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryPageByApplyIdResult> QueryPageByApplyIdOutcome;
typedef std::future<QueryPageByApplyIdOutcome> QueryPageByApplyIdOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryPageByApplyIdRequest&, const QueryPageByApplyIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPageByApplyIdAsyncHandler;
typedef Outcome<Error, Model::ForceSetDeviceGroupTagResult> ForceSetDeviceGroupTagOutcome;
typedef std::future<ForceSetDeviceGroupTagOutcome> ForceSetDeviceGroupTagOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ForceSetDeviceGroupTagRequest&, const ForceSetDeviceGroupTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ForceSetDeviceGroupTagAsyncHandler;
typedef Outcome<Error, Model::CreateTopicRouteTableResult> CreateTopicRouteTableOutcome;
typedef std::future<CreateTopicRouteTableOutcome> CreateTopicRouteTableOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateTopicRouteTableRequest&, const CreateTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTopicRouteTableAsyncHandler;
@@ -415,9 +410,6 @@ namespace AlibabaCloud
QueryPageByApplyIdOutcome queryPageByApplyId(const Model::QueryPageByApplyIdRequest &request)const;
void queryPageByApplyIdAsync(const Model::QueryPageByApplyIdRequest& request, const QueryPageByApplyIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryPageByApplyIdOutcomeCallable queryPageByApplyIdCallable(const Model::QueryPageByApplyIdRequest& request) const;
ForceSetDeviceGroupTagOutcome forceSetDeviceGroupTag(const Model::ForceSetDeviceGroupTagRequest &request)const;
void forceSetDeviceGroupTagAsync(const Model::ForceSetDeviceGroupTagRequest& request, const ForceSetDeviceGroupTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ForceSetDeviceGroupTagOutcomeCallable forceSetDeviceGroupTagCallable(const Model::ForceSetDeviceGroupTagRequest& request) const;
CreateTopicRouteTableOutcome createTopicRouteTable(const Model::CreateTopicRouteTableRequest &request)const;
void createTopicRouteTableAsync(const Model::CreateTopicRouteTableRequest& request, const CreateTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateTopicRouteTableOutcomeCallable createTopicRouteTableCallable(const Model::CreateTopicRouteTableRequest& request) const;

View File

@@ -1,54 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_FORCESETDEVICEGROUPTAGREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_FORCESETDEVICEGROUPTAGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT ForceSetDeviceGroupTagRequest : public RpcServiceRequest
{
public:
ForceSetDeviceGroupTagRequest();
~ForceSetDeviceGroupTagRequest();
std::string getTagString()const;
void setTagString(const std::string& tagString);
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string tagString_;
std::string groupId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_FORCESETDEVICEGROUPTAGREQUEST_H_

View File

@@ -1,55 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_FORCESETDEVICEGROUPTAGRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_FORCESETDEVICEGROUPTAGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/iot/IotExport.h>
namespace AlibabaCloud
{
namespace Iot
{
namespace Model
{
class ALIBABACLOUD_IOT_EXPORT ForceSetDeviceGroupTagResult : public ServiceResult
{
public:
ForceSetDeviceGroupTagResult();
explicit ForceSetDeviceGroupTagResult(const std::string &payload);
~ForceSetDeviceGroupTagResult();
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_FORCESETDEVICEGROUPTAGRESULT_H_

View File

@@ -519,42 +519,6 @@ IotClient::QueryPageByApplyIdOutcomeCallable IotClient::queryPageByApplyIdCallab
return task->get_future();
}
IotClient::ForceSetDeviceGroupTagOutcome IotClient::forceSetDeviceGroupTag(const ForceSetDeviceGroupTagRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ForceSetDeviceGroupTagOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ForceSetDeviceGroupTagOutcome(ForceSetDeviceGroupTagResult(outcome.result()));
else
return ForceSetDeviceGroupTagOutcome(outcome.error());
}
void IotClient::forceSetDeviceGroupTagAsync(const ForceSetDeviceGroupTagRequest& request, const ForceSetDeviceGroupTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, forceSetDeviceGroupTag(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::ForceSetDeviceGroupTagOutcomeCallable IotClient::forceSetDeviceGroupTagCallable(const ForceSetDeviceGroupTagRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ForceSetDeviceGroupTagOutcome()>>(
[this, request]()
{
return this->forceSetDeviceGroupTag(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::CreateTopicRouteTableOutcome IotClient::createTopicRouteTable(const CreateTopicRouteTableRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/ForceSetDeviceGroupTagRequest.h>
using AlibabaCloud::Iot::Model::ForceSetDeviceGroupTagRequest;
ForceSetDeviceGroupTagRequest::ForceSetDeviceGroupTagRequest() :
RpcServiceRequest("iot", "2018-01-20", "ForceSetDeviceGroupTag")
{}
ForceSetDeviceGroupTagRequest::~ForceSetDeviceGroupTagRequest()
{}
std::string ForceSetDeviceGroupTagRequest::getTagString()const
{
return tagString_;
}
void ForceSetDeviceGroupTagRequest::setTagString(const std::string& tagString)
{
tagString_ = tagString;
setParameter("TagString", tagString);
}
std::string ForceSetDeviceGroupTagRequest::getGroupId()const
{
return groupId_;
}
void ForceSetDeviceGroupTagRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string ForceSetDeviceGroupTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ForceSetDeviceGroupTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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