Compare commits

..

5 Commits

Author SHA1 Message Date
yixiong.jxy
6b2d4bad71 IOT SDK Auto Released By cheyun.lxf,Version:1.27.10
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
2018-10-13 15:30:30 +08:00
yixiong.jxy
a2308b2c95 IOT SDK Auto Released By cheyun.lxf,Version:1.27.9
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
2018-10-13 15:03:41 +08:00
yixiong.jxy
1a86503742 IOT SDK Auto Released By cheyun.lxf,Version:1.27.8
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
2018-10-13 08:17:43 +08:00
yixiong.jxy
ccec5843c8 VOD SDK Auto Released By guzhaoyuan,Version:1.27.7
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
2018-10-11 13:20:26 +08:00
yixiong.jxy
6182017316 SAF SDK Auto Released By xinfa.duanxf,Version:1.27.6
Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
2018-10-09 21:31:14 +08:00
77 changed files with 3753 additions and 4 deletions

View File

@@ -1,3 +1,22 @@
2018-10-13 Version: 1.27.10
1, Add device group related APIs.
2018-10-13 Version: 1.27.9
1, Add device group related APIs.
2018-10-13 Version: 1.27.8
1, Add device group related APIs.
2018-10-11 Version: 1.27.7
1, Add a new api called DeleteMezzanines to clear mezzanine infos and storages.
2, Add the field called PlayConfig to GetVideoPlayAuth and GetPlayInfo api request.
3, Add a new api called UpdateImageInfos to update image information.
2018-10-09 Version: 1.27.6
1, v1.0.0-->v1.0.1
2, provider new region:beijing/shenzhen/zhangjiakou
3, provider service for VPC user;
2018-09-30 Version: 1.27.5
1, This is an example of release-log.
2, Please strictly follow this format to edit in English.

View File

@@ -88,4 +88,5 @@ add_subdirectory(linkface)
add_subdirectory(ots)
add_subdirectory(smartag)
add_subdirectory(vod)
add_subdirectory(ccs)
add_subdirectory(ccs)
add_subdirectory(saf)

View File

@@ -1 +1 @@
1.27.5
1.27.10

View File

