Skip to content

Commit 5b44f97

Browse files
committed
Pub Support MessageExpiryInterval and Retained.
1 parent 55060df commit 5b44f97

20 files changed

+1172
-1
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.36.1408
1+
1.36.1409

iot/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ set(iot_public_header_model
4545
include/alibabacloud/iot/model/BatchCheckDeviceNamesResult.h
4646
include/alibabacloud/iot/model/BatchCheckImportDeviceRequest.h
4747
include/alibabacloud/iot/model/BatchCheckImportDeviceResult.h
48+
include/alibabacloud/iot/model/BatchCheckVehicleDeviceRequest.h
49+
include/alibabacloud/iot/model/BatchCheckVehicleDeviceResult.h
4850
include/alibabacloud/iot/model/BatchClearEdgeInstanceDeviceConfigRequest.h
4951
include/alibabacloud/iot/model/BatchClearEdgeInstanceDeviceConfigResult.h
5052
include/alibabacloud/iot/model/BatchCreateSoundCodeLabelRequest.h
@@ -73,6 +75,8 @@ set(iot_public_header_model
7375
include/alibabacloud/iot/model/BatchGetEdgeInstanceDriverConfigsResult.h
7476
include/alibabacloud/iot/model/BatchImportDeviceRequest.h
7577
include/alibabacloud/iot/model/BatchImportDeviceResult.h
78+
include/alibabacloud/iot/model/BatchImportVehicleDeviceRequest.h
79+
include/alibabacloud/iot/model/BatchImportVehicleDeviceResult.h
7680
include/alibabacloud/iot/model/BatchPubRequest.h
7781
include/alibabacloud/iot/model/BatchPubResult.h
7882
include/alibabacloud/iot/model/BatchQueryDeviceDetailRequest.h
@@ -661,6 +665,8 @@ set(iot_public_header_model
661665
include/alibabacloud/iot/model/QueryTopicReverseRouteTableResult.h
662666
include/alibabacloud/iot/model/QueryTopicRouteTableRequest.h
663667
include/alibabacloud/iot/model/QueryTopicRouteTableResult.h
668+
include/alibabacloud/iot/model/QueryVehicleDeviceRequest.h
669+
include/alibabacloud/iot/model/QueryVehicleDeviceResult.h
664670
include/alibabacloud/iot/model/RRpcRequest.h
665671
include/alibabacloud/iot/model/RRpcResult.h
666672
include/alibabacloud/iot/model/ReBindLicenseDeviceRequest.h
@@ -830,6 +836,8 @@ set(iot_src
830836
src/model/BatchCheckDeviceNamesResult.cc
831837
src/model/BatchCheckImportDeviceRequest.cc
832838
src/model/BatchCheckImportDeviceResult.cc
839+
src/model/BatchCheckVehicleDeviceRequest.cc
840+
src/model/BatchCheckVehicleDeviceResult.cc
833841
src/model/BatchClearEdgeInstanceDeviceConfigRequest.cc
834842
src/model/BatchClearEdgeInstanceDeviceConfigResult.cc
835843
src/model/BatchCreateSoundCodeLabelRequest.cc
@@ -858,6 +866,8 @@ set(iot_src
858866
src/model/BatchGetEdgeInstanceDriverConfigsResult.cc
859867
src/model/BatchImportDeviceRequest.cc
860868
src/model/BatchImportDeviceResult.cc
869+
src/model/BatchImportVehicleDeviceRequest.cc
870+
src/model/BatchImportVehicleDeviceResult.cc
861871
src/model/BatchPubRequest.cc
862872
src/model/BatchPubResult.cc
863873
src/model/BatchQueryDeviceDetailRequest.cc
@@ -1446,6 +1456,8 @@ set(iot_src
14461456
src/model/QueryTopicReverseRouteTableResult.cc
14471457
src/model/QueryTopicRouteTableRequest.cc
14481458
src/model/QueryTopicRouteTableResult.cc
1459+
src/model/QueryVehicleDeviceRequest.cc
1460+
src/model/QueryVehicleDeviceResult.cc
14491461
src/model/RRpcRequest.cc
14501462
src/model/RRpcResult.cc
14511463
src/model/ReBindLicenseDeviceRequest.cc

iot/include/alibabacloud/iot/IotClient.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
#include "model/BatchCheckDeviceNamesResult.h"
4747
#include "model/BatchCheckImportDeviceRequest.h"
4848
#include "model/BatchCheckImportDeviceResult.h"
49+
#include "model/BatchCheckVehicleDeviceRequest.h"
50+
#include "model/BatchCheckVehicleDeviceResult.h"
4951
#include "model/BatchClearEdgeInstanceDeviceConfigRequest.h"
5052
#include "model/BatchClearEdgeInstanceDeviceConfigResult.h"
5153
#include "model/BatchCreateSoundCodeLabelRequest.h"
@@ -74,6 +76,8 @@
7476
#include "model/BatchGetEdgeInstanceDriverConfigsResult.h"
7577
#include "model/BatchImportDeviceRequest.h"
7678
#include "model/BatchImportDeviceResult.h"
79+
#include "model/BatchImportVehicleDeviceRequest.h"
80+
#include "model/BatchImportVehicleDeviceResult.h"
7781
#include "model/BatchPubRequest.h"
7882
#include "model/BatchPubResult.h"
7983
#include "model/BatchQueryDeviceDetailRequest.h"
@@ -662,6 +666,8 @@
662666
#include "model/QueryTopicReverseRouteTableResult.h"
663667
#include "model/QueryTopicRouteTableRequest.h"
664668
#include "model/QueryTopicRouteTableResult.h"
669+
#include "model/QueryVehicleDeviceRequest.h"
670+
#include "model/QueryVehicleDeviceResult.h"
665671
#include "model/RRpcRequest.h"
666672
#include "model/RRpcResult.h"
667673
#include "model/ReBindLicenseDeviceRequest.h"
@@ -849,6 +855,9 @@ namespace AlibabaCloud
849855
typedef Outcome<Error, Model::BatchCheckImportDeviceResult> BatchCheckImportDeviceOutcome;
850856
typedef std::future<BatchCheckImportDeviceOutcome> BatchCheckImportDeviceOutcomeCallable;
851857
typedef std::function<void(const IotClient*, const Model::BatchCheckImportDeviceRequest&, const BatchCheckImportDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchCheckImportDeviceAsyncHandler;
858+
typedef Outcome<Error, Model::BatchCheckVehicleDeviceResult> BatchCheckVehicleDeviceOutcome;
859+
typedef std::future<BatchCheckVehicleDeviceOutcome> BatchCheckVehicleDeviceOutcomeCallable;
860+
typedef std::function<void(const IotClient*, const Model::BatchCheckVehicleDeviceRequest&, const BatchCheckVehicleDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchCheckVehicleDeviceAsyncHandler;
852861
typedef Outcome<Error, Model::BatchClearEdgeInstanceDeviceConfigResult> BatchClearEdgeInstanceDeviceConfigOutcome;
853862
typedef std::future<BatchClearEdgeInstanceDeviceConfigOutcome> BatchClearEdgeInstanceDeviceConfigOutcomeCallable;
854863
typedef std::function<void(const IotClient*, const Model::BatchClearEdgeInstanceDeviceConfigRequest&, const BatchClearEdgeInstanceDeviceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchClearEdgeInstanceDeviceConfigAsyncHandler;
@@ -891,6 +900,9 @@ namespace AlibabaCloud
891900
typedef Outcome<Error, Model::BatchImportDeviceResult> BatchImportDeviceOutcome;
892901
typedef std::future<BatchImportDeviceOutcome> BatchImportDeviceOutcomeCallable;
893902
typedef std::function<void(const IotClient*, const Model::BatchImportDeviceRequest&, const BatchImportDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchImportDeviceAsyncHandler;
903+
typedef Outcome<Error, Model::BatchImportVehicleDeviceResult> BatchImportVehicleDeviceOutcome;
904+
typedef std::future<BatchImportVehicleDeviceOutcome> BatchImportVehicleDeviceOutcomeCallable;
905+
typedef std::function<void(const IotClient*, const Model::BatchImportVehicleDeviceRequest&, const BatchImportVehicleDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchImportVehicleDeviceAsyncHandler;
894906
typedef Outcome<Error, Model::BatchPubResult> BatchPubOutcome;
895907
typedef std::future<BatchPubOutcome> BatchPubOutcomeCallable;
896908
typedef std::function<void(const IotClient*, const Model::BatchPubRequest&, const BatchPubOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchPubAsyncHandler;
@@ -1773,6 +1785,9 @@ namespace AlibabaCloud
17731785
typedef Outcome<Error, Model::QueryTopicRouteTableResult> QueryTopicRouteTableOutcome;
17741786
typedef std::future<QueryTopicRouteTableOutcome> QueryTopicRouteTableOutcomeCallable;
17751787
typedef std::function<void(const IotClient*, const Model::QueryTopicRouteTableRequest&, const QueryTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryTopicRouteTableAsyncHandler;
1788+
typedef Outcome<Error, Model::QueryVehicleDeviceResult> QueryVehicleDeviceOutcome;
1789+
typedef std::future<QueryVehicleDeviceOutcome> QueryVehicleDeviceOutcomeCallable;
1790+
typedef std::function<void(const IotClient*, const Model::QueryVehicleDeviceRequest&, const QueryVehicleDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryVehicleDeviceAsyncHandler;
17761791
typedef Outcome<Error, Model::RRpcResult> RRpcOutcome;
17771792
typedef std::future<RRpcOutcome> RRpcOutcomeCallable;
17781793
typedef std::function<void(const IotClient*, const Model::RRpcRequest&, const RRpcOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RRpcAsyncHandler;
@@ -2027,6 +2042,9 @@ namespace AlibabaCloud
20272042
BatchCheckImportDeviceOutcome batchCheckImportDevice(const Model::BatchCheckImportDeviceRequest &request)const;
20282043
void batchCheckImportDeviceAsync(const Model::BatchCheckImportDeviceRequest& request, const BatchCheckImportDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
20292044
BatchCheckImportDeviceOutcomeCallable batchCheckImportDeviceCallable(const Model::BatchCheckImportDeviceRequest& request) const;
2045+
BatchCheckVehicleDeviceOutcome batchCheckVehicleDevice(const Model::BatchCheckVehicleDeviceRequest &request)const;
2046+
void batchCheckVehicleDeviceAsync(const Model::BatchCheckVehicleDeviceRequest& request, const BatchCheckVehicleDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
2047+
BatchCheckVehicleDeviceOutcomeCallable batchCheckVehicleDeviceCallable(const Model::BatchCheckVehicleDeviceRequest& request) const;
20302048
BatchClearEdgeInstanceDeviceConfigOutcome batchClearEdgeInstanceDeviceConfig(const Model::BatchClearEdgeInstanceDeviceConfigRequest &request)const;
20312049
void batchClearEdgeInstanceDeviceConfigAsync(const Model::BatchClearEdgeInstanceDeviceConfigRequest& request, const BatchClearEdgeInstanceDeviceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
20322050
BatchClearEdgeInstanceDeviceConfigOutcomeCallable batchClearEdgeInstanceDeviceConfigCallable(const Model::BatchClearEdgeInstanceDeviceConfigRequest& request) const;
@@ -2069,6 +2087,9 @@ namespace AlibabaCloud
20692087
BatchImportDeviceOutcome batchImportDevice(const Model::BatchImportDeviceRequest &request)const;
20702088
void batchImportDeviceAsync(const Model::BatchImportDeviceRequest& request, const BatchImportDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
20712089
BatchImportDeviceOutcomeCallable batchImportDeviceCallable(const Model::BatchImportDeviceRequest& request) const;
2090+
BatchImportVehicleDeviceOutcome batchImportVehicleDevice(const Model::BatchImportVehicleDeviceRequest &request)const;
2091+
void batchImportVehicleDeviceAsync(const Model::BatchImportVehicleDeviceRequest& request, const BatchImportVehicleDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
2092+
BatchImportVehicleDeviceOutcomeCallable batchImportVehicleDeviceCallable(const Model::BatchImportVehicleDeviceRequest& request) const;
20722093
BatchPubOutcome batchPub(const Model::BatchPubRequest &request)const;
20732094
void batchPubAsync(const Model::BatchPubRequest& request, const BatchPubAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
20742095
BatchPubOutcomeCallable batchPubCallable(const Model::BatchPubRequest& request) const;
@@ -2951,6 +2972,9 @@ namespace AlibabaCloud
29512972
QueryTopicRouteTableOutcome queryTopicRouteTable(const Model::QueryTopicRouteTableRequest &request)const;
29522973
void queryTopicRouteTableAsync(const Model::QueryTopicRouteTableRequest& request, const QueryTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
29532974
QueryTopicRouteTableOutcomeCallable queryTopicRouteTableCallable(const Model::QueryTopicRouteTableRequest& request) const;
2975+
QueryVehicleDeviceOutcome queryVehicleDevice(const Model::QueryVehicleDeviceRequest &request)const;
2976+
void queryVehicleDeviceAsync(const Model::QueryVehicleDeviceRequest& request, const QueryVehicleDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
2977+
QueryVehicleDeviceOutcomeCallable queryVehicleDeviceCallable(const Model::QueryVehicleDeviceRequest& request) const;
29542978
RRpcOutcome rRpc(const Model::RRpcRequest &request)const;
29552979
void rRpcAsync(const Model::RRpcRequest& request, const RRpcAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
29562980
RRpcOutcomeCallable rRpcCallable(const Model::RRpcRequest& request) const;
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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_BATCHCHECKVEHICLEDEVICEREQUEST_H_
18+
#define ALIBABACLOUD_IOT_MODEL_BATCHCHECKVEHICLEDEVICEREQUEST_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 BatchCheckVehicleDeviceRequest : public RpcServiceRequest
32+
{
33+
public:
34+
struct DeviceList
35+
{
36+
std::string deviceId;
37+
std::string manufacturer;
38+
std::string deviceModel;
39+
};
40+
41+
public:
42+
BatchCheckVehicleDeviceRequest();
43+
~BatchCheckVehicleDeviceRequest();
44+
45+
std::string getAccessKeyId()const;
46+
void setAccessKeyId(const std::string& accessKeyId);
47+
std::string getIotInstanceId()const;
48+
void setIotInstanceId(const std::string& iotInstanceId);
49+
std::string getProductKey()const;
50+
void setProductKey(const std::string& productKey);
51+
std::vector<DeviceList> getDeviceList()const;
52+
void setDeviceList(const std::vector<DeviceList>& deviceList);
53+
std::string getApiProduct()const;
54+
void setApiProduct(const std::string& apiProduct);
55+
std::string getApiRevision()const;
56+
void setApiRevision(const std::string& apiRevision);
57+
58+
private:
59+
std::string accessKeyId_;
60+
std::string iotInstanceId_;
61+
std::string productKey_;
62+
std::vector<DeviceList> deviceList_;
63+
std::string apiProduct_;
64+
std::string apiRevision_;
65+
66+
};
67+
}
68+
}
69+
}
70+
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHCHECKVEHICLEDEVICEREQUEST_H_
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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_BATCHCHECKVEHICLEDEVICERESULT_H_
18+
#define ALIBABACLOUD_IOT_MODEL_BATCHCHECKVEHICLEDEVICERESULT_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 BatchCheckVehicleDeviceResult : public ServiceResult
33+
{
34+
public:
35+
struct Data
36+
{
37+
std::vector<std::string> invalidDeviceIdList;
38+
std::vector<std::string> repeatedDeviceIdList;
39+
std::vector<std::string> invalidManufacturerList;
40+
std::vector<std::string> invalidDeviceModelList;
41+
};
42+
43+
44+
BatchCheckVehicleDeviceResult();
45+
explicit BatchCheckVehicleDeviceResult(const std::string &payload);
46+
~BatchCheckVehicleDeviceResult();
47+
Data getData()const;
48+
std::string getErrorMessage()const;
49+
std::string getCode()const;
50+
bool getSuccess()const;
51+
52+
protected:
53+
void parse(const std::string &payload);
54+
private:
55+
Data data_;
56+
std::string errorMessage_;
57+
std::string code_;
58+
bool success_;
59+
60+
};
61+
}
62+
}
63+
}
64+
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHCHECKVEHICLEDEVICERESULT_H_
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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_BATCHIMPORTVEHICLEDEVICEREQUEST_H_
18+
#define ALIBABACLOUD_IOT_MODEL_BATCHIMPORTVEHICLEDEVICEREQUEST_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 BatchImportVehicleDeviceRequest : public RpcServiceRequest
32+
{
33+
public:
34+
struct DeviceList
35+
{
36+
std::string deviceId;
37+
std::string manufacturer;
38+
std::string deviceModel;
39+
};
40+
41+
public:
42+
BatchImportVehicleDeviceRequest();
43+
~BatchImportVehicleDeviceRequest();
44+
45+
std::string getAccessKeyId()const;
46+
void setAccessKeyId(const std::string& accessKeyId);
47+
std::string getIotInstanceId()const;
48+
void setIotInstanceId(const std::string& iotInstanceId);
49+
std::string getProductKey()const;
50+
void setProductKey(const std::string& productKey);
51+
std::vector<DeviceList> getDeviceList()const;
52+
void setDeviceList(const std::vector<DeviceList>& deviceList);
53+
std::string getApiProduct()const;
54+
void setApiProduct(const std::string& apiProduct);
55+
std::string getApiRevision()const;
56+
void setApiRevision(const std::string& apiRevision);
57+
58+
private:
59+
std::string accessKeyId_;
60+
std::string iotInstanceId_;
61+
std::string productKey_;
62+
std::vector<DeviceList> deviceList_;
63+
std::string apiProduct_;
64+
std::string apiRevision_;
65+
66+
};
67+
}
68+
}
69+
}
70+
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHIMPORTVEHICLEDEVICEREQUEST_H_

0 commit comments

Comments
 (0)