Skip to content

Commit a3322bd

Browse files
committed
Storage open Api.
1 parent ce8de7c commit a3322bd

18 files changed

+1333
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.1359
1+
1.36.1360

iot/CMakeLists.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ set(iot_public_header_model
545545
include/alibabacloud/iot/model/QueryDeviceSubTopicResult.h
546546
include/alibabacloud/iot/model/QueryDeviceTunnelRequest.h
547547
include/alibabacloud/iot/model/QueryDeviceTunnelResult.h
548+
include/alibabacloud/iot/model/QueryDevicesHotStorageDataRequest.h
549+
include/alibabacloud/iot/model/QueryDevicesHotStorageDataResult.h
550+
include/alibabacloud/iot/model/QueryDevicesHotStorageDataStatusRequest.h
551+
include/alibabacloud/iot/model/QueryDevicesHotStorageDataStatusResult.h
548552
include/alibabacloud/iot/model/QueryDynamicGroupDevicesRequest.h
549553
include/alibabacloud/iot/model/QueryDynamicGroupDevicesResult.h
550554
include/alibabacloud/iot/model/QueryEdgeDriverRequest.h
@@ -796,7 +800,9 @@ set(iot_public_header_model
796800
include/alibabacloud/iot/model/UpdateThingModelRequest.h
797801
include/alibabacloud/iot/model/UpdateThingModelResult.h
798802
include/alibabacloud/iot/model/UpdateThingScriptRequest.h
799-
include/alibabacloud/iot/model/UpdateThingScriptResult.h )
803+
include/alibabacloud/iot/model/UpdateThingScriptResult.h
804+
include/alibabacloud/iot/model/WriteDevicesHotStorageDataRequest.h
805+
include/alibabacloud/iot/model/WriteDevicesHotStorageDataResult.h )
800806

