Add describes devices API.

This commit is contained in:
sdk-team
2020-09-05 04:05:12 +00:00
parent 98ef8c88e8
commit 52e7b30f54
18 changed files with 460 additions and 5 deletions

View File

@@ -68,6 +68,8 @@
#include "model/DeleteUserGroupResult.h"
#include "model/DeleteVideoSummaryTaskRequest.h"
#include "model/DeleteVideoSummaryTaskResult.h"
#include "model/DescribeDevicesRequest.h"
#include "model/DescribeDevicesResult.h"
#include "model/GetBodyOptionsRequest.h"
#include "model/GetBodyOptionsResult.h"
#include "model/GetCatalogListRequest.h"
@@ -254,6 +256,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::DeleteVideoSummaryTaskResult> DeleteVideoSummaryTaskOutcome;
typedef std::future<DeleteVideoSummaryTaskOutcome> DeleteVideoSummaryTaskOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::DeleteVideoSummaryTaskRequest&, const DeleteVideoSummaryTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteVideoSummaryTaskAsyncHandler;
typedef Outcome<Error, Model::DescribeDevicesResult> DescribeDevicesOutcome;
typedef std::future<DescribeDevicesOutcome> DescribeDevicesOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::DescribeDevicesRequest&, const DescribeDevicesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDevicesAsyncHandler;
typedef Outcome<Error, Model::GetBodyOptionsResult> GetBodyOptionsOutcome;
typedef std::future<GetBodyOptionsOutcome> GetBodyOptionsOutcomeCallable;
typedef std::function<void(const VcsClient*, const Model::GetBodyOptionsRequest&, const GetBodyOptionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyOptionsAsyncHandler;
@@ -490,6 +495,9 @@ namespace AlibabaCloud
DeleteVideoSummaryTaskOutcome deleteVideoSummaryTask(const Model::DeleteVideoSummaryTaskRequest &request)const;
void deleteVideoSummaryTaskAsync(const Model::DeleteVideoSummaryTaskRequest& request, const DeleteVideoSummaryTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteVideoSummaryTaskOutcomeCallable deleteVideoSummaryTaskCallable(const Model::DeleteVideoSummaryTaskRequest& request) const;
DescribeDevicesOutcome describeDevices(const Model::DescribeDevicesRequest &request)const;
void describeDevicesAsync(const Model::DescribeDevicesRequest& request, const DescribeDevicesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDevicesOutcomeCallable describeDevicesCallable(const Model::DescribeDevicesRequest& request) const;
GetBodyOptionsOutcome getBodyOptions(const Model::GetBodyOptionsRequest &request)const;
void getBodyOptionsAsync(const Model::GetBodyOptionsRequest& request, const GetBodyOptionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetBodyOptionsOutcomeCallable getBodyOptionsCallable(const Model::GetBodyOptionsRequest& request) const;

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_VCS_MODEL_DESCRIBEDEVICESREQUEST_H_
#define ALIBABACLOUD_VCS_MODEL_DESCRIBEDEVICESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT DescribeDevicesRequest : public RpcServiceRequest
{
public:
DescribeDevicesRequest();
~DescribeDevicesRequest();
int getPageNum()const;
void setPageNum(int pageNum);
std::string getCorpIdList()const;
void setCorpIdList(const std::string& corpIdList);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int pageNum_;
std::string corpIdList_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_DESCRIBEDEVICESREQUEST_H_

View File

@@ -0,0 +1,77 @@
/*
* 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_VCS_MODEL_DESCRIBEDEVICESRESULT_H_
#define ALIBABACLOUD_VCS_MODEL_DESCRIBEDEVICESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/vcs/VcsExport.h>
namespace AlibabaCloud
{
namespace Vcs
{
namespace Model
{
class ALIBABACLOUD_VCS_EXPORT DescribeDevicesResult : public ServiceResult
{
public:
struct Data
{
struct Record
{
std::string inProtocol;
int status;
std::string deviceType;
std::string corpId;
std::string deviceAddress;
std::string deviceId;
std::string createTime;
std::string latitude;
std::string vendor;
std::string longitude;
std::string deviceName;
};
int totalCount;
int pageNum;
int pageSize;
int totalPage;
std::vector<Record> records;
};
DescribeDevicesResult();
explicit DescribeDevicesResult(const std::string &payload);
~DescribeDevicesResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
};
}
}
}
#endif // !ALIBABACLOUD_VCS_MODEL_DESCRIBEDEVICESRESULT_H_

View File

@@ -35,14 +35,23 @@ namespace AlibabaCloud
GetDeviceLiveUrlRequest();
~GetDeviceLiveUrlRequest();
std::string getOutProtocol()const;
void setOutProtocol(const std::string& outProtocol);
int getStreamType()const;
void setStreamType(int streamType);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getGbId()const;
void setGbId(const std::string& gbId);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
private:
std::string outProtocol_;
int streamType_;
std::string corpId_;
std::string gbId_;
std::string deviceId_;
};
}

View File

@@ -37,15 +37,19 @@ namespace AlibabaCloud
GetDeviceLiveUrlResult();
explicit GetDeviceLiveUrlResult(const std::string &payload);
~GetDeviceLiveUrlResult();
int getStreamType()const;
std::string getMessage()const;
std::string getCode()const;
std::string getOutProtocol()const;
std::string getUrl()const;
protected:
void parse(const std::string &payload);
private:
int streamType_;
std::string message_;
std::string code_;
std::string outProtocol_;
std::string url_;
};

View File

@@ -35,6 +35,8 @@ namespace AlibabaCloud
GetDeviceVideoUrlRequest();
~GetDeviceVideoUrlRequest();
std::string getOutProtocol()const;
void setOutProtocol(const std::string& outProtocol);
std::string getCorpId()const;
void setCorpId(const std::string& corpId);
std::string getGbId()const;
@@ -43,12 +45,16 @@ namespace AlibabaCloud
void setEndTime(long endTime);
long getStartTime()const;
void setStartTime(long startTime);
std::string getDeviceId()const;
void setDeviceId(const std::string& deviceId);
private:
std::string outProtocol_;
std::string corpId_;
std::string gbId_;
long endTime_;
long startTime_;
std::string deviceId_;
};
}

View File

@@ -39,6 +39,7 @@ namespace AlibabaCloud
~GetDeviceVideoUrlResult();
std::string getMessage()const;
std::string getCode()const;
std::string getOutProtocol()const;
std::string getUrl()const;
protected:
@@ -46,6 +47,7 @@ namespace AlibabaCloud
private:
std::string message_;
std::string code_;
std::string outProtocol_;
std::string url_;
};

View File

@@ -47,6 +47,8 @@ namespace AlibabaCloud
void setIdNumber(const std::string& idNumber);
long getPageNumber()const;
void setPageNumber(long pageNumber);
std::string getFaceImageId()const;
void setFaceImageId(const std::string& faceImageId);
std::string getFaceUrl()const;
void setFaceUrl(const std::string& faceUrl);
long getPageSize()const;
@@ -77,6 +79,7 @@ namespace AlibabaCloud
std::string plateNo_;
std::string idNumber_;
long pageNumber_;
std::string faceImageId_;
std::string faceUrl_;
long pageSize_;
std::map<std::string, std::string> personIdList_;