@@ -25,12 +25,16 @@ set(iot_public_header_model
include/alibabacloud/iot/model/QueryAppDeviceListResult.h
include/alibabacloud/iot/model/DeleteTopicRouteTableRequest.h
include/alibabacloud/iot/model/DeleteTopicRouteTableResult.h
include/alibabacloud/iot/model/QueryDeviceGroupListRequest.h
include/alibabacloud/iot/model/QueryDeviceGroupListResult.h
include/alibabacloud/iot/model/QueryDeviceEventDataRequest.h
include/alibabacloud/iot/model/QueryDeviceEventDataResult.h
include/alibabacloud/iot/model/GetDeviceStatusRequest.h
include/alibabacloud/iot/model/GetDeviceStatusResult.h
include/alibabacloud/iot/model/DeleteDeviceRequest.h
include/alibabacloud/iot/model/DeleteDeviceResult.h
include/alibabacloud/iot/model/CreateDeviceGroupRequest.h
include/alibabacloud/iot/model/CreateDeviceGroupResult.h
include/alibabacloud/iot/model/EnableThingRequest.h
include/alibabacloud/iot/model/EnableThingResult.h
include/alibabacloud/iot/model/RRpcRequest.h
@@ -51,6 +55,10 @@ set(iot_public_header_model
include/alibabacloud/iot/model/UpdateRuleResult.h
include/alibabacloud/iot/model/QueryDevicePropertyDataRequest.h
include/alibabacloud/iot/model/QueryDevicePropertyDataResult.h
include/alibabacloud/iot/model/UpdateDeviceGroupRequest.h
include/alibabacloud/iot/model/UpdateDeviceGroupResult.h
include/alibabacloud/iot/model/DeleteDeviceGroupRequest.h
include/alibabacloud/iot/model/DeleteDeviceGroupResult.h
include/alibabacloud/iot/model/QueryDevicePropRequest.h
include/alibabacloud/iot/model/QueryDevicePropResult.h
include/alibabacloud/iot/model/DeleteDevicePropRequest.h
@@ -87,6 +95,10 @@ set(iot_public_header_model
include/alibabacloud/iot/model/RegisterDeviceResult.h
include/alibabacloud/iot/model/QueryDeviceRequest.h
include/alibabacloud/iot/model/QueryDeviceResult.h
include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsRequest.h
include/alibabacloud/iot/model/BatchDeleteDeviceGroupRelationsResult.h
include/alibabacloud/iot/model/QueryDeviceGroupTagListRequest.h
include/alibabacloud/iot/model/QueryDeviceGroupTagListResult.h
include/alibabacloud/iot/model/ListRuleRequest.h
include/alibabacloud/iot/model/ListRuleResult.h
include/alibabacloud/iot/model/QueryTopicRouteTableRequest.h
@@ -125,6 +137,8 @@ set(iot_public_header_model
include/alibabacloud/iot/model/BatchGetDeviceStateResult.h
include/alibabacloud/iot/model/GetRuleActionRequest.h
include/alibabacloud/iot/model/GetRuleActionResult.h
include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsRequest.h
include/alibabacloud/iot/model/BatchAddDeviceGroupRelationsResult.h
include/alibabacloud/iot/model/GetRuleRequest.h
include/alibabacloud/iot/model/GetRuleResult.h
include/alibabacloud/iot/model/GetDeviceShadowRequest.h
@@ -133,6 +147,8 @@ set(iot_public_header_model
include/alibabacloud/iot/model/GetGatewayBySubDeviceResult.h
include/alibabacloud/iot/model/CreateRuleActionRequest.h
include/alibabacloud/iot/model/CreateRuleActionResult.h
include/alibabacloud/iot/model/QueryDeviceGroupInfoRequest.h
include/alibabacloud/iot/model/QueryDeviceGroupInfoResult.h
include/alibabacloud/iot/model/BatchRegisterDeviceRequest.h
include/alibabacloud/iot/model/BatchRegisterDeviceResult.h
include/alibabacloud/iot/model/DeleteRuleActionRequest.h
@@ -146,12 +162,16 @@ set(iot_src
src/model/QueryAppDeviceListResult.cc
src/model/DeleteTopicRouteTableRequest.cc
src/model/DeleteTopicRouteTableResult.cc
src/model/QueryDeviceGroupListRequest.cc
src/model/QueryDeviceGroupListResult.cc
src/model/QueryDeviceEventDataRequest.cc
src/model/QueryDeviceEventDataResult.cc
src/model/GetDeviceStatusRequest.cc
src/model/GetDeviceStatusResult.cc
src/model/DeleteDeviceRequest.cc
src/model/DeleteDeviceResult.cc
src/model/CreateDeviceGroupRequest.cc
src/model/CreateDeviceGroupResult.cc
src/model/EnableThingRequest.cc
src/model/EnableThingResult.cc
src/model/RRpcRequest.cc
@@ -172,6 +192,10 @@ set(iot_src
src/model/UpdateRuleResult.cc
src/model/QueryDevicePropertyDataRequest.cc
src/model/QueryDevicePropertyDataResult.cc
src/model/UpdateDeviceGroupRequest.cc
src/model/UpdateDeviceGroupResult.cc
src/model/DeleteDeviceGroupRequest.cc
src/model/DeleteDeviceGroupResult.cc
src/model/QueryDevicePropRequest.cc
src/model/QueryDevicePropResult.cc
src/model/DeleteDevicePropRequest.cc
@@ -208,6 +232,10 @@ set(iot_src
src/model/RegisterDeviceResult.cc
src/model/QueryDeviceRequest.cc
src/model/QueryDeviceResult.cc
src/model/BatchDeleteDeviceGroupRelationsRequest.cc
src/model/BatchDeleteDeviceGroupRelationsResult.cc
src/model/QueryDeviceGroupTagListRequest.cc
src/model/QueryDeviceGroupTagListResult.cc
src/model/ListRuleRequest.cc
src/model/ListRuleResult.cc
src/model/QueryTopicRouteTableRequest.cc
@@ -246,6 +274,8 @@ set(iot_src
src/model/BatchGetDeviceStateResult.cc
src/model/GetRuleActionRequest.cc
src/model/GetRuleActionResult.cc
src/model/BatchAddDeviceGroupRelationsRequest.cc
src/model/BatchAddDeviceGroupRelationsResult.cc
src/model/GetRuleRequest.cc
src/model/GetRuleResult.cc
src/model/GetDeviceShadowRequest.cc
@@ -254,6 +284,8 @@ set(iot_src
src/model/GetGatewayBySubDeviceResult.cc
src/model/CreateRuleActionRequest.cc
src/model/CreateRuleActionResult.cc
src/model/QueryDeviceGroupInfoRequest.cc
src/model/QueryDeviceGroupInfoResult.cc
src/model/BatchRegisterDeviceRequest.cc
src/model/BatchRegisterDeviceResult.cc
src/model/DeleteRuleActionRequest.cc

View File

@@ -26,12 +26,16 @@
#include "model/QueryAppDeviceListResult.h"
#include "model/DeleteTopicRouteTableRequest.h"
#include "model/DeleteTopicRouteTableResult.h"
#include "model/QueryDeviceGroupListRequest.h"
#include "model/QueryDeviceGroupListResult.h"
#include "model/QueryDeviceEventDataRequest.h"
#include "model/QueryDeviceEventDataResult.h"
#include "model/GetDeviceStatusRequest.h"
#include "model/GetDeviceStatusResult.h"
#include "model/DeleteDeviceRequest.h"
#include "model/DeleteDeviceResult.h"
#include "model/CreateDeviceGroupRequest.h"
#include "model/CreateDeviceGroupResult.h"
#include "model/EnableThingRequest.h"
#include "model/EnableThingResult.h"
#include "model/RRpcRequest.h"
@@ -52,6 +56,10 @@
#include "model/UpdateRuleResult.h"
#include "model/QueryDevicePropertyDataRequest.h"
#include "model/QueryDevicePropertyDataResult.h"
#include "model/UpdateDeviceGroupRequest.h"
#include "model/UpdateDeviceGroupResult.h"
#include "model/DeleteDeviceGroupRequest.h"
#include "model/DeleteDeviceGroupResult.h"
#include "model/QueryDevicePropRequest.h"
#include "model/QueryDevicePropResult.h"
#include "model/DeleteDevicePropRequest.h"
@@ -88,6 +96,10 @@
#include "model/RegisterDeviceResult.h"
#include "model/QueryDeviceRequest.h"
#include "model/QueryDeviceResult.h"
#include "model/BatchDeleteDeviceGroupRelationsRequest.h"
#include "model/BatchDeleteDeviceGroupRelationsResult.h"
#include "model/QueryDeviceGroupTagListRequest.h"
#include "model/QueryDeviceGroupTagListResult.h"
#include "model/ListRuleRequest.h"
#include "model/ListRuleResult.h"
#include "model/QueryTopicRouteTableRequest.h"
@@ -126,6 +138,8 @@
#include "model/BatchGetDeviceStateResult.h"
#include "model/GetRuleActionRequest.h"
#include "model/GetRuleActionResult.h"
#include "model/BatchAddDeviceGroupRelationsRequest.h"
#include "model/BatchAddDeviceGroupRelationsResult.h"
#include "model/GetRuleRequest.h"
#include "model/GetRuleResult.h"
#include "model/GetDeviceShadowRequest.h"
@@ -134,6 +148,8 @@
#include "model/GetGatewayBySubDeviceResult.h"
#include "model/CreateRuleActionRequest.h"
#include "model/CreateRuleActionResult.h"
#include "model/QueryDeviceGroupInfoRequest.h"
#include "model/QueryDeviceGroupInfoResult.h"
#include "model/BatchRegisterDeviceRequest.h"
#include "model/BatchRegisterDeviceResult.h"
#include "model/DeleteRuleActionRequest.h"
@@ -155,6 +171,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteTopicRouteTableResult> DeleteTopicRouteTableOutcome;
typedef std::future<DeleteTopicRouteTableOutcome> DeleteTopicRouteTableOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteTopicRouteTableRequest&, const DeleteTopicRouteTableOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTopicRouteTableAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceGroupListResult> QueryDeviceGroupListOutcome;
typedef std::future<QueryDeviceGroupListOutcome> QueryDeviceGroupListOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceGroupListRequest&, const QueryDeviceGroupListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceGroupListAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceEventDataResult> QueryDeviceEventDataOutcome;
typedef std::future<QueryDeviceEventDataOutcome> QueryDeviceEventDataOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceEventDataRequest&, const QueryDeviceEventDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceEventDataAsyncHandler;
@@ -164,6 +183,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteDeviceResult> DeleteDeviceOutcome;
typedef std::future<DeleteDeviceOutcome> DeleteDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteDeviceRequest&, const DeleteDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceAsyncHandler;
typedef Outcome<Error, Model::CreateDeviceGroupResult> CreateDeviceGroupOutcome;
typedef std::future<CreateDeviceGroupOutcome> CreateDeviceGroupOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateDeviceGroupRequest&, const CreateDeviceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDeviceGroupAsyncHandler;
typedef Outcome<Error, Model::EnableThingResult> EnableThingOutcome;
typedef std::future<EnableThingOutcome> EnableThingOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::EnableThingRequest&, const EnableThingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableThingAsyncHandler;
@@ -194,6 +216,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryDevicePropertyDataResult> QueryDevicePropertyDataOutcome;
typedef std::future<QueryDevicePropertyDataOutcome> QueryDevicePropertyDataOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDevicePropertyDataRequest&, const QueryDevicePropertyDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDevicePropertyDataAsyncHandler;
typedef Outcome<Error, Model::UpdateDeviceGroupResult> UpdateDeviceGroupOutcome;
typedef std::future<UpdateDeviceGroupOutcome> UpdateDeviceGroupOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::UpdateDeviceGroupRequest&, const UpdateDeviceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateDeviceGroupAsyncHandler;
typedef Outcome<Error, Model::DeleteDeviceGroupResult> DeleteDeviceGroupOutcome;
typedef std::future<DeleteDeviceGroupOutcome> DeleteDeviceGroupOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::DeleteDeviceGroupRequest&, const DeleteDeviceGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDeviceGroupAsyncHandler;
typedef Outcome<Error, Model::QueryDevicePropResult> QueryDevicePropOutcome;
typedef std::future<QueryDevicePropOutcome> QueryDevicePropOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDevicePropRequest&, const QueryDevicePropOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDevicePropAsyncHandler;
@@ -248,6 +276,12 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::QueryDeviceResult> QueryDeviceOutcome;
typedef std::future<QueryDeviceOutcome> QueryDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceRequest&, const QueryDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceAsyncHandler;
typedef Outcome<Error, Model::BatchDeleteDeviceGroupRelationsResult> BatchDeleteDeviceGroupRelationsOutcome;
typedef std::future<BatchDeleteDeviceGroupRelationsOutcome> BatchDeleteDeviceGroupRelationsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchDeleteDeviceGroupRelationsRequest&, const BatchDeleteDeviceGroupRelationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDeleteDeviceGroupRelationsAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceGroupTagListResult> QueryDeviceGroupTagListOutcome;
typedef std::future<QueryDeviceGroupTagListOutcome> QueryDeviceGroupTagListOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceGroupTagListRequest&, const QueryDeviceGroupTagListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceGroupTagListAsyncHandler;
typedef Outcome<Error, Model::ListRuleResult> ListRuleOutcome;
typedef std::future<ListRuleOutcome> ListRuleOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::ListRuleRequest&, const ListRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRuleAsyncHandler;
@@ -305,6 +339,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetRuleActionResult> GetRuleActionOutcome;
typedef std::future<GetRuleActionOutcome> GetRuleActionOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::GetRuleActionRequest&, const GetRuleActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRuleActionAsyncHandler;
typedef Outcome<Error, Model::BatchAddDeviceGroupRelationsResult> BatchAddDeviceGroupRelationsOutcome;
typedef std::future<BatchAddDeviceGroupRelationsOutcome> BatchAddDeviceGroupRelationsOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchAddDeviceGroupRelationsRequest&, const BatchAddDeviceGroupRelationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchAddDeviceGroupRelationsAsyncHandler;
typedef Outcome<Error, Model::GetRuleResult> GetRuleOutcome;
typedef std::future<GetRuleOutcome> GetRuleOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::GetRuleRequest&, const GetRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRuleAsyncHandler;
@@ -317,6 +354,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateRuleActionResult> CreateRuleActionOutcome;
typedef std::future<CreateRuleActionOutcome> CreateRuleActionOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::CreateRuleActionRequest&, const CreateRuleActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRuleActionAsyncHandler;
typedef Outcome<Error, Model::QueryDeviceGroupInfoResult> QueryDeviceGroupInfoOutcome;
typedef std::future<QueryDeviceGroupInfoOutcome> QueryDeviceGroupInfoOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::QueryDeviceGroupInfoRequest&, const QueryDeviceGroupInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDeviceGroupInfoAsyncHandler;
typedef Outcome<Error, Model::BatchRegisterDeviceResult> BatchRegisterDeviceOutcome;
typedef std::future<BatchRegisterDeviceOutcome> BatchRegisterDeviceOutcomeCallable;
typedef std::function<void(const IotClient*, const Model::BatchRegisterDeviceRequest&, const BatchRegisterDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchRegisterDeviceAsyncHandler;
@@ -337,6 +377,9 @@ namespace AlibabaCloud
DeleteTopicRouteTableOutcome deleteTopicRouteTable(const Model::DeleteTopicRouteTableRequest &request)const;
void deleteTopicRouteTableAsync(const Model::DeleteTopicRouteTableRequest& request, const DeleteTopicRouteTableAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteTopicRouteTableOutcomeCallable deleteTopicRouteTableCallable(const Model::DeleteTopicRouteTableRequest& request) const;
QueryDeviceGroupListOutcome queryDeviceGroupList(const Model::QueryDeviceGroupListRequest &request)const;
void queryDeviceGroupListAsync(const Model::QueryDeviceGroupListRequest& request, const QueryDeviceGroupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceGroupListOutcomeCallable queryDeviceGroupListCallable(const Model::QueryDeviceGroupListRequest& request) const;
QueryDeviceEventDataOutcome queryDeviceEventData(const Model::QueryDeviceEventDataRequest &request)const;
void queryDeviceEventDataAsync(const Model::QueryDeviceEventDataRequest& request, const QueryDeviceEventDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceEventDataOutcomeCallable queryDeviceEventDataCallable(const Model::QueryDeviceEventDataRequest& request) const;
@@ -346,6 +389,9 @@ namespace AlibabaCloud
DeleteDeviceOutcome deleteDevice(const Model::DeleteDeviceRequest &request)const;
void deleteDeviceAsync(const Model::DeleteDeviceRequest& request, const DeleteDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDeviceOutcomeCallable deleteDeviceCallable(const Model::DeleteDeviceRequest& request) const;
CreateDeviceGroupOutcome createDeviceGroup(const Model::CreateDeviceGroupRequest &request)const;
void createDeviceGroupAsync(const Model::CreateDeviceGroupRequest& request, const CreateDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateDeviceGroupOutcomeCallable createDeviceGroupCallable(const Model::CreateDeviceGroupRequest& request) const;
EnableThingOutcome enableThing(const Model::EnableThingRequest &request)const;
void enableThingAsync(const Model::EnableThingRequest& request, const EnableThingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
EnableThingOutcomeCallable enableThingCallable(const Model::EnableThingRequest& request) const;
@@ -376,6 +422,12 @@ namespace AlibabaCloud
QueryDevicePropertyDataOutcome queryDevicePropertyData(const Model::QueryDevicePropertyDataRequest &request)const;
void queryDevicePropertyDataAsync(const Model::QueryDevicePropertyDataRequest& request, const QueryDevicePropertyDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDevicePropertyDataOutcomeCallable queryDevicePropertyDataCallable(const Model::QueryDevicePropertyDataRequest& request) const;
UpdateDeviceGroupOutcome updateDeviceGroup(const Model::UpdateDeviceGroupRequest &request)const;
void updateDeviceGroupAsync(const Model::UpdateDeviceGroupRequest& request, const UpdateDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateDeviceGroupOutcomeCallable updateDeviceGroupCallable(const Model::UpdateDeviceGroupRequest& request) const;
DeleteDeviceGroupOutcome deleteDeviceGroup(const Model::DeleteDeviceGroupRequest &request)const;
void deleteDeviceGroupAsync(const Model::DeleteDeviceGroupRequest& request, const DeleteDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteDeviceGroupOutcomeCallable deleteDeviceGroupCallable(const Model::DeleteDeviceGroupRequest& request) const;
QueryDevicePropOutcome queryDeviceProp(const Model::QueryDevicePropRequest &request)const;
void queryDevicePropAsync(const Model::QueryDevicePropRequest& request, const QueryDevicePropAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDevicePropOutcomeCallable queryDevicePropCallable(const Model::QueryDevicePropRequest& request) const;
@@ -430,6 +482,12 @@ namespace AlibabaCloud
QueryDeviceOutcome queryDevice(const Model::QueryDeviceRequest &request)const;
void queryDeviceAsync(const Model::QueryDeviceRequest& request, const QueryDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceOutcomeCallable queryDeviceCallable(const Model::QueryDeviceRequest& request) const;
BatchDeleteDeviceGroupRelationsOutcome batchDeleteDeviceGroupRelations(const Model::BatchDeleteDeviceGroupRelationsRequest &request)const;
void batchDeleteDeviceGroupRelationsAsync(const Model::BatchDeleteDeviceGroupRelationsRequest& request, const BatchDeleteDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchDeleteDeviceGroupRelationsOutcomeCallable batchDeleteDeviceGroupRelationsCallable(const Model::BatchDeleteDeviceGroupRelationsRequest& request) const;
QueryDeviceGroupTagListOutcome queryDeviceGroupTagList(const Model::QueryDeviceGroupTagListRequest &request)const;
void queryDeviceGroupTagListAsync(const Model::QueryDeviceGroupTagListRequest& request, const QueryDeviceGroupTagListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceGroupTagListOutcomeCallable queryDeviceGroupTagListCallable(const Model::QueryDeviceGroupTagListRequest& request) const;
ListRuleOutcome listRule(const Model::ListRuleRequest &request)const;
void listRuleAsync(const Model::ListRuleRequest& request, const ListRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ListRuleOutcomeCallable listRuleCallable(const Model::ListRuleRequest& request) const;
@@ -487,6 +545,9 @@ namespace AlibabaCloud
GetRuleActionOutcome getRuleAction(const Model::GetRuleActionRequest &request)const;
void getRuleActionAsync(const Model::GetRuleActionRequest& request, const GetRuleActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRuleActionOutcomeCallable getRuleActionCallable(const Model::GetRuleActionRequest& request) const;
BatchAddDeviceGroupRelationsOutcome batchAddDeviceGroupRelations(const Model::BatchAddDeviceGroupRelationsRequest &request)const;
void batchAddDeviceGroupRelationsAsync(const Model::BatchAddDeviceGroupRelationsRequest& request, const BatchAddDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchAddDeviceGroupRelationsOutcomeCallable batchAddDeviceGroupRelationsCallable(const Model::BatchAddDeviceGroupRelationsRequest& request) const;
GetRuleOutcome getRule(const Model::GetRuleRequest &request)const;
void getRuleAsync(const Model::GetRuleRequest& request, const GetRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetRuleOutcomeCallable getRuleCallable(const Model::GetRuleRequest& request) const;
@@ -499,6 +560,9 @@ namespace AlibabaCloud
CreateRuleActionOutcome createRuleAction(const Model::CreateRuleActionRequest &request)const;
void createRuleActionAsync(const Model::CreateRuleActionRequest& request, const CreateRuleActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRuleActionOutcomeCallable createRuleActionCallable(const Model::CreateRuleActionRequest& request) const;
QueryDeviceGroupInfoOutcome queryDeviceGroupInfo(const Model::QueryDeviceGroupInfoRequest &request)const;
void queryDeviceGroupInfoAsync(const Model::QueryDeviceGroupInfoRequest& request, const QueryDeviceGroupInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
QueryDeviceGroupInfoOutcomeCallable queryDeviceGroupInfoCallable(const Model::QueryDeviceGroupInfoRequest& request) const;
BatchRegisterDeviceOutcome batchRegisterDevice(const Model::BatchRegisterDeviceRequest &request)const;
void batchRegisterDeviceAsync(const Model::BatchRegisterDeviceRequest& request, const BatchRegisterDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
BatchRegisterDeviceOutcomeCallable batchRegisterDeviceCallable(const Model::BatchRegisterDeviceRequest& request) const;

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHADDDEVICEGROUPRELATIONSREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHADDDEVICEGROUPRELATIONSREQUEST_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 BatchAddDeviceGroupRelationsRequest : public RpcServiceRequest
{
struct Device
{
std::string deviceName;
std::string productKey;
};
public:
BatchAddDeviceGroupRelationsRequest();
~BatchAddDeviceGroupRelationsRequest();
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::vector<Device> getDevice()const;
void setDevice(const std::vector<Device>& device);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupId_;
std::vector<Device> device_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHADDDEVICEGROUPRELATIONSREQUEST_H_

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHADDDEVICEGROUPRELATIONSRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHADDDEVICEGROUPRELATIONSRESULT_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 BatchAddDeviceGroupRelationsResult : public ServiceResult
{
public:
BatchAddDeviceGroupRelationsResult();
explicit BatchAddDeviceGroupRelationsResult(const std::string &payload);
~BatchAddDeviceGroupRelationsResult();
int getValidDeviceCount()const;
int getSuccessAddedDeviceCount()const;
int getExceedTenGroupDeviceCount()const;
int getAlreadyRelatedGroupDeviceCount()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int validDeviceCount_;
int successAddedDeviceCount_;
int exceedTenGroupDeviceCount_;
int alreadyRelatedGroupDeviceCount_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHADDDEVICEGROUPRELATIONSRESULT_H_

View File

@@ -0,0 +1,59 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHDELETEDEVICEGROUPRELATIONSREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHDELETEDEVICEGROUPRELATIONSREQUEST_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 BatchDeleteDeviceGroupRelationsRequest : public RpcServiceRequest
{
struct Device
{
std::string deviceName;
std::string productKey;
};
public:
BatchDeleteDeviceGroupRelationsRequest();
~BatchDeleteDeviceGroupRelationsRequest();
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::vector<Device> getDevice()const;
void setDevice(const std::vector<Device>& device);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupId_;
std::vector<Device> device_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHDELETEDEVICEGROUPRELATIONSREQUEST_H_

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_BATCHDELETEDEVICEGROUPRELATIONSRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_BATCHDELETEDEVICEGROUPRELATIONSRESULT_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 BatchDeleteDeviceGroupRelationsResult : public ServiceResult
{
public:
BatchDeleteDeviceGroupRelationsResult();
explicit BatchDeleteDeviceGroupRelationsResult(const std::string &payload);
~BatchDeleteDeviceGroupRelationsResult();
int getValidDeviceCount()const;
int getSuccessDeviceCount()const;
std::string getErrorMessage()const;
int getAlreadyRelatedGroupDeviceCount()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int validDeviceCount_;
int successDeviceCount_;
std::string errorMessage_;
int alreadyRelatedGroupDeviceCount_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_BATCHDELETEDEVICEGROUPRELATIONSRESULT_H_

View File

@@ -0,0 +1,57 @@
/*
* 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_CREATEDEVICEGROUPREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_CREATEDEVICEGROUPREQUEST_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 CreateDeviceGroupRequest : public RpcServiceRequest
{
public:
CreateDeviceGroupRequest();
~CreateDeviceGroupRequest();
std::string getGroupDesc()const;
void setGroupDesc(const std::string& groupDesc);
std::string getSuperGroupId()const;
void setSuperGroupId(const std::string& superGroupId);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupDesc_;
std::string superGroupId_;
std::string groupName_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_CREATEDEVICEGROUPREQUEST_H_

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_CREATEDEVICEGROUPRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_CREATEDEVICEGROUPRESULT_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 CreateDeviceGroupResult : public ServiceResult
{
public:
struct Data
{
std::string groupName;
std::string utcCreate;
std::string groupDesc;
std::string groupId;
};
CreateDeviceGroupResult();
explicit CreateDeviceGroupResult(const std::string &payload);
~CreateDeviceGroupResult();
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_CREATEDEVICEGROUPRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_DELETEDEVICEGROUPREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_DELETEDEVICEGROUPREQUEST_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 DeleteDeviceGroupRequest : public RpcServiceRequest
{
public:
DeleteDeviceGroupRequest();
~DeleteDeviceGroupRequest();
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_DELETEDEVICEGROUPREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_DELETEDEVICEGROUPRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_DELETEDEVICEGROUPRESULT_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 DeleteDeviceGroupResult : public ServiceResult
{
public:
DeleteDeviceGroupResult();
explicit DeleteDeviceGroupResult(const std::string &payload);
~DeleteDeviceGroupResult();
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_DELETEDEVICEGROUPRESULT_H_

View File

@@ -35,6 +35,7 @@ namespace AlibabaCloud
struct Data
{
std::string status;
bool owner;
std::string productName;
std::string deviceSecret;
std::string firmwareVersion;

View File

@@ -0,0 +1,51 @@
/*
* 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_QUERYDEVICEGROUPINFOREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPINFOREQUEST_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 QueryDeviceGroupInfoRequest : public RpcServiceRequest
{
public:
QueryDeviceGroupInfoRequest();
~QueryDeviceGroupInfoRequest();
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPINFOREQUEST_H_

View File

@@ -0,0 +1,67 @@
/*
* 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_QUERYDEVICEGROUPINFORESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPINFORESULT_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 QueryDeviceGroupInfoResult : public ServiceResult
{
public:
struct Data
{
std::string groupName;
std::string utcCreate;
std::string groupDesc;
int deviceOnline;
int deviceActive;
std::string groupId;
int deviceCount;
};
QueryDeviceGroupInfoResult();
explicit QueryDeviceGroupInfoResult(const std::string &payload);
~QueryDeviceGroupInfoResult();
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_QUERYDEVICEGROUPINFORESULT_H_

View 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_QUERYDEVICEGROUPLISTREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPLISTREQUEST_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 QueryDeviceGroupListRequest : public RpcServiceRequest
{
public:
QueryDeviceGroupListRequest();
~QueryDeviceGroupListRequest();
std::string getSuperGroupId()const;
void setSuperGroupId(const std::string& superGroupId);
int getPageSize()const;
void setPageSize(int pageSize);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getGroupName()const;
void setGroupName(const std::string& groupName);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string superGroupId_;
int pageSize_;
int currentPage_;
std::string groupName_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPLISTREQUEST_H_

View File

@@ -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_QUERYDEVICEGROUPLISTRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPLISTRESULT_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 QueryDeviceGroupListResult : public ServiceResult
{
public:
struct GroupInfo
{
std::string groupName;
std::string utcCreate;
std::string groupDesc;
std::string groupId;
};
QueryDeviceGroupListResult();
explicit QueryDeviceGroupListResult(const std::string &payload);
~QueryDeviceGroupListResult();
int getPageCount()const;
int getPageSize()const;
int getCurrentPage()const;
int getTotal()const;
std::vector<GroupInfo> getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int pageCount_;
int pageSize_;
int currentPage_;
int total_;
std::vector<GroupInfo> data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPLISTRESULT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_QUERYDEVICEGROUPTAGLISTREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPTAGLISTREQUEST_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 QueryDeviceGroupTagListRequest : public RpcServiceRequest
{
public:
QueryDeviceGroupTagListRequest();
~QueryDeviceGroupTagListRequest();
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPTAGLISTREQUEST_H_

View File

@@ -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_QUERYDEVICEGROUPTAGLISTRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPTAGLISTRESULT_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 QueryDeviceGroupTagListResult : public ServiceResult
{
public:
struct GroupTagInfo
{
std::string tagKey;
std::string tagValue;
};
QueryDeviceGroupTagListResult();
explicit QueryDeviceGroupTagListResult(const std::string &payload);
~QueryDeviceGroupTagListResult();
std::vector<GroupTagInfo> getData()const;
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<GroupTagInfo> data_;
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_QUERYDEVICEGROUPTAGLISTRESULT_H_

View File

@@ -34,9 +34,11 @@ namespace AlibabaCloud
public:
struct Data
{
bool owner;
std::string description;
std::string productName;
std::string aliyunCommodityCode;
std::string productStatus;
std::string productSecret;
long gmtCreate;
std::string categoryKey;

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_IOT_MODEL_UPDATEDEVICEGROUPREQUEST_H_
#define ALIBABACLOUD_IOT_MODEL_UPDATEDEVICEGROUPREQUEST_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 UpdateDeviceGroupRequest : public RpcServiceRequest
{
public:
UpdateDeviceGroupRequest();
~UpdateDeviceGroupRequest();
std::string getGroupDesc()const;
void setGroupDesc(const std::string& groupDesc);
std::string getGroupId()const;
void setGroupId(const std::string& groupId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string groupDesc_;
std::string groupId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEDEVICEGROUPREQUEST_H_

View File

@@ -0,0 +1,55 @@
/*
* 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_UPDATEDEVICEGROUPRESULT_H_
#define ALIBABACLOUD_IOT_MODEL_UPDATEDEVICEGROUPRESULT_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 UpdateDeviceGroupResult : public ServiceResult
{
public:
UpdateDeviceGroupResult();
explicit UpdateDeviceGroupResult(const std::string &payload);
~UpdateDeviceGroupResult();
std::string getErrorMessage()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string errorMessage_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_IOT_MODEL_UPDATEDEVICEGROUPRESULT_H_

View File

@@ -123,6 +123,42 @@ IotClient::DeleteTopicRouteTableOutcomeCallable IotClient::deleteTopicRouteTable
return task->get_future();
}
IotClient::QueryDeviceGroupListOutcome IotClient::queryDeviceGroupList(const QueryDeviceGroupListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryDeviceGroupListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryDeviceGroupListOutcome(QueryDeviceGroupListResult(outcome.result()));
else
return QueryDeviceGroupListOutcome(outcome.error());
}
void IotClient::queryDeviceGroupListAsync(const QueryDeviceGroupListRequest& request, const QueryDeviceGroupListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryDeviceGroupList(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::QueryDeviceGroupListOutcomeCallable IotClient::queryDeviceGroupListCallable(const QueryDeviceGroupListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryDeviceGroupListOutcome()>>(
[this, request]()
{
return this->queryDeviceGroupList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::QueryDeviceEventDataOutcome IotClient::queryDeviceEventData(const QueryDeviceEventDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -231,6 +267,42 @@ IotClient::DeleteDeviceOutcomeCallable IotClient::deleteDeviceCallable(const Del
return task->get_future();
}
IotClient::CreateDeviceGroupOutcome IotClient::createDeviceGroup(const CreateDeviceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDeviceGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDeviceGroupOutcome(CreateDeviceGroupResult(outcome.result()));
else
return CreateDeviceGroupOutcome(outcome.error());
}
void IotClient::createDeviceGroupAsync(const CreateDeviceGroupRequest& request, const CreateDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDeviceGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::CreateDeviceGroupOutcomeCallable IotClient::createDeviceGroupCallable(const CreateDeviceGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDeviceGroupOutcome()>>(
[this, request]()
{
return this->createDeviceGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::EnableThingOutcome IotClient::enableThing(const EnableThingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -591,6 +663,78 @@ IotClient::QueryDevicePropertyDataOutcomeCallable IotClient::queryDeviceProperty
return task->get_future();
}
IotClient::UpdateDeviceGroupOutcome IotClient::updateDeviceGroup(const UpdateDeviceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDeviceGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDeviceGroupOutcome(UpdateDeviceGroupResult(outcome.result()));
else
return UpdateDeviceGroupOutcome(outcome.error());
}
void IotClient::updateDeviceGroupAsync(const UpdateDeviceGroupRequest& request, const UpdateDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDeviceGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::UpdateDeviceGroupOutcomeCallable IotClient::updateDeviceGroupCallable(const UpdateDeviceGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDeviceGroupOutcome()>>(
[this, request]()
{
return this->updateDeviceGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::DeleteDeviceGroupOutcome IotClient::deleteDeviceGroup(const DeleteDeviceGroupRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDeviceGroupOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDeviceGroupOutcome(DeleteDeviceGroupResult(outcome.result()));
else
return DeleteDeviceGroupOutcome(outcome.error());
}
void IotClient::deleteDeviceGroupAsync(const DeleteDeviceGroupRequest& request, const DeleteDeviceGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDeviceGroup(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::DeleteDeviceGroupOutcomeCallable IotClient::deleteDeviceGroupCallable(const DeleteDeviceGroupRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDeviceGroupOutcome()>>(
[this, request]()
{
return this->deleteDeviceGroup(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::QueryDevicePropOutcome IotClient::queryDeviceProp(const QueryDevicePropRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1239,6 +1383,78 @@ IotClient::QueryDeviceOutcomeCallable IotClient::queryDeviceCallable(const Query
return task->get_future();
}
IotClient::BatchDeleteDeviceGroupRelationsOutcome IotClient::batchDeleteDeviceGroupRelations(const BatchDeleteDeviceGroupRelationsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchDeleteDeviceGroupRelationsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchDeleteDeviceGroupRelationsOutcome(BatchDeleteDeviceGroupRelationsResult(outcome.result()));
else
return BatchDeleteDeviceGroupRelationsOutcome(outcome.error());
}
void IotClient::batchDeleteDeviceGroupRelationsAsync(const BatchDeleteDeviceGroupRelationsRequest& request, const BatchDeleteDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchDeleteDeviceGroupRelations(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::BatchDeleteDeviceGroupRelationsOutcomeCallable IotClient::batchDeleteDeviceGroupRelationsCallable(const BatchDeleteDeviceGroupRelationsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchDeleteDeviceGroupRelationsOutcome()>>(
[this, request]()
{
return this->batchDeleteDeviceGroupRelations(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::QueryDeviceGroupTagListOutcome IotClient::queryDeviceGroupTagList(const QueryDeviceGroupTagListRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryDeviceGroupTagListOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryDeviceGroupTagListOutcome(QueryDeviceGroupTagListResult(outcome.result()));
else
return QueryDeviceGroupTagListOutcome(outcome.error());
}
void IotClient::queryDeviceGroupTagListAsync(const QueryDeviceGroupTagListRequest& request, const QueryDeviceGroupTagListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryDeviceGroupTagList(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::QueryDeviceGroupTagListOutcomeCallable IotClient::queryDeviceGroupTagListCallable(const QueryDeviceGroupTagListRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryDeviceGroupTagListOutcome()>>(
[this, request]()
{
return this->queryDeviceGroupTagList(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::ListRuleOutcome IotClient::listRule(const ListRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1923,6 +2139,42 @@ IotClient::GetRuleActionOutcomeCallable IotClient::getRuleActionCallable(const G
return task->get_future();
}
IotClient::BatchAddDeviceGroupRelationsOutcome IotClient::batchAddDeviceGroupRelations(const BatchAddDeviceGroupRelationsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return BatchAddDeviceGroupRelationsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return BatchAddDeviceGroupRelationsOutcome(BatchAddDeviceGroupRelationsResult(outcome.result()));
else
return BatchAddDeviceGroupRelationsOutcome(outcome.error());
}
void IotClient::batchAddDeviceGroupRelationsAsync(const BatchAddDeviceGroupRelationsRequest& request, const BatchAddDeviceGroupRelationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, batchAddDeviceGroupRelations(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::BatchAddDeviceGroupRelationsOutcomeCallable IotClient::batchAddDeviceGroupRelationsCallable(const BatchAddDeviceGroupRelationsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<BatchAddDeviceGroupRelationsOutcome()>>(
[this, request]()
{
return this->batchAddDeviceGroupRelations(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::GetRuleOutcome IotClient::getRule(const GetRuleRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2067,6 +2319,42 @@ IotClient::CreateRuleActionOutcomeCallable IotClient::createRuleActionCallable(c
return task->get_future();
}
IotClient::QueryDeviceGroupInfoOutcome IotClient::queryDeviceGroupInfo(const QueryDeviceGroupInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return QueryDeviceGroupInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return QueryDeviceGroupInfoOutcome(QueryDeviceGroupInfoResult(outcome.result()));
else
return QueryDeviceGroupInfoOutcome(outcome.error());
}
void IotClient::queryDeviceGroupInfoAsync(const QueryDeviceGroupInfoRequest& request, const QueryDeviceGroupInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, queryDeviceGroupInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
IotClient::QueryDeviceGroupInfoOutcomeCallable IotClient::queryDeviceGroupInfoCallable(const QueryDeviceGroupInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<QueryDeviceGroupInfoOutcome()>>(
[this, request]()
{
return this->queryDeviceGroupInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
IotClient::BatchRegisterDeviceOutcome IotClient::batchRegisterDevice(const BatchRegisterDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

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

View File

@@ -0,0 +1,94 @@
/*
* 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/BatchAddDeviceGroupRelationsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
BatchAddDeviceGroupRelationsResult::BatchAddDeviceGroupRelationsResult() :
ServiceResult()
{}
BatchAddDeviceGroupRelationsResult::BatchAddDeviceGroupRelationsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BatchAddDeviceGroupRelationsResult::~BatchAddDeviceGroupRelationsResult()
{}
void BatchAddDeviceGroupRelationsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["ValidDeviceCount"].isNull())
validDeviceCount_ = std::stoi(value["ValidDeviceCount"].asString());
if(!value["ExceedTenGroupDeviceCount"].isNull())
exceedTenGroupDeviceCount_ = std::stoi(value["ExceedTenGroupDeviceCount"].asString());
if(!value["AlreadyRelatedGroupDeviceCount"].isNull())
alreadyRelatedGroupDeviceCount_ = std::stoi(value["AlreadyRelatedGroupDeviceCount"].asString());
if(!value["SuccessAddedDeviceCount"].isNull())
successAddedDeviceCount_ = std::stoi(value["SuccessAddedDeviceCount"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
int BatchAddDeviceGroupRelationsResult::getValidDeviceCount()const
{
return validDeviceCount_;
}
int BatchAddDeviceGroupRelationsResult::getSuccessAddedDeviceCount()const
{
return successAddedDeviceCount_;
}
int BatchAddDeviceGroupRelationsResult::getExceedTenGroupDeviceCount()const
{
return exceedTenGroupDeviceCount_;
}
int BatchAddDeviceGroupRelationsResult::getAlreadyRelatedGroupDeviceCount()const
{
return alreadyRelatedGroupDeviceCount_;
}
std::string BatchAddDeviceGroupRelationsResult::getErrorMessage()const
{
return errorMessage_;
}
std::string BatchAddDeviceGroupRelationsResult::getCode()const
{
return code_;
}
bool BatchAddDeviceGroupRelationsResult::getSuccess()const
{
return success_;
}

View File

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

View File

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

View File

@@ -0,0 +1,71 @@
/*
* 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/CreateDeviceGroupRequest.h>
using AlibabaCloud::Iot::Model::CreateDeviceGroupRequest;
CreateDeviceGroupRequest::CreateDeviceGroupRequest() :
RpcServiceRequest("iot", "2018-01-20", "CreateDeviceGroup")
{}
CreateDeviceGroupRequest::~CreateDeviceGroupRequest()
{}
std::string CreateDeviceGroupRequest::getGroupDesc()const
{
return groupDesc_;
}
void CreateDeviceGroupRequest::setGroupDesc(const std::string& groupDesc)
{
groupDesc_ = groupDesc;
setParameter("GroupDesc", groupDesc);
}
std::string CreateDeviceGroupRequest::getSuperGroupId()const
{
return superGroupId_;
}
void CreateDeviceGroupRequest::setSuperGroupId(const std::string& superGroupId)
{
superGroupId_ = superGroupId;
setParameter("SuperGroupId", superGroupId);
}
std::string CreateDeviceGroupRequest::getGroupName()const
{
return groupName_;
}
void CreateDeviceGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}
std::string CreateDeviceGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,80 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/CreateDeviceGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
CreateDeviceGroupResult::CreateDeviceGroupResult() :
ServiceResult()
{}
CreateDeviceGroupResult::CreateDeviceGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDeviceGroupResult::~CreateDeviceGroupResult()
{}
void CreateDeviceGroupResult::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["GroupId"].isNull())
data_.groupId = dataNode["GroupId"].asString();
if(!dataNode["UtcCreate"].isNull())
data_.utcCreate = dataNode["UtcCreate"].asString();
if(!dataNode["GroupName"].isNull())
data_.groupName = dataNode["GroupName"].asString();
if(!dataNode["GroupDesc"].isNull())
data_.groupDesc = dataNode["GroupDesc"].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();
}
CreateDeviceGroupResult::Data CreateDeviceGroupResult::getData()const
{
return data_;
}
std::string CreateDeviceGroupResult::getErrorMessage()const
{
return errorMessage_;
}
std::string CreateDeviceGroupResult::getCode()const
{
return code_;
}
bool CreateDeviceGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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/DeleteDeviceGroupRequest.h>
using AlibabaCloud::Iot::Model::DeleteDeviceGroupRequest;
DeleteDeviceGroupRequest::DeleteDeviceGroupRequest() :
RpcServiceRequest("iot", "2018-01-20", "DeleteDeviceGroup")
{}
DeleteDeviceGroupRequest::~DeleteDeviceGroupRequest()
{}
std::string DeleteDeviceGroupRequest::getGroupId()const
{
return groupId_;
}
void DeleteDeviceGroupRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string DeleteDeviceGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -73,6 +73,8 @@ void QueryDeviceDetailResult::parse(const std::string &payload)
data_.nodeType = std::stoi(dataNode["NodeType"].asString());
if(!dataNode["Region"].isNull())
data_.region = dataNode["Region"].asString();
if(!dataNode["Owner"].isNull())
data_.owner = dataNode["Owner"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())

View File

@@ -0,0 +1,49 @@
/*
* 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/QueryDeviceGroupInfoRequest.h>
using AlibabaCloud::Iot::Model::QueryDeviceGroupInfoRequest;
QueryDeviceGroupInfoRequest::QueryDeviceGroupInfoRequest() :
RpcServiceRequest("iot", "2018-01-20", "QueryDeviceGroupInfo")
{}
QueryDeviceGroupInfoRequest::~QueryDeviceGroupInfoRequest()
{}
std::string QueryDeviceGroupInfoRequest::getGroupId()const
{
return groupId_;
}
void QueryDeviceGroupInfoRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string QueryDeviceGroupInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDeviceGroupInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,86 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/iot/model/QueryDeviceGroupInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
QueryDeviceGroupInfoResult::QueryDeviceGroupInfoResult() :
ServiceResult()
{}
QueryDeviceGroupInfoResult::QueryDeviceGroupInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceGroupInfoResult::~QueryDeviceGroupInfoResult()
{}
void QueryDeviceGroupInfoResult::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["GroupId"].isNull())
data_.groupId = dataNode["GroupId"].asString();
if(!dataNode["UtcCreate"].isNull())
data_.utcCreate = dataNode["UtcCreate"].asString();
if(!dataNode["GroupName"].isNull())
data_.groupName = dataNode["GroupName"].asString();
if(!dataNode["GroupDesc"].isNull())
data_.groupDesc = dataNode["GroupDesc"].asString();
if(!dataNode["DeviceCount"].isNull())
data_.deviceCount = std::stoi(dataNode["DeviceCount"].asString());
if(!dataNode["DeviceActive"].isNull())
data_.deviceActive = std::stoi(dataNode["DeviceActive"].asString());
if(!dataNode["DeviceOnline"].isNull())
data_.deviceOnline = std::stoi(dataNode["DeviceOnline"].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();
}
QueryDeviceGroupInfoResult::Data QueryDeviceGroupInfoResult::getData()const
{
return data_;
}
std::string QueryDeviceGroupInfoResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryDeviceGroupInfoResult::getCode()const
{
return code_;
}
bool QueryDeviceGroupInfoResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/QueryDeviceGroupListRequest.h>
using AlibabaCloud::Iot::Model::QueryDeviceGroupListRequest;
QueryDeviceGroupListRequest::QueryDeviceGroupListRequest() :
RpcServiceRequest("iot", "2018-01-20", "QueryDeviceGroupList")
{}
QueryDeviceGroupListRequest::~QueryDeviceGroupListRequest()
{}
std::string QueryDeviceGroupListRequest::getSuperGroupId()const
{
return superGroupId_;
}
void QueryDeviceGroupListRequest::setSuperGroupId(const std::string& superGroupId)
{
superGroupId_ = superGroupId;
setParameter("SuperGroupId", superGroupId);
}
int QueryDeviceGroupListRequest::getPageSize()const
{
return pageSize_;
}
void QueryDeviceGroupListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int QueryDeviceGroupListRequest::getCurrentPage()const
{
return currentPage_;
}
void QueryDeviceGroupListRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string QueryDeviceGroupListRequest::getGroupName()const
{
return groupName_;
}
void QueryDeviceGroupListRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setParameter("GroupName", groupName);
}
std::string QueryDeviceGroupListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDeviceGroupListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,113 @@
/*
* 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/QueryDeviceGroupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Iot;
using namespace AlibabaCloud::Iot::Model;
QueryDeviceGroupListResult::QueryDeviceGroupListResult() :
ServiceResult()
{}
QueryDeviceGroupListResult::QueryDeviceGroupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryDeviceGroupListResult::~QueryDeviceGroupListResult()
{}
void QueryDeviceGroupListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allData = value["Data"]["GroupInfo"];
for (auto value : allData)
{
GroupInfo dataObject;
if(!value["GroupId"].isNull())
dataObject.groupId = value["GroupId"].asString();
if(!value["UtcCreate"].isNull())
dataObject.utcCreate = value["UtcCreate"].asString();
if(!value["GroupName"].isNull())
dataObject.groupName = value["GroupName"].asString();
if(!value["GroupDesc"].isNull())
dataObject.groupDesc = value["GroupDesc"].asString();
data_.push_back(dataObject);
}
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();
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["PageCount"].isNull())
pageCount_ = std::stoi(value["PageCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
int QueryDeviceGroupListResult::getPageCount()const
{
return pageCount_;
}
int QueryDeviceGroupListResult::getPageSize()const
{
return pageSize_;
}
int QueryDeviceGroupListResult::getCurrentPage()const
{
return currentPage_;
}
int QueryDeviceGroupListResult::getTotal()const
{
return total_;
}
std::vector<QueryDeviceGroupListResult::GroupInfo> QueryDeviceGroupListResult::getData()const
{
return data_;
}
std::string QueryDeviceGroupListResult::getErrorMessage()const
{
return errorMessage_;
}
std::string QueryDeviceGroupListResult::getCode()const
{
return code_;
}
bool QueryDeviceGroupListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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/QueryDeviceGroupTagListRequest.h>
using AlibabaCloud::Iot::Model::QueryDeviceGroupTagListRequest;
QueryDeviceGroupTagListRequest::QueryDeviceGroupTagListRequest() :
RpcServiceRequest("iot", "2018-01-20", "QueryDeviceGroupTagList")
{}
QueryDeviceGroupTagListRequest::~QueryDeviceGroupTagListRequest()
{}
std::string QueryDeviceGroupTagListRequest::getGroupId()const
{
return groupId_;
}
void QueryDeviceGroupTagListRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string QueryDeviceGroupTagListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryDeviceGroupTagListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -67,6 +67,10 @@ void QueryProductResult::parse(const std::string &payload)
data_.id2 = dataNode["Id2"].asString() == "true";
if(!dataNode["ProtocolType"].isNull())
data_.protocolType = dataNode["ProtocolType"].asString();
if(!dataNode["ProductStatus"].isNull())
data_.productStatus = dataNode["ProductStatus"].asString();
if(!dataNode["Owner"].isNull())
data_.owner = dataNode["Owner"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())

View 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.
*/
#include <alibabacloud/iot/model/UpdateDeviceGroupRequest.h>
using AlibabaCloud::Iot::Model::UpdateDeviceGroupRequest;
UpdateDeviceGroupRequest::UpdateDeviceGroupRequest() :
RpcServiceRequest("iot", "2018-01-20", "UpdateDeviceGroup")
{}
UpdateDeviceGroupRequest::~UpdateDeviceGroupRequest()
{}
std::string UpdateDeviceGroupRequest::getGroupDesc()const
{
return groupDesc_;
}
void UpdateDeviceGroupRequest::setGroupDesc(const std::string& groupDesc)
{
groupDesc_ = groupDesc;
setParameter("GroupDesc", groupDesc);
}
std::string UpdateDeviceGroupRequest::getGroupId()const
{
return groupId_;
}
void UpdateDeviceGroupRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string UpdateDeviceGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateDeviceGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

86
saf/CMakeLists.txt Executable file
View File

@@ -0,0 +1,86 @@
#
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(saf_public_header
include/alibabacloud/saf/SafClient.h
include/alibabacloud/saf/SafExport.h )
set(saf_public_header_model
include/alibabacloud/saf/model/ExecuteRequestRequest.h
include/alibabacloud/saf/model/ExecuteRequestResult.h )
set(saf_src
src/SafClient.cc
src/model/ExecuteRequestRequest.cc
src/model/ExecuteRequestResult.cc )
add_library(saf ${LIB_TYPE}
${saf_public_header}
${saf_public_header_model}
${saf_src})
set_target_properties(saf
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}saf
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(saf
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_SAF_LIBRARY)
endif()
target_include_directories(saf
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(saf
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(saf
jsoncpp)
target_include_directories(saf
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(saf
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(saf
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(saf
PRIVATE /usr/include/jsoncpp)
target_link_libraries(saf
jsoncpp)
endif()
install(FILES ${saf_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/saf)
install(FILES ${saf_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/saf/model)
install(TARGETS saf
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,54 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_SAF_SAFCLIENT_H_
#define ALIBABACLOUD_SAF_SAFCLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "SafExport.h"
#include "model/ExecuteRequestRequest.h"
#include "model/ExecuteRequestResult.h"
namespace AlibabaCloud
{
namespace Saf
{
class ALIBABACLOUD_SAF_EXPORT SafClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::ExecuteRequestResult> ExecuteRequestOutcome;
typedef std::future<ExecuteRequestOutcome> ExecuteRequestOutcomeCallable;
typedef std::function<void(const SafClient*, const Model::ExecuteRequestRequest&, const ExecuteRequestOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ExecuteRequestAsyncHandler;
SafClient(const Credentials &credentials, const ClientConfiguration &configuration);
SafClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
SafClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~SafClient();
ExecuteRequestOutcome executeRequest(const Model::ExecuteRequestRequest &request)const;
void executeRequestAsync(const Model::ExecuteRequestRequest& request, const ExecuteRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ExecuteRequestOutcomeCallable executeRequestCallable(const Model::ExecuteRequestRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_SAF_SAFCLIENT_H_

View File

@@ -0,0 +1,32 @@
/*
* 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_SAF_SAFEXPORT_H_
#define ALIBABACLOUD_SAF_SAFEXPORT_H_
#include <alibabacloud/core/Global.h>
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_SAF_LIBRARY)
# define ALIBABACLOUD_SAF_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_SAF_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_SAF_EXPORT
#endif
#endif // !ALIBABACLOUD_SAF_SAFEXPORT_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_SAF_MODEL_EXECUTEREQUESTREQUEST_H_
#define ALIBABACLOUD_SAF_MODEL_EXECUTEREQUESTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/saf/SafExport.h>
namespace AlibabaCloud
{
namespace Saf
{
namespace Model
{
class ALIBABACLOUD_SAF_EXPORT ExecuteRequestRequest : public RpcServiceRequest
{
public:
ExecuteRequestRequest();
~ExecuteRequestRequest();
std::string getServiceParameters()const;
void setServiceParameters(const std::string& serviceParameters);
std::string getService()const;
void setService(const std::string& service);
private:
std::string serviceParameters_;
std::string service_;
};
}
}
}
#endif // !ALIBABACLOUD_SAF_MODEL_EXECUTEREQUESTREQUEST_H_

View File

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

89
saf/src/SafClient.cc Executable file
View File

@@ -0,0 +1,89 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/saf/SafClient.h>
#include <alibabacloud/core/SimpleCredentialsProvider.h>
using namespace AlibabaCloud;
using namespace AlibabaCloud::Location;
using namespace AlibabaCloud::Saf;
using namespace AlibabaCloud::Saf::Model;
namespace
{
const std::string SERVICE_NAME = "saf";
}
SafClient::SafClient(const Credentials &credentials, const ClientConfiguration &configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "saf");
}
SafClient::SafClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "saf");
}
SafClient::SafClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "saf");
}
SafClient::~SafClient()
{}
SafClient::ExecuteRequestOutcome SafClient::executeRequest(const ExecuteRequestRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ExecuteRequestOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ExecuteRequestOutcome(ExecuteRequestResult(outcome.result()));
else
return ExecuteRequestOutcome(outcome.error());
}
void SafClient::executeRequestAsync(const ExecuteRequestRequest& request, const ExecuteRequestAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, executeRequest(request), context);
};
asyncExecute(new Runnable(fn));
}
SafClient::ExecuteRequestOutcomeCallable SafClient::executeRequestCallable(const ExecuteRequestRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ExecuteRequestOutcome()>>(
[this, request]()
{
return this->executeRequest(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}

View File

@@ -0,0 +1,49 @@
/*
* 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/saf/model/ExecuteRequestRequest.h>
using AlibabaCloud::Saf::Model::ExecuteRequestRequest;
ExecuteRequestRequest::ExecuteRequestRequest() :
RpcServiceRequest("saf", "2018-09-19", "ExecuteRequest")
{}
ExecuteRequestRequest::~ExecuteRequestRequest()
{}
std::string ExecuteRequestRequest::getServiceParameters()const
{
return serviceParameters_;
}
void ExecuteRequestRequest::setServiceParameters(const std::string& serviceParameters)
{
serviceParameters_ = serviceParameters;
setParameter("ServiceParameters", serviceParameters);
}
std::string ExecuteRequestRequest::getService()const
{
return service_;
}
void ExecuteRequestRequest::setService(const std::string& service)
{
service_ = service;
setParameter("Service", service);
}

View File

@@ -0,0 +1,71 @@
/*
* 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/saf/model/ExecuteRequestResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Saf;
using namespace AlibabaCloud::Saf::Model;
ExecuteRequestResult::ExecuteRequestResult() :
ServiceResult()
{}
ExecuteRequestResult::ExecuteRequestResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecuteRequestResult::~ExecuteRequestResult()
{}
void ExecuteRequestResult::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["Tags"].isNull())
data_.tags = dataNode["Tags"].asString();
if(!dataNode["Score"].isNull())
data_.score = dataNode["Score"].asString();
if(!dataNode["Extend"].isNull())
data_.extend = dataNode["Extend"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ExecuteRequestResult::getMessage()const
{
return message_;
}
ExecuteRequestResult::Data ExecuteRequestResult::getData()const
{
return data_;
}
int ExecuteRequestResult::getCode()const
{
return code_;
}

BIN
vod/.DS_Store vendored

Binary file not shown.

View File

@@ -89,6 +89,8 @@ set(vod_public_header_model
include/alibabacloud/vod/model/CreateUploadImageResult.h
include/alibabacloud/vod/model/UpdateVideoInfoRequest.h
include/alibabacloud/vod/model/UpdateVideoInfoResult.h
include/alibabacloud/vod/model/UpdateImageInfosRequest.h
include/alibabacloud/vod/model/UpdateImageInfosResult.h
include/alibabacloud/vod/model/SearchMediaRequest.h
include/alibabacloud/vod/model/SearchMediaResult.h
include/alibabacloud/vod/model/DescribePlayTopVideosRequest.h
@@ -147,6 +149,8 @@ set(vod_public_header_model
include/alibabacloud/vod/model/GetOSSStatisResult.h
include/alibabacloud/vod/model/SetAuditSecurityIpRequest.h
include/alibabacloud/vod/model/SetAuditSecurityIpResult.h
include/alibabacloud/vod/model/DeleteMezzaninesRequest.h
include/alibabacloud/vod/model/DeleteMezzaninesResult.h
include/alibabacloud/vod/model/AddEditingProjectRequest.h
include/alibabacloud/vod/model/AddEditingProjectResult.h
include/alibabacloud/vod/model/SubmitAIVideoSummaryJobRequest.h
@@ -238,6 +242,8 @@ set(vod_src
src/model/CreateUploadImageResult.cc
src/model/UpdateVideoInfoRequest.cc
src/model/UpdateVideoInfoResult.cc
src/model/UpdateImageInfosRequest.cc
src/model/UpdateImageInfosResult.cc
src/model/SearchMediaRequest.cc
src/model/SearchMediaResult.cc
src/model/DescribePlayTopVideosRequest.cc
@@ -296,6 +302,8 @@ set(vod_src
src/model/GetOSSStatisResult.cc
src/model/SetAuditSecurityIpRequest.cc
src/model/SetAuditSecurityIpResult.cc
src/model/DeleteMezzaninesRequest.cc
src/model/DeleteMezzaninesResult.cc
src/model/AddEditingProjectRequest.cc
src/model/AddEditingProjectResult.cc
src/model/SubmitAIVideoSummaryJobRequest.cc

BIN
vod/include/.DS_Store vendored Normal file

Binary file not shown.

BIN
vod/include/alibabacloud/.DS_Store vendored Normal file

Binary file not shown.

BIN
vod/include/alibabacloud/vod/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -90,6 +90,8 @@
#include "model/CreateUploadImageResult.h"
#include "model/UpdateVideoInfoRequest.h"
#include "model/UpdateVideoInfoResult.h"
#include "model/UpdateImageInfosRequest.h"
#include "model/UpdateImageInfosResult.h"
#include "model/SearchMediaRequest.h"
#include "model/SearchMediaResult.h"
#include "model/DescribePlayTopVideosRequest.h"
@@ -148,6 +150,8 @@
#include "model/GetOSSStatisResult.h"
#include "model/SetAuditSecurityIpRequest.h"
#include "model/SetAuditSecurityIpResult.h"
#include "model/DeleteMezzaninesRequest.h"
#include "model/DeleteMezzaninesResult.h"
#include "model/AddEditingProjectRequest.h"
#include "model/AddEditingProjectResult.h"
#include "model/SubmitAIVideoSummaryJobRequest.h"
@@ -279,6 +283,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::UpdateVideoInfoResult> UpdateVideoInfoOutcome;
typedef std::future<UpdateVideoInfoOutcome> UpdateVideoInfoOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::UpdateVideoInfoRequest&, const UpdateVideoInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVideoInfoAsyncHandler;
typedef Outcome<Error, Model::UpdateImageInfosResult> UpdateImageInfosOutcome;
typedef std::future<UpdateImageInfosOutcome> UpdateImageInfosOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::UpdateImageInfosRequest&, const UpdateImageInfosOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateImageInfosAsyncHandler;
typedef Outcome<Error, Model::SearchMediaResult> SearchMediaOutcome;
typedef std::future<SearchMediaOutcome> SearchMediaOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::SearchMediaRequest&, const SearchMediaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchMediaAsyncHandler;
@@ -366,6 +373,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::SetAuditSecurityIpResult> SetAuditSecurityIpOutcome;
typedef std::future<SetAuditSecurityIpOutcome> SetAuditSecurityIpOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::SetAuditSecurityIpRequest&, const SetAuditSecurityIpOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetAuditSecurityIpAsyncHandler;
typedef Outcome<Error, Model::DeleteMezzaninesResult> DeleteMezzaninesOutcome;
typedef std::future<DeleteMezzaninesOutcome> DeleteMezzaninesOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::DeleteMezzaninesRequest&, const DeleteMezzaninesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMezzaninesAsyncHandler;
typedef Outcome<Error, Model::AddEditingProjectResult> AddEditingProjectOutcome;
typedef std::future<AddEditingProjectOutcome> AddEditingProjectOutcomeCallable;
typedef std::function<void(const VodClient*, const Model::AddEditingProjectRequest&, const AddEditingProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddEditingProjectAsyncHandler;
@@ -503,6 +513,9 @@ namespace AlibabaCloud
UpdateVideoInfoOutcome updateVideoInfo(const Model::UpdateVideoInfoRequest &request)const;
void updateVideoInfoAsync(const Model::UpdateVideoInfoRequest& request, const UpdateVideoInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVideoInfoOutcomeCallable updateVideoInfoCallable(const Model::UpdateVideoInfoRequest& request) const;
UpdateImageInfosOutcome updateImageInfos(const Model::UpdateImageInfosRequest &request)const;
void updateImageInfosAsync(const Model::UpdateImageInfosRequest& request, const UpdateImageInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateImageInfosOutcomeCallable updateImageInfosCallable(const Model::UpdateImageInfosRequest& request) const;
SearchMediaOutcome searchMedia(const Model::SearchMediaRequest &request)const;
void searchMediaAsync(const Model::SearchMediaRequest& request, const SearchMediaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SearchMediaOutcomeCallable searchMediaCallable(const Model::SearchMediaRequest& request) const;
@@ -590,6 +603,9 @@ namespace AlibabaCloud
SetAuditSecurityIpOutcome setAuditSecurityIp(const Model::SetAuditSecurityIpRequest &request)const;
void setAuditSecurityIpAsync(const Model::SetAuditSecurityIpRequest& request, const SetAuditSecurityIpAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
SetAuditSecurityIpOutcomeCallable setAuditSecurityIpCallable(const Model::SetAuditSecurityIpRequest& request) const;
DeleteMezzaninesOutcome deleteMezzanines(const Model::DeleteMezzaninesRequest &request)const;
void deleteMezzaninesAsync(const Model::DeleteMezzaninesRequest& request, const DeleteMezzaninesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteMezzaninesOutcomeCallable deleteMezzaninesCallable(const Model::DeleteMezzaninesRequest& request) const;
AddEditingProjectOutcome addEditingProject(const Model::AddEditingProjectRequest &request)const;
void addEditingProjectAsync(const Model::AddEditingProjectRequest& request, const AddEditingProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
AddEditingProjectOutcomeCallable addEditingProjectCallable(const Model::AddEditingProjectRequest& request) const;

Binary file not shown.

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT DeleteMezzaninesRequest : public RpcServiceRequest
{
public:
DeleteMezzaninesRequest();
~DeleteMezzaninesRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
bool getForce()const;
void setForce(bool force);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getVideoIds()const;
void setVideoIds(const std::string& videoIds);
private:
long resourceOwnerId_;
std::string resourceOwnerAccount_;
bool force_;
long resourceRealOwnerId_;
long ownerId_;
std::string videoIds_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* 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_VOD_MODEL_DELETEMEZZANINESRESULT_H_
#define ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT DeleteMezzaninesResult : public ServiceResult
{
public:
DeleteMezzaninesResult();
explicit DeleteMezzaninesResult(const std::string &payload);
~DeleteMezzaninesResult();
std::vector<std::string> getNonExistVideoIds()const;
std::vector<std::string> getUnRemoveableVideoIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> nonExistVideoIds_;
std::vector<std::string> unRemoveableVideoIds_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_DELETEMEZZANINESRESULT_H_

View File

@@ -35,11 +35,29 @@ namespace AlibabaCloud
GetAuditResultRequest();
~GetAuditResultRequest();
std::string getResourceOwnerId()const;
void setResourceOwnerId(const std::string& resourceOwnerId);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getOwnerAccount()const;
void setOwnerAccount(const std::string& ownerAccount);
std::string getVideoId()const;
void setVideoId(const std::string& videoId);
std::string getOwnerId()const;
void setOwnerId(const std::string& ownerId);
std::string getMediaId()const;
void setMediaId(const std::string& mediaId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
std::string resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string ownerAccount_;
std::string videoId_;
std::string ownerId_;
std::string mediaId_;
std::string accessKeyId_;
};
}

View File

@@ -34,8 +34,11 @@ namespace AlibabaCloud
public:
struct AIAuditResult
{
std::string abnormalModules;
std::string titleResult;
std::string label;
std::string terrorismResult;
std::string coverResult;
std::string pornResult;
};

View File

@@ -57,6 +57,8 @@ namespace AlibabaCloud
void setRand(const std::string& rand);
std::string getReAuthInfo()const;
void setReAuthInfo(const std::string& reAuthInfo);
std::string getPlayConfig()const;
void setPlayConfig(const std::string& playConfig);
std::string getOutputType()const;
void setOutputType(const std::string& outputType);
std::string getDefinition()const;
@@ -78,6 +80,7 @@ namespace AlibabaCloud
std::string resultType_;
std::string rand_;
std::string reAuthInfo_;
std::string playConfig_;
std::string outputType_;
std::string definition_;
long authTimeout_;

View File

@@ -47,6 +47,7 @@ namespace AlibabaCloud
std::string coverURL;
std::string duration;
std::vector<Thumbnail> thumbnailList;
std::string outputType;
};
struct PlayInfo
{

View File

@@ -41,6 +41,8 @@ namespace AlibabaCloud
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
std::string getReAuthInfo()const;
void setReAuthInfo(const std::string& reAuthInfo);
std::string getPlayConfig()const;
void setPlayConfig(const std::string& playConfig);
long getAuthInfoTimeout()const;
void setAuthInfoTimeout(long authInfoTimeout);
std::string getVideoId()const;
@@ -52,6 +54,7 @@ namespace AlibabaCloud
long resourceOwnerId_;
std::string resourceOwnerAccount_;
std::string reAuthInfo_;
std::string playConfig_;
long authInfoTimeout_;
std::string videoId_;
long ownerId_;

View File

@@ -0,0 +1,63 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSREQUEST_H_
#define ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT UpdateImageInfosRequest : public RpcServiceRequest
{
public:
UpdateImageInfosRequest();
~UpdateImageInfosRequest();
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getUpdateContent()const;
void setUpdateContent(const std::string& updateContent);
std::string getResourceOwnerAccount()const;
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
long getResourceRealOwnerId()const;
void setResourceRealOwnerId(long resourceRealOwnerId);
long getOwnerId()const;
void setOwnerId(long ownerId);
std::string getAccessKeyId()const;
void setAccessKeyId(const std::string& accessKeyId);
private:
long resourceOwnerId_;
std::string updateContent_;
std::string resourceOwnerAccount_;
long resourceRealOwnerId_;
long ownerId_;
std::string accessKeyId_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSREQUEST_H_

View File

@@ -0,0 +1,51 @@
/*
* 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_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_
#define ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vod/VodExport.h>
namespace AlibabaCloud
{
namespace Vod
{
namespace Model
{
class ALIBABACLOUD_VOD_EXPORT UpdateImageInfosResult : public ServiceResult
{
public:
UpdateImageInfosResult();
explicit UpdateImageInfosResult(const std::string &payload);
~UpdateImageInfosResult();
std::vector<std::string> getNonExistImageIds()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> nonExistImageIds_;
};
}
}
}
#endif // !ALIBABACLOUD_VOD_MODEL_UPDATEIMAGEINFOSRESULT_H_

View File

@@ -1275,6 +1275,42 @@ VodClient::UpdateVideoInfoOutcomeCallable VodClient::updateVideoInfoCallable(con
return task->get_future();
}
VodClient::UpdateImageInfosOutcome VodClient::updateImageInfos(const UpdateImageInfosRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateImageInfosOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateImageInfosOutcome(UpdateImageInfosResult(outcome.result()));
else
return UpdateImageInfosOutcome(outcome.error());
}
void VodClient::updateImageInfosAsync(const UpdateImageInfosRequest& request, const UpdateImageInfosAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateImageInfos(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::UpdateImageInfosOutcomeCallable VodClient::updateImageInfosCallable(const UpdateImageInfosRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateImageInfosOutcome()>>(
[this, request]()
{
return this->updateImageInfos(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::SearchMediaOutcome VodClient::searchMedia(const SearchMediaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2319,6 +2355,42 @@ VodClient::SetAuditSecurityIpOutcomeCallable VodClient::setAuditSecurityIpCallab
return task->get_future();
}
VodClient::DeleteMezzaninesOutcome VodClient::deleteMezzanines(const DeleteMezzaninesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteMezzaninesOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteMezzaninesOutcome(DeleteMezzaninesResult(outcome.result()));
else
return DeleteMezzaninesOutcome(outcome.error());
}
void VodClient::deleteMezzaninesAsync(const DeleteMezzaninesRequest& request, const DeleteMezzaninesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteMezzanines(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::DeleteMezzaninesOutcomeCallable VodClient::deleteMezzaninesCallable(const DeleteMezzaninesRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteMezzaninesOutcome()>>(
[this, request]()
{
return this->deleteMezzanines(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::AddEditingProjectOutcome VodClient::addEditingProject(const AddEditingProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

BIN
vod/src/model/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,82 @@
/*
* 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/vod/model/DeleteMezzaninesRequest.h>
using AlibabaCloud::Vod::Model::DeleteMezzaninesRequest;
DeleteMezzaninesRequest::DeleteMezzaninesRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteMezzanines")
{}
DeleteMezzaninesRequest::~DeleteMezzaninesRequest()
{}
long DeleteMezzaninesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMezzaninesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMezzaninesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMezzaninesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool DeleteMezzaninesRequest::getForce()const
{
return force_;
}
void DeleteMezzaninesRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", std::to_string(force));
}
long DeleteMezzaninesRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMezzaninesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMezzaninesRequest::getVideoIds()const
{
return videoIds_;
}
void DeleteMezzaninesRequest::setVideoIds(const std::string& videoIds)
{
videoIds_ = videoIds;
setParameter("VideoIds", videoIds);
}

View File

@@ -0,0 +1,61 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DeleteMezzaninesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DeleteMezzaninesResult::DeleteMezzaninesResult() :
ServiceResult()
{}
DeleteMezzaninesResult::DeleteMezzaninesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMezzaninesResult::~DeleteMezzaninesResult()
{}
void DeleteMezzaninesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNonExistVideoIds = value["NonExistVideoIds"]["VideoId"];
for (const auto &item : allNonExistVideoIds)
nonExistVideoIds_.push_back(item.asString());
auto allUnRemoveableVideoIds = value["UnRemoveableVideoIds"]["VideoId"];
for (const auto &item : allUnRemoveableVideoIds)
unRemoveableVideoIds_.push_back(item.asString());
}
std::vector<std::string> DeleteMezzaninesResult::getNonExistVideoIds()const
{
return nonExistVideoIds_;
}
std::vector<std::string> DeleteMezzaninesResult::getUnRemoveableVideoIds()const
{
return unRemoveableVideoIds_;
}

View File

@@ -25,6 +25,39 @@ GetAuditResultRequest::GetAuditResultRequest() :
GetAuditResultRequest::~GetAuditResultRequest()
{}
std::string GetAuditResultRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAuditResultRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetAuditResultRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAuditResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetAuditResultRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetAuditResultRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetAuditResultRequest::getVideoId()const
{
return videoId_;
@@ -36,3 +69,36 @@ void GetAuditResultRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
std::string GetAuditResultRequest::getOwnerId()const
{
return ownerId_;
}
void GetAuditResultRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetAuditResultRequest::getMediaId()const
{
return mediaId_;
}
void GetAuditResultRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string GetAuditResultRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAuditResultRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -41,12 +41,18 @@ void GetAuditResultResult::parse(const std::string &payload)
setRequestId(value["RequestId"].asString());
auto aIAuditResultNode = value["AIAuditResult"];
if(!aIAuditResultNode["AbnormalModules"].isNull())
aIAuditResult_.abnormalModules = aIAuditResultNode["AbnormalModules"].asString();
if(!aIAuditResultNode["Label"].isNull())
aIAuditResult_.label = aIAuditResultNode["Label"].asString();
if(!aIAuditResultNode["TerrorismResult"].isNull())
aIAuditResult_.terrorismResult = aIAuditResultNode["TerrorismResult"].asString();
if(!aIAuditResultNode["PornResult"].isNull())
aIAuditResult_.pornResult = aIAuditResultNode["PornResult"].asString();
if(!aIAuditResultNode["TerrorismResult"].isNull())
aIAuditResult_.terrorismResult = aIAuditResultNode["TerrorismResult"].asString();
if(!aIAuditResultNode["TitleResult"].isNull())
aIAuditResult_.titleResult = aIAuditResultNode["TitleResult"].asString();
if(!aIAuditResultNode["CoverResult"].isNull())
aIAuditResult_.coverResult = aIAuditResultNode["CoverResult"].asString();
}

View File

@@ -146,6 +146,17 @@ void GetPlayInfoRequest::setReAuthInfo(const std::string& reAuthInfo)
setParameter("ReAuthInfo", reAuthInfo);
}
std::string GetPlayInfoRequest::getPlayConfig()const
{
return playConfig_;
}
void GetPlayInfoRequest::setPlayConfig(const std::string& playConfig)
{
playConfig_ = playConfig;
setParameter("PlayConfig", playConfig);
}
std::string GetPlayInfoRequest::getOutputType()const
{
return outputType_;

View File

@@ -89,6 +89,8 @@ void GetPlayInfoResult::parse(const std::string &payload)
playInfoList_.push_back(playInfoListObject);
}
auto videoBaseNode = value["VideoBase"];
if(!videoBaseNode["OutputType"].isNull())
videoBase_.outputType = videoBaseNode["OutputType"].asString();
if(!videoBaseNode["CoverURL"].isNull())
videoBase_.coverURL = videoBaseNode["CoverURL"].asString();
if(!videoBaseNode["Duration"].isNull())

View File

@@ -58,6 +58,17 @@ void GetVideoPlayAuthRequest::setReAuthInfo(const std::string& reAuthInfo)
setParameter("ReAuthInfo", reAuthInfo);
}
std::string GetVideoPlayAuthRequest::getPlayConfig()const
{
return playConfig_;
}
void GetVideoPlayAuthRequest::setPlayConfig(const std::string& playConfig)
{
playConfig_ = playConfig;
setParameter("PlayConfig", playConfig);
}
long GetVideoPlayAuthRequest::getAuthInfoTimeout()const
{
return authInfoTimeout_;

View File

@@ -0,0 +1,93 @@
/*
* 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/vod/model/UpdateImageInfosRequest.h>
using AlibabaCloud::Vod::Model::UpdateImageInfosRequest;
UpdateImageInfosRequest::UpdateImageInfosRequest() :
RpcServiceRequest("vod", "2017-03-21", "UpdateImageInfos")
{}
UpdateImageInfosRequest::~UpdateImageInfosRequest()
{}
long UpdateImageInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateImageInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateImageInfosRequest::getUpdateContent()const
{
return updateContent_;
}
void UpdateImageInfosRequest::setUpdateContent(const std::string& updateContent)
{
updateContent_ = updateContent;
setParameter("UpdateContent", updateContent);
}
std::string UpdateImageInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateImageInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long UpdateImageInfosRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void UpdateImageInfosRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long UpdateImageInfosRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateImageInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateImageInfosRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateImageInfosRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,53 @@
/*
* 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/vod/model/UpdateImageInfosResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
UpdateImageInfosResult::UpdateImageInfosResult() :
ServiceResult()
{}
UpdateImageInfosResult::UpdateImageInfosResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateImageInfosResult::~UpdateImageInfosResult()
{}
void UpdateImageInfosResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNonExistImageIds = value["NonExistImageIds"]["ImageId"];
for (const auto &item : allNonExistImageIds)
nonExistImageIds_.push_back(item.asString());
}
std::vector<std::string> UpdateImageInfosResult::getNonExistImageIds()const
{
return nonExistImageIds_;
}