Iot_20180120 Old sdk.
This commit is contained in:
@@ -145,6 +145,8 @@ set(iot_public_header_model
|
|||||||
include/alibabacloud/iot/model/CreateDeviceGroupResult.h
|
include/alibabacloud/iot/model/CreateDeviceGroupResult.h
|
||||||
include/alibabacloud/iot/model/CreateDeviceTunnelRequest.h
|
include/alibabacloud/iot/model/CreateDeviceTunnelRequest.h
|
||||||
include/alibabacloud/iot/model/CreateDeviceTunnelResult.h
|
include/alibabacloud/iot/model/CreateDeviceTunnelResult.h
|
||||||
|
include/alibabacloud/iot/model/CreateDownloadDataJobRequest.h
|
||||||
|
include/alibabacloud/iot/model/CreateDownloadDataJobResult.h
|
||||||
include/alibabacloud/iot/model/CreateEdgeDriverRequest.h
|
include/alibabacloud/iot/model/CreateEdgeDriverRequest.h
|
||||||
include/alibabacloud/iot/model/CreateEdgeDriverResult.h
|
include/alibabacloud/iot/model/CreateEdgeDriverResult.h
|
||||||
include/alibabacloud/iot/model/CreateEdgeDriverVersionRequest.h
|
include/alibabacloud/iot/model/CreateEdgeDriverVersionRequest.h
|
||||||
@@ -323,6 +325,8 @@ set(iot_public_header_model
|
|||||||
include/alibabacloud/iot/model/GetDeviceTunnelShareStatusResult.h
|
include/alibabacloud/iot/model/GetDeviceTunnelShareStatusResult.h
|
||||||
include/alibabacloud/iot/model/GetDeviceTunnelStatusRequest.h
|
include/alibabacloud/iot/model/GetDeviceTunnelStatusRequest.h
|
||||||
include/alibabacloud/iot/model/GetDeviceTunnelStatusResult.h
|
include/alibabacloud/iot/model/GetDeviceTunnelStatusResult.h
|
||||||
|
include/alibabacloud/iot/model/GetDownloadFileRequest.h
|
||||||
|
include/alibabacloud/iot/model/GetDownloadFileResult.h
|
||||||
include/alibabacloud/iot/model/GetEdgeDriverVersionRequest.h
|
include/alibabacloud/iot/model/GetEdgeDriverVersionRequest.h
|
||||||
include/alibabacloud/iot/model/GetEdgeDriverVersionResult.h
|
include/alibabacloud/iot/model/GetEdgeDriverVersionResult.h
|
||||||
include/alibabacloud/iot/model/GetEdgeInstanceRequest.h
|
include/alibabacloud/iot/model/GetEdgeInstanceRequest.h
|
||||||
@@ -521,6 +525,8 @@ set(iot_public_header_model
|
|||||||
include/alibabacloud/iot/model/QueryDeviceSpeechResult.h
|
include/alibabacloud/iot/model/QueryDeviceSpeechResult.h
|
||||||
include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h
|
include/alibabacloud/iot/model/QueryDeviceStatisticsRequest.h
|
||||||
include/alibabacloud/iot/model/QueryDeviceStatisticsResult.h
|
include/alibabacloud/iot/model/QueryDeviceStatisticsResult.h
|
||||||
|
include/alibabacloud/iot/model/QueryDeviceSubTopicRequest.h
|
||||||
|
include/alibabacloud/iot/model/QueryDeviceSubTopicResult.h
|
||||||
include/alibabacloud/iot/model/QueryDeviceTunnelRequest.h
|
include/alibabacloud/iot/model/QueryDeviceTunnelRequest.h
|
||||||
include/alibabacloud/iot/model/QueryDeviceTunnelResult.h
|
include/alibabacloud/iot/model/QueryDeviceTunnelResult.h
|
||||||
include/alibabacloud/iot/model/QueryDynamicGroupDevicesRequest.h
|
include/alibabacloud/iot/model/QueryDynamicGroupDevicesRequest.h
|
||||||
@@ -892,6 +898,8 @@ set(iot_src
|
|||||||
src/model/CreateDeviceGroupResult.cc
|
src/model/CreateDeviceGroupResult.cc
|
||||||
src/model/CreateDeviceTunnelRequest.cc
|
src/model/CreateDeviceTunnelRequest.cc
|
||||||
src/model/CreateDeviceTunnelResult.cc
|
src/model/CreateDeviceTunnelResult.cc
|
||||||
|
src/model/CreateDownloadDataJobRequest.cc
|
||||||
|
src/model/CreateDownloadDataJobResult.cc
|
||||||
src/model/CreateEdgeDriverRequest.cc
|
src/model/CreateEdgeDriverRequest.cc
|
||||||
src/model/CreateEdgeDriverResult.cc
|
src/model/CreateEdgeDriverResult.cc
|
||||||
src/model/CreateEdgeDriverVersionRequest.cc
|
src/model/CreateEdgeDriverVersionRequest.cc
|
||||||
@@ -1070,6 +1078,8 @@ set(iot_src
|
|||||||
src/model/GetDeviceTunnelShareStatusResult.cc
|
src/model/GetDeviceTunnelShareStatusResult.cc
|
||||||
src/model/GetDeviceTunnelStatusRequest.cc
|
src/model/GetDeviceTunnelStatusRequest.cc
|
||||||
src/model/GetDeviceTunnelStatusResult.cc
|
src/model/GetDeviceTunnelStatusResult.cc
|
||||||
|
src/model/GetDownloadFileRequest.cc
|
||||||
|
src/model/GetDownloadFileResult.cc
|
||||||
src/model/GetEdgeDriverVersionRequest.cc
|
src/model/GetEdgeDriverVersionRequest.cc
|
||||||
src/model/GetEdgeDriverVersionResult.cc
|
src/model/GetEdgeDriverVersionResult.cc
|
||||||
src/model/GetEdgeInstanceRequest.cc
|
src/model/GetEdgeInstanceRequest.cc
|
||||||
@@ -1268,6 +1278,8 @@ set(iot_src
|
|||||||
src/model/QueryDeviceSpeechResult.cc
|
src/model/QueryDeviceSpeechResult.cc
|
||||||
src/model/QueryDeviceStatisticsRequest.cc
|
src/model/QueryDeviceStatisticsRequest.cc
|
||||||
src/model/QueryDeviceStatisticsResult.cc
|
src/model/QueryDeviceStatisticsResult.cc
|
||||||
|
src/model/QueryDeviceSubTopicRequest.cc
|
||||||
|
src/model/QueryDeviceSubTopicResult.cc
|
||||||
src/model/QueryDeviceTunnelRequest.cc
|
src/model/QueryDeviceTunnelRequest.cc
|
||||||
src/model/QueryDeviceTunnelResult.cc
|
src/model/QueryDeviceTunnelResult.cc
|
||||||
src/model/QueryDynamicGroupDevicesRequest.cc
|
src/model/QueryDynamicGroupDevicesRequest.cc
|
||||||
|
|||||||
@@ -146,6 +146,8 @@
|
|||||||
#include "model/CreateDeviceGroupResult.h"
|
#include "model/CreateDeviceGroupResult.h"
|
||||||
#include "model/CreateDeviceTunnelRequest.h"
|
#include "model/CreateDeviceTunnelRequest.h"
|
||||||
#include "model/CreateDeviceTunnelResult.h"
|
#include "model/CreateDeviceTunnelResult.h"
|
||||||
|
#include "model/CreateDownloadDataJobRequest.h"
|
||||||
|
#include "model/CreateDownloadDataJobResult.h"
|
||||||
#include "model/CreateEdgeDriverRequest.h"
|
#include "model/CreateEdgeDriverRequest.h"
|
||||||
#include "model/CreateEdgeDriverResult.h"
|
#include "model/CreateEdgeDriverResult.h"
|
||||||
#include "model/CreateEdgeDriverVersionRequest.h"
|
#include "model/CreateEdgeDriverVersionRequest.h"
|
||||||
@@ -324,6 +326,8 @@
|
|||||||
#include "model/GetDeviceTunnelShareStatusResult.h"
|
#include "model/GetDeviceTunnelShareStatusResult.h"
|
||||||
#include "model/GetDeviceTunnelStatusRequest.h"
|
#include "model/GetDeviceTunnelStatusRequest.h"
|
||||||
#include "model/GetDeviceTunnelStatusResult.h"
|
#include "model/GetDeviceTunnelStatusResult.h"
|
||||||
|
#include "model/GetDownloadFileRequest.h"
|
||||||
|
#include "model/GetDownloadFileResult.h"
|
||||||
#include "model/GetEdgeDriverVersionRequest.h"
|
#include "model/GetEdgeDriverVersionRequest.h"
|
||||||
#include "model/GetEdgeDriverVersionResult.h"
|
#include "model/GetEdgeDriverVersionResult.h"
|
||||||
#include "model/GetEdgeInstanceRequest.h"
|
#include "model/GetEdgeInstanceRequest.h"
|
||||||
@@ -522,6 +526,8 @@
|
|||||||
#include "model/QueryDeviceSpeechResult.h"
|
#include "model/QueryDeviceSpeechResult.h"
|
||||||
#include "model/QueryDeviceStatisticsRequest.h"
|
#include "model/QueryDeviceStatisticsRequest.h"
|
||||||
#include "model/QueryDeviceStatisticsResult.h"
|
#include "model/QueryDeviceStatisticsResult.h"
|
||||||
|
#include "model/QueryDeviceSubTopicRequest.h"
|
||||||
|
#include "model/QueryDeviceSubTopicResult.h"
|
||||||
#include "model/QueryDeviceTunnelRequest.h"
|
#include "model/QueryDeviceTunnelRequest.h"
|
||||||
#include "model/QueryDeviceTunnelResult.h"
|
#include "model/QueryDeviceTunnelResult.h"
|
||||||
#include "model/QueryDynamicGroupDevicesRequest.h"
|
#include "model/QueryDynamicGroupDevicesRequest.h"
|
||||||
@@ -961,6 +967,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::CreateDeviceTunnelResult> CreateDeviceTunnelOutcome;
|
typedef Outcome<Error, Model::CreateDeviceTunnelResult> CreateDeviceTunnelOutcome;
|
||||||
typedef std::future<CreateDeviceTunnelOutcome> CreateDeviceTunnelOutcomeCallable;
|
typedef std::future<CreateDeviceTunnelOutcome> CreateDeviceTunnelOutcomeCallable;
|
||||||
typedef std::function<void(const IotClient*, const Model::CreateDeviceTunnelRequest&, const CreateDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceTunnelAsyncHandler;
|
typedef std::function<void(const IotClient*, const Model::CreateDeviceTunnelRequest&, const CreateDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceTunnelAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateDownloadDataJobResult> CreateDownloadDataJobOutcome;
|
||||||
|
typedef std::future<CreateDownloadDataJobOutcome> CreateDownloadDataJobOutcomeCallable;
|
||||||
|
typedef std::function<void(const IotClient*, const Model::CreateDownloadDataJobRequest&, const CreateDownloadDataJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDownloadDataJobAsyncHandler;
|
||||||
typedef Outcome<Error, Model::CreateEdgeDriverResult> CreateEdgeDriverOutcome;
|
typedef Outcome<Error, Model::CreateEdgeDriverResult> CreateEdgeDriverOutcome;
|
||||||
typedef std::future<CreateEdgeDriverOutcome> CreateEdgeDriverOutcomeCallable;
|
typedef std::future<CreateEdgeDriverOutcome> CreateEdgeDriverOutcomeCallable;
|
||||||
typedef std::function<void(const IotClient*, const Model::CreateEdgeDriverRequest&, const CreateEdgeDriverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEdgeDriverAsyncHandler;
|
typedef std::function<void(const IotClient*, const Model::CreateEdgeDriverRequest&, const CreateEdgeDriverOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateEdgeDriverAsyncHandler;
|
||||||
@@ -1228,6 +1237,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetDeviceTunnelStatusResult> GetDeviceTunnelStatusOutcome;
|
typedef Outcome<Error, Model::GetDeviceTunnelStatusResult> GetDeviceTunnelStatusOutcome;
|
||||||
typedef std::future<GetDeviceTunnelStatusOutcome> GetDeviceTunnelStatusOutcomeCallable;
|
typedef std::future<GetDeviceTunnelStatusOutcome> GetDeviceTunnelStatusOutcomeCallable;
|
||||||
typedef std::function<void(const IotClient*, const Model::GetDeviceTunnelStatusRequest&, const GetDeviceTunnelStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceTunnelStatusAsyncHandler;
|
typedef std::function<void(const IotClient*, const Model::GetDeviceTunnelStatusRequest&, const GetDeviceTunnelStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDeviceTunnelStatusAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetDownloadFileResult> GetDownloadFileOutcome;
|
||||||
|
typedef std::future<GetDownloadFileOutcome> GetDownloadFileOutcomeCallable;
|
||||||
|
typedef std::function<void(const IotClient*, const Model::GetDownloadFileRequest&, const GetDownloadFileOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDownloadFileAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetEdgeDriverVersionResult> GetEdgeDriverVersionOutcome;
|
typedef Outcome<Error, Model::GetEdgeDriverVersionResult> GetEdgeDriverVersionOutcome;
|
||||||
typedef std::future<GetEdgeDriverVersionOutcome> GetEdgeDriverVersionOutcomeCallable;
|
typedef std::future<GetEdgeDriverVersionOutcome> GetEdgeDriverVersionOutcomeCallable;
|
||||||
typedef std::function<void(const IotClient*, const Model::GetEdgeDriverVersionRequest&, const GetEdgeDriverVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEdgeDriverVersionAsyncHandler;
|
typedef std::function<void(const IotClient*, const Model::GetEdgeDriverVersionRequest&, const GetEdgeDriverVersionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetEdgeDriverVersionAsyncHandler;
|
||||||
@@ -1525,6 +1537,9 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::QueryDeviceStatisticsResult> QueryDeviceStatisticsOutcome;
|
typedef Outcome<Error, Model::QueryDeviceStatisticsResult> QueryDeviceStatisticsOutcome;
|
||||||
typedef std::future<QueryDeviceStatisticsOutcome> QueryDeviceStatisticsOutcomeCallable;
|
typedef std::future<QueryDeviceStatisticsOutcome> QueryDeviceStatisticsOutcomeCallable;
|
||||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceStatisticsRequest&, const QueryDeviceStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceStatisticsAsyncHandler;
|
typedef std::function<void(const IotClient*, const Model::QueryDeviceStatisticsRequest&, const QueryDeviceStatisticsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceStatisticsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::QueryDeviceSubTopicResult> QueryDeviceSubTopicOutcome;
|
||||||
|
typedef std::future<QueryDeviceSubTopicOutcome> QueryDeviceSubTopicOutcomeCallable;
|
||||||
|
typedef std::function<void(const IotClient*, const Model::QueryDeviceSubTopicRequest&, const QueryDeviceSubTopicOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceSubTopicAsyncHandler;
|
||||||
typedef Outcome<Error, Model::QueryDeviceTunnelResult> QueryDeviceTunnelOutcome;
|
typedef Outcome<Error, Model::QueryDeviceTunnelResult> QueryDeviceTunnelOutcome;
|
||||||
typedef std::future<QueryDeviceTunnelOutcome> QueryDeviceTunnelOutcomeCallable;
|
typedef std::future<QueryDeviceTunnelOutcome> QueryDeviceTunnelOutcomeCallable;
|
||||||
typedef std::function<void(const IotClient*, const Model::QueryDeviceTunnelRequest&, const QueryDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceTunnelAsyncHandler;
|
typedef std::function<void(const IotClient*, const Model::QueryDeviceTunnelRequest&, const QueryDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceTunnelAsyncHandler;
|
||||||
@@ -2082,6 +2097,9 @@ namespace AlibabaCloud
|
|||||||
CreateDeviceTunnelOutcome createDeviceTunnel(const Model::CreateDeviceTunnelRequest &request)const;
|
CreateDeviceTunnelOutcome createDeviceTunnel(const Model::CreateDeviceTunnelRequest &request)const;
|
||||||
void createDeviceTunnelAsync(const Model::CreateDeviceTunnelRequest& request, const CreateDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createDeviceTunnelAsync(const Model::CreateDeviceTunnelRequest& request, const CreateDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateDeviceTunnelOutcomeCallable createDeviceTunnelCallable(const Model::CreateDeviceTunnelRequest& request) const;
|
CreateDeviceTunnelOutcomeCallable createDeviceTunnelCallable(const Model::CreateDeviceTunnelRequest& request) const;
|
||||||
|
CreateDownloadDataJobOutcome createDownloadDataJob(const Model::CreateDownloadDataJobRequest &request)const;
|
||||||
|
void createDownloadDataJobAsync(const Model::CreateDownloadDataJobRequest& request, const CreateDownloadDataJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateDownloadDataJobOutcomeCallable createDownloadDataJobCallable(const Model::CreateDownloadDataJobRequest& request) const;
|
||||||
CreateEdgeDriverOutcome createEdgeDriver(const Model::CreateEdgeDriverRequest &request)const;
|
CreateEdgeDriverOutcome createEdgeDriver(const Model::CreateEdgeDriverRequest &request)const;
|
||||||
void createEdgeDriverAsync(const Model::CreateEdgeDriverRequest& request, const CreateEdgeDriverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createEdgeDriverAsync(const Model::CreateEdgeDriverRequest& request, const CreateEdgeDriverAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateEdgeDriverOutcomeCallable createEdgeDriverCallable(const Model::CreateEdgeDriverRequest& request) const;
|
CreateEdgeDriverOutcomeCallable createEdgeDriverCallable(const Model::CreateEdgeDriverRequest& request) const;
|
||||||
@@ -2349,6 +2367,9 @@ namespace AlibabaCloud
|
|||||||
GetDeviceTunnelStatusOutcome getDeviceTunnelStatus(const Model::GetDeviceTunnelStatusRequest &request)const;
|
GetDeviceTunnelStatusOutcome getDeviceTunnelStatus(const Model::GetDeviceTunnelStatusRequest &request)const;
|
||||||
void getDeviceTunnelStatusAsync(const Model::GetDeviceTunnelStatusRequest& request, const GetDeviceTunnelStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getDeviceTunnelStatusAsync(const Model::GetDeviceTunnelStatusRequest& request, const GetDeviceTunnelStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetDeviceTunnelStatusOutcomeCallable getDeviceTunnelStatusCallable(const Model::GetDeviceTunnelStatusRequest& request) const;
|
GetDeviceTunnelStatusOutcomeCallable getDeviceTunnelStatusCallable(const Model::GetDeviceTunnelStatusRequest& request) const;
|
||||||
|
GetDownloadFileOutcome getDownloadFile(const Model::GetDownloadFileRequest &request)const;
|
||||||
|
void getDownloadFileAsync(const Model::GetDownloadFileRequest& request, const GetDownloadFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetDownloadFileOutcomeCallable getDownloadFileCallable(const Model::GetDownloadFileRequest& request) const;
|
||||||
GetEdgeDriverVersionOutcome getEdgeDriverVersion(const Model::GetEdgeDriverVersionRequest &request)const;
|
GetEdgeDriverVersionOutcome getEdgeDriverVersion(const Model::GetEdgeDriverVersionRequest &request)const;
|
||||||
void getEdgeDriverVersionAsync(const Model::GetEdgeDriverVersionRequest& request, const GetEdgeDriverVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getEdgeDriverVersionAsync(const Model::GetEdgeDriverVersionRequest& request, const GetEdgeDriverVersionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetEdgeDriverVersionOutcomeCallable getEdgeDriverVersionCallable(const Model::GetEdgeDriverVersionRequest& request) const;
|
GetEdgeDriverVersionOutcomeCallable getEdgeDriverVersionCallable(const Model::GetEdgeDriverVersionRequest& request) const;
|
||||||
@@ -2646,6 +2667,9 @@ namespace AlibabaCloud
|
|||||||
QueryDeviceStatisticsOutcome queryDeviceStatistics(const Model::QueryDeviceStatisticsRequest &request)const;
|
QueryDeviceStatisticsOutcome queryDeviceStatistics(const Model::QueryDeviceStatisticsRequest &request)const;
|
||||||
void queryDeviceStatisticsAsync(const Model::QueryDeviceStatisticsRequest& request, const QueryDeviceStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryDeviceStatisticsAsync(const Model::QueryDeviceStatisticsRequest& request, const QueryDeviceStatisticsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QueryDeviceStatisticsOutcomeCallable queryDeviceStatisticsCallable(const Model::QueryDeviceStatisticsRequest& request) const;
|
QueryDeviceStatisticsOutcomeCallable queryDeviceStatisticsCallable(const Model::QueryDeviceStatisticsRequest& request) const;
|
||||||
|
QueryDeviceSubTopicOutcome queryDeviceSubTopic(const Model::QueryDeviceSubTopicRequest &request)const;
|
||||||
|
void queryDeviceSubTopicAsync(const Model::QueryDeviceSubTopicRequest& request, const QueryDeviceSubTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
QueryDeviceSubTopicOutcomeCallable queryDeviceSubTopicCallable(const Model::QueryDeviceSubTopicRequest& request) const;
|
||||||
QueryDeviceTunnelOutcome queryDeviceTunnel(const Model::QueryDeviceTunnelRequest &request)const;
|
QueryDeviceTunnelOutcome queryDeviceTunnel(const Model::QueryDeviceTunnelRequest &request)const;
|
||||||
void queryDeviceTunnelAsync(const Model::QueryDeviceTunnelRequest& request, const QueryDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void queryDeviceTunnelAsync(const Model::QueryDeviceTunnelRequest& request, const QueryDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
QueryDeviceTunnelOutcomeCallable queryDeviceTunnelCallable(const Model::QueryDeviceTunnelRequest& request) const;
|
QueryDeviceTunnelOutcomeCallable queryDeviceTunnelCallable(const Model::QueryDeviceTunnelRequest& request) const;
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBREQUEST_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 CreateDownloadDataJobRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
CreateDownloadDataJobRequest();
|
||||||
|
~CreateDownloadDataJobRequest();
|
||||||
|
|
||||||
|
long getStartTime()const;
|
||||||
|
void setStartTime(long startTime);
|
||||||
|
std::string getFileConfig()const;
|
||||||
|
void setFileConfig(const std::string& fileConfig);
|
||||||
|
std::string getIotInstanceId()const;
|
||||||
|
void setIotInstanceId(const std::string& iotInstanceId);
|
||||||
|
std::string getContext()const;
|
||||||
|
void setContext(const std::string& context);
|
||||||
|
std::string getTableName()const;
|
||||||
|
void setTableName(const std::string& tableName);
|
||||||
|
long getEndTime()const;
|
||||||
|
void setEndTime(long endTime);
|
||||||
|
std::string getDownloadDataType()const;
|
||||||
|
void setDownloadDataType(const std::string& downloadDataType);
|
||||||
|
std::string getApiProduct()const;
|
||||||
|
void setApiProduct(const std::string& apiProduct);
|
||||||
|
std::string getApiRevision()const;
|
||||||
|
void setApiRevision(const std::string& apiRevision);
|
||||||
|
|
||||||
|
private:
|
||||||
|
long startTime_;
|
||||||
|
std::string fileConfig_;
|
||||||
|
std::string iotInstanceId_;
|
||||||
|
std::string context_;
|
||||||
|
std::string tableName_;
|
||||||
|
long endTime_;
|
||||||
|
std::string downloadDataType_;
|
||||||
|
std::string apiProduct_;
|
||||||
|
std::string apiRevision_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBREQUEST_H_
|
||||||
105
iot/include/alibabacloud/iot/model/CreateDownloadDataJobResult.h
Normal file
105
iot/include/alibabacloud/iot/model/CreateDownloadDataJobResult.h
Normal file
@@ -0,0 +1,105 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_CREATEDOWNLOADDATAJOBRESULT_H_
|
||||||
|
#define ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBRESULT_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 CreateDownloadDataJobResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct QuerySetting
|
||||||
|
{
|
||||||
|
struct SelectedHeadersItem
|
||||||
|
{
|
||||||
|
std::string geoClass;
|
||||||
|
std::string dimDateClass;
|
||||||
|
std::string alias;
|
||||||
|
std::string timeClass;
|
||||||
|
std::string fieldName;
|
||||||
|
std::string fieldType;
|
||||||
|
};
|
||||||
|
struct AstExprItem
|
||||||
|
{
|
||||||
|
std::string expr;
|
||||||
|
std::string exprType;
|
||||||
|
};
|
||||||
|
std::vector<AstExprItem> astExpr;
|
||||||
|
std::vector<SelectedHeadersItem> selectedHeaders;
|
||||||
|
};
|
||||||
|
struct HeaderItem
|
||||||
|
{
|
||||||
|
std::string geoClass;
|
||||||
|
std::string dimDateClass;
|
||||||
|
std::string alias;
|
||||||
|
std::string typeClass;
|
||||||
|
std::string timeClass;
|
||||||
|
std::string dataPrecision;
|
||||||
|
std::string fieldName;
|
||||||
|
std::string fieldType;
|
||||||
|
};
|
||||||
|
int status;
|
||||||
|
bool asyncExecute;
|
||||||
|
long endTime;
|
||||||
|
int pageSize;
|
||||||
|
std::string csvUrl;
|
||||||
|
long beginTime;
|
||||||
|
std::string csvFileName;
|
||||||
|
std::string datasetId;
|
||||||
|
long totalCount;
|
||||||
|
std::vector<HeaderItem> header;
|
||||||
|
std::string longJobId;
|
||||||
|
std::string resultDataInString;
|
||||||
|
int pageNo;
|
||||||
|
QuerySetting querySetting;
|
||||||
|
int previewSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CreateDownloadDataJobResult();
|
||||||
|
explicit CreateDownloadDataJobResult(const std::string &payload);
|
||||||
|
~CreateDownloadDataJobResult();
|
||||||
|
Data getData()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
Data data_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDOWNLOADDATAJOBRESULT_H_
|
||||||
60
iot/include/alibabacloud/iot/model/GetDownloadFileRequest.h
Normal file
60
iot/include/alibabacloud/iot/model/GetDownloadFileRequest.h
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_GETDOWNLOADFILEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILEREQUEST_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 GetDownloadFileRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
GetDownloadFileRequest();
|
||||||
|
~GetDownloadFileRequest();
|
||||||
|
|
||||||
|
std::string getIotInstanceId()const;
|
||||||
|
void setIotInstanceId(const std::string& iotInstanceId);
|
||||||
|
std::string getContext()const;
|
||||||
|
void setContext(const std::string& context);
|
||||||
|
std::string getLongJobId()const;
|
||||||
|
void setLongJobId(const std::string& longJobId);
|
||||||
|
std::string getApiProduct()const;
|
||||||
|
void setApiProduct(const std::string& apiProduct);
|
||||||
|
std::string getApiRevision()const;
|
||||||
|
void setApiRevision(const std::string& apiRevision);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string iotInstanceId_;
|
||||||
|
std::string context_;
|
||||||
|
std::string longJobId_;
|
||||||
|
std::string apiProduct_;
|
||||||
|
std::string apiRevision_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILEREQUEST_H_
|
||||||
106
iot/include/alibabacloud/iot/model/GetDownloadFileResult.h
Normal file
106
iot/include/alibabacloud/iot/model/GetDownloadFileResult.h
Normal file
@@ -0,0 +1,106 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_GETDOWNLOADFILERESULT_H_
|
||||||
|
#define ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILERESULT_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 GetDownloadFileResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Data
|
||||||
|
{
|
||||||
|
struct QuerySetting
|
||||||
|
{
|
||||||
|
struct SelectedHeadersItem
|
||||||
|
{
|
||||||
|
std::string geoClass;
|
||||||
|
std::string dimDateClass;
|
||||||
|
std::string alias;
|
||||||
|
std::string timeClass;
|
||||||
|
std::string fieldName;
|
||||||
|
std::string fieldType;
|
||||||
|
};
|
||||||
|
struct AstExprItem
|
||||||
|
{
|
||||||
|
std::string expr;
|
||||||
|
std::string exprType;
|
||||||
|
};
|
||||||
|
std::vector<AstExprItem> astExpr;
|
||||||
|
std::vector<SelectedHeadersItem> selectedHeaders;
|
||||||
|
};
|
||||||
|
struct HeaderItem
|
||||||
|
{
|
||||||
|
std::string geoClass;
|
||||||
|
std::string dimDateClass;
|
||||||
|
std::string alias;
|
||||||
|
std::string typeClass;
|
||||||
|
std::string timeClass;
|
||||||
|
std::string fieldName;
|
||||||
|
std::string fieldType;
|
||||||
|
};
|
||||||
|
int status;
|
||||||
|
bool asyncExecute;
|
||||||
|
long endTime;
|
||||||
|
int pageSize;
|
||||||
|
std::string csvUrl;
|
||||||
|
long beginTime;
|
||||||
|
std::string csvUrl1;
|
||||||
|
std::string csvFileName;
|
||||||
|
std::string datasetId;
|
||||||
|
std::vector<std::string> result;
|
||||||
|
long totalCount;
|
||||||
|
std::vector<HeaderItem> header;
|
||||||
|
std::string longJobId;
|
||||||
|
std::string resultDataInString;
|
||||||
|
int pageNo;
|
||||||
|
QuerySetting querySetting;
|
||||||
|
int previewSize;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetDownloadFileResult();
|
||||||
|
explicit GetDownloadFileResult(const std::string &payload);
|
||||||
|
~GetDownloadFileResult();
|
||||||
|
Data getData()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
Data data_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IOT_MODEL_GETDOWNLOADFILERESULT_H_
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUERYDEVICESUBTOPICREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICREQUEST_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 QueryDeviceSubTopicRequest : public RpcServiceRequest
|
||||||
|
{
|
||||||
|
|
||||||
|
public:
|
||||||
|
QueryDeviceSubTopicRequest();
|
||||||
|
~QueryDeviceSubTopicRequest();
|
||||||
|
|
||||||
|
std::string getIotInstanceId()const;
|
||||||
|
void setIotInstanceId(const std::string& iotInstanceId);
|
||||||
|
std::string getProductKey()const;
|
||||||
|
void setProductKey(const std::string& productKey);
|
||||||
|
std::string getApiProduct()const;
|
||||||
|
void setApiProduct(const std::string& apiProduct);
|
||||||
|
std::string getApiRevision()const;
|
||||||
|
void setApiRevision(const std::string& apiRevision);
|
||||||
|
std::string getDeviceName()const;
|
||||||
|
void setDeviceName(const std::string& deviceName);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string iotInstanceId_;
|
||||||
|
std::string productKey_;
|
||||||
|
std::string apiProduct_;
|
||||||
|
std::string apiRevision_;
|
||||||
|
std::string deviceName_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICREQUEST_H_
|
||||||
@@ -0,0 +1,62 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUERYDEVICESUBTOPICRESULT_H_
|
||||||
|
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICRESULT_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 QueryDeviceSubTopicResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Topic
|
||||||
|
{
|
||||||
|
long timestamp;
|
||||||
|
std::string topicName;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
QueryDeviceSubTopicResult();
|
||||||
|
explicit QueryDeviceSubTopicResult(const std::string &payload);
|
||||||
|
~QueryDeviceSubTopicResult();
|
||||||
|
std::vector<Topic> getTopicList()const;
|
||||||
|
std::string getErrorMessage()const;
|
||||||
|
std::string getCode()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<Topic> topicList_;
|
||||||
|
std::string errorMessage_;
|
||||||
|
std::string code_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESUBTOPICRESULT_H_
|
||||||
@@ -2283,6 +2283,42 @@ IotClient::CreateDeviceTunnelOutcomeCallable IotClient::createDeviceTunnelCallab
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IotClient::CreateDownloadDataJobOutcome IotClient::createDownloadDataJob(const CreateDownloadDataJobRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateDownloadDataJobOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateDownloadDataJobOutcome(CreateDownloadDataJobResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateDownloadDataJobOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void IotClient::createDownloadDataJobAsync(const CreateDownloadDataJobRequest& request, const CreateDownloadDataJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createDownloadDataJob(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
IotClient::CreateDownloadDataJobOutcomeCallable IotClient::createDownloadDataJobCallable(const CreateDownloadDataJobRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateDownloadDataJobOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createDownloadDataJob(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
IotClient::CreateEdgeDriverOutcome IotClient::createEdgeDriver(const CreateEdgeDriverRequest &request) const
|
IotClient::CreateEdgeDriverOutcome IotClient::createEdgeDriver(const CreateEdgeDriverRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -5487,6 +5523,42 @@ IotClient::GetDeviceTunnelStatusOutcomeCallable IotClient::getDeviceTunnelStatus
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IotClient::GetDownloadFileOutcome IotClient::getDownloadFile(const GetDownloadFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetDownloadFileOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetDownloadFileOutcome(GetDownloadFileResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetDownloadFileOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void IotClient::getDownloadFileAsync(const GetDownloadFileRequest& request, const GetDownloadFileAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getDownloadFile(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
IotClient::GetDownloadFileOutcomeCallable IotClient::getDownloadFileCallable(const GetDownloadFileRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetDownloadFileOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getDownloadFile(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
IotClient::GetEdgeDriverVersionOutcome IotClient::getEdgeDriverVersion(const GetEdgeDriverVersionRequest &request) const
|
IotClient::GetEdgeDriverVersionOutcome IotClient::getEdgeDriverVersion(const GetEdgeDriverVersionRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -9051,6 +9123,42 @@ IotClient::QueryDeviceStatisticsOutcomeCallable IotClient::queryDeviceStatistics
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IotClient::QueryDeviceSubTopicOutcome IotClient::queryDeviceSubTopic(const QueryDeviceSubTopicRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return QueryDeviceSubTopicOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return QueryDeviceSubTopicOutcome(QueryDeviceSubTopicResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return QueryDeviceSubTopicOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void IotClient::queryDeviceSubTopicAsync(const QueryDeviceSubTopicRequest& request, const QueryDeviceSubTopicAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, queryDeviceSubTopic(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
IotClient::QueryDeviceSubTopicOutcomeCallable IotClient::queryDeviceSubTopicCallable(const QueryDeviceSubTopicRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<QueryDeviceSubTopicOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->queryDeviceSubTopic(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
IotClient::QueryDeviceTunnelOutcome IotClient::queryDeviceTunnel(const QueryDeviceTunnelRequest &request) const
|
IotClient::QueryDeviceTunnelOutcome IotClient::queryDeviceTunnel(const QueryDeviceTunnelRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
128
iot/src/model/CreateDownloadDataJobRequest.cc
Normal file
128
iot/src/model/CreateDownloadDataJobRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/iot/model/CreateDownloadDataJobRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Iot::Model::CreateDownloadDataJobRequest;
|
||||||
|
|
||||||
|
CreateDownloadDataJobRequest::CreateDownloadDataJobRequest() :
|
||||||
|
RpcServiceRequest("iot", "2018-01-20", "CreateDownloadDataJob")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateDownloadDataJobRequest::~CreateDownloadDataJobRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
long CreateDownloadDataJobRequest::getStartTime()const
|
||||||
|
{
|
||||||
|
return startTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setStartTime(long startTime)
|
||||||
|
{
|
||||||
|
startTime_ = startTime;
|
||||||
|
setParameter("StartTime", std::to_string(startTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getFileConfig()const
|
||||||
|
{
|
||||||
|
return fileConfig_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setFileConfig(const std::string& fileConfig)
|
||||||
|
{
|
||||||
|
fileConfig_ = fileConfig;
|
||||||
|
setParameter("FileConfig", fileConfig);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getIotInstanceId()const
|
||||||
|
{
|
||||||
|
return iotInstanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||||
|
{
|
||||||
|
iotInstanceId_ = iotInstanceId;
|
||||||
|
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getContext()const
|
||||||
|
{
|
||||||
|
return context_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setContext(const std::string& context)
|
||||||
|
{
|
||||||
|
context_ = context;
|
||||||
|
setBodyParameter("Context", context);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getTableName()const
|
||||||
|
{
|
||||||
|
return tableName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setTableName(const std::string& tableName)
|
||||||
|
{
|
||||||
|
tableName_ = tableName;
|
||||||
|
setParameter("TableName", tableName);
|
||||||
|
}
|
||||||
|
|
||||||
|
long CreateDownloadDataJobRequest::getEndTime()const
|
||||||
|
{
|
||||||
|
return endTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setEndTime(long endTime)
|
||||||
|
{
|
||||||
|
endTime_ = endTime;
|
||||||
|
setParameter("EndTime", std::to_string(endTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getDownloadDataType()const
|
||||||
|
{
|
||||||
|
return downloadDataType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setDownloadDataType(const std::string& downloadDataType)
|
||||||
|
{
|
||||||
|
downloadDataType_ = downloadDataType;
|
||||||
|
setParameter("DownloadDataType", downloadDataType);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getApiProduct()const
|
||||||
|
{
|
||||||
|
return apiProduct_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setApiProduct(const std::string& apiProduct)
|
||||||
|
{
|
||||||
|
apiProduct_ = apiProduct;
|
||||||
|
setBodyParameter("ApiProduct", apiProduct);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobRequest::getApiRevision()const
|
||||||
|
{
|
||||||
|
return apiRevision_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobRequest::setApiRevision(const std::string& apiRevision)
|
||||||
|
{
|
||||||
|
apiRevision_ = apiRevision;
|
||||||
|
setBodyParameter("ApiRevision", apiRevision);
|
||||||
|
}
|
||||||
|
|
||||||
148
iot/src/model/CreateDownloadDataJobResult.cc
Normal file
148
iot/src/model/CreateDownloadDataJobResult.cc
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR 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/CreateDownloadDataJobResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Iot;
|
||||||
|
using namespace AlibabaCloud::Iot::Model;
|
||||||
|
|
||||||
|
CreateDownloadDataJobResult::CreateDownloadDataJobResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateDownloadDataJobResult::CreateDownloadDataJobResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateDownloadDataJobResult::~CreateDownloadDataJobResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateDownloadDataJobResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto dataNode = value["Data"];
|
||||||
|
if(!dataNode["PreviewSize"].isNull())
|
||||||
|
data_.previewSize = std::stoi(dataNode["PreviewSize"].asString());
|
||||||
|
if(!dataNode["CsvUrl"].isNull())
|
||||||
|
data_.csvUrl = dataNode["CsvUrl"].asString();
|
||||||
|
if(!dataNode["DatasetId"].isNull())
|
||||||
|
data_.datasetId = dataNode["DatasetId"].asString();
|
||||||
|
if(!dataNode["LongJobId"].isNull())
|
||||||
|
data_.longJobId = dataNode["LongJobId"].asString();
|
||||||
|
if(!dataNode["Status"].isNull())
|
||||||
|
data_.status = std::stoi(dataNode["Status"].asString());
|
||||||
|
if(!dataNode["BeginTime"].isNull())
|
||||||
|
data_.beginTime = std::stol(dataNode["BeginTime"].asString());
|
||||||
|
if(!dataNode["EndTime"].isNull())
|
||||||
|
data_.endTime = std::stol(dataNode["EndTime"].asString());
|
||||||
|
if(!dataNode["ResultDataInString"].isNull())
|
||||||
|
data_.resultDataInString = dataNode["ResultDataInString"].asString();
|
||||||
|
if(!dataNode["AsyncExecute"].isNull())
|
||||||
|
data_.asyncExecute = dataNode["AsyncExecute"].asString() == "true";
|
||||||
|
if(!dataNode["TotalCount"].isNull())
|
||||||
|
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||||
|
if(!dataNode["PageNo"].isNull())
|
||||||
|
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
|
||||||
|
if(!dataNode["PageSize"].isNull())
|
||||||
|
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||||
|
if(!dataNode["CsvFileName"].isNull())
|
||||||
|
data_.csvFileName = dataNode["CsvFileName"].asString();
|
||||||
|
auto allHeaderNode = dataNode["Header"]["HeaderItem"];
|
||||||
|
for (auto dataNodeHeaderHeaderItem : allHeaderNode)
|
||||||
|
{
|
||||||
|
Data::HeaderItem headerItemObject;
|
||||||
|
if(!dataNodeHeaderHeaderItem["FieldName"].isNull())
|
||||||
|
headerItemObject.fieldName = dataNodeHeaderHeaderItem["FieldName"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["Alias"].isNull())
|
||||||
|
headerItemObject.alias = dataNodeHeaderHeaderItem["Alias"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["FieldType"].isNull())
|
||||||
|
headerItemObject.fieldType = dataNodeHeaderHeaderItem["FieldType"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["TypeClass"].isNull())
|
||||||
|
headerItemObject.typeClass = dataNodeHeaderHeaderItem["TypeClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["TimeClass"].isNull())
|
||||||
|
headerItemObject.timeClass = dataNodeHeaderHeaderItem["TimeClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["GeoClass"].isNull())
|
||||||
|
headerItemObject.geoClass = dataNodeHeaderHeaderItem["GeoClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["DimDateClass"].isNull())
|
||||||
|
headerItemObject.dimDateClass = dataNodeHeaderHeaderItem["DimDateClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["DataPrecision"].isNull())
|
||||||
|
headerItemObject.dataPrecision = dataNodeHeaderHeaderItem["DataPrecision"].asString();
|
||||||
|
data_.header.push_back(headerItemObject);
|
||||||
|
}
|
||||||
|
auto querySettingNode = dataNode["QuerySetting"];
|
||||||
|
auto allSelectedHeadersNode = querySettingNode["SelectedHeaders"]["SelectedHeadersItem"];
|
||||||
|
for (auto querySettingNodeSelectedHeadersSelectedHeadersItem : allSelectedHeadersNode)
|
||||||
|
{
|
||||||
|
Data::QuerySetting::SelectedHeadersItem selectedHeadersItemObject;
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["FieldName"].isNull())
|
||||||
|
selectedHeadersItemObject.fieldName = querySettingNodeSelectedHeadersSelectedHeadersItem["FieldName"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["Alias"].isNull())
|
||||||
|
selectedHeadersItemObject.alias = querySettingNodeSelectedHeadersSelectedHeadersItem["Alias"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["FieldType"].isNull())
|
||||||
|
selectedHeadersItemObject.fieldType = querySettingNodeSelectedHeadersSelectedHeadersItem["FieldType"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["TimeClass"].isNull())
|
||||||
|
selectedHeadersItemObject.timeClass = querySettingNodeSelectedHeadersSelectedHeadersItem["TimeClass"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["GeoClass"].isNull())
|
||||||
|
selectedHeadersItemObject.geoClass = querySettingNodeSelectedHeadersSelectedHeadersItem["GeoClass"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["DimDateClass"].isNull())
|
||||||
|
selectedHeadersItemObject.dimDateClass = querySettingNodeSelectedHeadersSelectedHeadersItem["DimDateClass"].asString();
|
||||||
|
data_.querySetting.selectedHeaders.push_back(selectedHeadersItemObject);
|
||||||
|
}
|
||||||
|
auto allAstExprNode = querySettingNode["AstExpr"]["AstExprItem"];
|
||||||
|
for (auto querySettingNodeAstExprAstExprItem : allAstExprNode)
|
||||||
|
{
|
||||||
|
Data::QuerySetting::AstExprItem astExprItemObject;
|
||||||
|
if(!querySettingNodeAstExprAstExprItem["Expr"].isNull())
|
||||||
|
astExprItemObject.expr = querySettingNodeAstExprAstExprItem["Expr"].asString();
|
||||||
|
if(!querySettingNodeAstExprAstExprItem["ExprType"].isNull())
|
||||||
|
astExprItemObject.exprType = querySettingNodeAstExprAstExprItem["ExprType"].asString();
|
||||||
|
data_.querySetting.astExpr.push_back(astExprItemObject);
|
||||||
|
}
|
||||||
|
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();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateDownloadDataJobResult::Data CreateDownloadDataJobResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateDownloadDataJobResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool CreateDownloadDataJobResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
84
iot/src/model/GetDownloadFileRequest.cc
Normal file
84
iot/src/model/GetDownloadFileRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR 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/GetDownloadFileRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Iot::Model::GetDownloadFileRequest;
|
||||||
|
|
||||||
|
GetDownloadFileRequest::GetDownloadFileRequest() :
|
||||||
|
RpcServiceRequest("iot", "2018-01-20", "GetDownloadFile")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetDownloadFileRequest::~GetDownloadFileRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string GetDownloadFileRequest::getIotInstanceId()const
|
||||||
|
{
|
||||||
|
return iotInstanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetDownloadFileRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||||
|
{
|
||||||
|
iotInstanceId_ = iotInstanceId;
|
||||||
|
setBodyParameter("IotInstanceId", iotInstanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetDownloadFileRequest::getContext()const
|
||||||
|
{
|
||||||
|
return context_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetDownloadFileRequest::setContext(const std::string& context)
|
||||||
|
{
|
||||||
|
context_ = context;
|
||||||
|
setBodyParameter("Context", context);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetDownloadFileRequest::getLongJobId()const
|
||||||
|
{
|
||||||
|
return longJobId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetDownloadFileRequest::setLongJobId(const std::string& longJobId)
|
||||||
|
{
|
||||||
|
longJobId_ = longJobId;
|
||||||
|
setParameter("LongJobId", longJobId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetDownloadFileRequest::getApiProduct()const
|
||||||
|
{
|
||||||
|
return apiProduct_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetDownloadFileRequest::setApiProduct(const std::string& apiProduct)
|
||||||
|
{
|
||||||
|
apiProduct_ = apiProduct;
|
||||||
|
setBodyParameter("ApiProduct", apiProduct);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetDownloadFileRequest::getApiRevision()const
|
||||||
|
{
|
||||||
|
return apiRevision_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetDownloadFileRequest::setApiRevision(const std::string& apiRevision)
|
||||||
|
{
|
||||||
|
apiRevision_ = apiRevision;
|
||||||
|
setBodyParameter("ApiRevision", apiRevision);
|
||||||
|
}
|
||||||
|
|
||||||
151
iot/src/model/GetDownloadFileResult.cc
Normal file
151
iot/src/model/GetDownloadFileResult.cc
Normal file
@@ -0,0 +1,151 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR 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/GetDownloadFileResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Iot;
|
||||||
|
using namespace AlibabaCloud::Iot::Model;
|
||||||
|
|
||||||
|
GetDownloadFileResult::GetDownloadFileResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetDownloadFileResult::GetDownloadFileResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetDownloadFileResult::~GetDownloadFileResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetDownloadFileResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto dataNode = value["Data"];
|
||||||
|
if(!dataNode["PreviewSize"].isNull())
|
||||||
|
data_.previewSize = std::stoi(dataNode["PreviewSize"].asString());
|
||||||
|
if(!dataNode["CsvUrl"].isNull())
|
||||||
|
data_.csvUrl = dataNode["CsvUrl"].asString();
|
||||||
|
if(!dataNode["DatasetId"].isNull())
|
||||||
|
data_.datasetId = dataNode["DatasetId"].asString();
|
||||||
|
if(!dataNode["LongJobId"].isNull())
|
||||||
|
data_.longJobId = dataNode["LongJobId"].asString();
|
||||||
|
if(!dataNode["Status"].isNull())
|
||||||
|
data_.status = std::stoi(dataNode["Status"].asString());
|
||||||
|
if(!dataNode["BeginTime"].isNull())
|
||||||
|
data_.beginTime = std::stol(dataNode["BeginTime"].asString());
|
||||||
|
if(!dataNode["EndTime"].isNull())
|
||||||
|
data_.endTime = std::stol(dataNode["EndTime"].asString());
|
||||||
|
if(!dataNode["ResultDataInString"].isNull())
|
||||||
|
data_.resultDataInString = dataNode["ResultDataInString"].asString();
|
||||||
|
if(!dataNode["AsyncExecute"].isNull())
|
||||||
|
data_.asyncExecute = dataNode["AsyncExecute"].asString() == "true";
|
||||||
|
if(!dataNode["TotalCount"].isNull())
|
||||||
|
data_.totalCount = std::stol(dataNode["TotalCount"].asString());
|
||||||
|
if(!dataNode["PageNo"].isNull())
|
||||||
|
data_.pageNo = std::stoi(dataNode["PageNo"].asString());
|
||||||
|
if(!dataNode["PageSize"].isNull())
|
||||||
|
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||||
|
if(!dataNode["CsvUrl"].isNull())
|
||||||
|
data_.csvUrl1 = dataNode["CsvUrl"].asString();
|
||||||
|
if(!dataNode["CsvFileName"].isNull())
|
||||||
|
data_.csvFileName = dataNode["CsvFileName"].asString();
|
||||||
|
auto allHeaderNode = dataNode["Header"]["HeaderItem"];
|
||||||
|
for (auto dataNodeHeaderHeaderItem : allHeaderNode)
|
||||||
|
{
|
||||||
|
Data::HeaderItem headerItemObject;
|
||||||
|
if(!dataNodeHeaderHeaderItem["FieldName"].isNull())
|
||||||
|
headerItemObject.fieldName = dataNodeHeaderHeaderItem["FieldName"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["Alias"].isNull())
|
||||||
|
headerItemObject.alias = dataNodeHeaderHeaderItem["Alias"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["FieldType"].isNull())
|
||||||
|
headerItemObject.fieldType = dataNodeHeaderHeaderItem["FieldType"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["TypeClass"].isNull())
|
||||||
|
headerItemObject.typeClass = dataNodeHeaderHeaderItem["TypeClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["TimeClass"].isNull())
|
||||||
|
headerItemObject.timeClass = dataNodeHeaderHeaderItem["TimeClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["GeoClass"].isNull())
|
||||||
|
headerItemObject.geoClass = dataNodeHeaderHeaderItem["GeoClass"].asString();
|
||||||
|
if(!dataNodeHeaderHeaderItem["DimDateClass"].isNull())
|
||||||
|
headerItemObject.dimDateClass = dataNodeHeaderHeaderItem["DimDateClass"].asString();
|
||||||
|
data_.header.push_back(headerItemObject);
|
||||||
|
}
|
||||||
|
auto querySettingNode = dataNode["QuerySetting"];
|
||||||
|
auto allSelectedHeadersNode = querySettingNode["SelectedHeaders"]["SelectedHeadersItem"];
|
||||||
|
for (auto querySettingNodeSelectedHeadersSelectedHeadersItem : allSelectedHeadersNode)
|
||||||
|
{
|
||||||
|
Data::QuerySetting::SelectedHeadersItem selectedHeadersItemObject;
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["FieldName"].isNull())
|
||||||
|
selectedHeadersItemObject.fieldName = querySettingNodeSelectedHeadersSelectedHeadersItem["FieldName"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["Alias"].isNull())
|
||||||
|
selectedHeadersItemObject.alias = querySettingNodeSelectedHeadersSelectedHeadersItem["Alias"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["FieldType"].isNull())
|
||||||
|
selectedHeadersItemObject.fieldType = querySettingNodeSelectedHeadersSelectedHeadersItem["FieldType"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["TimeClass"].isNull())
|
||||||
|
selectedHeadersItemObject.timeClass = querySettingNodeSelectedHeadersSelectedHeadersItem["TimeClass"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["GeoClass"].isNull())
|
||||||
|
selectedHeadersItemObject.geoClass = querySettingNodeSelectedHeadersSelectedHeadersItem["GeoClass"].asString();
|
||||||
|
if(!querySettingNodeSelectedHeadersSelectedHeadersItem["DimDateClass"].isNull())
|
||||||
|
selectedHeadersItemObject.dimDateClass = querySettingNodeSelectedHeadersSelectedHeadersItem["DimDateClass"].asString();
|
||||||
|
data_.querySetting.selectedHeaders.push_back(selectedHeadersItemObject);
|
||||||
|
}
|
||||||
|
auto allAstExprNode = querySettingNode["AstExpr"]["AstExprItem"];
|
||||||
|
for (auto querySettingNodeAstExprAstExprItem : allAstExprNode)
|
||||||
|
{
|
||||||
|
Data::QuerySetting::AstExprItem astExprItemObject;
|
||||||
|
if(!querySettingNodeAstExprAstExprItem["Expr"].isNull())
|
||||||
|
astExprItemObject.expr = querySettingNodeAstExprAstExprItem["Expr"].asString();
|
||||||
|
if(!querySettingNodeAstExprAstExprItem["ExprType"].isNull())
|
||||||
|
astExprItemObject.exprType = querySettingNodeAstExprAstExprItem["ExprType"].asString();
|
||||||
|
data_.querySetting.astExpr.push_back(astExprItemObject);
|
||||||
|
}
|
||||||
|
auto allResult = dataNode["Result"]["Result"];
|
||||||
|
for (auto value : allResult)
|
||||||
|
data_.result.push_back(value.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();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GetDownloadFileResult::Data GetDownloadFileResult::getData()const
|
||||||
|
{
|
||||||
|
return data_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetDownloadFileResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetDownloadFileResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetDownloadFileResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
84
iot/src/model/QueryDeviceSubTopicRequest.cc
Normal file
84
iot/src/model/QueryDeviceSubTopicRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR 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/QueryDeviceSubTopicRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Iot::Model::QueryDeviceSubTopicRequest;
|
||||||
|
|
||||||
|
QueryDeviceSubTopicRequest::QueryDeviceSubTopicRequest() :
|
||||||
|
RpcServiceRequest("iot", "2018-01-20", "QueryDeviceSubTopic")
|
||||||
|
{
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryDeviceSubTopicRequest::~QueryDeviceSubTopicRequest()
|
||||||
|
{}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicRequest::getIotInstanceId()const
|
||||||
|
{
|
||||||
|
return iotInstanceId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryDeviceSubTopicRequest::setIotInstanceId(const std::string& iotInstanceId)
|
||||||
|
{
|
||||||
|
iotInstanceId_ = iotInstanceId;
|
||||||
|
setParameter("IotInstanceId", iotInstanceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicRequest::getProductKey()const
|
||||||
|
{
|
||||||
|
return productKey_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryDeviceSubTopicRequest::setProductKey(const std::string& productKey)
|
||||||
|
{
|
||||||
|
productKey_ = productKey;
|
||||||
|
setParameter("ProductKey", productKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicRequest::getApiProduct()const
|
||||||
|
{
|
||||||
|
return apiProduct_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryDeviceSubTopicRequest::setApiProduct(const std::string& apiProduct)
|
||||||
|
{
|
||||||
|
apiProduct_ = apiProduct;
|
||||||
|
setBodyParameter("ApiProduct", apiProduct);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicRequest::getApiRevision()const
|
||||||
|
{
|
||||||
|
return apiRevision_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryDeviceSubTopicRequest::setApiRevision(const std::string& apiRevision)
|
||||||
|
{
|
||||||
|
apiRevision_ = apiRevision;
|
||||||
|
setBodyParameter("ApiRevision", apiRevision);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicRequest::getDeviceName()const
|
||||||
|
{
|
||||||
|
return deviceName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void QueryDeviceSubTopicRequest::setDeviceName(const std::string& deviceName)
|
||||||
|
{
|
||||||
|
deviceName_ = deviceName;
|
||||||
|
setParameter("DeviceName", deviceName);
|
||||||
|
}
|
||||||
|
|
||||||
80
iot/src/model/QueryDeviceSubTopicResult.cc
Normal file
80
iot/src/model/QueryDeviceSubTopicResult.cc
Normal 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/iot/model/QueryDeviceSubTopicResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Iot;
|
||||||
|
using namespace AlibabaCloud::Iot::Model;
|
||||||
|
|
||||||
|
QueryDeviceSubTopicResult::QueryDeviceSubTopicResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
QueryDeviceSubTopicResult::QueryDeviceSubTopicResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
QueryDeviceSubTopicResult::~QueryDeviceSubTopicResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void QueryDeviceSubTopicResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allTopicListNode = value["TopicList"]["topic"];
|
||||||
|
for (auto valueTopicListtopic : allTopicListNode)
|
||||||
|
{
|
||||||
|
Topic topicListObject;
|
||||||
|
if(!valueTopicListtopic["TopicName"].isNull())
|
||||||
|
topicListObject.topicName = valueTopicListtopic["TopicName"].asString();
|
||||||
|
if(!valueTopicListtopic["Timestamp"].isNull())
|
||||||
|
topicListObject.timestamp = std::stol(valueTopicListtopic["Timestamp"].asString());
|
||||||
|
topicList_.push_back(topicListObject);
|
||||||
|
}
|
||||||
|
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::vector<QueryDeviceSubTopicResult::Topic> QueryDeviceSubTopicResult::getTopicList()const
|
||||||
|
{
|
||||||
|
return topicList_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicResult::getErrorMessage()const
|
||||||
|
{
|
||||||
|
return errorMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string QueryDeviceSubTopicResult::getCode()const
|
||||||
|
{
|
||||||
|
return code_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool QueryDeviceSubTopicResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user