801807
set(iot_src
802808
src/IotClient.cc
@@ -1324,6 +1330,10 @@ set(iot_src
13241330
src/model/QueryDeviceSubTopicResult.cc
13251331
src/model/QueryDeviceTunnelRequest.cc
13261332
src/model/QueryDeviceTunnelResult.cc
1333+
src/model/QueryDevicesHotStorageDataRequest.cc
1334+
src/model/QueryDevicesHotStorageDataResult.cc
1335+
src/model/QueryDevicesHotStorageDataStatusRequest.cc
1336+
src/model/QueryDevicesHotStorageDataStatusResult.cc
13271337
src/model/QueryDynamicGroupDevicesRequest.cc
13281338
src/model/QueryDynamicGroupDevicesResult.cc
13291339
src/model/QueryEdgeDriverRequest.cc
@@ -1575,7 +1585,9 @@ set(iot_src
15751585
src/model/UpdateThingModelRequest.cc
15761586
src/model/UpdateThingModelResult.cc
15771587
src/model/UpdateThingScriptRequest.cc
1578-
src/model/UpdateThingScriptResult.cc )
1588+
src/model/UpdateThingScriptResult.cc
1589+
src/model/WriteDevicesHotStorageDataRequest.cc
1590+
src/model/WriteDevicesHotStorageDataResult.cc )
15791591

15801592
add_library(iot ${LIB_TYPE}
15811593
${iot_public_header}

iot/include/alibabacloud/iot/IotClient.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@
546546
#include "model/QueryDeviceSubTopicResult.h"
547547
#include "model/QueryDeviceTunnelRequest.h"
548548
#include "model/QueryDeviceTunnelResult.h"
549+
#include "model/QueryDevicesHotStorageDataRequest.h"
550+
#include "model/QueryDevicesHotStorageDataResult.h"
551+
#include "model/QueryDevicesHotStorageDataStatusRequest.h"
552+
#include "model/QueryDevicesHotStorageDataStatusResult.h"
549553
#include "model/QueryDynamicGroupDevicesRequest.h"
550554
#include "model/QueryDynamicGroupDevicesResult.h"
551555
#include "model/QueryEdgeDriverRequest.h"
@@ -798,6 +802,8 @@
798802
#include "model/UpdateThingModelResult.h"
799803
#include "model/UpdateThingScriptRequest.h"
800804
#include "model/UpdateThingScriptResult.h"
805+
#include "model/WriteDevicesHotStorageDataRequest.h"
806+
#include "model/WriteDevicesHotStorageDataResult.h"
801807

802808

803809
namespace AlibabaCloud
@@ -1593,6 +1599,12 @@ namespace AlibabaCloud
15931599
typedef Outcome<Error, Model::QueryDeviceTunnelResult> QueryDeviceTunnelOutcome;
15941600
typedef std::future<QueryDeviceTunnelOutcome> QueryDeviceTunnelOutcomeCallable;
15951601
typedef std::function<void(const IotClient*, const Model::QueryDeviceTunnelRequest&, const QueryDeviceTunnelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceTunnelAsyncHandler;
1602+
typedef Outcome<Error, Model::QueryDevicesHotStorageDataResult> QueryDevicesHotStorageDataOutcome;
1603+
typedef std::future<QueryDevicesHotStorageDataOutcome> QueryDevicesHotStorageDataOutcomeCallable;
1604+
typedef std::function<void(const IotClient*, const Model::QueryDevicesHotStorageDataRequest&, const QueryDevicesHotStorageDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDevicesHotStorageDataAsyncHandler;
1605+
typedef Outcome<Error, Model::QueryDevicesHotStorageDataStatusResult> QueryDevicesHotStorageDataStatusOutcome;
1606+
typedef std::future<QueryDevicesHotStorageDataStatusOutcome> QueryDevicesHotStorageDataStatusOutcomeCallable;
1607+
typedef std::function<void(const IotClient*, const Model::QueryDevicesHotStorageDataStatusRequest&, const QueryDevicesHotStorageDataStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDevicesHotStorageDataStatusAsyncHandler;
15961608
typedef Outcome<Error, Model::QueryDynamicGroupDevicesResult> QueryDynamicGroupDevicesOutcome;
15971609
typedef std::future<QueryDynamicGroupDevicesOutcome> QueryDynamicGroupDevicesOutcomeCallable;
15981610
typedef std::function<void(const IotClient*, const Model::QueryDynamicGroupDevicesRequest&, const QueryDynamicGroupDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDynamicGroupDevicesAsyncHandler;
@@ -1971,6 +1983,9 @@ namespace AlibabaCloud
19711983
typedef Outcome<Error, Model::UpdateThingScriptResult> UpdateThingScriptOutcome;
19721984
typedef std::future<UpdateThingScriptOutcome> UpdateThingScriptOutcomeCallable;
19731985
typedef std::function<void(const IotClient*, const Model::UpdateThingScriptRequest&, const UpdateThingScriptOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateThingScriptAsyncHandler;
1986+
typedef Outcome<Error, Model::WriteDevicesHotStorageDataResult> WriteDevicesHotStorageDataOutcome;
1987+
typedef std::future<WriteDevicesHotStorageDataOutcome> WriteDevicesHotStorageDataOutcomeCallable;
1988+
typedef std::function<void(const IotClient*, const Model::WriteDevicesHotStorageDataRequest&, const WriteDevicesHotStorageDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> WriteDevicesHotStorageDataAsyncHandler;
19741989

19751990
IotClient(const Credentials &credentials, const ClientConfiguration &configuration);
19761991
IotClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
@@ -2762,6 +2777,12 @@ namespace AlibabaCloud
27622777
QueryDeviceTunnelOutcome queryDeviceTunnel(const Model::QueryDeviceTunnelRequest &request)const;
27632778
void queryDeviceTunnelAsync(const Model::QueryDeviceTunnelRequest& request, const QueryDeviceTunnelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
27642779
QueryDeviceTunnelOutcomeCallable queryDeviceTunnelCallable(const Model::QueryDeviceTunnelRequest& request) const;
2780+
QueryDevicesHotStorageDataOutcome queryDevicesHotStorageData(const Model::QueryDevicesHotStorageDataRequest &request)const;
2781+
void queryDevicesHotStorageDataAsync(const Model::QueryDevicesHotStorageDataRequest& request, const QueryDevicesHotStorageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
2782+
QueryDevicesHotStorageDataOutcomeCallable queryDevicesHotStorageDataCallable(const Model::QueryDevicesHotStorageDataRequest& request) const;
2783+
QueryDevicesHotStorageDataStatusOutcome queryDevicesHotStorageDataStatus(const Model::QueryDevicesHotStorageDataStatusRequest &request)const;
2784+
void queryDevicesHotStorageDataStatusAsync(const Model::QueryDevicesHotStorageDataStatusRequest& request, const QueryDevicesHotStorageDataStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
2785+
QueryDevicesHotStorageDataStatusOutcomeCallable queryDevicesHotStorageDataStatusCallable(const Model::QueryDevicesHotStorageDataStatusRequest& request) const;
27652786
QueryDynamicGroupDevicesOutcome queryDynamicGroupDevices(const Model::QueryDynamicGroupDevicesRequest &request)const;
27662787
void queryDynamicGroupDevicesAsync(const Model::QueryDynamicGroupDevicesRequest& request, const QueryDynamicGroupDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
27672788
QueryDynamicGroupDevicesOutcomeCallable queryDynamicGroupDevicesCallable(const Model::QueryDynamicGroupDevicesRequest& request) const;
@@ -3140,6 +3161,9 @@ namespace AlibabaCloud
31403161
UpdateThingScriptOutcome updateThingScript(const Model::UpdateThingScriptRequest &request)const;
31413162
void updateThingScriptAsync(const Model::UpdateThingScriptRequest& request, const UpdateThingScriptAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
31423163
UpdateThingScriptOutcomeCallable updateThingScriptCallable(const Model::UpdateThingScriptRequest& request) const;
3164+
WriteDevicesHotStorageDataOutcome writeDevicesHotStorageData(const Model::WriteDevicesHotStorageDataRequest &request)const;
3165+
void writeDevicesHotStorageDataAsync(const Model::WriteDevicesHotStorageDataRequest& request, const WriteDevicesHotStorageDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
3166+
WriteDevicesHotStorageDataOutcomeCallable writeDevicesHotStorageDataCallable(const Model::WriteDevicesHotStorageDataRequest& request) const;
31433167

31443168
private:
31453169
std::shared_ptr<EndpointProvider> endpointProvider_;

iot/include/alibabacloud/iot/model/BatchGetDeviceBindStatusResult.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ namespace AlibabaCloud
3535
struct DeviceStatus
3636
{
3737
std::string iotId;
38+
std::string instanceId;
3839
int bindStatus;
3940
};
4041

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATAREQUEST_H_
18+
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATAREQUEST_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <alibabacloud/core/RpcServiceRequest.h>
23+
#include <alibabacloud/iot/IotExport.h>
24+
25+
namespace AlibabaCloud
26+
{
27+
namespace Iot
28+
{
29+
namespace Model
30+
{
31+
class ALIBABACLOUD_IOT_EXPORT QueryDevicesHotStorageDataRequest : public RpcServiceRequest
32+
{
33+
34+
public:
35+
QueryDevicesHotStorageDataRequest();
36+
~QueryDevicesHotStorageDataRequest();
37+
38+
std::string getNextPageToken()const;
39+
void setNextPageToken(const std::string& nextPageToken);
40+
std::string getRealTenantId()const;
41+
void setRealTenantId(const std::string& realTenantId);
42+
long getStartTime()const;
43+
void setStartTime(long startTime);
44+
std::string getRealTripartiteKey()const;
45+
void setRealTripartiteKey(const std::string& realTripartiteKey);
46+
std::string getIotId()const;
47+
void setIotId(const std::string& iotId);
48+
std::string getIotInstanceId()const;
49+
void setIotInstanceId(const std::string& iotInstanceId);
50+
int getPageSize()const;
51+
void setPageSize(int pageSize);
52+
std::string getIdentifier()const;
53+
void setIdentifier(const std::string& identifier);
54+
std::string getUserTopic()const;
55+
void setUserTopic(const std::string& userTopic);
56+
long getEndTime()const;
57+
void setEndTime(long endTime);
58+
std::string getProductKey()const;
59+
void setProductKey(const std::string& productKey);
60+
int getAsc()const;
61+
void setAsc(int asc);
62+
std::string getApiProduct()const;
63+
void setApiProduct(const std::string& apiProduct);
64+
std::string getApiRevision()const;
65+
void setApiRevision(const std::string& apiRevision);
66+
std::string getDeviceName()const;
67+
void setDeviceName(const std::string& deviceName);
68+
69+
private:
70+
std::string nextPageToken_;
71+
std::string realTenantId_;
72+
long startTime_;
73+
std::string realTripartiteKey_;
74+
std::string iotId_;
75+
std::string iotInstanceId_;
76+
int pageSize_;
77+
std::string identifier_;
78+
std::string userTopic_;
79+
long endTime_;
80+
std::string productKey_;
81+
int asc_;
82+
std::string apiProduct_;
83+
std::string apiRevision_;
84+
std::string deviceName_;
85+
86+
};
87+
}
88+
}
89+
}
90+
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATAREQUEST_H_
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATARESULT_H_
18+
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATARESULT_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <utility>
23+
#include <alibabacloud/core/ServiceResult.h>
24+
#include <alibabacloud/iot/IotExport.h>
25+
26+
namespace AlibabaCloud
27+
{
28+
namespace Iot
29+
{
30+
namespace Model
31+
{
32+
class ALIBABACLOUD_IOT_EXPORT QueryDevicesHotStorageDataResult : public ServiceResult
33+
{
34+
public:
35+
struct Data
36+
{
37+
struct PropertyInfo
38+
{
39+
std::string value;
40+
std::string time;
41+
};
42+
bool nextValid;
43+
std::string nextPageToken;
44+
std::vector<PropertyInfo> list;
45+
};
46+
47+
48+
QueryDevicesHotStorageDataResult();
49+
explicit QueryDevicesHotStorageDataResult(const std::string &payload);
50+
~QueryDevicesHotStorageDataResult();
51+
Data getData()const;
52+
std::string getErrorMessage()const;
53+
std::string getCode()const;
54+
bool getSuccess()const;
55+
56+
protected:
57+
void parse(const std::string &payload);
58+
private:
59+
Data data_;
60+
std::string errorMessage_;
61+
std::string code_;
62+
bool success_;
63+
64+
};
65+
}
66+
}
67+
}
68+
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATARESULT_H_
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/*
2+
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATASTATUSREQUEST_H_
18+
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATASTATUSREQUEST_H_
19+
20+
#include <string>
21+
#include <vector>
22+
#include <alibabacloud/core/RpcServiceRequest.h>
23+
#include <alibabacloud/iot/IotExport.h>
24+
25+
namespace AlibabaCloud
26+
{
27+
namespace Iot
28+
{
29+
namespace Model
30+
{
31+
class ALIBABACLOUD_IOT_EXPORT QueryDevicesHotStorageDataStatusRequest : public RpcServiceRequest
32+
{
33+
34+
public:
35+
QueryDevicesHotStorageDataStatusRequest();
36+
~QueryDevicesHotStorageDataStatusRequest();
37+
38+
std::string getNextPageToken()const;
39+
void setNextPageToken(const std::string& nextPageToken);
40+
std::string getRealTenantId()const;
41+
void setRealTenantId(const std::string& realTenantId);
42+
std::string getRealTripartiteKey()const;
43+
void setRealTripartiteKey(const std::string& realTripartiteKey);
44+
std::string getIotId()const;
45+
void setIotId(const std::string& iotId);
46+
std::string getIotInstanceId()const;
47+
void setIotInstanceId(const std::string& iotInstanceId);
48+
int getPageSize()const;
49+
void setPageSize(int pageSize);
50+
std::string getUserTopic()const;
51+
void setUserTopic(const std::string& userTopic);
52+
std::string getProductKey()const;
53+
void setProductKey(const std::string& productKey);
54+
int getAsc()const;
55+
void setAsc(int asc);
56+
std::string getApiProduct()const;
57+
void setApiProduct(const std::string& apiProduct);
58+
std::string getApiRevision()const;
59+
void setApiRevision(const std::string& apiRevision);
60+
std::string getDeviceName()const;
61+
void setDeviceName(const std::string& deviceName);
62+
63+
private:
64+
std::string nextPageToken_;
65+
std::string realTenantId_;
66+
std::string realTripartiteKey_;
67+
std::string iotId_;
68+
std::string iotInstanceId_;
69+
int pageSize_;
70+
std::string userTopic_;
71+
std::string productKey_;
72+
int asc_;
73+
std::string apiProduct_;
74+
std::string apiRevision_;
75+
std::string deviceName_;
76+
77+
};
78+
}
79+
}
80+
}
81+
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICESHOTSTORAGEDATASTATUSREQUEST_H_

0 commit comments

Comments
 (0)