CLOUDAUTH SDK Auto Released By zhongdong.pzd,Version:1.19.2

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2018-07-11 13:24:34 +08:00
parent 62484954fe
commit a9f8d260ed
18 changed files with 466 additions and 12 deletions

View File

@@ -26,6 +26,8 @@
#include "model/GetMaterialsResult.h"
#include "model/GetVerifyTokenRequest.h"
#include "model/GetVerifyTokenResult.h"
#include "model/DetectFaceAttributesRequest.h"
#include "model/DetectFaceAttributesResult.h"
#include "model/CompareFacesRequest.h"
#include "model/CompareFacesResult.h"
#include "model/SubmitMaterialsRequest.h"
@@ -47,6 +49,9 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::GetVerifyTokenRequest&, const GetVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVerifyTokenAsyncHandler;
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
@@ -67,6 +72,9 @@ namespace AlibabaCloud
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& request) const;
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const;

View File

@@ -0,0 +1,69 @@
/*
* 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_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest
{
public:
DetectFaceAttributesRequest();
~DetectFaceAttributesRequest();
int getMaxNumPhotosPerCategory()const;
void setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory);
int getMaxFaceNum()const;
void setMaxFaceNum(int maxFaceNum);
long getResourceOwnerId()const;
void setResourceOwnerId(long resourceOwnerId);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getRetAttributes()const;
void setRetAttributes(const std::string& retAttributes);
std::string getMaterialValue()const;
void setMaterialValue(const std::string& materialValue);
bool getDontSaveDB()const;
void setDontSaveDB(bool dontSaveDB);
std::string getClientTag()const;
void setClientTag(const std::string& clientTag);
private:
int maxNumPhotosPerCategory_;
int maxFaceNum_;
long resourceOwnerId_;
std::string sourceIp_;
std::string retAttributes_;
std::string materialValue_;
bool dontSaveDB_;
std::string clientTag_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_

View File

@@ -0,0 +1,102 @@
/*
* 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_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesResult : public ServiceResult
{
public:
struct Data
{
struct FaceAttributesDetectInfo
{
struct FaceRect
{
int left;
int top;
int height;
int width;
};
struct FaceAttributes
{
struct Gender
{
float score;
std::string value;
};
struct Smiling
{
float value;
float threshold;
};
struct Headpose
{
float pitchAngle;
float rollAngle;
float yawAngle;
};
std::string ethnicity;
std::string facetype;
Headpose headpose;
std::string glasses;
float blur;
Smiling smiling;
Gender gender;
int age;
};
FaceAttributes faceAttributes;
FaceRect faceRect;
};
int imgWidth;
int imgHeight;
std::vector<FaceAttributesDetectInfo> faceInfos;
};
DetectFaceAttributesResult();
explicit DetectFaceAttributesResult(const std::string &payload);
~DetectFaceAttributesResult();
std::string getMessage()const;
Data getData()const;
std::string getCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::string message_;
Data data_;
std::string code_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_

View File

@@ -36,10 +36,8 @@ namespace AlibabaCloud
{
std::string facePic;
std::string identificationNumber;
std::string idCardStartDate;
std::string address;
std::string idCardFrontPic;
std::string ethnicGroup;
std::string sex;
std::string idCardExpiry;
std::string idCardType;

View File

@@ -50,6 +50,7 @@ namespace AlibabaCloud
std::string endPoint;
};
StsToken stsToken;
std::string cloudauthPageUrl;
VerifyToken verifyToken;
};