diff --git a/VERSION b/VERSION index 2366fe56a..6e890658b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1886 \ No newline at end of file +1.36.1887 \ No newline at end of file diff --git a/cloudauth/CMakeLists.txt b/cloudauth/CMakeLists.txt index 87930c68e..9855bf743 100644 --- a/cloudauth/CMakeLists.txt +++ b/cloudauth/CMakeLists.txt @@ -21,6 +21,8 @@ set(cloudauth_public_header include/alibabacloud/cloudauth/CloudauthExport.h ) set(cloudauth_public_header_model + include/alibabacloud/cloudauth/model/AIGCFaceVerifyRequest.h + include/alibabacloud/cloudauth/model/AIGCFaceVerifyResult.h include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h include/alibabacloud/cloudauth/model/CompareFaceVerifyResult.h include/alibabacloud/cloudauth/model/CompareFacesRequest.h @@ -37,6 +39,10 @@ set(cloudauth_public_header_model include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h + include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataRequest.h + include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataResult.h + include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListRequest.h + include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListResult.h include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h include/alibabacloud/cloudauth/model/DescribeVerifyResultResult.h include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h @@ -45,10 +51,16 @@ set(cloudauth_public_header_model include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h + include/alibabacloud/cloudauth/model/Id2MetaVerifyRequest.h + include/alibabacloud/cloudauth/model/Id2MetaVerifyResult.h include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h + include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyRequest.h + include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyResult.h + include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyRequest.h + include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyResult.h include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h @@ -56,6 +68,8 @@ set(cloudauth_public_header_model set(cloudauth_src src/CloudauthClient.cc + src/model/AIGCFaceVerifyRequest.cc + src/model/AIGCFaceVerifyResult.cc src/model/CompareFaceVerifyRequest.cc src/model/CompareFaceVerifyResult.cc src/model/CompareFacesRequest.cc @@ -72,6 +86,10 @@ set(cloudauth_src src/model/DescribeFaceVerifyResult.cc src/model/DescribeOssUploadTokenRequest.cc src/model/DescribeOssUploadTokenResult.cc + src/model/DescribePageFaceVerifyDataRequest.cc + src/model/DescribePageFaceVerifyDataResult.cc + src/model/DescribeSmartStatisticsPageListRequest.cc + src/model/DescribeSmartStatisticsPageListResult.cc src/model/DescribeVerifyResultRequest.cc src/model/DescribeVerifyResultResult.cc src/model/DescribeVerifySDKRequest.cc @@ -80,10 +98,16 @@ set(cloudauth_src src/model/DescribeVerifyTokenResult.cc src/model/DetectFaceAttributesRequest.cc src/model/DetectFaceAttributesResult.cc + src/model/Id2MetaVerifyRequest.cc + src/model/Id2MetaVerifyResult.cc src/model/InitFaceVerifyRequest.cc src/model/InitFaceVerifyResult.cc src/model/LivenessFaceVerifyRequest.cc src/model/LivenessFaceVerifyResult.cc + src/model/Mobile3MetaDetailVerifyRequest.cc + src/model/Mobile3MetaDetailVerifyResult.cc + src/model/Mobile3MetaSimpleVerifyRequest.cc + src/model/Mobile3MetaSimpleVerifyResult.cc src/model/ModifyDeviceInfoRequest.cc src/model/ModifyDeviceInfoResult.cc src/model/VerifyMaterialRequest.cc diff --git a/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h b/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h index 1a4f474d2..55116acf1 100644 --- a/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h +++ b/cloudauth/include/alibabacloud/cloudauth/CloudauthClient.h @@ -22,6 +22,8 @@ #include #include #include "CloudauthExport.h" +#include "model/AIGCFaceVerifyRequest.h" +#include "model/AIGCFaceVerifyResult.h" #include "model/CompareFaceVerifyRequest.h" #include "model/CompareFaceVerifyResult.h" #include "model/CompareFacesRequest.h" @@ -38,6 +40,10 @@ #include "model/DescribeFaceVerifyResult.h" #include "model/DescribeOssUploadTokenRequest.h" #include "model/DescribeOssUploadTokenResult.h" +#include "model/DescribePageFaceVerifyDataRequest.h" +#include "model/DescribePageFaceVerifyDataResult.h" +#include "model/DescribeSmartStatisticsPageListRequest.h" +#include "model/DescribeSmartStatisticsPageListResult.h" #include "model/DescribeVerifyResultRequest.h" #include "model/DescribeVerifyResultResult.h" #include "model/DescribeVerifySDKRequest.h" @@ -46,10 +52,16 @@ #include "model/DescribeVerifyTokenResult.h" #include "model/DetectFaceAttributesRequest.h" #include "model/DetectFaceAttributesResult.h" +#include "model/Id2MetaVerifyRequest.h" +#include "model/Id2MetaVerifyResult.h" #include "model/InitFaceVerifyRequest.h" #include "model/InitFaceVerifyResult.h" #include "model/LivenessFaceVerifyRequest.h" #include "model/LivenessFaceVerifyResult.h" +#include "model/Mobile3MetaDetailVerifyRequest.h" +#include "model/Mobile3MetaDetailVerifyResult.h" +#include "model/Mobile3MetaSimpleVerifyRequest.h" +#include "model/Mobile3MetaSimpleVerifyResult.h" #include "model/ModifyDeviceInfoRequest.h" #include "model/ModifyDeviceInfoResult.h" #include "model/VerifyMaterialRequest.h" @@ -63,6 +75,9 @@ namespace AlibabaCloud class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient { public: + typedef Outcome AIGCFaceVerifyOutcome; + typedef std::future AIGCFaceVerifyOutcomeCallable; + typedef std::function&)> AIGCFaceVerifyAsyncHandler; typedef Outcome CompareFaceVerifyOutcome; typedef std::future CompareFaceVerifyOutcomeCallable; typedef std::function&)> CompareFaceVerifyAsyncHandler; @@ -87,6 +102,12 @@ namespace AlibabaCloud typedef Outcome DescribeOssUploadTokenOutcome; typedef std::future DescribeOssUploadTokenOutcomeCallable; typedef std::function&)> DescribeOssUploadTokenAsyncHandler; + typedef Outcome DescribePageFaceVerifyDataOutcome; + typedef std::future DescribePageFaceVerifyDataOutcomeCallable; + typedef std::function&)> DescribePageFaceVerifyDataAsyncHandler; + typedef Outcome DescribeSmartStatisticsPageListOutcome; + typedef std::future DescribeSmartStatisticsPageListOutcomeCallable; + typedef std::function&)> DescribeSmartStatisticsPageListAsyncHandler; typedef Outcome DescribeVerifyResultOutcome; typedef std::future DescribeVerifyResultOutcomeCallable; typedef std::function&)> DescribeVerifyResultAsyncHandler; @@ -99,12 +120,21 @@ namespace AlibabaCloud typedef Outcome DetectFaceAttributesOutcome; typedef std::future DetectFaceAttributesOutcomeCallable; typedef std::function&)> DetectFaceAttributesAsyncHandler; + typedef Outcome Id2MetaVerifyOutcome; + typedef std::future Id2MetaVerifyOutcomeCallable; + typedef std::function&)> Id2MetaVerifyAsyncHandler; typedef Outcome InitFaceVerifyOutcome; typedef std::future InitFaceVerifyOutcomeCallable; typedef std::function&)> InitFaceVerifyAsyncHandler; typedef Outcome LivenessFaceVerifyOutcome; typedef std::future LivenessFaceVerifyOutcomeCallable; typedef std::function&)> LivenessFaceVerifyAsyncHandler; + typedef Outcome Mobile3MetaDetailVerifyOutcome; + typedef std::future Mobile3MetaDetailVerifyOutcomeCallable; + typedef std::function&)> Mobile3MetaDetailVerifyAsyncHandler; + typedef Outcome Mobile3MetaSimpleVerifyOutcome; + typedef std::future Mobile3MetaSimpleVerifyOutcomeCallable; + typedef std::function&)> Mobile3MetaSimpleVerifyAsyncHandler; typedef Outcome ModifyDeviceInfoOutcome; typedef std::future ModifyDeviceInfoOutcomeCallable; typedef std::function&)> ModifyDeviceInfoAsyncHandler; @@ -116,6 +146,9 @@ namespace AlibabaCloud CloudauthClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CloudauthClient(); + AIGCFaceVerifyOutcome aIGCFaceVerify(const Model::AIGCFaceVerifyRequest &request)const; + void aIGCFaceVerifyAsync(const Model::AIGCFaceVerifyRequest& request, const AIGCFaceVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AIGCFaceVerifyOutcomeCallable aIGCFaceVerifyCallable(const Model::AIGCFaceVerifyRequest& request) const; CompareFaceVerifyOutcome compareFaceVerify(const Model::CompareFaceVerifyRequest &request)const; void compareFaceVerifyAsync(const Model::CompareFaceVerifyRequest& request, const CompareFaceVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CompareFaceVerifyOutcomeCallable compareFaceVerifyCallable(const Model::CompareFaceVerifyRequest& request) const; @@ -140,6 +173,12 @@ namespace AlibabaCloud DescribeOssUploadTokenOutcome describeOssUploadToken(const Model::DescribeOssUploadTokenRequest &request)const; void describeOssUploadTokenAsync(const Model::DescribeOssUploadTokenRequest& request, const DescribeOssUploadTokenAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeOssUploadTokenOutcomeCallable describeOssUploadTokenCallable(const Model::DescribeOssUploadTokenRequest& request) const; + DescribePageFaceVerifyDataOutcome describePageFaceVerifyData(const Model::DescribePageFaceVerifyDataRequest &request)const; + void describePageFaceVerifyDataAsync(const Model::DescribePageFaceVerifyDataRequest& request, const DescribePageFaceVerifyDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePageFaceVerifyDataOutcomeCallable describePageFaceVerifyDataCallable(const Model::DescribePageFaceVerifyDataRequest& request) const; + DescribeSmartStatisticsPageListOutcome describeSmartStatisticsPageList(const Model::DescribeSmartStatisticsPageListRequest &request)const; + void describeSmartStatisticsPageListAsync(const Model::DescribeSmartStatisticsPageListRequest& request, const DescribeSmartStatisticsPageListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSmartStatisticsPageListOutcomeCallable describeSmartStatisticsPageListCallable(const Model::DescribeSmartStatisticsPageListRequest& request) const; DescribeVerifyResultOutcome describeVerifyResult(const Model::DescribeVerifyResultRequest &request)const; void describeVerifyResultAsync(const Model::DescribeVerifyResultRequest& request, const DescribeVerifyResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeVerifyResultOutcomeCallable describeVerifyResultCallable(const Model::DescribeVerifyResultRequest& request) const; @@ -152,12 +191,21 @@ namespace AlibabaCloud DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const; void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const; + Id2MetaVerifyOutcome id2MetaVerify(const Model::Id2MetaVerifyRequest &request)const; + void id2MetaVerifyAsync(const Model::Id2MetaVerifyRequest& request, const Id2MetaVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Id2MetaVerifyOutcomeCallable id2MetaVerifyCallable(const Model::Id2MetaVerifyRequest& request) const; InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const; void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const; LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const; void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const; + Mobile3MetaDetailVerifyOutcome mobile3MetaDetailVerify(const Model::Mobile3MetaDetailVerifyRequest &request)const; + void mobile3MetaDetailVerifyAsync(const Model::Mobile3MetaDetailVerifyRequest& request, const Mobile3MetaDetailVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Mobile3MetaDetailVerifyOutcomeCallable mobile3MetaDetailVerifyCallable(const Model::Mobile3MetaDetailVerifyRequest& request) const; + Mobile3MetaSimpleVerifyOutcome mobile3MetaSimpleVerify(const Model::Mobile3MetaSimpleVerifyRequest &request)const; + void mobile3MetaSimpleVerifyAsync(const Model::Mobile3MetaSimpleVerifyRequest& request, const Mobile3MetaSimpleVerifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + Mobile3MetaSimpleVerifyOutcomeCallable mobile3MetaSimpleVerifyCallable(const Model::Mobile3MetaSimpleVerifyRequest& request) const; ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const; void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const; diff --git a/cloudauth/include/alibabacloud/cloudauth/model/AIGCFaceVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/AIGCFaceVerifyRequest.h new file mode 100644 index 000000000..10d7f5496 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/AIGCFaceVerifyRequest.h @@ -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_CLOUDAUTH_MODEL_AIGCFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_AIGCFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT AIGCFaceVerifyRequest : public RpcServiceRequest { +public: + AIGCFaceVerifyRequest(); + ~AIGCFaceVerifyRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getOssObjectName() const; + void setOssObjectName(const std::string &ossObjectName); + std::string getFaceContrastPicture() const; + void setFaceContrastPicture(const std::string &faceContrastPicture); + std::string getOuterOrderNo() const; + void setOuterOrderNo(const std::string &outerOrderNo); + std::string getFaceContrastPictureUrl() const; + void setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl); + long getSceneId() const; + void setSceneId(long sceneId); + std::string getOssBucketName() const; + void setOssBucketName(const std::string &ossBucketName); + +private: + std::string productCode_; + std::string ossObjectName_; + std::string faceContrastPicture_; + std::string outerOrderNo_; + std::string faceContrastPictureUrl_; + long sceneId_; + std::string ossBucketName_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_AIGCFACEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/AIGCFaceVerifyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/AIGCFaceVerifyResult.h new file mode 100644 index 000000000..b7da59897 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/AIGCFaceVerifyResult.h @@ -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_CLOUDAUTH_MODEL_AIGCFACEVERIFYRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_AIGCFACEVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT AIGCFaceVerifyResult : public ServiceResult + { + public: + struct ResultObject + { + std::string score; + std::string certifyId; + std::string result; + }; + + + AIGCFaceVerifyResult(); + explicit AIGCFaceVerifyResult(const std::string &payload); + ~AIGCFaceVerifyResult(); + ResultObject getResultObject()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultObject resultObject_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_AIGCFACEVERIFYRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h index 4d09b5900..29d4f7c41 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CompareFaceVerifyRequest.h @@ -1,87 +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. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFaceVerifyRequest : public RpcServiceRequest - { - - public: - CompareFaceVerifyRequest(); - ~CompareFaceVerifyRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getTargetCertifyId()const; - void setTargetCertifyId(const std::string& targetCertifyId); - std::string getTargetFaceContrastPicture()const; - void setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture); - std::string getTargetOssBucketName()const; - void setTargetOssBucketName(const std::string& targetOssBucketName); - std::string getOuterOrderNo()const; - void setOuterOrderNo(const std::string& outerOrderNo); - std::string getSourceFaceContrastPicture()const; - void setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture); - std::string getSourceCertifyId()const; - void setSourceCertifyId(const std::string& sourceCertifyId); - std::string getTargetFaceContrastPictureUrl()const; - void setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl); - std::string getSourceOssObjectName()const; - void setSourceOssObjectName(const std::string& sourceOssObjectName); - std::string getSourceOssBucketName()const; - void setSourceOssBucketName(const std::string& sourceOssBucketName); - std::string getTargetOssObjectName()const; - void setTargetOssObjectName(const std::string& targetOssObjectName); - long getSceneId()const; - void setSceneId(long sceneId); - std::string getSourceFaceContrastPictureUrl()const; - void setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl); - std::string getCrop()const; - void setCrop(const std::string& crop); - - private: - std::string productCode_; - std::string targetCertifyId_; - std::string targetFaceContrastPicture_; - std::string targetOssBucketName_; - std::string outerOrderNo_; - std::string sourceFaceContrastPicture_; - std::string sourceCertifyId_; - std::string targetFaceContrastPictureUrl_; - std::string sourceOssObjectName_; - std::string sourceOssBucketName_; - std::string targetOssObjectName_; - long sceneId_; - std::string sourceFaceContrastPictureUrl_; - std::string crop_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFaceVerifyRequest : public RpcServiceRequest { +public: + CompareFaceVerifyRequest(); + ~CompareFaceVerifyRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getTargetCertifyId() const; + void setTargetCertifyId(const std::string &targetCertifyId); + std::string getTargetFaceContrastPicture() const; + void setTargetFaceContrastPicture(const std::string &targetFaceContrastPicture); + std::string getTargetOssBucketName() const; + void setTargetOssBucketName(const std::string &targetOssBucketName); + std::string getOuterOrderNo() const; + void setOuterOrderNo(const std::string &outerOrderNo); + std::string getSourceFaceContrastPicture() const; + void setSourceFaceContrastPicture(const std::string &sourceFaceContrastPicture); + std::string getSourceCertifyId() const; + void setSourceCertifyId(const std::string &sourceCertifyId); + std::string getTargetFaceContrastPictureUrl() const; + void setTargetFaceContrastPictureUrl(const std::string &targetFaceContrastPictureUrl); + std::string getSourceOssObjectName() const; + void setSourceOssObjectName(const std::string &sourceOssObjectName); + std::string getSourceOssBucketName() const; + void setSourceOssBucketName(const std::string &sourceOssBucketName); + std::string getTargetOssObjectName() const; + void setTargetOssObjectName(const std::string &targetOssObjectName); + long getSceneId() const; + void setSceneId(long sceneId); + std::string getSourceFaceContrastPictureUrl() const; + void setSourceFaceContrastPictureUrl(const std::string &sourceFaceContrastPictureUrl); + std::string getCrop() const; + void setCrop(const std::string &crop); + +private: + std::string productCode_; + std::string targetCertifyId_; + std::string targetFaceContrastPicture_; + std::string targetOssBucketName_; + std::string outerOrderNo_; + std::string sourceFaceContrastPicture_; + std::string sourceCertifyId_; + std::string targetFaceContrastPictureUrl_; + std::string sourceOssObjectName_; + std::string sourceOssBucketName_; + std::string targetOssObjectName_; + long sceneId_; + std::string sourceFaceContrastPictureUrl_; + std::string crop_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h index e1f825de4..3d8fb6f57 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CompareFacesRequest.h @@ -1,60 +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_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest - { - - public: - CompareFacesRequest(); - ~CompareFacesRequest(); - - std::string getSourceImageType()const; - void setSourceImageType(const std::string& sourceImageType); - std::string getTargetImageType()const; - void setTargetImageType(const std::string& targetImageType); - std::string getTargetImageValue()const; - void setTargetImageValue(const std::string& targetImageValue); - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getSourceImageValue()const; - void setSourceImageValue(const std::string& sourceImageValue); - - private: - std::string sourceImageType_; - std::string targetImageType_; - std::string targetImageValue_; - std::string bizType_; - std::string sourceImageValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest { +public: + CompareFacesRequest(); + ~CompareFacesRequest(); + std::string getSourceImageType() const; + void setSourceImageType(const std::string &sourceImageType); + std::string getTargetImageType() const; + void setTargetImageType(const std::string &targetImageType); + std::string getTargetImageValue() const; + void setTargetImageValue(const std::string &targetImageValue); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getSourceImageValue() const; + void setSourceImageValue(const std::string &sourceImageValue); + +private: + std::string sourceImageType_; + std::string targetImageType_; + std::string targetImageValue_; + std::string bizType_; + std::string sourceImageValue_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h index 5b204fbc5..70606b951 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h @@ -1,99 +1,96 @@ /* * 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_CONTRASTFACEVERIFYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTFACEVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT ContrastFaceVerifyRequest : public RpcServiceRequest - { - - public: - ContrastFaceVerifyRequest(); - ~ContrastFaceVerifyRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getFaceContrastPicture()const; - void setFaceContrastPicture(const std::string& faceContrastPicture); - std::string getDeviceToken()const; - void setDeviceToken(const std::string& deviceToken); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getCertifyId()const; - void setCertifyId(const std::string& certifyId); - std::string getCertNo()const; - void setCertNo(const std::string& certNo); - std::string getOuterOrderNo()const; - void setOuterOrderNo(const std::string& outerOrderNo); - std::string getCertType()const; - void setCertType(const std::string& certType); - std::string getFaceContrastPictureUrl()const; - void setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl); - std::string getModel()const; - void setModel(const std::string& model); - std::string getOssObjectName()const; - void setOssObjectName(const std::string& ossObjectName); - std::string getCertName()const; - void setCertName(const std::string& certName); - std::string getIp()const; - void setIp(const std::string& ip); - std::string getMobile()const; - void setMobile(const std::string& mobile); - std::string getFaceContrastFile()const; - void setFaceContrastFile(const std::string& faceContrastFile); - long getSceneId()const; - void setSceneId(long sceneId); - std::string getOssBucketName()const; - void setOssBucketName(const std::string& ossBucketName); - std::string getCrop()const; - void setCrop(const std::string& crop); - - private: - std::string productCode_; - std::string faceContrastPicture_; - std::string deviceToken_; - std::string userId_; - std::string certifyId_; - std::string certNo_; - std::string outerOrderNo_; - std::string certType_; - std::string faceContrastPictureUrl_; - std::string model_; - std::string ossObjectName_; - std::string certName_; - std::string ip_; - std::string mobile_; - std::string faceContrastFile_; - long sceneId_; - std::string ossBucketName_; - std::string crop_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTFACEVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT ContrastFaceVerifyRequest : public RpcServiceRequest { +public: + ContrastFaceVerifyRequest(); + ~ContrastFaceVerifyRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getFaceContrastPicture() const; + void setFaceContrastPicture(const std::string &faceContrastPicture); + std::string getDeviceToken() const; + void setDeviceToken(const std::string &deviceToken); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getCertifyId() const; + void setCertifyId(const std::string &certifyId); + std::string getEncryptType() const; + void setEncryptType(const std::string &encryptType); + std::string getCertNo() const; + void setCertNo(const std::string &certNo); + std::string getOuterOrderNo() const; + void setOuterOrderNo(const std::string &outerOrderNo); + std::string getCertType() const; + void setCertType(const std::string &certType); + std::string getFaceContrastPictureUrl() const; + void setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl); + std::string getModel() const; + void setModel(const std::string &model); + std::string getOssObjectName() const; + void setOssObjectName(const std::string &ossObjectName); + std::string getCertName() const; + void setCertName(const std::string &certName); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getMobile() const; + void setMobile(const std::string &mobile); + std::string getFaceContrastFile() const; + void setFaceContrastFile(const std::string &faceContrastFile); + long getSceneId() const; + void setSceneId(long sceneId); + std::string getOssBucketName() const; + void setOssBucketName(const std::string &ossBucketName); + std::string getCrop() const; + void setCrop(const std::string &crop); + +private: + std::string productCode_; + std::string faceContrastPicture_; + std::string deviceToken_; + std::string userId_; + std::string certifyId_; + std::string encryptType_; + std::string certNo_; + std::string outerOrderNo_; + std::string certType_; + std::string faceContrastPictureUrl_; + std::string model_; + std::string ossObjectName_; + std::string certName_; + std::string ip_; + std::string mobile_; + std::string faceContrastFile_; + long sceneId_; + std::string ossBucketName_; + std::string crop_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTFACEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h index a41e50cef..6a85e289c 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h @@ -1,63 +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_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest - { - - public: - CreateAuthKeyRequest(); - ~CreateAuthKeyRequest(); - - std::string getUserDeviceId()const; - void setUserDeviceId(const std::string& userDeviceId); - bool getTest()const; - void setTest(bool test); - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - int getAuthYears()const; - void setAuthYears(int authYears); - std::string getLang()const; - void setLang(const std::string& lang); - - private: - std::string userDeviceId_; - bool test_; - std::string bizType_; - std::string sourceIp_; - int authYears_; - std::string lang_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest { +public: + CreateAuthKeyRequest(); + ~CreateAuthKeyRequest(); + std::string getUserDeviceId() const; + void setUserDeviceId(const std::string &userDeviceId); + bool getTest() const; + void setTest(bool test); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getAuthYears() const; + void setAuthYears(int authYears); + std::string getLang() const; + void setLang(const std::string &lang); + +private: + std::string userDeviceId_; + bool test_; + std::string bizType_; + std::string sourceIp_; + int authYears_; + std::string lang_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h index f85e26d99..9a0730723 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h @@ -1,66 +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_CLOUDAUTH_MODEL_CREATEVERIFYSETTINGREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSETTINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySettingRequest : public RpcServiceRequest - { - - public: - CreateVerifySettingRequest(); - ~CreateVerifySettingRequest(); - - bool getGuideStep()const; - void setGuideStep(bool guideStep); - bool getResultStep()const; - void setResultStep(bool resultStep); - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - std::string getSolution()const; - void setSolution(const std::string& solution); - std::string getBizName()const; - void setBizName(const std::string& bizName); - std::string getBizType()const; - void setBizType(const std::string& bizType); - bool getPrivacyStep()const; - void setPrivacyStep(bool privacyStep); - - private: - bool guideStep_; - bool resultStep_; - std::string sourceIp_; - std::string solution_; - std::string bizName_; - std::string bizType_; - bool privacyStep_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSETTINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSETTINGREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSETTINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySettingRequest : public RpcServiceRequest { +public: + CreateVerifySettingRequest(); + ~CreateVerifySettingRequest(); + bool getGuideStep() const; + void setGuideStep(bool guideStep); + bool getResultStep() const; + void setResultStep(bool resultStep); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getSolution() const; + void setSolution(const std::string &solution); + std::string getBizName() const; + void setBizName(const std::string &bizName); + std::string getBizType() const; + void setBizType(const std::string &bizType); + bool getPrivacyStep() const; + void setPrivacyStep(bool privacyStep); + +private: + bool guideStep_; + bool resultStep_; + std::string sourceIp_; + std::string solution_; + std::string bizName_; + std::string bizType_; + bool privacyStep_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSETTINGREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h index dcb39a73d..61df7db06 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h @@ -38,16 +38,16 @@ namespace AlibabaCloud explicit CreateVerifySettingResult(const std::string &payload); ~CreateVerifySettingResult(); std::vector getStepList()const; - std::string getBizType()const; std::string getBizName()const; + std::string getBizType()const; std::string getSolution()const; protected: void parse(const std::string &payload); private: std::vector stepList_; - std::string bizType_; std::string bizName_; + std::string bizType_; std::string solution_; }; diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h index 15a3c65c3..e81f53812 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h @@ -1,75 +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_DESCRIBEDEVICEINFOREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest - { - - public: - DescribeDeviceInfoRequest(); - ~DescribeDeviceInfoRequest(); - - std::string getUserDeviceId()const; - void setUserDeviceId(const std::string& userDeviceId); - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getExpiredStartDay()const; - void setExpiredStartDay(const std::string& expiredStartDay); - int getTotalCount()const; - void setTotalCount(int totalCount); - int getCurrentPage()const; - void setCurrentPage(int currentPage); - std::string getDeviceId()const; - void setDeviceId(const std::string& deviceId); - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getExpiredEndDay()const; - void setExpiredEndDay(const std::string& expiredEndDay); - - private: - std::string userDeviceId_; - std::string sourceIp_; - int pageSize_; - std::string lang_; - std::string expiredStartDay_; - int totalCount_; - int currentPage_; - std::string deviceId_; - std::string bizType_; - std::string expiredEndDay_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest { +public: + DescribeDeviceInfoRequest(); + ~DescribeDeviceInfoRequest(); + std::string getUserDeviceId() const; + void setUserDeviceId(const std::string &userDeviceId); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getExpiredStartDay() const; + void setExpiredStartDay(const std::string &expiredStartDay); + int getTotalCount() const; + void setTotalCount(int totalCount); + int getCurrentPage() const; + void setCurrentPage(int currentPage); + std::string getDeviceId() const; + void setDeviceId(const std::string &deviceId); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getExpiredEndDay() const; + void setExpiredEndDay(const std::string &expiredEndDay); + +private: + std::string userDeviceId_; + std::string sourceIp_; + int pageSize_; + std::string lang_; + std::string expiredStartDay_; + int totalCount_; + int currentPage_; + std::string deviceId_; + std::string bizType_; + std::string expiredEndDay_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h index b2cd89df0..7a08a951d 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h @@ -1,54 +1,48 @@ /* * 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_DESCRIBEFACEVERIFYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceVerifyRequest : public RpcServiceRequest - { - - public: - DescribeFaceVerifyRequest(); - ~DescribeFaceVerifyRequest(); - - std::string getCertifyId()const; - void setCertifyId(const std::string& certifyId); - std::string getPictureReturnType()const; - void setPictureReturnType(const std::string& pictureReturnType); - long getSceneId()const; - void setSceneId(long sceneId); - - private: - std::string certifyId_; - std::string pictureReturnType_; - long sceneId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceVerifyRequest : public RpcServiceRequest { +public: + DescribeFaceVerifyRequest(); + ~DescribeFaceVerifyRequest(); + std::string getCertifyId() const; + void setCertifyId(const std::string &certifyId); + std::string getPictureReturnType() const; + void setPictureReturnType(const std::string &pictureReturnType); + long getSceneId() const; + void setSceneId(long sceneId); + +private: + std::string certifyId_; + std::string pictureReturnType_; + long sceneId_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h index 9a243261e..ed719c05e 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h @@ -35,10 +35,13 @@ namespace AlibabaCloud struct ResultObject { std::string passed; + std::string deviceRisk; std::string deviceToken; std::string identityInfo; std::string materialInfo; + std::string userInfo; std::string subCode; + std::string success; }; diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h index 8fb261966..5767f513d 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h @@ -1,48 +1,42 @@ /* * 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_DESCRIBEOSSUPLOADTOKENREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEOSSUPLOADTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeOssUploadTokenRequest : public RpcServiceRequest - { - - public: - DescribeOssUploadTokenRequest(); - ~DescribeOssUploadTokenRequest(); - - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - - private: - std::string sourceIp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEOSSUPLOADTOKENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEOSSUPLOADTOKENREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEOSSUPLOADTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeOssUploadTokenRequest : public RpcServiceRequest { +public: + DescribeOssUploadTokenRequest(); + ~DescribeOssUploadTokenRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + +private: + std::string sourceIp_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEOSSUPLOADTOKENREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h index 3fe3af50e..f49e08320 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h @@ -34,11 +34,11 @@ namespace AlibabaCloud public: struct OssUploadToken { - std::string path; std::string secret; + std::string path; std::string bucket; - long expired; std::string token; + long expired; std::string endPoint; std::string key; }; diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataRequest.h new file mode 100644 index 000000000..b7cfdb51d --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataRequest.h @@ -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_CLOUDAUTH_MODEL_DESCRIBEPAGEFACEVERIFYDATAREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEPAGEFACEVERIFYDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribePageFaceVerifyDataRequest : public RpcServiceRequest { +public: + DescribePageFaceVerifyDataRequest(); + ~DescribePageFaceVerifyDataRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + long getCurrentPage() const; + void setCurrentPage(long currentPage); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + long getSceneId() const; + void setSceneId(long sceneId); + long getPageSize() const; + void setPageSize(long pageSize); + +private: + std::string productCode_; + long currentPage_; + std::string startDate_; + std::string endDate_; + long sceneId_; + long pageSize_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEPAGEFACEVERIFYDATAREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataResult.h new file mode 100644 index 000000000..e3ebba9dd --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribePageFaceVerifyDataResult.h @@ -0,0 +1,74 @@ +/* + * 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_DESCRIBEPAGEFACEVERIFYDATARESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEPAGEFACEVERIFYDATARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribePageFaceVerifyDataResult : public ServiceResult + { + public: + struct ItemsItem + { + std::string sceneId; + std::string totalCount; + std::string sceneName; + std::string productCode; + std::string successCount; + std::string date; + }; + + + DescribePageFaceVerifyDataResult(); + explicit DescribePageFaceVerifyDataResult(const std::string &payload); + ~DescribePageFaceVerifyDataResult(); + std::string getTotalCount()const; + std::string getMessage()const; + std::string getPageSize()const; + std::string getTotalPage()const; + std::string getCurrentPage()const; + std::vector getItems()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string totalCount_; + std::string message_; + std::string pageSize_; + std::string totalPage_; + std::string currentPage_; + std::vector items_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEPAGEFACEVERIFYDATARESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListRequest.h new file mode 100644 index 000000000..9d56c4a6c --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListRequest.h @@ -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_CLOUDAUTH_MODEL_DESCRIBESMARTSTATISTICSPAGELISTREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTSTATISTICSPAGELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartStatisticsPageListRequest : public RpcServiceRequest { +public: + DescribeSmartStatisticsPageListRequest(); + ~DescribeSmartStatisticsPageListRequest(); + std::string getStartDate() const; + void setStartDate(const std::string &startDate); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getCurrentPage() const; + void setCurrentPage(const std::string ¤tPage); + std::string getEndDate() const; + void setEndDate(const std::string &endDate); + std::string getServiceCode() const; + void setServiceCode(const std::string &serviceCode); + std::string getSceneId() const; + void setSceneId(const std::string &sceneId); + +private: + std::string startDate_; + std::string sourceIp_; + std::string pageSize_; + std::string currentPage_; + std::string endDate_; + std::string serviceCode_; + std::string sceneId_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTSTATISTICSPAGELISTREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListResult.h new file mode 100644 index 000000000..534a1a416 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeSmartStatisticsPageListResult.h @@ -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_DESCRIBESMARTSTATISTICSPAGELISTRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTSTATISTICSPAGELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartStatisticsPageListResult : public ServiceResult + { + public: + struct ItemsItem + { + long sceneId; + int totalCount; + std::string passRate; + std::string sceneName; + std::string productCode; + int successCount; + std::string date; + }; + + + DescribeSmartStatisticsPageListResult(); + explicit DescribeSmartStatisticsPageListResult(const std::string &payload); + ~DescribeSmartStatisticsPageListResult(); + int getTotalCount()const; + int getTotalPage()const; + int getPageSize()const; + int getCurrentPage()const; + std::vector getItems()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int totalPage_; + int pageSize_; + int currentPage_; + std::vector items_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTSTATISTICSPAGELISTRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h index 7dc168ee7..84592b1da 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h @@ -1,51 +1,45 @@ /* * 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_DESCRIBEVERIFYRESULTREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyResultRequest : public RpcServiceRequest - { - - public: - DescribeVerifyResultRequest(); - ~DescribeVerifyResultRequest(); - - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getBizId()const; - void setBizId(const std::string& bizId); - - private: - std::string bizType_; - std::string bizId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRESULTREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyResultRequest : public RpcServiceRequest { +public: + DescribeVerifyResultRequest(); + ~DescribeVerifyResultRequest(); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getBizId() const; + void setBizId(const std::string &bizId); + +private: + std::string bizType_; + std::string bizId_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRESULTREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h index 61fa7a1f8..1ffa6fdb1 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h @@ -1,54 +1,48 @@ /* * 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_DESCRIBEVERIFYSDKREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest - { - - public: - DescribeVerifySDKRequest(); - ~DescribeVerifySDKRequest(); - - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string sourceIp_; - std::string lang_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest { +public: + DescribeVerifySDKRequest(); + ~DescribeVerifySDKRequest(); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string sourceIp_; + std::string lang_; + std::string taskId_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h index c3828a255..b8e2456cf 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h @@ -1,90 +1,84 @@ /* * 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_DESCRIBEVERIFYTOKENREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYTOKENREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyTokenRequest : public RpcServiceRequest - { - - public: - DescribeVerifyTokenRequest(); - ~DescribeVerifyTokenRequest(); - - std::string getFaceRetainedImageUrl()const; - void setFaceRetainedImageUrl(const std::string& faceRetainedImageUrl); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getCallbackSeed()const; - void setCallbackSeed(const std::string& callbackSeed); - std::string getUserIp()const; - void setUserIp(const std::string& userIp); - std::string getIdCardBackImageUrl()const; - void setIdCardBackImageUrl(const std::string& idCardBackImageUrl); - std::string getIdCardNumber()const; - void setIdCardNumber(const std::string& idCardNumber); - std::string getIdCardFrontImageUrl()const; - void setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl); - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getPassedRedirectUrl()const; - void setPassedRedirectUrl(const std::string& passedRedirectUrl); - long getUserRegistTime()const; - void setUserRegistTime(long userRegistTime); - std::string getBizId()const; - void setBizId(const std::string& bizId); - std::string getName()const; - void setName(const std::string& name); - std::string getUserPhoneNumber()const; - void setUserPhoneNumber(const std::string& userPhoneNumber); - std::string getCallbackUrl()const; - void setCallbackUrl(const std::string& callbackUrl); - std::string getFailedRedirectUrl()const; - void setFailedRedirectUrl(const std::string& failedRedirectUrl); - - private: - std::string faceRetainedImageUrl_; - std::string userId_; - std::string callbackSeed_; - std::string userIp_; - std::string idCardBackImageUrl_; - std::string idCardNumber_; - std::string idCardFrontImageUrl_; - std::string bizType_; - std::string passedRedirectUrl_; - long userRegistTime_; - std::string bizId_; - std::string name_; - std::string userPhoneNumber_; - std::string callbackUrl_; - std::string failedRedirectUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYTOKENREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYTOKENREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYTOKENREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyTokenRequest : public RpcServiceRequest { +public: + DescribeVerifyTokenRequest(); + ~DescribeVerifyTokenRequest(); + std::string getFaceRetainedImageUrl() const; + void setFaceRetainedImageUrl(const std::string &faceRetainedImageUrl); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getCallbackSeed() const; + void setCallbackSeed(const std::string &callbackSeed); + std::string getUserIp() const; + void setUserIp(const std::string &userIp); + std::string getIdCardBackImageUrl() const; + void setIdCardBackImageUrl(const std::string &idCardBackImageUrl); + std::string getIdCardNumber() const; + void setIdCardNumber(const std::string &idCardNumber); + std::string getIdCardFrontImageUrl() const; + void setIdCardFrontImageUrl(const std::string &idCardFrontImageUrl); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getPassedRedirectUrl() const; + void setPassedRedirectUrl(const std::string &passedRedirectUrl); + long getUserRegistTime() const; + void setUserRegistTime(long userRegistTime); + std::string getBizId() const; + void setBizId(const std::string &bizId); + std::string getName() const; + void setName(const std::string &name); + std::string getUserPhoneNumber() const; + void setUserPhoneNumber(const std::string &userPhoneNumber); + std::string getCallbackUrl() const; + void setCallbackUrl(const std::string &callbackUrl); + std::string getFailedRedirectUrl() const; + void setFailedRedirectUrl(const std::string &failedRedirectUrl); + +private: + std::string faceRetainedImageUrl_; + std::string userId_; + std::string callbackSeed_; + std::string userIp_; + std::string idCardBackImageUrl_; + std::string idCardNumber_; + std::string idCardFrontImageUrl_; + std::string bizType_; + std::string passedRedirectUrl_; + long userRegistTime_; + std::string bizId_; + std::string name_; + std::string userPhoneNumber_; + std::string callbackUrl_; + std::string failedRedirectUrl_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYTOKENREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h index cf1d1ebc1..f45302d5f 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h @@ -34,11 +34,11 @@ namespace AlibabaCloud public: struct OssUploadToken { - std::string path; std::string secret; + std::string path; std::string bucket; - long expired; std::string token; + long expired; std::string endPoint; std::string key; }; diff --git a/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h index a46c78135..659d55585 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h @@ -1,51 +1,45 @@ /* * 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 -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest - { - - public: - DetectFaceAttributesRequest(); - ~DetectFaceAttributesRequest(); - - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getMaterialValue()const; - void setMaterialValue(const std::string& materialValue); - - private: - std::string bizType_; - std::string materialValue_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest { +public: + DetectFaceAttributesRequest(); + ~DetectFaceAttributesRequest(); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getMaterialValue() const; + void setMaterialValue(const std::string &materialValue); + +private: + std::string bizType_; + std::string materialValue_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/Id2MetaVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/Id2MetaVerifyRequest.h new file mode 100644 index 000000000..5b0cd4470 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/Id2MetaVerifyRequest.h @@ -0,0 +1,48 @@ +/* + * 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_ID2METAVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_ID2METAVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT Id2MetaVerifyRequest : public RpcServiceRequest { +public: + Id2MetaVerifyRequest(); + ~Id2MetaVerifyRequest(); + std::string getParamType() const; + void setParamType(const std::string ¶mType); + std::string getIdentifyNum() const; + void setIdentifyNum(const std::string &identifyNum); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string paramType_; + std::string identifyNum_; + std::string userName_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ID2METAVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/Id2MetaVerifyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/Id2MetaVerifyResult.h new file mode 100644 index 000000000..76338328e --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/Id2MetaVerifyResult.h @@ -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_CLOUDAUTH_MODEL_ID2METAVERIFYRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_ID2METAVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT Id2MetaVerifyResult : public ServiceResult + { + public: + struct ResultObject + { + std::string bizCode; + }; + + + Id2MetaVerifyResult(); + explicit Id2MetaVerifyResult(const std::string &payload); + ~Id2MetaVerifyResult(); + ResultObject getResultObject()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultObject resultObject_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ID2METAVERIFYRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h index b8bd4cf01..d15f5142f 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h @@ -1,111 +1,138 @@ /* * 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_INITFACEVERIFYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT InitFaceVerifyRequest : public RpcServiceRequest - { - - public: - InitFaceVerifyRequest(); - ~InitFaceVerifyRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getFaceContrastPicture()const; - void setFaceContrastPicture(const std::string& faceContrastPicture); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getCertifyId()const; - void setCertifyId(const std::string& certifyId); - std::string getCertNo()const; - void setCertNo(const std::string& certNo); - std::string getOuterOrderNo()const; - void setOuterOrderNo(const std::string& outerOrderNo); - std::string getCertType()const; - void setCertType(const std::string& certType); - std::string getFaceContrastPictureUrl()const; - void setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl); - std::string getModel()const; - void setModel(const std::string& model); - std::string getMetaInfo()const; - void setMetaInfo(const std::string& metaInfo); - std::string getOssObjectName()const; - void setOssObjectName(const std::string& ossObjectName); - std::string getCertName()const; - void setCertName(const std::string& certName); - std::string getIp()const; - void setIp(const std::string& ip); - std::string getMobile()const; - void setMobile(const std::string& mobile); - std::string getAuthId()const; - void setAuthId(const std::string& authId); - long getSceneId()const; - void setSceneId(long sceneId); - std::string getOssBucketName()const; - void setOssBucketName(const std::string& ossBucketName); - std::string getCallbackToken()const; - void setCallbackToken(const std::string& callbackToken); - std::string getReturnUrl()const; - void setReturnUrl(const std::string& returnUrl); - std::string getCallbackUrl()const; - void setCallbackUrl(const std::string& callbackUrl); - std::string getCrop()const; - void setCrop(const std::string& crop); - std::string getCertifyUrlType()const; - void setCertifyUrlType(const std::string& certifyUrlType); - - private: - std::string productCode_; - std::string faceContrastPicture_; - std::string userId_; - std::string certifyId_; - std::string certNo_; - std::string outerOrderNo_; - std::string certType_; - std::string faceContrastPictureUrl_; - std::string model_; - std::string metaInfo_; - std::string ossObjectName_; - std::string certName_; - std::string ip_; - std::string mobile_; - std::string authId_; - long sceneId_; - std::string ossBucketName_; - std::string callbackToken_; - std::string returnUrl_; - std::string callbackUrl_; - std::string crop_; - std::string certifyUrlType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT InitFaceVerifyRequest : public RpcServiceRequest { +public: + InitFaceVerifyRequest(); + ~InitFaceVerifyRequest(); + std::string getBirthday() const; + void setBirthday(const std::string &birthday); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getFaceContrastPicture() const; + void setFaceContrastPicture(const std::string &faceContrastPicture); + std::string getReadImg() const; + void setReadImg(const std::string &readImg); + std::string getRarelyCharacters() const; + void setRarelyCharacters(const std::string &rarelyCharacters); + std::string getVoluntaryCustomizedContent() const; + void setVoluntaryCustomizedContent(const std::string &voluntaryCustomizedContent); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getCertifyId() const; + void setCertifyId(const std::string &certifyId); + std::string getEncryptType() const; + void setEncryptType(const std::string &encryptType); + std::string getMode() const; + void setMode(const std::string &mode); + std::string getCertNo() const; + void setCertNo(const std::string &certNo); + std::string getOuterOrderNo() const; + void setOuterOrderNo(const std::string &outerOrderNo); + std::string getCertType() const; + void setCertType(const std::string &certType); + std::string getFaceContrastPictureUrl() const; + void setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl); + std::string getModel() const; + void setModel(const std::string &model); + std::string getSuitableType() const; + void setSuitableType(const std::string &suitableType); + std::string getCertifyUrlStyle() const; + void setCertifyUrlStyle(const std::string &certifyUrlStyle); + std::string getMetaInfo() const; + void setMetaInfo(const std::string &metaInfo); + std::string getOssObjectName() const; + void setOssObjectName(const std::string &ossObjectName); + std::string getValidityDate() const; + void setValidityDate(const std::string &validityDate); + std::string getCertName() const; + void setCertName(const std::string &certName); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getMobile() const; + void setMobile(const std::string &mobile); + std::string getFaceGuardOutput() const; + void setFaceGuardOutput(const std::string &faceGuardOutput); + std::string getAuthId() const; + void setAuthId(const std::string &authId); + std::string getProcedurePriority() const; + void setProcedurePriority(const std::string &procedurePriority); + long getSceneId() const; + void setSceneId(long sceneId); + std::string getOssBucketName() const; + void setOssBucketName(const std::string &ossBucketName); + std::string getCallbackToken() const; + void setCallbackToken(const std::string &callbackToken); + std::string getReturnUrl() const; + void setReturnUrl(const std::string &returnUrl); + std::string getCallbackUrl() const; + void setCallbackUrl(const std::string &callbackUrl); + std::string getCrop() const; + void setCrop(const std::string &crop); + std::string getCertifyUrlType() const; + void setCertifyUrlType(const std::string &certifyUrlType); + +private: + std::string birthday_; + std::string productCode_; + std::string faceContrastPicture_; + std::string readImg_; + std::string rarelyCharacters_; + std::string voluntaryCustomizedContent_; + std::string userId_; + std::string certifyId_; + std::string encryptType_; + std::string mode_; + std::string certNo_; + std::string outerOrderNo_; + std::string certType_; + std::string faceContrastPictureUrl_; + std::string model_; + std::string suitableType_; + std::string certifyUrlStyle_; + std::string metaInfo_; + std::string ossObjectName_; + std::string validityDate_; + std::string certName_; + std::string ip_; + std::string mobile_; + std::string faceGuardOutput_; + std::string authId_; + std::string procedurePriority_; + long sceneId_; + std::string ossBucketName_; + std::string callbackToken_; + std::string returnUrl_; + std::string callbackUrl_; + std::string crop_; + std::string certifyUrlType_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITFACEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h index 659e0a465..b53930405 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h @@ -1,87 +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. - */ - -#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessFaceVerifyRequest : public RpcServiceRequest - { - - public: - LivenessFaceVerifyRequest(); - ~LivenessFaceVerifyRequest(); - - std::string getProductCode()const; - void setProductCode(const std::string& productCode); - std::string getFaceContrastPicture()const; - void setFaceContrastPicture(const std::string& faceContrastPicture); - std::string getDeviceToken()const; - void setDeviceToken(const std::string& deviceToken); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getCertifyId()const; - void setCertifyId(const std::string& certifyId); - std::string getOuterOrderNo()const; - void setOuterOrderNo(const std::string& outerOrderNo); - std::string getFaceContrastPictureUrl()const; - void setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl); - std::string getModel()const; - void setModel(const std::string& model); - std::string getOssObjectName()const; - void setOssObjectName(const std::string& ossObjectName); - std::string getIp()const; - void setIp(const std::string& ip); - std::string getMobile()const; - void setMobile(const std::string& mobile); - long getSceneId()const; - void setSceneId(long sceneId); - std::string getOssBucketName()const; - void setOssBucketName(const std::string& ossBucketName); - std::string getCrop()const; - void setCrop(const std::string& crop); - - private: - std::string productCode_; - std::string faceContrastPicture_; - std::string deviceToken_; - std::string userId_; - std::string certifyId_; - std::string outerOrderNo_; - std::string faceContrastPictureUrl_; - std::string model_; - std::string ossObjectName_; - std::string ip_; - std::string mobile_; - long sceneId_; - std::string ossBucketName_; - std::string crop_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessFaceVerifyRequest : public RpcServiceRequest { +public: + LivenessFaceVerifyRequest(); + ~LivenessFaceVerifyRequest(); + std::string getProductCode() const; + void setProductCode(const std::string &productCode); + std::string getFaceContrastPicture() const; + void setFaceContrastPicture(const std::string &faceContrastPicture); + std::string getDeviceToken() const; + void setDeviceToken(const std::string &deviceToken); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getCertifyId() const; + void setCertifyId(const std::string &certifyId); + std::string getOuterOrderNo() const; + void setOuterOrderNo(const std::string &outerOrderNo); + std::string getFaceContrastPictureUrl() const; + void setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl); + std::string getModel() const; + void setModel(const std::string &model); + std::string getOssObjectName() const; + void setOssObjectName(const std::string &ossObjectName); + std::string getIp() const; + void setIp(const std::string &ip); + std::string getMobile() const; + void setMobile(const std::string &mobile); + long getSceneId() const; + void setSceneId(long sceneId); + std::string getOssBucketName() const; + void setOssBucketName(const std::string &ossBucketName); + std::string getCrop() const; + void setCrop(const std::string &crop); + +private: + std::string productCode_; + std::string faceContrastPicture_; + std::string deviceToken_; + std::string userId_; + std::string certifyId_; + std::string outerOrderNo_; + std::string faceContrastPictureUrl_; + std::string model_; + std::string ossObjectName_; + std::string ip_; + std::string mobile_; + long sceneId_; + std::string ossBucketName_; + std::string crop_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSFACEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyRequest.h new file mode 100644 index 000000000..7e7ba9aa9 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyRequest.h @@ -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_CLOUDAUTH_MODEL_MOBILE3METADETAILVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METADETAILVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT Mobile3MetaDetailVerifyRequest : public RpcServiceRequest { +public: + Mobile3MetaDetailVerifyRequest(); + ~Mobile3MetaDetailVerifyRequest(); + std::string getParamType() const; + void setParamType(const std::string ¶mType); + std::string getMobile() const; + void setMobile(const std::string &mobile); + std::string getIdentifyNum() const; + void setIdentifyNum(const std::string &identifyNum); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string paramType_; + std::string mobile_; + std::string identifyNum_; + std::string userName_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METADETAILVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyResult.h new file mode 100644 index 000000000..b1e081f3e --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaDetailVerifyResult.h @@ -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_CLOUDAUTH_MODEL_MOBILE3METADETAILVERIFYRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METADETAILVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT Mobile3MetaDetailVerifyResult : public ServiceResult + { + public: + struct ResultObject + { + std::string ispName; + std::string subCode; + std::string bizCode; + }; + + + Mobile3MetaDetailVerifyResult(); + explicit Mobile3MetaDetailVerifyResult(const std::string &payload); + ~Mobile3MetaDetailVerifyResult(); + ResultObject getResultObject()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultObject resultObject_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METADETAILVERIFYRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyRequest.h new file mode 100644 index 000000000..ce6157e21 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyRequest.h @@ -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_CLOUDAUTH_MODEL_MOBILE3METASIMPLEVERIFYREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METASIMPLEVERIFYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT Mobile3MetaSimpleVerifyRequest : public RpcServiceRequest { +public: + Mobile3MetaSimpleVerifyRequest(); + ~Mobile3MetaSimpleVerifyRequest(); + std::string getParamType() const; + void setParamType(const std::string ¶mType); + std::string getMobile() const; + void setMobile(const std::string &mobile); + std::string getIdentifyNum() const; + void setIdentifyNum(const std::string &identifyNum); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string paramType_; + std::string mobile_; + std::string identifyNum_; + std::string userName_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METASIMPLEVERIFYREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyResult.h b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyResult.h new file mode 100644 index 000000000..5f0989d01 --- /dev/null +++ b/cloudauth/include/alibabacloud/cloudauth/model/Mobile3MetaSimpleVerifyResult.h @@ -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_CLOUDAUTH_MODEL_MOBILE3METASIMPLEVERIFYRESULT_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METASIMPLEVERIFYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cloudauth + { + namespace Model + { + class ALIBABACLOUD_CLOUDAUTH_EXPORT Mobile3MetaSimpleVerifyResult : public ServiceResult + { + public: + struct ResultObject + { + std::string ispName; + std::string bizCode; + }; + + + Mobile3MetaSimpleVerifyResult(); + explicit Mobile3MetaSimpleVerifyResult(const std::string &payload); + ~Mobile3MetaSimpleVerifyResult(); + ResultObject getResultObject()const; + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + ResultObject resultObject_; + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MOBILE3METASIMPLEVERIFYRESULT_H_ \ No newline at end of file diff --git a/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h index b9153e4ec..060af9417 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h @@ -1,66 +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_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest - { - - public: - ModifyDeviceInfoRequest(); - ~ModifyDeviceInfoRequest(); - - std::string getUserDeviceId()const; - void setUserDeviceId(const std::string& userDeviceId); - std::string getDuration()const; - void setDuration(const std::string& duration); - std::string getExpiredDay()const; - void setExpiredDay(const std::string& expiredDay); - std::string getSourceIp()const; - void setSourceIp(const std::string& sourceIp); - std::string getLang()const; - void setLang(const std::string& lang); - std::string getDeviceId()const; - void setDeviceId(const std::string& deviceId); - std::string getBizType()const; - void setBizType(const std::string& bizType); - - private: - std::string userDeviceId_; - std::string duration_; - std::string expiredDay_; - std::string sourceIp_; - std::string lang_; - std::string deviceId_; - std::string bizType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest { +public: + ModifyDeviceInfoRequest(); + ~ModifyDeviceInfoRequest(); + std::string getUserDeviceId() const; + void setUserDeviceId(const std::string &userDeviceId); + std::string getDuration() const; + void setDuration(const std::string &duration); + std::string getExpiredDay() const; + void setExpiredDay(const std::string &expiredDay); + std::string getSourceIp() const; + void setSourceIp(const std::string &sourceIp); + std::string getLang() const; + void setLang(const std::string &lang); + std::string getDeviceId() const; + void setDeviceId(const std::string &deviceId); + std::string getBizType() const; + void setBizType(const std::string &bizType); + +private: + std::string userDeviceId_; + std::string duration_; + std::string expiredDay_; + std::string sourceIp_; + std::string lang_; + std::string deviceId_; + std::string bizType_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h b/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h index 8e96a1ef9..48664485c 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h @@ -1,69 +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_CLOUDAUTH_MODEL_VERIFYMATERIALREQUEST_H_ -#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYMATERIALREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cloudauth - { - namespace Model - { - class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyMaterialRequest : public RpcServiceRequest - { - - public: - VerifyMaterialRequest(); - ~VerifyMaterialRequest(); - - std::string getFaceImageUrl()const; - void setFaceImageUrl(const std::string& faceImageUrl); - std::string getUserId()const; - void setUserId(const std::string& userId); - std::string getIdCardBackImageUrl()const; - void setIdCardBackImageUrl(const std::string& idCardBackImageUrl); - std::string getIdCardNumber()const; - void setIdCardNumber(const std::string& idCardNumber); - std::string getIdCardFrontImageUrl()const; - void setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl); - std::string getBizType()const; - void setBizType(const std::string& bizType); - std::string getBizId()const; - void setBizId(const std::string& bizId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string faceImageUrl_; - std::string userId_; - std::string idCardBackImageUrl_; - std::string idCardNumber_; - std::string idCardFrontImageUrl_; - std::string bizType_; - std::string bizId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYMATERIALREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYMATERIALREQUEST_H_ +#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYMATERIALREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Cloudauth { +namespace Model { +class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyMaterialRequest : public RpcServiceRequest { +public: + VerifyMaterialRequest(); + ~VerifyMaterialRequest(); + std::string getFaceImageUrl() const; + void setFaceImageUrl(const std::string &faceImageUrl); + std::string getUserId() const; + void setUserId(const std::string &userId); + std::string getIdCardBackImageUrl() const; + void setIdCardBackImageUrl(const std::string &idCardBackImageUrl); + std::string getIdCardNumber() const; + void setIdCardNumber(const std::string &idCardNumber); + std::string getIdCardFrontImageUrl() const; + void setIdCardFrontImageUrl(const std::string &idCardFrontImageUrl); + std::string getBizType() const; + void setBizType(const std::string &bizType); + std::string getBizId() const; + void setBizId(const std::string &bizId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string faceImageUrl_; + std::string userId_; + std::string idCardBackImageUrl_; + std::string idCardNumber_; + std::string idCardFrontImageUrl_; + std::string bizType_; + std::string bizId_; + std::string name_; +}; +} // namespace Model +} // namespace Cloudauth +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYMATERIALREQUEST_H_ diff --git a/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialResult.h b/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialResult.h index 19141a748..bf1a8535f 100644 --- a/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialResult.h +++ b/cloudauth/include/alibabacloud/cloudauth/model/VerifyMaterialResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct IdCardInfo { std::string startDate; - std::string number; std::string address; + std::string number; std::string authority; std::string sex; std::string backImageUrl; @@ -48,8 +48,8 @@ namespace AlibabaCloud std::string nationality; std::string name; }; - std::string idCardName; std::string faceGlobalUrl; + std::string idCardName; std::string faceQuality; std::string idCardNumber; std::string faceMask; diff --git a/cloudauth/src/CloudauthClient.cc b/cloudauth/src/CloudauthClient.cc index 9e069e2ad..bc23ea26d 100644 --- a/cloudauth/src/CloudauthClient.cc +++ b/cloudauth/src/CloudauthClient.cc @@ -51,6 +51,42 @@ CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::str CloudauthClient::~CloudauthClient() {} +CloudauthClient::AIGCFaceVerifyOutcome CloudauthClient::aIGCFaceVerify(const AIGCFaceVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AIGCFaceVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AIGCFaceVerifyOutcome(AIGCFaceVerifyResult(outcome.result())); + else + return AIGCFaceVerifyOutcome(outcome.error()); +} + +void CloudauthClient::aIGCFaceVerifyAsync(const AIGCFaceVerifyRequest& request, const AIGCFaceVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, aIGCFaceVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::AIGCFaceVerifyOutcomeCallable CloudauthClient::aIGCFaceVerifyCallable(const AIGCFaceVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->aIGCFaceVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudauthClient::CompareFaceVerifyOutcome CloudauthClient::compareFaceVerify(const CompareFaceVerifyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +375,78 @@ CloudauthClient::DescribeOssUploadTokenOutcomeCallable CloudauthClient::describe return task->get_future(); } +CloudauthClient::DescribePageFaceVerifyDataOutcome CloudauthClient::describePageFaceVerifyData(const DescribePageFaceVerifyDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePageFaceVerifyDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePageFaceVerifyDataOutcome(DescribePageFaceVerifyDataResult(outcome.result())); + else + return DescribePageFaceVerifyDataOutcome(outcome.error()); +} + +void CloudauthClient::describePageFaceVerifyDataAsync(const DescribePageFaceVerifyDataRequest& request, const DescribePageFaceVerifyDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePageFaceVerifyData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::DescribePageFaceVerifyDataOutcomeCallable CloudauthClient::describePageFaceVerifyDataCallable(const DescribePageFaceVerifyDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePageFaceVerifyData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::DescribeSmartStatisticsPageListOutcome CloudauthClient::describeSmartStatisticsPageList(const DescribeSmartStatisticsPageListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSmartStatisticsPageListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSmartStatisticsPageListOutcome(DescribeSmartStatisticsPageListResult(outcome.result())); + else + return DescribeSmartStatisticsPageListOutcome(outcome.error()); +} + +void CloudauthClient::describeSmartStatisticsPageListAsync(const DescribeSmartStatisticsPageListRequest& request, const DescribeSmartStatisticsPageListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSmartStatisticsPageList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::DescribeSmartStatisticsPageListOutcomeCallable CloudauthClient::describeSmartStatisticsPageListCallable(const DescribeSmartStatisticsPageListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSmartStatisticsPageList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudauthClient::DescribeVerifyResultOutcome CloudauthClient::describeVerifyResult(const DescribeVerifyResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +591,42 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace return task->get_future(); } +CloudauthClient::Id2MetaVerifyOutcome CloudauthClient::id2MetaVerify(const Id2MetaVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Id2MetaVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Id2MetaVerifyOutcome(Id2MetaVerifyResult(outcome.result())); + else + return Id2MetaVerifyOutcome(outcome.error()); +} + +void CloudauthClient::id2MetaVerifyAsync(const Id2MetaVerifyRequest& request, const Id2MetaVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, id2MetaVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::Id2MetaVerifyOutcomeCallable CloudauthClient::id2MetaVerifyCallable(const Id2MetaVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->id2MetaVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudauthClient::InitFaceVerifyOutcome CloudauthClient::initFaceVerify(const InitFaceVerifyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +699,78 @@ CloudauthClient::LivenessFaceVerifyOutcomeCallable CloudauthClient::livenessFace return task->get_future(); } +CloudauthClient::Mobile3MetaDetailVerifyOutcome CloudauthClient::mobile3MetaDetailVerify(const Mobile3MetaDetailVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Mobile3MetaDetailVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Mobile3MetaDetailVerifyOutcome(Mobile3MetaDetailVerifyResult(outcome.result())); + else + return Mobile3MetaDetailVerifyOutcome(outcome.error()); +} + +void CloudauthClient::mobile3MetaDetailVerifyAsync(const Mobile3MetaDetailVerifyRequest& request, const Mobile3MetaDetailVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mobile3MetaDetailVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::Mobile3MetaDetailVerifyOutcomeCallable CloudauthClient::mobile3MetaDetailVerifyCallable(const Mobile3MetaDetailVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mobile3MetaDetailVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CloudauthClient::Mobile3MetaSimpleVerifyOutcome CloudauthClient::mobile3MetaSimpleVerify(const Mobile3MetaSimpleVerifyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return Mobile3MetaSimpleVerifyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return Mobile3MetaSimpleVerifyOutcome(Mobile3MetaSimpleVerifyResult(outcome.result())); + else + return Mobile3MetaSimpleVerifyOutcome(outcome.error()); +} + +void CloudauthClient::mobile3MetaSimpleVerifyAsync(const Mobile3MetaSimpleVerifyRequest& request, const Mobile3MetaSimpleVerifyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mobile3MetaSimpleVerify(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CloudauthClient::Mobile3MetaSimpleVerifyOutcomeCallable CloudauthClient::mobile3MetaSimpleVerifyCallable(const Mobile3MetaSimpleVerifyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mobile3MetaSimpleVerify(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/cloudauth/src/model/AIGCFaceVerifyRequest.cc b/cloudauth/src/model/AIGCFaceVerifyRequest.cc new file mode 100644 index 000000000..71265e3f9 --- /dev/null +++ b/cloudauth/src/model/AIGCFaceVerifyRequest.cc @@ -0,0 +1,90 @@ +/* + * 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 + +using AlibabaCloud::Cloudauth::Model::AIGCFaceVerifyRequest; + +AIGCFaceVerifyRequest::AIGCFaceVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "AIGCFaceVerify") { + setMethod(HttpRequest::Method::Post); +} + +AIGCFaceVerifyRequest::~AIGCFaceVerifyRequest() {} + +std::string AIGCFaceVerifyRequest::getProductCode() const { + return productCode_; +} + +void AIGCFaceVerifyRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +std::string AIGCFaceVerifyRequest::getOssObjectName() const { + return ossObjectName_; +} + +void AIGCFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) { + ossObjectName_ = ossObjectName; + setParameter(std::string("OssObjectName"), ossObjectName); +} + +std::string AIGCFaceVerifyRequest::getFaceContrastPicture() const { + return faceContrastPicture_; +} + +void AIGCFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) { + faceContrastPicture_ = faceContrastPicture; + setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture); +} + +std::string AIGCFaceVerifyRequest::getOuterOrderNo() const { + return outerOrderNo_; +} + +void AIGCFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) { + outerOrderNo_ = outerOrderNo; + setParameter(std::string("OuterOrderNo"), outerOrderNo); +} + +std::string AIGCFaceVerifyRequest::getFaceContrastPictureUrl() const { + return faceContrastPictureUrl_; +} + +void AIGCFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) { + faceContrastPictureUrl_ = faceContrastPictureUrl; + setParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl); +} + +long AIGCFaceVerifyRequest::getSceneId() const { + return sceneId_; +} + +void AIGCFaceVerifyRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setParameter(std::string("SceneId"), std::to_string(sceneId)); +} + +std::string AIGCFaceVerifyRequest::getOssBucketName() const { + return ossBucketName_; +} + +void AIGCFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) { + ossBucketName_ = ossBucketName; + setParameter(std::string("OssBucketName"), ossBucketName); +} + diff --git a/cloudauth/src/model/AIGCFaceVerifyResult.cc b/cloudauth/src/model/AIGCFaceVerifyResult.cc new file mode 100644 index 000000000..916c59acc --- /dev/null +++ b/cloudauth/src/model/AIGCFaceVerifyResult.cc @@ -0,0 +1,70 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +AIGCFaceVerifyResult::AIGCFaceVerifyResult() : + ServiceResult() +{} + +AIGCFaceVerifyResult::AIGCFaceVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AIGCFaceVerifyResult::~AIGCFaceVerifyResult() +{} + +void AIGCFaceVerifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultObjectNode = value["ResultObject"]; + if(!resultObjectNode["Result"].isNull()) + resultObject_.result = resultObjectNode["Result"].asString(); + if(!resultObjectNode["Score"].isNull()) + resultObject_.score = resultObjectNode["Score"].asString(); + if(!resultObjectNode["CertifyId"].isNull()) + resultObject_.certifyId = resultObjectNode["CertifyId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +AIGCFaceVerifyResult::ResultObject AIGCFaceVerifyResult::getResultObject()const +{ + return resultObject_; +} + +std::string AIGCFaceVerifyResult::getMessage()const +{ + return message_; +} + +std::string AIGCFaceVerifyResult::getCode()const +{ + return code_; +} + diff --git a/cloudauth/src/model/CompareFaceVerifyRequest.cc b/cloudauth/src/model/CompareFaceVerifyRequest.cc index 448f822b3..c731717b6 100644 --- a/cloudauth/src/model/CompareFaceVerifyRequest.cc +++ b/cloudauth/src/model/CompareFaceVerifyRequest.cc @@ -1,183 +1,153 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::CompareFaceVerifyRequest; - -CompareFaceVerifyRequest::CompareFaceVerifyRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaceVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -CompareFaceVerifyRequest::~CompareFaceVerifyRequest() -{} - -std::string CompareFaceVerifyRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::CompareFaceVerifyRequest; + +CompareFaceVerifyRequest::CompareFaceVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaceVerify") { + setMethod(HttpRequest::Method::Post); } -void CompareFaceVerifyRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setBodyParameter("ProductCode", productCode); +CompareFaceVerifyRequest::~CompareFaceVerifyRequest() {} + +std::string CompareFaceVerifyRequest::getProductCode() const { + return productCode_; } -std::string CompareFaceVerifyRequest::getTargetCertifyId()const -{ - return targetCertifyId_; +void CompareFaceVerifyRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setBodyParameter(std::string("ProductCode"), productCode); } -void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCertifyId) -{ - targetCertifyId_ = targetCertifyId; - setBodyParameter("TargetCertifyId", targetCertifyId); +std::string CompareFaceVerifyRequest::getTargetCertifyId() const { + return targetCertifyId_; } -std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const -{ - return targetFaceContrastPicture_; +void CompareFaceVerifyRequest::setTargetCertifyId(const std::string &targetCertifyId) { + targetCertifyId_ = targetCertifyId; + setBodyParameter(std::string("TargetCertifyId"), targetCertifyId); } -void CompareFaceVerifyRequest::setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture) -{ - targetFaceContrastPicture_ = targetFaceContrastPicture; - setBodyParameter("TargetFaceContrastPicture", targetFaceContrastPicture); +std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture() const { + return targetFaceContrastPicture_; } -std::string CompareFaceVerifyRequest::getTargetOssBucketName()const -{ - return targetOssBucketName_; +void CompareFaceVerifyRequest::setTargetFaceContrastPicture(const std::string &targetFaceContrastPicture) { + targetFaceContrastPicture_ = targetFaceContrastPicture; + setBodyParameter(std::string("TargetFaceContrastPicture"), targetFaceContrastPicture); } -void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetOssBucketName) -{ - targetOssBucketName_ = targetOssBucketName; - setBodyParameter("TargetOssBucketName", targetOssBucketName); +std::string CompareFaceVerifyRequest::getTargetOssBucketName() const { + return targetOssBucketName_; } -std::string CompareFaceVerifyRequest::getOuterOrderNo()const -{ - return outerOrderNo_; +void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string &targetOssBucketName) { + targetOssBucketName_ = targetOssBucketName; + setBodyParameter(std::string("TargetOssBucketName"), targetOssBucketName); } -void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo) -{ - outerOrderNo_ = outerOrderNo; - setBodyParameter("OuterOrderNo", outerOrderNo); +std::string CompareFaceVerifyRequest::getOuterOrderNo() const { + return outerOrderNo_; } -std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const -{ - return sourceFaceContrastPicture_; +void CompareFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) { + outerOrderNo_ = outerOrderNo; + setBodyParameter(std::string("OuterOrderNo"), outerOrderNo); } -void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& sourceFaceContrastPicture) -{ - sourceFaceContrastPicture_ = sourceFaceContrastPicture; - setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture); +std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture() const { + return sourceFaceContrastPicture_; } -std::string CompareFaceVerifyRequest::getSourceCertifyId()const -{ - return sourceCertifyId_; +void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string &sourceFaceContrastPicture) { + sourceFaceContrastPicture_ = sourceFaceContrastPicture; + setBodyParameter(std::string("SourceFaceContrastPicture"), sourceFaceContrastPicture); } -void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId) -{ - sourceCertifyId_ = sourceCertifyId; - setBodyParameter("SourceCertifyId", sourceCertifyId); +std::string CompareFaceVerifyRequest::getSourceCertifyId() const { + return sourceCertifyId_; } -std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const -{ - return targetFaceContrastPictureUrl_; +void CompareFaceVerifyRequest::setSourceCertifyId(const std::string &sourceCertifyId) { + sourceCertifyId_ = sourceCertifyId; + setBodyParameter(std::string("SourceCertifyId"), sourceCertifyId); } -void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl) -{ - targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl; - setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl); +std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl() const { + return targetFaceContrastPictureUrl_; } -std::string CompareFaceVerifyRequest::getSourceOssObjectName()const -{ - return sourceOssObjectName_; +void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string &targetFaceContrastPictureUrl) { + targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl; + setBodyParameter(std::string("TargetFaceContrastPictureUrl"), targetFaceContrastPictureUrl); } -void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName) -{ - sourceOssObjectName_ = sourceOssObjectName; - setBodyParameter("SourceOssObjectName", sourceOssObjectName); +std::string CompareFaceVerifyRequest::getSourceOssObjectName() const { + return sourceOssObjectName_; } -std::string CompareFaceVerifyRequest::getSourceOssBucketName()const -{ - return sourceOssBucketName_; +void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string &sourceOssObjectName) { + sourceOssObjectName_ = sourceOssObjectName; + setBodyParameter(std::string("SourceOssObjectName"), sourceOssObjectName); } -void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName) -{ - sourceOssBucketName_ = sourceOssBucketName; - setBodyParameter("SourceOssBucketName", sourceOssBucketName); +std::string CompareFaceVerifyRequest::getSourceOssBucketName() const { + return sourceOssBucketName_; } -std::string CompareFaceVerifyRequest::getTargetOssObjectName()const -{ - return targetOssObjectName_; +void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string &sourceOssBucketName) { + sourceOssBucketName_ = sourceOssBucketName; + setBodyParameter(std::string("SourceOssBucketName"), sourceOssBucketName); } -void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName) -{ - targetOssObjectName_ = targetOssObjectName; - setBodyParameter("TargetOssObjectName", targetOssObjectName); +std::string CompareFaceVerifyRequest::getTargetOssObjectName() const { + return targetOssObjectName_; } -long CompareFaceVerifyRequest::getSceneId()const -{ - return sceneId_; +void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string &targetOssObjectName) { + targetOssObjectName_ = targetOssObjectName; + setBodyParameter(std::string("TargetOssObjectName"), targetOssObjectName); } -void CompareFaceVerifyRequest::setSceneId(long sceneId) -{ - sceneId_ = sceneId; - setBodyParameter("SceneId", std::to_string(sceneId)); +long CompareFaceVerifyRequest::getSceneId() const { + return sceneId_; } -std::string CompareFaceVerifyRequest::getSourceFaceContrastPictureUrl()const -{ - return sourceFaceContrastPictureUrl_; +void CompareFaceVerifyRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setBodyParameter(std::string("SceneId"), std::to_string(sceneId)); } -void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl) -{ - sourceFaceContrastPictureUrl_ = sourceFaceContrastPictureUrl; - setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl); +std::string CompareFaceVerifyRequest::getSourceFaceContrastPictureUrl() const { + return sourceFaceContrastPictureUrl_; } -std::string CompareFaceVerifyRequest::getCrop()const -{ - return crop_; +void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string &sourceFaceContrastPictureUrl) { + sourceFaceContrastPictureUrl_ = sourceFaceContrastPictureUrl; + setBodyParameter(std::string("SourceFaceContrastPictureUrl"), sourceFaceContrastPictureUrl); } -void CompareFaceVerifyRequest::setCrop(const std::string& crop) -{ - crop_ = crop; - setBodyParameter("Crop", crop); +std::string CompareFaceVerifyRequest::getCrop() const { + return crop_; +} + +void CompareFaceVerifyRequest::setCrop(const std::string &crop) { + crop_ = crop; + setBodyParameter(std::string("Crop"), crop); } diff --git a/cloudauth/src/model/CompareFacesRequest.cc b/cloudauth/src/model/CompareFacesRequest.cc index 369c30d2a..49d0d8814 100644 --- a/cloudauth/src/model/CompareFacesRequest.cc +++ b/cloudauth/src/model/CompareFacesRequest.cc @@ -1,84 +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. - */ - -#include - -using AlibabaCloud::Cloudauth::Model::CompareFacesRequest; - -CompareFacesRequest::CompareFacesRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaces") -{ - setMethod(HttpRequest::Method::Post); -} - -CompareFacesRequest::~CompareFacesRequest() -{} - -std::string CompareFacesRequest::getSourceImageType()const -{ - return sourceImageType_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::CompareFacesRequest; + +CompareFacesRequest::CompareFacesRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaces") { + setMethod(HttpRequest::Method::Post); } -void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType) -{ - sourceImageType_ = sourceImageType; - setBodyParameter("SourceImageType", sourceImageType); +CompareFacesRequest::~CompareFacesRequest() {} + +std::string CompareFacesRequest::getSourceImageType() const { + return sourceImageType_; } -std::string CompareFacesRequest::getTargetImageType()const -{ - return targetImageType_; +void CompareFacesRequest::setSourceImageType(const std::string &sourceImageType) { + sourceImageType_ = sourceImageType; + setBodyParameter(std::string("SourceImageType"), sourceImageType); } -void CompareFacesRequest::setTargetImageType(const std::string& targetImageType) -{ - targetImageType_ = targetImageType; - setBodyParameter("TargetImageType", targetImageType); +std::string CompareFacesRequest::getTargetImageType() const { + return targetImageType_; } -std::string CompareFacesRequest::getTargetImageValue()const -{ - return targetImageValue_; +void CompareFacesRequest::setTargetImageType(const std::string &targetImageType) { + targetImageType_ = targetImageType; + setBodyParameter(std::string("TargetImageType"), targetImageType); } -void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValue) -{ - targetImageValue_ = targetImageValue; - setBodyParameter("TargetImageValue", targetImageValue); +std::string CompareFacesRequest::getTargetImageValue() const { + return targetImageValue_; } -std::string CompareFacesRequest::getBizType()const -{ - return bizType_; +void CompareFacesRequest::setTargetImageValue(const std::string &targetImageValue) { + targetImageValue_ = targetImageValue; + setBodyParameter(std::string("TargetImageValue"), targetImageValue); } -void CompareFacesRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setBodyParameter("BizType", bizType); +std::string CompareFacesRequest::getBizType() const { + return bizType_; } -std::string CompareFacesRequest::getSourceImageValue()const -{ - return sourceImageValue_; +void CompareFacesRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setBodyParameter(std::string("BizType"), bizType); } -void CompareFacesRequest::setSourceImageValue(const std::string& sourceImageValue) -{ - sourceImageValue_ = sourceImageValue; - setBodyParameter("SourceImageValue", sourceImageValue); +std::string CompareFacesRequest::getSourceImageValue() const { + return sourceImageValue_; +} + +void CompareFacesRequest::setSourceImageValue(const std::string &sourceImageValue) { + sourceImageValue_ = sourceImageValue; + setBodyParameter(std::string("SourceImageValue"), sourceImageValue); } diff --git a/cloudauth/src/model/ContrastFaceVerifyRequest.cc b/cloudauth/src/model/ContrastFaceVerifyRequest.cc index b05b12f33..788896934 100644 --- a/cloudauth/src/model/ContrastFaceVerifyRequest.cc +++ b/cloudauth/src/model/ContrastFaceVerifyRequest.cc @@ -1,227 +1,198 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::ContrastFaceVerifyRequest; - -ContrastFaceVerifyRequest::ContrastFaceVerifyRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "ContrastFaceVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -ContrastFaceVerifyRequest::~ContrastFaceVerifyRequest() -{} - -std::string ContrastFaceVerifyRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::ContrastFaceVerifyRequest; + +ContrastFaceVerifyRequest::ContrastFaceVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "ContrastFaceVerify") { + setMethod(HttpRequest::Method::Post); } -void ContrastFaceVerifyRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setBodyParameter("ProductCode", productCode); +ContrastFaceVerifyRequest::~ContrastFaceVerifyRequest() {} + +std::string ContrastFaceVerifyRequest::getProductCode() const { + return productCode_; } -std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const -{ - return faceContrastPicture_; +void ContrastFaceVerifyRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setBodyParameter(std::string("ProductCode"), productCode); } -void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture) -{ - faceContrastPicture_ = faceContrastPicture; - setBodyParameter("FaceContrastPicture", faceContrastPicture); +std::string ContrastFaceVerifyRequest::getFaceContrastPicture() const { + return faceContrastPicture_; } -std::string ContrastFaceVerifyRequest::getDeviceToken()const -{ - return deviceToken_; +void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) { + faceContrastPicture_ = faceContrastPicture; + setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture); } -void ContrastFaceVerifyRequest::setDeviceToken(const std::string& deviceToken) -{ - deviceToken_ = deviceToken; - setBodyParameter("DeviceToken", deviceToken); +std::string ContrastFaceVerifyRequest::getDeviceToken() const { + return deviceToken_; } -std::string ContrastFaceVerifyRequest::getUserId()const -{ - return userId_; +void ContrastFaceVerifyRequest::setDeviceToken(const std::string &deviceToken) { + deviceToken_ = deviceToken; + setBodyParameter(std::string("DeviceToken"), deviceToken); } -void ContrastFaceVerifyRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setBodyParameter("UserId", userId); +std::string ContrastFaceVerifyRequest::getUserId() const { + return userId_; } -std::string ContrastFaceVerifyRequest::getCertifyId()const -{ - return certifyId_; +void ContrastFaceVerifyRequest::setUserId(const std::string &userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), userId); } -void ContrastFaceVerifyRequest::setCertifyId(const std::string& certifyId) -{ - certifyId_ = certifyId; - setBodyParameter("CertifyId", certifyId); +std::string ContrastFaceVerifyRequest::getCertifyId() const { + return certifyId_; } -std::string ContrastFaceVerifyRequest::getCertNo()const -{ - return certNo_; +void ContrastFaceVerifyRequest::setCertifyId(const std::string &certifyId) { + certifyId_ = certifyId; + setBodyParameter(std::string("CertifyId"), certifyId); } -void ContrastFaceVerifyRequest::setCertNo(const std::string& certNo) -{ - certNo_ = certNo; - setBodyParameter("CertNo", certNo); +std::string ContrastFaceVerifyRequest::getEncryptType() const { + return encryptType_; } -std::string ContrastFaceVerifyRequest::getOuterOrderNo()const -{ - return outerOrderNo_; +void ContrastFaceVerifyRequest::setEncryptType(const std::string &encryptType) { + encryptType_ = encryptType; + setBodyParameter(std::string("EncryptType"), encryptType); } -void ContrastFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo) -{ - outerOrderNo_ = outerOrderNo; - setBodyParameter("OuterOrderNo", outerOrderNo); +std::string ContrastFaceVerifyRequest::getCertNo() const { + return certNo_; } -std::string ContrastFaceVerifyRequest::getCertType()const -{ - return certType_; +void ContrastFaceVerifyRequest::setCertNo(const std::string &certNo) { + certNo_ = certNo; + setBodyParameter(std::string("CertNo"), certNo); } -void ContrastFaceVerifyRequest::setCertType(const std::string& certType) -{ - certType_ = certType; - setBodyParameter("CertType", certType); +std::string ContrastFaceVerifyRequest::getOuterOrderNo() const { + return outerOrderNo_; } -std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl()const -{ - return faceContrastPictureUrl_; +void ContrastFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) { + outerOrderNo_ = outerOrderNo; + setBodyParameter(std::string("OuterOrderNo"), outerOrderNo); } -void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl) -{ - faceContrastPictureUrl_ = faceContrastPictureUrl; - setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl); +std::string ContrastFaceVerifyRequest::getCertType() const { + return certType_; } -std::string ContrastFaceVerifyRequest::getModel()const -{ - return model_; +void ContrastFaceVerifyRequest::setCertType(const std::string &certType) { + certType_ = certType; + setBodyParameter(std::string("CertType"), certType); } -void ContrastFaceVerifyRequest::setModel(const std::string& model) -{ - model_ = model; - setParameter("Model", model); +std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl() const { + return faceContrastPictureUrl_; } -std::string ContrastFaceVerifyRequest::getOssObjectName()const -{ - return ossObjectName_; +void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) { + faceContrastPictureUrl_ = faceContrastPictureUrl; + setBodyParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl); } -void ContrastFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName) -{ - ossObjectName_ = ossObjectName; - setBodyParameter("OssObjectName", ossObjectName); +std::string ContrastFaceVerifyRequest::getModel() const { + return model_; } -std::string ContrastFaceVerifyRequest::getCertName()const -{ - return certName_; +void ContrastFaceVerifyRequest::setModel(const std::string &model) { + model_ = model; + setParameter(std::string("Model"), model); } -void ContrastFaceVerifyRequest::setCertName(const std::string& certName) -{ - certName_ = certName; - setBodyParameter("CertName", certName); +std::string ContrastFaceVerifyRequest::getOssObjectName() const { + return ossObjectName_; } -std::string ContrastFaceVerifyRequest::getIp()const -{ - return ip_; +void ContrastFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) { + ossObjectName_ = ossObjectName; + setBodyParameter(std::string("OssObjectName"), ossObjectName); } -void ContrastFaceVerifyRequest::setIp(const std::string& ip) -{ - ip_ = ip; - setBodyParameter("Ip", ip); +std::string ContrastFaceVerifyRequest::getCertName() const { + return certName_; } -std::string ContrastFaceVerifyRequest::getMobile()const -{ - return mobile_; +void ContrastFaceVerifyRequest::setCertName(const std::string &certName) { + certName_ = certName; + setBodyParameter(std::string("CertName"), certName); } -void ContrastFaceVerifyRequest::setMobile(const std::string& mobile) -{ - mobile_ = mobile; - setBodyParameter("Mobile", mobile); +std::string ContrastFaceVerifyRequest::getIp() const { + return ip_; } -std::string ContrastFaceVerifyRequest::getFaceContrastFile()const -{ - return faceContrastFile_; +void ContrastFaceVerifyRequest::setIp(const std::string &ip) { + ip_ = ip; + setBodyParameter(std::string("Ip"), ip); } -void ContrastFaceVerifyRequest::setFaceContrastFile(const std::string& faceContrastFile) -{ - faceContrastFile_ = faceContrastFile; - setBodyParameter("FaceContrastFile", faceContrastFile); +std::string ContrastFaceVerifyRequest::getMobile() const { + return mobile_; } -long ContrastFaceVerifyRequest::getSceneId()const -{ - return sceneId_; +void ContrastFaceVerifyRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setBodyParameter(std::string("Mobile"), mobile); } -void ContrastFaceVerifyRequest::setSceneId(long sceneId) -{ - sceneId_ = sceneId; - setBodyParameter("SceneId", std::to_string(sceneId)); +std::string ContrastFaceVerifyRequest::getFaceContrastFile() const { + return faceContrastFile_; } -std::string ContrastFaceVerifyRequest::getOssBucketName()const -{ - return ossBucketName_; +void ContrastFaceVerifyRequest::setFaceContrastFile(const std::string &faceContrastFile) { + faceContrastFile_ = faceContrastFile; + setBodyParameter(std::string("FaceContrastFile"), faceContrastFile); } -void ContrastFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName) -{ - ossBucketName_ = ossBucketName; - setBodyParameter("OssBucketName", ossBucketName); +long ContrastFaceVerifyRequest::getSceneId() const { + return sceneId_; } -std::string ContrastFaceVerifyRequest::getCrop()const -{ - return crop_; +void ContrastFaceVerifyRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setBodyParameter(std::string("SceneId"), std::to_string(sceneId)); } -void ContrastFaceVerifyRequest::setCrop(const std::string& crop) -{ - crop_ = crop; - setBodyParameter("Crop", crop); +std::string ContrastFaceVerifyRequest::getOssBucketName() const { + return ossBucketName_; +} + +void ContrastFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) { + ossBucketName_ = ossBucketName; + setBodyParameter(std::string("OssBucketName"), ossBucketName); +} + +std::string ContrastFaceVerifyRequest::getCrop() const { + return crop_; +} + +void ContrastFaceVerifyRequest::setCrop(const std::string &crop) { + crop_ = crop; + setBodyParameter(std::string("Crop"), crop); } diff --git a/cloudauth/src/model/CreateAuthKeyRequest.cc b/cloudauth/src/model/CreateAuthKeyRequest.cc index 19231333a..2be0dc797 100644 --- a/cloudauth/src/model/CreateAuthKeyRequest.cc +++ b/cloudauth/src/model/CreateAuthKeyRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest; - -CreateAuthKeyRequest::CreateAuthKeyRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "CreateAuthKey") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateAuthKeyRequest::~CreateAuthKeyRequest() -{} - -std::string CreateAuthKeyRequest::getUserDeviceId()const -{ - return userDeviceId_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest; + +CreateAuthKeyRequest::CreateAuthKeyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "CreateAuthKey") { + setMethod(HttpRequest::Method::Post); } -void CreateAuthKeyRequest::setUserDeviceId(const std::string& userDeviceId) -{ - userDeviceId_ = userDeviceId; - setParameter("UserDeviceId", userDeviceId); +CreateAuthKeyRequest::~CreateAuthKeyRequest() {} + +std::string CreateAuthKeyRequest::getUserDeviceId() const { + return userDeviceId_; } -bool CreateAuthKeyRequest::getTest()const -{ - return test_; +void CreateAuthKeyRequest::setUserDeviceId(const std::string &userDeviceId) { + userDeviceId_ = userDeviceId; + setParameter(std::string("UserDeviceId"), userDeviceId); } -void CreateAuthKeyRequest::setTest(bool test) -{ - test_ = test; - setParameter("Test", test ? "true" : "false"); +bool CreateAuthKeyRequest::getTest() const { + return test_; } -std::string CreateAuthKeyRequest::getBizType()const -{ - return bizType_; +void CreateAuthKeyRequest::setTest(bool test) { + test_ = test; + setParameter(std::string("Test"), test ? "true" : "false"); } -void CreateAuthKeyRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +std::string CreateAuthKeyRequest::getBizType() const { + return bizType_; } -std::string CreateAuthKeyRequest::getSourceIp()const -{ - return sourceIp_; +void CreateAuthKeyRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } -void CreateAuthKeyRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); +std::string CreateAuthKeyRequest::getSourceIp() const { + return sourceIp_; } -int CreateAuthKeyRequest::getAuthYears()const -{ - return authYears_; +void CreateAuthKeyRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); } -void CreateAuthKeyRequest::setAuthYears(int authYears) -{ - authYears_ = authYears; - setParameter("AuthYears", std::to_string(authYears)); +int CreateAuthKeyRequest::getAuthYears() const { + return authYears_; } -std::string CreateAuthKeyRequest::getLang()const -{ - return lang_; +void CreateAuthKeyRequest::setAuthYears(int authYears) { + authYears_ = authYears; + setParameter(std::string("AuthYears"), std::to_string(authYears)); } -void CreateAuthKeyRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string CreateAuthKeyRequest::getLang() const { + return lang_; +} + +void CreateAuthKeyRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } diff --git a/cloudauth/src/model/CreateVerifySettingRequest.cc b/cloudauth/src/model/CreateVerifySettingRequest.cc index 2b369cedb..1ac96387b 100644 --- a/cloudauth/src/model/CreateVerifySettingRequest.cc +++ b/cloudauth/src/model/CreateVerifySettingRequest.cc @@ -1,106 +1,90 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::CreateVerifySettingRequest; - -CreateVerifySettingRequest::CreateVerifySettingRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySetting") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateVerifySettingRequest::~CreateVerifySettingRequest() -{} - -bool CreateVerifySettingRequest::getGuideStep()const -{ - return guideStep_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::CreateVerifySettingRequest; + +CreateVerifySettingRequest::CreateVerifySettingRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySetting") { + setMethod(HttpRequest::Method::Post); } -void CreateVerifySettingRequest::setGuideStep(bool guideStep) -{ - guideStep_ = guideStep; - setParameter("GuideStep", guideStep ? "true" : "false"); +CreateVerifySettingRequest::~CreateVerifySettingRequest() {} + +bool CreateVerifySettingRequest::getGuideStep() const { + return guideStep_; } -bool CreateVerifySettingRequest::getResultStep()const -{ - return resultStep_; +void CreateVerifySettingRequest::setGuideStep(bool guideStep) { + guideStep_ = guideStep; + setParameter(std::string("GuideStep"), guideStep ? "true" : "false"); } -void CreateVerifySettingRequest::setResultStep(bool resultStep) -{ - resultStep_ = resultStep; - setParameter("ResultStep", resultStep ? "true" : "false"); +bool CreateVerifySettingRequest::getResultStep() const { + return resultStep_; } -std::string CreateVerifySettingRequest::getSourceIp()const -{ - return sourceIp_; +void CreateVerifySettingRequest::setResultStep(bool resultStep) { + resultStep_ = resultStep; + setParameter(std::string("ResultStep"), resultStep ? "true" : "false"); } -void CreateVerifySettingRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); +std::string CreateVerifySettingRequest::getSourceIp() const { + return sourceIp_; } -std::string CreateVerifySettingRequest::getSolution()const -{ - return solution_; +void CreateVerifySettingRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); } -void CreateVerifySettingRequest::setSolution(const std::string& solution) -{ - solution_ = solution; - setParameter("Solution", solution); +std::string CreateVerifySettingRequest::getSolution() const { + return solution_; } -std::string CreateVerifySettingRequest::getBizName()const -{ - return bizName_; +void CreateVerifySettingRequest::setSolution(const std::string &solution) { + solution_ = solution; + setParameter(std::string("Solution"), solution); } -void CreateVerifySettingRequest::setBizName(const std::string& bizName) -{ - bizName_ = bizName; - setParameter("BizName", bizName); +std::string CreateVerifySettingRequest::getBizName() const { + return bizName_; } -std::string CreateVerifySettingRequest::getBizType()const -{ - return bizType_; +void CreateVerifySettingRequest::setBizName(const std::string &bizName) { + bizName_ = bizName; + setParameter(std::string("BizName"), bizName); } -void CreateVerifySettingRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +std::string CreateVerifySettingRequest::getBizType() const { + return bizType_; } -bool CreateVerifySettingRequest::getPrivacyStep()const -{ - return privacyStep_; +void CreateVerifySettingRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } -void CreateVerifySettingRequest::setPrivacyStep(bool privacyStep) -{ - privacyStep_ = privacyStep; - setParameter("PrivacyStep", privacyStep ? "true" : "false"); +bool CreateVerifySettingRequest::getPrivacyStep() const { + return privacyStep_; +} + +void CreateVerifySettingRequest::setPrivacyStep(bool privacyStep) { + privacyStep_ = privacyStep; + setParameter(std::string("PrivacyStep"), privacyStep ? "true" : "false"); } diff --git a/cloudauth/src/model/CreateVerifySettingResult.cc b/cloudauth/src/model/CreateVerifySettingResult.cc index 2660bb0aa..35f28ffa3 100644 --- a/cloudauth/src/model/CreateVerifySettingResult.cc +++ b/cloudauth/src/model/CreateVerifySettingResult.cc @@ -42,12 +42,12 @@ void CreateVerifySettingResult::parse(const std::string &payload) auto allStepList = value["StepList"]["Step"]; for (const auto &item : allStepList) stepList_.push_back(item.asString()); - if(!value["BizType"].isNull()) - bizType_ = value["BizType"].asString(); if(!value["BizName"].isNull()) bizName_ = value["BizName"].asString(); if(!value["Solution"].isNull()) solution_ = value["Solution"].asString(); + if(!value["BizType"].isNull()) + bizType_ = value["BizType"].asString(); } @@ -56,16 +56,16 @@ std::vector CreateVerifySettingResult::getStepList()const return stepList_; } -std::string CreateVerifySettingResult::getBizType()const -{ - return bizType_; -} - std::string CreateVerifySettingResult::getBizName()const { return bizName_; } +std::string CreateVerifySettingResult::getBizType()const +{ + return bizType_; +} + std::string CreateVerifySettingResult::getSolution()const { return solution_; diff --git a/cloudauth/src/model/DescribeDeviceInfoRequest.cc b/cloudauth/src/model/DescribeDeviceInfoRequest.cc index ad03f9b66..315ad0e4f 100644 --- a/cloudauth/src/model/DescribeDeviceInfoRequest.cc +++ b/cloudauth/src/model/DescribeDeviceInfoRequest.cc @@ -1,139 +1,117 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest; - -DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DescribeDeviceInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest() -{} - -std::string DescribeDeviceInfoRequest::getUserDeviceId()const -{ - return userDeviceId_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest; + +DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeDeviceInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId) -{ - userDeviceId_ = userDeviceId; - setParameter("UserDeviceId", userDeviceId); +DescribeDeviceInfoRequest::~DescribeDeviceInfoRequest() {} + +std::string DescribeDeviceInfoRequest::getUserDeviceId() const { + return userDeviceId_; } -std::string DescribeDeviceInfoRequest::getSourceIp()const -{ - return sourceIp_; +void DescribeDeviceInfoRequest::setUserDeviceId(const std::string &userDeviceId) { + userDeviceId_ = userDeviceId; + setParameter(std::string("UserDeviceId"), userDeviceId); } -void DescribeDeviceInfoRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); +std::string DescribeDeviceInfoRequest::getSourceIp() const { + return sourceIp_; } -int DescribeDeviceInfoRequest::getPageSize()const -{ - return pageSize_; +void DescribeDeviceInfoRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); } -void DescribeDeviceInfoRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int DescribeDeviceInfoRequest::getPageSize() const { + return pageSize_; } -std::string DescribeDeviceInfoRequest::getLang()const -{ - return lang_; +void DescribeDeviceInfoRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void DescribeDeviceInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeDeviceInfoRequest::getLang() const { + return lang_; } -std::string DescribeDeviceInfoRequest::getExpiredStartDay()const -{ - return expiredStartDay_; +void DescribeDeviceInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string& expiredStartDay) -{ - expiredStartDay_ = expiredStartDay; - setParameter("ExpiredStartDay", expiredStartDay); +std::string DescribeDeviceInfoRequest::getExpiredStartDay() const { + return expiredStartDay_; } -int DescribeDeviceInfoRequest::getTotalCount()const -{ - return totalCount_; +void DescribeDeviceInfoRequest::setExpiredStartDay(const std::string &expiredStartDay) { + expiredStartDay_ = expiredStartDay; + setParameter(std::string("ExpiredStartDay"), expiredStartDay); } -void DescribeDeviceInfoRequest::setTotalCount(int totalCount) -{ - totalCount_ = totalCount; - setParameter("TotalCount", std::to_string(totalCount)); +int DescribeDeviceInfoRequest::getTotalCount() const { + return totalCount_; } -int DescribeDeviceInfoRequest::getCurrentPage()const -{ - return currentPage_; +void DescribeDeviceInfoRequest::setTotalCount(int totalCount) { + totalCount_ = totalCount; + setParameter(std::string("TotalCount"), std::to_string(totalCount)); } -void DescribeDeviceInfoRequest::setCurrentPage(int currentPage) -{ - currentPage_ = currentPage; - setParameter("CurrentPage", std::to_string(currentPage)); +int DescribeDeviceInfoRequest::getCurrentPage() const { + return currentPage_; } -std::string DescribeDeviceInfoRequest::getDeviceId()const -{ - return deviceId_; +void DescribeDeviceInfoRequest::setCurrentPage(int currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); } -void DescribeDeviceInfoRequest::setDeviceId(const std::string& deviceId) -{ - deviceId_ = deviceId; - setParameter("DeviceId", deviceId); +std::string DescribeDeviceInfoRequest::getDeviceId() const { + return deviceId_; } -std::string DescribeDeviceInfoRequest::getBizType()const -{ - return bizType_; +void DescribeDeviceInfoRequest::setDeviceId(const std::string &deviceId) { + deviceId_ = deviceId; + setParameter(std::string("DeviceId"), deviceId); } -void DescribeDeviceInfoRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +std::string DescribeDeviceInfoRequest::getBizType() const { + return bizType_; } -std::string DescribeDeviceInfoRequest::getExpiredEndDay()const -{ - return expiredEndDay_; +void DescribeDeviceInfoRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } -void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string& expiredEndDay) -{ - expiredEndDay_ = expiredEndDay; - setParameter("ExpiredEndDay", expiredEndDay); +std::string DescribeDeviceInfoRequest::getExpiredEndDay() const { + return expiredEndDay_; +} + +void DescribeDeviceInfoRequest::setExpiredEndDay(const std::string &expiredEndDay) { + expiredEndDay_ = expiredEndDay; + setParameter(std::string("ExpiredEndDay"), expiredEndDay); } diff --git a/cloudauth/src/model/DescribeDeviceInfoResult.cc b/cloudauth/src/model/DescribeDeviceInfoResult.cc index 438b8c743..b3378ce6a 100644 --- a/cloudauth/src/model/DescribeDeviceInfoResult.cc +++ b/cloudauth/src/model/DescribeDeviceInfoResult.cc @@ -43,22 +43,22 @@ void DescribeDeviceInfoResult::parse(const std::string &payload) for (auto valueDeviceInfoListDeviceInfo : allDeviceInfoListNode) { DeviceInfo deviceInfoListObject; - if(!valueDeviceInfoListDeviceInfo["DeviceId"].isNull()) - deviceInfoListObject.deviceId = valueDeviceInfoListDeviceInfo["DeviceId"].asString(); - if(!valueDeviceInfoListDeviceInfo["UserDeviceId"].isNull()) - deviceInfoListObject.userDeviceId = valueDeviceInfoListDeviceInfo["UserDeviceId"].asString(); - if(!valueDeviceInfoListDeviceInfo["BizType"].isNull()) - deviceInfoListObject.bizType = valueDeviceInfoListDeviceInfo["BizType"].asString(); - if(!valueDeviceInfoListDeviceInfo["BeginDay"].isNull()) - deviceInfoListObject.beginDay = valueDeviceInfoListDeviceInfo["BeginDay"].asString(); if(!valueDeviceInfoListDeviceInfo["ExpiredDay"].isNull()) deviceInfoListObject.expiredDay = valueDeviceInfoListDeviceInfo["ExpiredDay"].asString(); + if(!valueDeviceInfoListDeviceInfo["UserDeviceId"].isNull()) + deviceInfoListObject.userDeviceId = valueDeviceInfoListDeviceInfo["UserDeviceId"].asString(); + if(!valueDeviceInfoListDeviceInfo["DeviceId"].isNull()) + deviceInfoListObject.deviceId = valueDeviceInfoListDeviceInfo["DeviceId"].asString(); + if(!valueDeviceInfoListDeviceInfo["BeginDay"].isNull()) + deviceInfoListObject.beginDay = valueDeviceInfoListDeviceInfo["BeginDay"].asString(); + if(!valueDeviceInfoListDeviceInfo["BizType"].isNull()) + deviceInfoListObject.bizType = valueDeviceInfoListDeviceInfo["BizType"].asString(); deviceInfoList_.push_back(deviceInfoListObject); } - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["CurrentPage"].isNull()) currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stoi(value["TotalCount"].asString()); diff --git a/cloudauth/src/model/DescribeFaceVerifyRequest.cc b/cloudauth/src/model/DescribeFaceVerifyRequest.cc index ef2ab4e95..a9cadd372 100644 --- a/cloudauth/src/model/DescribeFaceVerifyRequest.cc +++ b/cloudauth/src/model/DescribeFaceVerifyRequest.cc @@ -1,62 +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. - */ - -#include - -using AlibabaCloud::Cloudauth::Model::DescribeFaceVerifyRequest; - -DescribeFaceVerifyRequest::DescribeFaceVerifyRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeFaceVerifyRequest::~DescribeFaceVerifyRequest() -{} - -std::string DescribeFaceVerifyRequest::getCertifyId()const -{ - return certifyId_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DescribeFaceVerifyRequest; + +DescribeFaceVerifyRequest::DescribeFaceVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceVerify") { + setMethod(HttpRequest::Method::Post); } -void DescribeFaceVerifyRequest::setCertifyId(const std::string& certifyId) -{ - certifyId_ = certifyId; - setParameter("CertifyId", certifyId); +DescribeFaceVerifyRequest::~DescribeFaceVerifyRequest() {} + +std::string DescribeFaceVerifyRequest::getCertifyId() const { + return certifyId_; } -std::string DescribeFaceVerifyRequest::getPictureReturnType()const -{ - return pictureReturnType_; +void DescribeFaceVerifyRequest::setCertifyId(const std::string &certifyId) { + certifyId_ = certifyId; + setParameter(std::string("CertifyId"), certifyId); } -void DescribeFaceVerifyRequest::setPictureReturnType(const std::string& pictureReturnType) -{ - pictureReturnType_ = pictureReturnType; - setParameter("PictureReturnType", pictureReturnType); +std::string DescribeFaceVerifyRequest::getPictureReturnType() const { + return pictureReturnType_; } -long DescribeFaceVerifyRequest::getSceneId()const -{ - return sceneId_; +void DescribeFaceVerifyRequest::setPictureReturnType(const std::string &pictureReturnType) { + pictureReturnType_ = pictureReturnType; + setParameter(std::string("PictureReturnType"), pictureReturnType); } -void DescribeFaceVerifyRequest::setSceneId(long sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +long DescribeFaceVerifyRequest::getSceneId() const { + return sceneId_; +} + +void DescribeFaceVerifyRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setParameter(std::string("SceneId"), std::to_string(sceneId)); } diff --git a/cloudauth/src/model/DescribeFaceVerifyResult.cc b/cloudauth/src/model/DescribeFaceVerifyResult.cc index e239d5282..f25886ab6 100644 --- a/cloudauth/src/model/DescribeFaceVerifyResult.cc +++ b/cloudauth/src/model/DescribeFaceVerifyResult.cc @@ -50,6 +50,12 @@ void DescribeFaceVerifyResult::parse(const std::string &payload) resultObject_.deviceToken = resultObjectNode["DeviceToken"].asString(); if(!resultObjectNode["Passed"].isNull()) resultObject_.passed = resultObjectNode["Passed"].asString(); + if(!resultObjectNode["DeviceRisk"].isNull()) + resultObject_.deviceRisk = resultObjectNode["DeviceRisk"].asString(); + if(!resultObjectNode["Success"].isNull()) + resultObject_.success = resultObjectNode["Success"].asString(); + if(!resultObjectNode["UserInfo"].isNull()) + resultObject_.userInfo = resultObjectNode["UserInfo"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/cloudauth/src/model/DescribeOssUploadTokenRequest.cc b/cloudauth/src/model/DescribeOssUploadTokenRequest.cc index ea4a178f3..72a0047b6 100644 --- a/cloudauth/src/model/DescribeOssUploadTokenRequest.cc +++ b/cloudauth/src/model/DescribeOssUploadTokenRequest.cc @@ -1,40 +1,36 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::DescribeOssUploadTokenRequest; - -DescribeOssUploadTokenRequest::DescribeOssUploadTokenRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DescribeOssUploadToken") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeOssUploadTokenRequest::~DescribeOssUploadTokenRequest() -{} - -std::string DescribeOssUploadTokenRequest::getSourceIp()const -{ - return sourceIp_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DescribeOssUploadTokenRequest; + +DescribeOssUploadTokenRequest::DescribeOssUploadTokenRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeOssUploadToken") { + setMethod(HttpRequest::Method::Post); } -void DescribeOssUploadTokenRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); +DescribeOssUploadTokenRequest::~DescribeOssUploadTokenRequest() {} + +std::string DescribeOssUploadTokenRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeOssUploadTokenRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); } diff --git a/cloudauth/src/model/DescribeOssUploadTokenResult.cc b/cloudauth/src/model/DescribeOssUploadTokenResult.cc index 9e0669dc9..bff56d9d3 100644 --- a/cloudauth/src/model/DescribeOssUploadTokenResult.cc +++ b/cloudauth/src/model/DescribeOssUploadTokenResult.cc @@ -40,20 +40,20 @@ void DescribeOssUploadTokenResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto ossUploadTokenNode = value["OssUploadToken"]; - if(!ossUploadTokenNode["Bucket"].isNull()) - ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString(); - if(!ossUploadTokenNode["EndPoint"].isNull()) - ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString(); - if(!ossUploadTokenNode["Path"].isNull()) - ossUploadToken_.path = ossUploadTokenNode["Path"].asString(); - if(!ossUploadTokenNode["Expired"].isNull()) - ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString()); - if(!ossUploadTokenNode["Secret"].isNull()) - ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString(); if(!ossUploadTokenNode["Key"].isNull()) ossUploadToken_.key = ossUploadTokenNode["Key"].asString(); if(!ossUploadTokenNode["Token"].isNull()) ossUploadToken_.token = ossUploadTokenNode["Token"].asString(); + if(!ossUploadTokenNode["Secret"].isNull()) + ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString(); + if(!ossUploadTokenNode["Expired"].isNull()) + ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString()); + if(!ossUploadTokenNode["Path"].isNull()) + ossUploadToken_.path = ossUploadTokenNode["Path"].asString(); + if(!ossUploadTokenNode["EndPoint"].isNull()) + ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString(); + if(!ossUploadTokenNode["Bucket"].isNull()) + ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString(); } diff --git a/cloudauth/src/model/DescribePageFaceVerifyDataRequest.cc b/cloudauth/src/model/DescribePageFaceVerifyDataRequest.cc new file mode 100644 index 000000000..8f1d2689c --- /dev/null +++ b/cloudauth/src/model/DescribePageFaceVerifyDataRequest.cc @@ -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 + +using AlibabaCloud::Cloudauth::Model::DescribePageFaceVerifyDataRequest; + +DescribePageFaceVerifyDataRequest::DescribePageFaceVerifyDataRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribePageFaceVerifyData") { + setMethod(HttpRequest::Method::Post); +} + +DescribePageFaceVerifyDataRequest::~DescribePageFaceVerifyDataRequest() {} + +std::string DescribePageFaceVerifyDataRequest::getProductCode() const { + return productCode_; +} + +void DescribePageFaceVerifyDataRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); +} + +long DescribePageFaceVerifyDataRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribePageFaceVerifyDataRequest::setCurrentPage(long currentPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), std::to_string(currentPage)); +} + +std::string DescribePageFaceVerifyDataRequest::getStartDate() const { + return startDate_; +} + +void DescribePageFaceVerifyDataRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +std::string DescribePageFaceVerifyDataRequest::getEndDate() const { + return endDate_; +} + +void DescribePageFaceVerifyDataRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + +long DescribePageFaceVerifyDataRequest::getSceneId() const { + return sceneId_; +} + +void DescribePageFaceVerifyDataRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setParameter(std::string("SceneId"), std::to_string(sceneId)); +} + +long DescribePageFaceVerifyDataRequest::getPageSize() const { + return pageSize_; +} + +void DescribePageFaceVerifyDataRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/cloudauth/src/model/DescribePageFaceVerifyDataResult.cc b/cloudauth/src/model/DescribePageFaceVerifyDataResult.cc new file mode 100644 index 000000000..d834a243a --- /dev/null +++ b/cloudauth/src/model/DescribePageFaceVerifyDataResult.cc @@ -0,0 +1,116 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +DescribePageFaceVerifyDataResult::DescribePageFaceVerifyDataResult() : + ServiceResult() +{} + +DescribePageFaceVerifyDataResult::DescribePageFaceVerifyDataResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePageFaceVerifyDataResult::~DescribePageFaceVerifyDataResult() +{} + +void DescribePageFaceVerifyDataResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["ItemsItem"]; + for (auto valueItemsItemsItem : allItemsNode) + { + ItemsItem itemsObject; + if(!valueItemsItemsItem["Date"].isNull()) + itemsObject.date = valueItemsItemsItem["Date"].asString(); + if(!valueItemsItemsItem["TotalCount"].isNull()) + itemsObject.totalCount = valueItemsItemsItem["TotalCount"].asString(); + if(!valueItemsItemsItem["SuccessCount"].isNull()) + itemsObject.successCount = valueItemsItemsItem["SuccessCount"].asString(); + if(!valueItemsItemsItem["SceneId"].isNull()) + itemsObject.sceneId = valueItemsItemsItem["SceneId"].asString(); + if(!valueItemsItemsItem["SceneName"].isNull()) + itemsObject.sceneName = valueItemsItemsItem["SceneName"].asString(); + if(!valueItemsItemsItem["ProductCode"].isNull()) + itemsObject.productCode = valueItemsItemsItem["ProductCode"].asString(); + items_.push_back(itemsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["TotalPage"].isNull()) + totalPage_ = value["TotalPage"].asString(); + if(!value["CurrentPage"].isNull()) + currentPage_ = value["CurrentPage"].asString(); + +} + +std::string DescribePageFaceVerifyDataResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribePageFaceVerifyDataResult::getMessage()const +{ + return message_; +} + +std::string DescribePageFaceVerifyDataResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribePageFaceVerifyDataResult::getTotalPage()const +{ + return totalPage_; +} + +std::string DescribePageFaceVerifyDataResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribePageFaceVerifyDataResult::getItems()const +{ + return items_; +} + +std::string DescribePageFaceVerifyDataResult::getCode()const +{ + return code_; +} + +std::string DescribePageFaceVerifyDataResult::getSuccess()const +{ + return success_; +} + diff --git a/cloudauth/src/model/DescribeSmartStatisticsPageListRequest.cc b/cloudauth/src/model/DescribeSmartStatisticsPageListRequest.cc new file mode 100644 index 000000000..de614f9e5 --- /dev/null +++ b/cloudauth/src/model/DescribeSmartStatisticsPageListRequest.cc @@ -0,0 +1,90 @@ +/* + * 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 + +using AlibabaCloud::Cloudauth::Model::DescribeSmartStatisticsPageListRequest; + +DescribeSmartStatisticsPageListRequest::DescribeSmartStatisticsPageListRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeSmartStatisticsPageList") { + setMethod(HttpRequest::Method::Post); +} + +DescribeSmartStatisticsPageListRequest::~DescribeSmartStatisticsPageListRequest() {} + +std::string DescribeSmartStatisticsPageListRequest::getStartDate() const { + return startDate_; +} + +void DescribeSmartStatisticsPageListRequest::setStartDate(const std::string &startDate) { + startDate_ = startDate; + setParameter(std::string("StartDate"), startDate); +} + +std::string DescribeSmartStatisticsPageListRequest::getSourceIp() const { + return sourceIp_; +} + +void DescribeSmartStatisticsPageListRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); +} + +std::string DescribeSmartStatisticsPageListRequest::getPageSize() const { + return pageSize_; +} + +void DescribeSmartStatisticsPageListRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeSmartStatisticsPageListRequest::getCurrentPage() const { + return currentPage_; +} + +void DescribeSmartStatisticsPageListRequest::setCurrentPage(const std::string ¤tPage) { + currentPage_ = currentPage; + setParameter(std::string("CurrentPage"), currentPage); +} + +std::string DescribeSmartStatisticsPageListRequest::getEndDate() const { + return endDate_; +} + +void DescribeSmartStatisticsPageListRequest::setEndDate(const std::string &endDate) { + endDate_ = endDate; + setParameter(std::string("EndDate"), endDate); +} + +std::string DescribeSmartStatisticsPageListRequest::getServiceCode() const { + return serviceCode_; +} + +void DescribeSmartStatisticsPageListRequest::setServiceCode(const std::string &serviceCode) { + serviceCode_ = serviceCode; + setParameter(std::string("ServiceCode"), serviceCode); +} + +std::string DescribeSmartStatisticsPageListRequest::getSceneId() const { + return sceneId_; +} + +void DescribeSmartStatisticsPageListRequest::setSceneId(const std::string &sceneId) { + sceneId_ = sceneId; + setParameter(std::string("SceneId"), sceneId); +} + diff --git a/cloudauth/src/model/DescribeSmartStatisticsPageListResult.cc b/cloudauth/src/model/DescribeSmartStatisticsPageListResult.cc new file mode 100644 index 000000000..08afe3003 --- /dev/null +++ b/cloudauth/src/model/DescribeSmartStatisticsPageListResult.cc @@ -0,0 +1,97 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +DescribeSmartStatisticsPageListResult::DescribeSmartStatisticsPageListResult() : + ServiceResult() +{} + +DescribeSmartStatisticsPageListResult::DescribeSmartStatisticsPageListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSmartStatisticsPageListResult::~DescribeSmartStatisticsPageListResult() +{} + +void DescribeSmartStatisticsPageListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allItemsNode = value["Items"]["ItemsItem"]; + for (auto valueItemsItemsItem : allItemsNode) + { + ItemsItem itemsObject; + if(!valueItemsItemsItem["Date"].isNull()) + itemsObject.date = valueItemsItemsItem["Date"].asString(); + if(!valueItemsItemsItem["SceneId"].isNull()) + itemsObject.sceneId = std::stol(valueItemsItemsItem["SceneId"].asString()); + if(!valueItemsItemsItem["SceneName"].isNull()) + itemsObject.sceneName = valueItemsItemsItem["SceneName"].asString(); + if(!valueItemsItemsItem["TotalCount"].isNull()) + itemsObject.totalCount = std::stoi(valueItemsItemsItem["TotalCount"].asString()); + if(!valueItemsItemsItem["SuccessCount"].isNull()) + itemsObject.successCount = std::stoi(valueItemsItemsItem["SuccessCount"].asString()); + if(!valueItemsItemsItem["PassRate"].isNull()) + itemsObject.passRate = valueItemsItemsItem["PassRate"].asString(); + if(!valueItemsItemsItem["ProductCode"].isNull()) + itemsObject.productCode = valueItemsItemsItem["ProductCode"].asString(); + items_.push_back(itemsObject); + } + if(!value["CurrentPage"].isNull()) + currentPage_ = std::stoi(value["CurrentPage"].asString()); + if(!value["TotalPage"].isNull()) + totalPage_ = std::stoi(value["TotalPage"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeSmartStatisticsPageListResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeSmartStatisticsPageListResult::getTotalPage()const +{ + return totalPage_; +} + +int DescribeSmartStatisticsPageListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSmartStatisticsPageListResult::getCurrentPage()const +{ + return currentPage_; +} + +std::vector DescribeSmartStatisticsPageListResult::getItems()const +{ + return items_; +} + diff --git a/cloudauth/src/model/DescribeVerifyResultRequest.cc b/cloudauth/src/model/DescribeVerifyResultRequest.cc index 21137eff9..204913327 100644 --- a/cloudauth/src/model/DescribeVerifyResultRequest.cc +++ b/cloudauth/src/model/DescribeVerifyResultRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::DescribeVerifyResultRequest; - -DescribeVerifyResultRequest::DescribeVerifyResultRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyResult") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVerifyResultRequest::~DescribeVerifyResultRequest() -{} - -std::string DescribeVerifyResultRequest::getBizType()const -{ - return bizType_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DescribeVerifyResultRequest; + +DescribeVerifyResultRequest::DescribeVerifyResultRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyResult") { + setMethod(HttpRequest::Method::Post); } -void DescribeVerifyResultRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +DescribeVerifyResultRequest::~DescribeVerifyResultRequest() {} + +std::string DescribeVerifyResultRequest::getBizType() const { + return bizType_; } -std::string DescribeVerifyResultRequest::getBizId()const -{ - return bizId_; +void DescribeVerifyResultRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } -void DescribeVerifyResultRequest::setBizId(const std::string& bizId) -{ - bizId_ = bizId; - setParameter("BizId", bizId); +std::string DescribeVerifyResultRequest::getBizId() const { + return bizId_; +} + +void DescribeVerifyResultRequest::setBizId(const std::string &bizId) { + bizId_ = bizId; + setParameter(std::string("BizId"), bizId); } diff --git a/cloudauth/src/model/DescribeVerifySDKRequest.cc b/cloudauth/src/model/DescribeVerifySDKRequest.cc index 68c8f0bea..f4fae82d4 100644 --- a/cloudauth/src/model/DescribeVerifySDKRequest.cc +++ b/cloudauth/src/model/DescribeVerifySDKRequest.cc @@ -1,62 +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. - */ - -#include - -using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest; - -DescribeVerifySDKRequest::DescribeVerifySDKRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySDK") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVerifySDKRequest::~DescribeVerifySDKRequest() -{} - -std::string DescribeVerifySDKRequest::getSourceIp()const -{ - return sourceIp_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest; + +DescribeVerifySDKRequest::DescribeVerifySDKRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySDK") { + setMethod(HttpRequest::Method::Post); } -void DescribeVerifySDKRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); +DescribeVerifySDKRequest::~DescribeVerifySDKRequest() {} + +std::string DescribeVerifySDKRequest::getSourceIp() const { + return sourceIp_; } -std::string DescribeVerifySDKRequest::getLang()const -{ - return lang_; +void DescribeVerifySDKRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); } -void DescribeVerifySDKRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string DescribeVerifySDKRequest::getLang() const { + return lang_; } -std::string DescribeVerifySDKRequest::getTaskId()const -{ - return taskId_; +void DescribeVerifySDKRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void DescribeVerifySDKRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeVerifySDKRequest::getTaskId() const { + return taskId_; +} + +void DescribeVerifySDKRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/cloudauth/src/model/DescribeVerifyTokenRequest.cc b/cloudauth/src/model/DescribeVerifyTokenRequest.cc index 543a6eced..16851089d 100644 --- a/cloudauth/src/model/DescribeVerifyTokenRequest.cc +++ b/cloudauth/src/model/DescribeVerifyTokenRequest.cc @@ -1,194 +1,162 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::DescribeVerifyTokenRequest; - -DescribeVerifyTokenRequest::DescribeVerifyTokenRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyToken") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeVerifyTokenRequest::~DescribeVerifyTokenRequest() -{} - -std::string DescribeVerifyTokenRequest::getFaceRetainedImageUrl()const -{ - return faceRetainedImageUrl_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DescribeVerifyTokenRequest; + +DescribeVerifyTokenRequest::DescribeVerifyTokenRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyToken") { + setMethod(HttpRequest::Method::Post); } -void DescribeVerifyTokenRequest::setFaceRetainedImageUrl(const std::string& faceRetainedImageUrl) -{ - faceRetainedImageUrl_ = faceRetainedImageUrl; - setParameter("FaceRetainedImageUrl", faceRetainedImageUrl); +DescribeVerifyTokenRequest::~DescribeVerifyTokenRequest() {} + +std::string DescribeVerifyTokenRequest::getFaceRetainedImageUrl() const { + return faceRetainedImageUrl_; } -std::string DescribeVerifyTokenRequest::getUserId()const -{ - return userId_; +void DescribeVerifyTokenRequest::setFaceRetainedImageUrl(const std::string &faceRetainedImageUrl) { + faceRetainedImageUrl_ = faceRetainedImageUrl; + setParameter(std::string("FaceRetainedImageUrl"), faceRetainedImageUrl); } -void DescribeVerifyTokenRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +std::string DescribeVerifyTokenRequest::getUserId() const { + return userId_; } -std::string DescribeVerifyTokenRequest::getCallbackSeed()const -{ - return callbackSeed_; +void DescribeVerifyTokenRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void DescribeVerifyTokenRequest::setCallbackSeed(const std::string& callbackSeed) -{ - callbackSeed_ = callbackSeed; - setParameter("CallbackSeed", callbackSeed); +std::string DescribeVerifyTokenRequest::getCallbackSeed() const { + return callbackSeed_; } -std::string DescribeVerifyTokenRequest::getUserIp()const -{ - return userIp_; +void DescribeVerifyTokenRequest::setCallbackSeed(const std::string &callbackSeed) { + callbackSeed_ = callbackSeed; + setParameter(std::string("CallbackSeed"), callbackSeed); } -void DescribeVerifyTokenRequest::setUserIp(const std::string& userIp) -{ - userIp_ = userIp; - setParameter("UserIp", userIp); +std::string DescribeVerifyTokenRequest::getUserIp() const { + return userIp_; } -std::string DescribeVerifyTokenRequest::getIdCardBackImageUrl()const -{ - return idCardBackImageUrl_; +void DescribeVerifyTokenRequest::setUserIp(const std::string &userIp) { + userIp_ = userIp; + setParameter(std::string("UserIp"), userIp); } -void DescribeVerifyTokenRequest::setIdCardBackImageUrl(const std::string& idCardBackImageUrl) -{ - idCardBackImageUrl_ = idCardBackImageUrl; - setParameter("IdCardBackImageUrl", idCardBackImageUrl); +std::string DescribeVerifyTokenRequest::getIdCardBackImageUrl() const { + return idCardBackImageUrl_; } -std::string DescribeVerifyTokenRequest::getIdCardNumber()const -{ - return idCardNumber_; +void DescribeVerifyTokenRequest::setIdCardBackImageUrl(const std::string &idCardBackImageUrl) { + idCardBackImageUrl_ = idCardBackImageUrl; + setParameter(std::string("IdCardBackImageUrl"), idCardBackImageUrl); } -void DescribeVerifyTokenRequest::setIdCardNumber(const std::string& idCardNumber) -{ - idCardNumber_ = idCardNumber; - setParameter("IdCardNumber", idCardNumber); +std::string DescribeVerifyTokenRequest::getIdCardNumber() const { + return idCardNumber_; } -std::string DescribeVerifyTokenRequest::getIdCardFrontImageUrl()const -{ - return idCardFrontImageUrl_; +void DescribeVerifyTokenRequest::setIdCardNumber(const std::string &idCardNumber) { + idCardNumber_ = idCardNumber; + setParameter(std::string("IdCardNumber"), idCardNumber); } -void DescribeVerifyTokenRequest::setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl) -{ - idCardFrontImageUrl_ = idCardFrontImageUrl; - setParameter("IdCardFrontImageUrl", idCardFrontImageUrl); +std::string DescribeVerifyTokenRequest::getIdCardFrontImageUrl() const { + return idCardFrontImageUrl_; } -std::string DescribeVerifyTokenRequest::getBizType()const -{ - return bizType_; +void DescribeVerifyTokenRequest::setIdCardFrontImageUrl(const std::string &idCardFrontImageUrl) { + idCardFrontImageUrl_ = idCardFrontImageUrl; + setParameter(std::string("IdCardFrontImageUrl"), idCardFrontImageUrl); } -void DescribeVerifyTokenRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +std::string DescribeVerifyTokenRequest::getBizType() const { + return bizType_; } -std::string DescribeVerifyTokenRequest::getPassedRedirectUrl()const -{ - return passedRedirectUrl_; +void DescribeVerifyTokenRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } -void DescribeVerifyTokenRequest::setPassedRedirectUrl(const std::string& passedRedirectUrl) -{ - passedRedirectUrl_ = passedRedirectUrl; - setParameter("PassedRedirectUrl", passedRedirectUrl); +std::string DescribeVerifyTokenRequest::getPassedRedirectUrl() const { + return passedRedirectUrl_; } -long DescribeVerifyTokenRequest::getUserRegistTime()const -{ - return userRegistTime_; +void DescribeVerifyTokenRequest::setPassedRedirectUrl(const std::string &passedRedirectUrl) { + passedRedirectUrl_ = passedRedirectUrl; + setParameter(std::string("PassedRedirectUrl"), passedRedirectUrl); } -void DescribeVerifyTokenRequest::setUserRegistTime(long userRegistTime) -{ - userRegistTime_ = userRegistTime; - setParameter("UserRegistTime", std::to_string(userRegistTime)); +long DescribeVerifyTokenRequest::getUserRegistTime() const { + return userRegistTime_; } -std::string DescribeVerifyTokenRequest::getBizId()const -{ - return bizId_; +void DescribeVerifyTokenRequest::setUserRegistTime(long userRegistTime) { + userRegistTime_ = userRegistTime; + setParameter(std::string("UserRegistTime"), std::to_string(userRegistTime)); } -void DescribeVerifyTokenRequest::setBizId(const std::string& bizId) -{ - bizId_ = bizId; - setParameter("BizId", bizId); +std::string DescribeVerifyTokenRequest::getBizId() const { + return bizId_; } -std::string DescribeVerifyTokenRequest::getName()const -{ - return name_; +void DescribeVerifyTokenRequest::setBizId(const std::string &bizId) { + bizId_ = bizId; + setParameter(std::string("BizId"), bizId); } -void DescribeVerifyTokenRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DescribeVerifyTokenRequest::getName() const { + return name_; } -std::string DescribeVerifyTokenRequest::getUserPhoneNumber()const -{ - return userPhoneNumber_; +void DescribeVerifyTokenRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void DescribeVerifyTokenRequest::setUserPhoneNumber(const std::string& userPhoneNumber) -{ - userPhoneNumber_ = userPhoneNumber; - setParameter("UserPhoneNumber", userPhoneNumber); +std::string DescribeVerifyTokenRequest::getUserPhoneNumber() const { + return userPhoneNumber_; } -std::string DescribeVerifyTokenRequest::getCallbackUrl()const -{ - return callbackUrl_; +void DescribeVerifyTokenRequest::setUserPhoneNumber(const std::string &userPhoneNumber) { + userPhoneNumber_ = userPhoneNumber; + setParameter(std::string("UserPhoneNumber"), userPhoneNumber); } -void DescribeVerifyTokenRequest::setCallbackUrl(const std::string& callbackUrl) -{ - callbackUrl_ = callbackUrl; - setParameter("CallbackUrl", callbackUrl); +std::string DescribeVerifyTokenRequest::getCallbackUrl() const { + return callbackUrl_; } -std::string DescribeVerifyTokenRequest::getFailedRedirectUrl()const -{ - return failedRedirectUrl_; +void DescribeVerifyTokenRequest::setCallbackUrl(const std::string &callbackUrl) { + callbackUrl_ = callbackUrl; + setParameter(std::string("CallbackUrl"), callbackUrl); } -void DescribeVerifyTokenRequest::setFailedRedirectUrl(const std::string& failedRedirectUrl) -{ - failedRedirectUrl_ = failedRedirectUrl; - setParameter("FailedRedirectUrl", failedRedirectUrl); +std::string DescribeVerifyTokenRequest::getFailedRedirectUrl() const { + return failedRedirectUrl_; +} + +void DescribeVerifyTokenRequest::setFailedRedirectUrl(const std::string &failedRedirectUrl) { + failedRedirectUrl_ = failedRedirectUrl; + setParameter(std::string("FailedRedirectUrl"), failedRedirectUrl); } diff --git a/cloudauth/src/model/DescribeVerifyTokenResult.cc b/cloudauth/src/model/DescribeVerifyTokenResult.cc index fc7bf2f58..4483866d5 100644 --- a/cloudauth/src/model/DescribeVerifyTokenResult.cc +++ b/cloudauth/src/model/DescribeVerifyTokenResult.cc @@ -40,20 +40,20 @@ void DescribeVerifyTokenResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto ossUploadTokenNode = value["OssUploadToken"]; - if(!ossUploadTokenNode["Bucket"].isNull()) - ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString(); - if(!ossUploadTokenNode["EndPoint"].isNull()) - ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString(); - if(!ossUploadTokenNode["Path"].isNull()) - ossUploadToken_.path = ossUploadTokenNode["Path"].asString(); - if(!ossUploadTokenNode["Expired"].isNull()) - ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString()); - if(!ossUploadTokenNode["Secret"].isNull()) - ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString(); if(!ossUploadTokenNode["Key"].isNull()) ossUploadToken_.key = ossUploadTokenNode["Key"].asString(); if(!ossUploadTokenNode["Token"].isNull()) ossUploadToken_.token = ossUploadTokenNode["Token"].asString(); + if(!ossUploadTokenNode["Secret"].isNull()) + ossUploadToken_.secret = ossUploadTokenNode["Secret"].asString(); + if(!ossUploadTokenNode["Expired"].isNull()) + ossUploadToken_.expired = std::stol(ossUploadTokenNode["Expired"].asString()); + if(!ossUploadTokenNode["Path"].isNull()) + ossUploadToken_.path = ossUploadTokenNode["Path"].asString(); + if(!ossUploadTokenNode["EndPoint"].isNull()) + ossUploadToken_.endPoint = ossUploadTokenNode["EndPoint"].asString(); + if(!ossUploadTokenNode["Bucket"].isNull()) + ossUploadToken_.bucket = ossUploadTokenNode["Bucket"].asString(); if(!value["VerifyPageUrl"].isNull()) verifyPageUrl_ = value["VerifyPageUrl"].asString(); if(!value["VerifyToken"].isNull()) diff --git a/cloudauth/src/model/DetectFaceAttributesRequest.cc b/cloudauth/src/model/DetectFaceAttributesRequest.cc index 72e5cf3fa..14da2a705 100644 --- a/cloudauth/src/model/DetectFaceAttributesRequest.cc +++ b/cloudauth/src/model/DetectFaceAttributesRequest.cc @@ -1,51 +1,45 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest; - -DetectFaceAttributesRequest::DetectFaceAttributesRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "DetectFaceAttributes") -{ - setMethod(HttpRequest::Method::Post); -} - -DetectFaceAttributesRequest::~DetectFaceAttributesRequest() -{} - -std::string DetectFaceAttributesRequest::getBizType()const -{ - return bizType_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest; + +DetectFaceAttributesRequest::DetectFaceAttributesRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "DetectFaceAttributes") { + setMethod(HttpRequest::Method::Post); } -void DetectFaceAttributesRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setBodyParameter("BizType", bizType); +DetectFaceAttributesRequest::~DetectFaceAttributesRequest() {} + +std::string DetectFaceAttributesRequest::getBizType() const { + return bizType_; } -std::string DetectFaceAttributesRequest::getMaterialValue()const -{ - return materialValue_; +void DetectFaceAttributesRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setBodyParameter(std::string("BizType"), bizType); } -void DetectFaceAttributesRequest::setMaterialValue(const std::string& materialValue) -{ - materialValue_ = materialValue; - setBodyParameter("MaterialValue", materialValue); +std::string DetectFaceAttributesRequest::getMaterialValue() const { + return materialValue_; +} + +void DetectFaceAttributesRequest::setMaterialValue(const std::string &materialValue) { + materialValue_ = materialValue; + setBodyParameter(std::string("MaterialValue"), materialValue); } diff --git a/cloudauth/src/model/Id2MetaVerifyRequest.cc b/cloudauth/src/model/Id2MetaVerifyRequest.cc new file mode 100644 index 000000000..50715dfdf --- /dev/null +++ b/cloudauth/src/model/Id2MetaVerifyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloudauth::Model::Id2MetaVerifyRequest; + +Id2MetaVerifyRequest::Id2MetaVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "Id2MetaVerify") { + setMethod(HttpRequest::Method::Post); +} + +Id2MetaVerifyRequest::~Id2MetaVerifyRequest() {} + +std::string Id2MetaVerifyRequest::getParamType() const { + return paramType_; +} + +void Id2MetaVerifyRequest::setParamType(const std::string ¶mType) { + paramType_ = paramType; + setParameter(std::string("ParamType"), paramType); +} + +std::string Id2MetaVerifyRequest::getIdentifyNum() const { + return identifyNum_; +} + +void Id2MetaVerifyRequest::setIdentifyNum(const std::string &identifyNum) { + identifyNum_ = identifyNum; + setParameter(std::string("IdentifyNum"), identifyNum); +} + +std::string Id2MetaVerifyRequest::getUserName() const { + return userName_; +} + +void Id2MetaVerifyRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/cloudauth/src/model/Id2MetaVerifyResult.cc b/cloudauth/src/model/Id2MetaVerifyResult.cc new file mode 100644 index 000000000..77b84af88 --- /dev/null +++ b/cloudauth/src/model/Id2MetaVerifyResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +Id2MetaVerifyResult::Id2MetaVerifyResult() : + ServiceResult() +{} + +Id2MetaVerifyResult::Id2MetaVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Id2MetaVerifyResult::~Id2MetaVerifyResult() +{} + +void Id2MetaVerifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultObjectNode = value["ResultObject"]; + if(!resultObjectNode["BizCode"].isNull()) + resultObject_.bizCode = resultObjectNode["BizCode"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +Id2MetaVerifyResult::ResultObject Id2MetaVerifyResult::getResultObject()const +{ + return resultObject_; +} + +std::string Id2MetaVerifyResult::getMessage()const +{ + return message_; +} + +std::string Id2MetaVerifyResult::getCode()const +{ + return code_; +} + diff --git a/cloudauth/src/model/InitFaceVerifyRequest.cc b/cloudauth/src/model/InitFaceVerifyRequest.cc index 25a3c9a7a..2cd5ea3f4 100644 --- a/cloudauth/src/model/InitFaceVerifyRequest.cc +++ b/cloudauth/src/model/InitFaceVerifyRequest.cc @@ -1,271 +1,324 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::InitFaceVerifyRequest; - -InitFaceVerifyRequest::InitFaceVerifyRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "InitFaceVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -InitFaceVerifyRequest::~InitFaceVerifyRequest() -{} - -std::string InitFaceVerifyRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::InitFaceVerifyRequest; + +InitFaceVerifyRequest::InitFaceVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "InitFaceVerify") { + setMethod(HttpRequest::Method::Post); } -void InitFaceVerifyRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setParameter("ProductCode", productCode); +InitFaceVerifyRequest::~InitFaceVerifyRequest() {} + +std::string InitFaceVerifyRequest::getBirthday() const { + return birthday_; } -std::string InitFaceVerifyRequest::getFaceContrastPicture()const -{ - return faceContrastPicture_; +void InitFaceVerifyRequest::setBirthday(const std::string &birthday) { + birthday_ = birthday; + setParameter(std::string("Birthday"), birthday); } -void InitFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture) -{ - faceContrastPicture_ = faceContrastPicture; - setBodyParameter("FaceContrastPicture", faceContrastPicture); +std::string InitFaceVerifyRequest::getProductCode() const { + return productCode_; } -std::string InitFaceVerifyRequest::getUserId()const -{ - return userId_; +void InitFaceVerifyRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setParameter(std::string("ProductCode"), productCode); } -void InitFaceVerifyRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +std::string InitFaceVerifyRequest::getFaceContrastPicture() const { + return faceContrastPicture_; } -std::string InitFaceVerifyRequest::getCertifyId()const -{ - return certifyId_; +void InitFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) { + faceContrastPicture_ = faceContrastPicture; + setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture); } -void InitFaceVerifyRequest::setCertifyId(const std::string& certifyId) -{ - certifyId_ = certifyId; - setParameter("CertifyId", certifyId); +std::string InitFaceVerifyRequest::getReadImg() const { + return readImg_; } -std::string InitFaceVerifyRequest::getCertNo()const -{ - return certNo_; +void InitFaceVerifyRequest::setReadImg(const std::string &readImg) { + readImg_ = readImg; + setParameter(std::string("ReadImg"), readImg); } -void InitFaceVerifyRequest::setCertNo(const std::string& certNo) -{ - certNo_ = certNo; - setParameter("CertNo", certNo); +std::string InitFaceVerifyRequest::getRarelyCharacters() const { + return rarelyCharacters_; } -std::string InitFaceVerifyRequest::getOuterOrderNo()const -{ - return outerOrderNo_; +void InitFaceVerifyRequest::setRarelyCharacters(const std::string &rarelyCharacters) { + rarelyCharacters_ = rarelyCharacters; + setParameter(std::string("RarelyCharacters"), rarelyCharacters); } -void InitFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo) -{ - outerOrderNo_ = outerOrderNo; - setParameter("OuterOrderNo", outerOrderNo); +std::string InitFaceVerifyRequest::getVoluntaryCustomizedContent() const { + return voluntaryCustomizedContent_; } -std::string InitFaceVerifyRequest::getCertType()const -{ - return certType_; +void InitFaceVerifyRequest::setVoluntaryCustomizedContent(const std::string &voluntaryCustomizedContent) { + voluntaryCustomizedContent_ = voluntaryCustomizedContent; + setParameter(std::string("VoluntaryCustomizedContent"), voluntaryCustomizedContent); } -void InitFaceVerifyRequest::setCertType(const std::string& certType) -{ - certType_ = certType; - setParameter("CertType", certType); +std::string InitFaceVerifyRequest::getUserId() const { + return userId_; } -std::string InitFaceVerifyRequest::getFaceContrastPictureUrl()const -{ - return faceContrastPictureUrl_; +void InitFaceVerifyRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void InitFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl) -{ - faceContrastPictureUrl_ = faceContrastPictureUrl; - setParameter("FaceContrastPictureUrl", faceContrastPictureUrl); +std::string InitFaceVerifyRequest::getCertifyId() const { + return certifyId_; } -std::string InitFaceVerifyRequest::getModel()const -{ - return model_; +void InitFaceVerifyRequest::setCertifyId(const std::string &certifyId) { + certifyId_ = certifyId; + setParameter(std::string("CertifyId"), certifyId); } -void InitFaceVerifyRequest::setModel(const std::string& model) -{ - model_ = model; - setBodyParameter("Model", model); +std::string InitFaceVerifyRequest::getEncryptType() const { + return encryptType_; } -std::string InitFaceVerifyRequest::getMetaInfo()const -{ - return metaInfo_; +void InitFaceVerifyRequest::setEncryptType(const std::string &encryptType) { + encryptType_ = encryptType; + setParameter(std::string("EncryptType"), encryptType); } -void InitFaceVerifyRequest::setMetaInfo(const std::string& metaInfo) -{ - metaInfo_ = metaInfo; - setParameter("MetaInfo", metaInfo); +std::string InitFaceVerifyRequest::getMode() const { + return mode_; } -std::string InitFaceVerifyRequest::getOssObjectName()const -{ - return ossObjectName_; +void InitFaceVerifyRequest::setMode(const std::string &mode) { + mode_ = mode; + setParameter(std::string("Mode"), mode); } -void InitFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName) -{ - ossObjectName_ = ossObjectName; - setParameter("OssObjectName", ossObjectName); +std::string InitFaceVerifyRequest::getCertNo() const { + return certNo_; } -std::string InitFaceVerifyRequest::getCertName()const -{ - return certName_; +void InitFaceVerifyRequest::setCertNo(const std::string &certNo) { + certNo_ = certNo; + setParameter(std::string("CertNo"), certNo); } -void InitFaceVerifyRequest::setCertName(const std::string& certName) -{ - certName_ = certName; - setParameter("CertName", certName); +std::string InitFaceVerifyRequest::getOuterOrderNo() const { + return outerOrderNo_; } -std::string InitFaceVerifyRequest::getIp()const -{ - return ip_; +void InitFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) { + outerOrderNo_ = outerOrderNo; + setParameter(std::string("OuterOrderNo"), outerOrderNo); } -void InitFaceVerifyRequest::setIp(const std::string& ip) -{ - ip_ = ip; - setParameter("Ip", ip); +std::string InitFaceVerifyRequest::getCertType() const { + return certType_; } -std::string InitFaceVerifyRequest::getMobile()const -{ - return mobile_; +void InitFaceVerifyRequest::setCertType(const std::string &certType) { + certType_ = certType; + setParameter(std::string("CertType"), certType); } -void InitFaceVerifyRequest::setMobile(const std::string& mobile) -{ - mobile_ = mobile; - setParameter("Mobile", mobile); +std::string InitFaceVerifyRequest::getFaceContrastPictureUrl() const { + return faceContrastPictureUrl_; } -std::string InitFaceVerifyRequest::getAuthId()const -{ - return authId_; +void InitFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) { + faceContrastPictureUrl_ = faceContrastPictureUrl; + setParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl); } -void InitFaceVerifyRequest::setAuthId(const std::string& authId) -{ - authId_ = authId; - setBodyParameter("AuthId", authId); +std::string InitFaceVerifyRequest::getModel() const { + return model_; } -long InitFaceVerifyRequest::getSceneId()const -{ - return sceneId_; +void InitFaceVerifyRequest::setModel(const std::string &model) { + model_ = model; + setBodyParameter(std::string("Model"), model); } -void InitFaceVerifyRequest::setSceneId(long sceneId) -{ - sceneId_ = sceneId; - setParameter("SceneId", std::to_string(sceneId)); +std::string InitFaceVerifyRequest::getSuitableType() const { + return suitableType_; } -std::string InitFaceVerifyRequest::getOssBucketName()const -{ - return ossBucketName_; +void InitFaceVerifyRequest::setSuitableType(const std::string &suitableType) { + suitableType_ = suitableType; + setParameter(std::string("SuitableType"), suitableType); } -void InitFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName) -{ - ossBucketName_ = ossBucketName; - setParameter("OssBucketName", ossBucketName); +std::string InitFaceVerifyRequest::getCertifyUrlStyle() const { + return certifyUrlStyle_; } -std::string InitFaceVerifyRequest::getCallbackToken()const -{ - return callbackToken_; +void InitFaceVerifyRequest::setCertifyUrlStyle(const std::string &certifyUrlStyle) { + certifyUrlStyle_ = certifyUrlStyle; + setParameter(std::string("CertifyUrlStyle"), certifyUrlStyle); } -void InitFaceVerifyRequest::setCallbackToken(const std::string& callbackToken) -{ - callbackToken_ = callbackToken; - setParameter("CallbackToken", callbackToken); +std::string InitFaceVerifyRequest::getMetaInfo() const { + return metaInfo_; } -std::string InitFaceVerifyRequest::getReturnUrl()const -{ - return returnUrl_; +void InitFaceVerifyRequest::setMetaInfo(const std::string &metaInfo) { + metaInfo_ = metaInfo; + setParameter(std::string("MetaInfo"), metaInfo); } -void InitFaceVerifyRequest::setReturnUrl(const std::string& returnUrl) -{ - returnUrl_ = returnUrl; - setParameter("ReturnUrl", returnUrl); +std::string InitFaceVerifyRequest::getOssObjectName() const { + return ossObjectName_; } -std::string InitFaceVerifyRequest::getCallbackUrl()const -{ - return callbackUrl_; +void InitFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) { + ossObjectName_ = ossObjectName; + setParameter(std::string("OssObjectName"), ossObjectName); } -void InitFaceVerifyRequest::setCallbackUrl(const std::string& callbackUrl) -{ - callbackUrl_ = callbackUrl; - setParameter("CallbackUrl", callbackUrl); +std::string InitFaceVerifyRequest::getValidityDate() const { + return validityDate_; } -std::string InitFaceVerifyRequest::getCrop()const -{ - return crop_; +void InitFaceVerifyRequest::setValidityDate(const std::string &validityDate) { + validityDate_ = validityDate; + setParameter(std::string("ValidityDate"), validityDate); } -void InitFaceVerifyRequest::setCrop(const std::string& crop) -{ - crop_ = crop; - setBodyParameter("Crop", crop); +std::string InitFaceVerifyRequest::getCertName() const { + return certName_; } -std::string InitFaceVerifyRequest::getCertifyUrlType()const -{ - return certifyUrlType_; +void InitFaceVerifyRequest::setCertName(const std::string &certName) { + certName_ = certName; + setParameter(std::string("CertName"), certName); } -void InitFaceVerifyRequest::setCertifyUrlType(const std::string& certifyUrlType) -{ - certifyUrlType_ = certifyUrlType; - setParameter("CertifyUrlType", certifyUrlType); +std::string InitFaceVerifyRequest::getIp() const { + return ip_; +} + +void InitFaceVerifyRequest::setIp(const std::string &ip) { + ip_ = ip; + setParameter(std::string("Ip"), ip); +} + +std::string InitFaceVerifyRequest::getMobile() const { + return mobile_; +} + +void InitFaceVerifyRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setParameter(std::string("Mobile"), mobile); +} + +std::string InitFaceVerifyRequest::getFaceGuardOutput() const { + return faceGuardOutput_; +} + +void InitFaceVerifyRequest::setFaceGuardOutput(const std::string &faceGuardOutput) { + faceGuardOutput_ = faceGuardOutput; + setParameter(std::string("FaceGuardOutput"), faceGuardOutput); +} + +std::string InitFaceVerifyRequest::getAuthId() const { + return authId_; +} + +void InitFaceVerifyRequest::setAuthId(const std::string &authId) { + authId_ = authId; + setBodyParameter(std::string("AuthId"), authId); +} + +std::string InitFaceVerifyRequest::getProcedurePriority() const { + return procedurePriority_; +} + +void InitFaceVerifyRequest::setProcedurePriority(const std::string &procedurePriority) { + procedurePriority_ = procedurePriority; + setParameter(std::string("ProcedurePriority"), procedurePriority); +} + +long InitFaceVerifyRequest::getSceneId() const { + return sceneId_; +} + +void InitFaceVerifyRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setParameter(std::string("SceneId"), std::to_string(sceneId)); +} + +std::string InitFaceVerifyRequest::getOssBucketName() const { + return ossBucketName_; +} + +void InitFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) { + ossBucketName_ = ossBucketName; + setParameter(std::string("OssBucketName"), ossBucketName); +} + +std::string InitFaceVerifyRequest::getCallbackToken() const { + return callbackToken_; +} + +void InitFaceVerifyRequest::setCallbackToken(const std::string &callbackToken) { + callbackToken_ = callbackToken; + setParameter(std::string("CallbackToken"), callbackToken); +} + +std::string InitFaceVerifyRequest::getReturnUrl() const { + return returnUrl_; +} + +void InitFaceVerifyRequest::setReturnUrl(const std::string &returnUrl) { + returnUrl_ = returnUrl; + setParameter(std::string("ReturnUrl"), returnUrl); +} + +std::string InitFaceVerifyRequest::getCallbackUrl() const { + return callbackUrl_; +} + +void InitFaceVerifyRequest::setCallbackUrl(const std::string &callbackUrl) { + callbackUrl_ = callbackUrl; + setParameter(std::string("CallbackUrl"), callbackUrl); +} + +std::string InitFaceVerifyRequest::getCrop() const { + return crop_; +} + +void InitFaceVerifyRequest::setCrop(const std::string &crop) { + crop_ = crop; + setBodyParameter(std::string("Crop"), crop); +} + +std::string InitFaceVerifyRequest::getCertifyUrlType() const { + return certifyUrlType_; +} + +void InitFaceVerifyRequest::setCertifyUrlType(const std::string &certifyUrlType) { + certifyUrlType_ = certifyUrlType; + setParameter(std::string("CertifyUrlType"), certifyUrlType); } diff --git a/cloudauth/src/model/LivenessFaceVerifyRequest.cc b/cloudauth/src/model/LivenessFaceVerifyRequest.cc index dc792cb2a..3adaad6a9 100644 --- a/cloudauth/src/model/LivenessFaceVerifyRequest.cc +++ b/cloudauth/src/model/LivenessFaceVerifyRequest.cc @@ -1,183 +1,153 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::LivenessFaceVerifyRequest; - -LivenessFaceVerifyRequest::LivenessFaceVerifyRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "LivenessFaceVerify") -{ - setMethod(HttpRequest::Method::Post); -} - -LivenessFaceVerifyRequest::~LivenessFaceVerifyRequest() -{} - -std::string LivenessFaceVerifyRequest::getProductCode()const -{ - return productCode_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::LivenessFaceVerifyRequest; + +LivenessFaceVerifyRequest::LivenessFaceVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "LivenessFaceVerify") { + setMethod(HttpRequest::Method::Post); } -void LivenessFaceVerifyRequest::setProductCode(const std::string& productCode) -{ - productCode_ = productCode; - setBodyParameter("ProductCode", productCode); +LivenessFaceVerifyRequest::~LivenessFaceVerifyRequest() {} + +std::string LivenessFaceVerifyRequest::getProductCode() const { + return productCode_; } -std::string LivenessFaceVerifyRequest::getFaceContrastPicture()const -{ - return faceContrastPicture_; +void LivenessFaceVerifyRequest::setProductCode(const std::string &productCode) { + productCode_ = productCode; + setBodyParameter(std::string("ProductCode"), productCode); } -void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture) -{ - faceContrastPicture_ = faceContrastPicture; - setBodyParameter("FaceContrastPicture", faceContrastPicture); +std::string LivenessFaceVerifyRequest::getFaceContrastPicture() const { + return faceContrastPicture_; } -std::string LivenessFaceVerifyRequest::getDeviceToken()const -{ - return deviceToken_; +void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string &faceContrastPicture) { + faceContrastPicture_ = faceContrastPicture; + setBodyParameter(std::string("FaceContrastPicture"), faceContrastPicture); } -void LivenessFaceVerifyRequest::setDeviceToken(const std::string& deviceToken) -{ - deviceToken_ = deviceToken; - setBodyParameter("DeviceToken", deviceToken); +std::string LivenessFaceVerifyRequest::getDeviceToken() const { + return deviceToken_; } -std::string LivenessFaceVerifyRequest::getUserId()const -{ - return userId_; +void LivenessFaceVerifyRequest::setDeviceToken(const std::string &deviceToken) { + deviceToken_ = deviceToken; + setBodyParameter(std::string("DeviceToken"), deviceToken); } -void LivenessFaceVerifyRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setBodyParameter("UserId", userId); +std::string LivenessFaceVerifyRequest::getUserId() const { + return userId_; } -std::string LivenessFaceVerifyRequest::getCertifyId()const -{ - return certifyId_; +void LivenessFaceVerifyRequest::setUserId(const std::string &userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), userId); } -void LivenessFaceVerifyRequest::setCertifyId(const std::string& certifyId) -{ - certifyId_ = certifyId; - setBodyParameter("CertifyId", certifyId); +std::string LivenessFaceVerifyRequest::getCertifyId() const { + return certifyId_; } -std::string LivenessFaceVerifyRequest::getOuterOrderNo()const -{ - return outerOrderNo_; +void LivenessFaceVerifyRequest::setCertifyId(const std::string &certifyId) { + certifyId_ = certifyId; + setBodyParameter(std::string("CertifyId"), certifyId); } -void LivenessFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo) -{ - outerOrderNo_ = outerOrderNo; - setBodyParameter("OuterOrderNo", outerOrderNo); +std::string LivenessFaceVerifyRequest::getOuterOrderNo() const { + return outerOrderNo_; } -std::string LivenessFaceVerifyRequest::getFaceContrastPictureUrl()const -{ - return faceContrastPictureUrl_; +void LivenessFaceVerifyRequest::setOuterOrderNo(const std::string &outerOrderNo) { + outerOrderNo_ = outerOrderNo; + setBodyParameter(std::string("OuterOrderNo"), outerOrderNo); } -void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl) -{ - faceContrastPictureUrl_ = faceContrastPictureUrl; - setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl); +std::string LivenessFaceVerifyRequest::getFaceContrastPictureUrl() const { + return faceContrastPictureUrl_; } -std::string LivenessFaceVerifyRequest::getModel()const -{ - return model_; +void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string &faceContrastPictureUrl) { + faceContrastPictureUrl_ = faceContrastPictureUrl; + setBodyParameter(std::string("FaceContrastPictureUrl"), faceContrastPictureUrl); } -void LivenessFaceVerifyRequest::setModel(const std::string& model) -{ - model_ = model; - setParameter("Model", model); +std::string LivenessFaceVerifyRequest::getModel() const { + return model_; } -std::string LivenessFaceVerifyRequest::getOssObjectName()const -{ - return ossObjectName_; +void LivenessFaceVerifyRequest::setModel(const std::string &model) { + model_ = model; + setParameter(std::string("Model"), model); } -void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName) -{ - ossObjectName_ = ossObjectName; - setBodyParameter("OssObjectName", ossObjectName); +std::string LivenessFaceVerifyRequest::getOssObjectName() const { + return ossObjectName_; } -std::string LivenessFaceVerifyRequest::getIp()const -{ - return ip_; +void LivenessFaceVerifyRequest::setOssObjectName(const std::string &ossObjectName) { + ossObjectName_ = ossObjectName; + setBodyParameter(std::string("OssObjectName"), ossObjectName); } -void LivenessFaceVerifyRequest::setIp(const std::string& ip) -{ - ip_ = ip; - setBodyParameter("Ip", ip); +std::string LivenessFaceVerifyRequest::getIp() const { + return ip_; } -std::string LivenessFaceVerifyRequest::getMobile()const -{ - return mobile_; +void LivenessFaceVerifyRequest::setIp(const std::string &ip) { + ip_ = ip; + setBodyParameter(std::string("Ip"), ip); } -void LivenessFaceVerifyRequest::setMobile(const std::string& mobile) -{ - mobile_ = mobile; - setBodyParameter("Mobile", mobile); +std::string LivenessFaceVerifyRequest::getMobile() const { + return mobile_; } -long LivenessFaceVerifyRequest::getSceneId()const -{ - return sceneId_; +void LivenessFaceVerifyRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setBodyParameter(std::string("Mobile"), mobile); } -void LivenessFaceVerifyRequest::setSceneId(long sceneId) -{ - sceneId_ = sceneId; - setBodyParameter("SceneId", std::to_string(sceneId)); +long LivenessFaceVerifyRequest::getSceneId() const { + return sceneId_; } -std::string LivenessFaceVerifyRequest::getOssBucketName()const -{ - return ossBucketName_; +void LivenessFaceVerifyRequest::setSceneId(long sceneId) { + sceneId_ = sceneId; + setBodyParameter(std::string("SceneId"), std::to_string(sceneId)); } -void LivenessFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName) -{ - ossBucketName_ = ossBucketName; - setBodyParameter("OssBucketName", ossBucketName); +std::string LivenessFaceVerifyRequest::getOssBucketName() const { + return ossBucketName_; } -std::string LivenessFaceVerifyRequest::getCrop()const -{ - return crop_; +void LivenessFaceVerifyRequest::setOssBucketName(const std::string &ossBucketName) { + ossBucketName_ = ossBucketName; + setBodyParameter(std::string("OssBucketName"), ossBucketName); } -void LivenessFaceVerifyRequest::setCrop(const std::string& crop) -{ - crop_ = crop; - setBodyParameter("Crop", crop); +std::string LivenessFaceVerifyRequest::getCrop() const { + return crop_; +} + +void LivenessFaceVerifyRequest::setCrop(const std::string &crop) { + crop_ = crop; + setBodyParameter(std::string("Crop"), crop); } diff --git a/cloudauth/src/model/Mobile3MetaDetailVerifyRequest.cc b/cloudauth/src/model/Mobile3MetaDetailVerifyRequest.cc new file mode 100644 index 000000000..c1a3ae2e3 --- /dev/null +++ b/cloudauth/src/model/Mobile3MetaDetailVerifyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloudauth::Model::Mobile3MetaDetailVerifyRequest; + +Mobile3MetaDetailVerifyRequest::Mobile3MetaDetailVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "Mobile3MetaDetailVerify") { + setMethod(HttpRequest::Method::Post); +} + +Mobile3MetaDetailVerifyRequest::~Mobile3MetaDetailVerifyRequest() {} + +std::string Mobile3MetaDetailVerifyRequest::getParamType() const { + return paramType_; +} + +void Mobile3MetaDetailVerifyRequest::setParamType(const std::string ¶mType) { + paramType_ = paramType; + setParameter(std::string("ParamType"), paramType); +} + +std::string Mobile3MetaDetailVerifyRequest::getMobile() const { + return mobile_; +} + +void Mobile3MetaDetailVerifyRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setParameter(std::string("Mobile"), mobile); +} + +std::string Mobile3MetaDetailVerifyRequest::getIdentifyNum() const { + return identifyNum_; +} + +void Mobile3MetaDetailVerifyRequest::setIdentifyNum(const std::string &identifyNum) { + identifyNum_ = identifyNum; + setParameter(std::string("IdentifyNum"), identifyNum); +} + +std::string Mobile3MetaDetailVerifyRequest::getUserName() const { + return userName_; +} + +void Mobile3MetaDetailVerifyRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/cloudauth/src/model/Mobile3MetaDetailVerifyResult.cc b/cloudauth/src/model/Mobile3MetaDetailVerifyResult.cc new file mode 100644 index 000000000..bb572eab3 --- /dev/null +++ b/cloudauth/src/model/Mobile3MetaDetailVerifyResult.cc @@ -0,0 +1,70 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +Mobile3MetaDetailVerifyResult::Mobile3MetaDetailVerifyResult() : + ServiceResult() +{} + +Mobile3MetaDetailVerifyResult::Mobile3MetaDetailVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Mobile3MetaDetailVerifyResult::~Mobile3MetaDetailVerifyResult() +{} + +void Mobile3MetaDetailVerifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultObjectNode = value["ResultObject"]; + if(!resultObjectNode["BizCode"].isNull()) + resultObject_.bizCode = resultObjectNode["BizCode"].asString(); + if(!resultObjectNode["SubCode"].isNull()) + resultObject_.subCode = resultObjectNode["SubCode"].asString(); + if(!resultObjectNode["IspName"].isNull()) + resultObject_.ispName = resultObjectNode["IspName"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +Mobile3MetaDetailVerifyResult::ResultObject Mobile3MetaDetailVerifyResult::getResultObject()const +{ + return resultObject_; +} + +std::string Mobile3MetaDetailVerifyResult::getMessage()const +{ + return message_; +} + +std::string Mobile3MetaDetailVerifyResult::getCode()const +{ + return code_; +} + diff --git a/cloudauth/src/model/Mobile3MetaSimpleVerifyRequest.cc b/cloudauth/src/model/Mobile3MetaSimpleVerifyRequest.cc new file mode 100644 index 000000000..5517f82a9 --- /dev/null +++ b/cloudauth/src/model/Mobile3MetaSimpleVerifyRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cloudauth::Model::Mobile3MetaSimpleVerifyRequest; + +Mobile3MetaSimpleVerifyRequest::Mobile3MetaSimpleVerifyRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "Mobile3MetaSimpleVerify") { + setMethod(HttpRequest::Method::Post); +} + +Mobile3MetaSimpleVerifyRequest::~Mobile3MetaSimpleVerifyRequest() {} + +std::string Mobile3MetaSimpleVerifyRequest::getParamType() const { + return paramType_; +} + +void Mobile3MetaSimpleVerifyRequest::setParamType(const std::string ¶mType) { + paramType_ = paramType; + setParameter(std::string("ParamType"), paramType); +} + +std::string Mobile3MetaSimpleVerifyRequest::getMobile() const { + return mobile_; +} + +void Mobile3MetaSimpleVerifyRequest::setMobile(const std::string &mobile) { + mobile_ = mobile; + setParameter(std::string("Mobile"), mobile); +} + +std::string Mobile3MetaSimpleVerifyRequest::getIdentifyNum() const { + return identifyNum_; +} + +void Mobile3MetaSimpleVerifyRequest::setIdentifyNum(const std::string &identifyNum) { + identifyNum_ = identifyNum; + setParameter(std::string("IdentifyNum"), identifyNum); +} + +std::string Mobile3MetaSimpleVerifyRequest::getUserName() const { + return userName_; +} + +void Mobile3MetaSimpleVerifyRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/cloudauth/src/model/Mobile3MetaSimpleVerifyResult.cc b/cloudauth/src/model/Mobile3MetaSimpleVerifyResult.cc new file mode 100644 index 000000000..aaccce05d --- /dev/null +++ b/cloudauth/src/model/Mobile3MetaSimpleVerifyResult.cc @@ -0,0 +1,68 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cloudauth; +using namespace AlibabaCloud::Cloudauth::Model; + +Mobile3MetaSimpleVerifyResult::Mobile3MetaSimpleVerifyResult() : + ServiceResult() +{} + +Mobile3MetaSimpleVerifyResult::Mobile3MetaSimpleVerifyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +Mobile3MetaSimpleVerifyResult::~Mobile3MetaSimpleVerifyResult() +{} + +void Mobile3MetaSimpleVerifyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultObjectNode = value["ResultObject"]; + if(!resultObjectNode["BizCode"].isNull()) + resultObject_.bizCode = resultObjectNode["BizCode"].asString(); + if(!resultObjectNode["IspName"].isNull()) + resultObject_.ispName = resultObjectNode["IspName"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +Mobile3MetaSimpleVerifyResult::ResultObject Mobile3MetaSimpleVerifyResult::getResultObject()const +{ + return resultObject_; +} + +std::string Mobile3MetaSimpleVerifyResult::getMessage()const +{ + return message_; +} + +std::string Mobile3MetaSimpleVerifyResult::getCode()const +{ + return code_; +} + diff --git a/cloudauth/src/model/ModifyDeviceInfoRequest.cc b/cloudauth/src/model/ModifyDeviceInfoRequest.cc index e565c345d..44130027f 100644 --- a/cloudauth/src/model/ModifyDeviceInfoRequest.cc +++ b/cloudauth/src/model/ModifyDeviceInfoRequest.cc @@ -1,106 +1,90 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest; - -ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "ModifyDeviceInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest() -{} - -std::string ModifyDeviceInfoRequest::getUserDeviceId()const -{ - return userDeviceId_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest; + +ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "ModifyDeviceInfo") { + setMethod(HttpRequest::Method::Post); } -void ModifyDeviceInfoRequest::setUserDeviceId(const std::string& userDeviceId) -{ - userDeviceId_ = userDeviceId; - setParameter("UserDeviceId", userDeviceId); +ModifyDeviceInfoRequest::~ModifyDeviceInfoRequest() {} + +std::string ModifyDeviceInfoRequest::getUserDeviceId() const { + return userDeviceId_; } -std::string ModifyDeviceInfoRequest::getDuration()const -{ - return duration_; +void ModifyDeviceInfoRequest::setUserDeviceId(const std::string &userDeviceId) { + userDeviceId_ = userDeviceId; + setParameter(std::string("UserDeviceId"), userDeviceId); } -void ModifyDeviceInfoRequest::setDuration(const std::string& duration) -{ - duration_ = duration; - setParameter("Duration", duration); +std::string ModifyDeviceInfoRequest::getDuration() const { + return duration_; } -std::string ModifyDeviceInfoRequest::getExpiredDay()const -{ - return expiredDay_; +void ModifyDeviceInfoRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); } -void ModifyDeviceInfoRequest::setExpiredDay(const std::string& expiredDay) -{ - expiredDay_ = expiredDay; - setParameter("ExpiredDay", expiredDay); +std::string ModifyDeviceInfoRequest::getExpiredDay() const { + return expiredDay_; } -std::string ModifyDeviceInfoRequest::getSourceIp()const -{ - return sourceIp_; +void ModifyDeviceInfoRequest::setExpiredDay(const std::string &expiredDay) { + expiredDay_ = expiredDay; + setParameter(std::string("ExpiredDay"), expiredDay); } -void ModifyDeviceInfoRequest::setSourceIp(const std::string& sourceIp) -{ - sourceIp_ = sourceIp; - setParameter("SourceIp", sourceIp); +std::string ModifyDeviceInfoRequest::getSourceIp() const { + return sourceIp_; } -std::string ModifyDeviceInfoRequest::getLang()const -{ - return lang_; +void ModifyDeviceInfoRequest::setSourceIp(const std::string &sourceIp) { + sourceIp_ = sourceIp; + setParameter(std::string("SourceIp"), sourceIp); } -void ModifyDeviceInfoRequest::setLang(const std::string& lang) -{ - lang_ = lang; - setParameter("Lang", lang); +std::string ModifyDeviceInfoRequest::getLang() const { + return lang_; } -std::string ModifyDeviceInfoRequest::getDeviceId()const -{ - return deviceId_; +void ModifyDeviceInfoRequest::setLang(const std::string &lang) { + lang_ = lang; + setParameter(std::string("Lang"), lang); } -void ModifyDeviceInfoRequest::setDeviceId(const std::string& deviceId) -{ - deviceId_ = deviceId; - setParameter("DeviceId", deviceId); +std::string ModifyDeviceInfoRequest::getDeviceId() const { + return deviceId_; } -std::string ModifyDeviceInfoRequest::getBizType()const -{ - return bizType_; +void ModifyDeviceInfoRequest::setDeviceId(const std::string &deviceId) { + deviceId_ = deviceId; + setParameter(std::string("DeviceId"), deviceId); } -void ModifyDeviceInfoRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +std::string ModifyDeviceInfoRequest::getBizType() const { + return bizType_; +} + +void ModifyDeviceInfoRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } diff --git a/cloudauth/src/model/ModifyDeviceInfoResult.cc b/cloudauth/src/model/ModifyDeviceInfoResult.cc index 4c372d85e..412d4bed7 100644 --- a/cloudauth/src/model/ModifyDeviceInfoResult.cc +++ b/cloudauth/src/model/ModifyDeviceInfoResult.cc @@ -39,16 +39,16 @@ void ModifyDeviceInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["DeviceId"].isNull()) - deviceId_ = value["DeviceId"].asString(); if(!value["UserDeviceId"].isNull()) userDeviceId_ = value["UserDeviceId"].asString(); - if(!value["BizType"].isNull()) - bizType_ = value["BizType"].asString(); - if(!value["BeginDay"].isNull()) - beginDay_ = value["BeginDay"].asString(); + if(!value["DeviceId"].isNull()) + deviceId_ = value["DeviceId"].asString(); if(!value["ExpiredDay"].isNull()) expiredDay_ = value["ExpiredDay"].asString(); + if(!value["BeginDay"].isNull()) + beginDay_ = value["BeginDay"].asString(); + if(!value["BizType"].isNull()) + bizType_ = value["BizType"].asString(); } diff --git a/cloudauth/src/model/VerifyMaterialRequest.cc b/cloudauth/src/model/VerifyMaterialRequest.cc index 4b14996af..046537a2f 100644 --- a/cloudauth/src/model/VerifyMaterialRequest.cc +++ b/cloudauth/src/model/VerifyMaterialRequest.cc @@ -1,117 +1,99 @@ /* * 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 - -using AlibabaCloud::Cloudauth::Model::VerifyMaterialRequest; - -VerifyMaterialRequest::VerifyMaterialRequest() : - RpcServiceRequest("cloudauth", "2019-03-07", "VerifyMaterial") -{ - setMethod(HttpRequest::Method::Post); -} - -VerifyMaterialRequest::~VerifyMaterialRequest() -{} - -std::string VerifyMaterialRequest::getFaceImageUrl()const -{ - return faceImageUrl_; + */ + +#include + +using AlibabaCloud::Cloudauth::Model::VerifyMaterialRequest; + +VerifyMaterialRequest::VerifyMaterialRequest() + : RpcServiceRequest("cloudauth", "2019-03-07", "VerifyMaterial") { + setMethod(HttpRequest::Method::Post); } -void VerifyMaterialRequest::setFaceImageUrl(const std::string& faceImageUrl) -{ - faceImageUrl_ = faceImageUrl; - setParameter("FaceImageUrl", faceImageUrl); +VerifyMaterialRequest::~VerifyMaterialRequest() {} + +std::string VerifyMaterialRequest::getFaceImageUrl() const { + return faceImageUrl_; } -std::string VerifyMaterialRequest::getUserId()const -{ - return userId_; +void VerifyMaterialRequest::setFaceImageUrl(const std::string &faceImageUrl) { + faceImageUrl_ = faceImageUrl; + setParameter(std::string("FaceImageUrl"), faceImageUrl); } -void VerifyMaterialRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setParameter("UserId", userId); +std::string VerifyMaterialRequest::getUserId() const { + return userId_; } -std::string VerifyMaterialRequest::getIdCardBackImageUrl()const -{ - return idCardBackImageUrl_; +void VerifyMaterialRequest::setUserId(const std::string &userId) { + userId_ = userId; + setParameter(std::string("UserId"), userId); } -void VerifyMaterialRequest::setIdCardBackImageUrl(const std::string& idCardBackImageUrl) -{ - idCardBackImageUrl_ = idCardBackImageUrl; - setParameter("IdCardBackImageUrl", idCardBackImageUrl); +std::string VerifyMaterialRequest::getIdCardBackImageUrl() const { + return idCardBackImageUrl_; } -std::string VerifyMaterialRequest::getIdCardNumber()const -{ - return idCardNumber_; +void VerifyMaterialRequest::setIdCardBackImageUrl(const std::string &idCardBackImageUrl) { + idCardBackImageUrl_ = idCardBackImageUrl; + setParameter(std::string("IdCardBackImageUrl"), idCardBackImageUrl); } -void VerifyMaterialRequest::setIdCardNumber(const std::string& idCardNumber) -{ - idCardNumber_ = idCardNumber; - setParameter("IdCardNumber", idCardNumber); +std::string VerifyMaterialRequest::getIdCardNumber() const { + return idCardNumber_; } -std::string VerifyMaterialRequest::getIdCardFrontImageUrl()const -{ - return idCardFrontImageUrl_; +void VerifyMaterialRequest::setIdCardNumber(const std::string &idCardNumber) { + idCardNumber_ = idCardNumber; + setParameter(std::string("IdCardNumber"), idCardNumber); } -void VerifyMaterialRequest::setIdCardFrontImageUrl(const std::string& idCardFrontImageUrl) -{ - idCardFrontImageUrl_ = idCardFrontImageUrl; - setParameter("IdCardFrontImageUrl", idCardFrontImageUrl); +std::string VerifyMaterialRequest::getIdCardFrontImageUrl() const { + return idCardFrontImageUrl_; } -std::string VerifyMaterialRequest::getBizType()const -{ - return bizType_; +void VerifyMaterialRequest::setIdCardFrontImageUrl(const std::string &idCardFrontImageUrl) { + idCardFrontImageUrl_ = idCardFrontImageUrl; + setParameter(std::string("IdCardFrontImageUrl"), idCardFrontImageUrl); } -void VerifyMaterialRequest::setBizType(const std::string& bizType) -{ - bizType_ = bizType; - setParameter("BizType", bizType); +std::string VerifyMaterialRequest::getBizType() const { + return bizType_; } -std::string VerifyMaterialRequest::getBizId()const -{ - return bizId_; +void VerifyMaterialRequest::setBizType(const std::string &bizType) { + bizType_ = bizType; + setParameter(std::string("BizType"), bizType); } -void VerifyMaterialRequest::setBizId(const std::string& bizId) -{ - bizId_ = bizId; - setParameter("BizId", bizId); +std::string VerifyMaterialRequest::getBizId() const { + return bizId_; } -std::string VerifyMaterialRequest::getName()const -{ - return name_; +void VerifyMaterialRequest::setBizId(const std::string &bizId) { + bizId_ = bizId; + setParameter(std::string("BizId"), bizId); } -void VerifyMaterialRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string VerifyMaterialRequest::getName() const { + return name_; +} + +void VerifyMaterialRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/cloudauth/src/model/VerifyMaterialResult.cc b/cloudauth/src/model/VerifyMaterialResult.cc index ee80923ef..808c4c88a 100644 --- a/cloudauth/src/model/VerifyMaterialResult.cc +++ b/cloudauth/src/model/VerifyMaterialResult.cc @@ -40,47 +40,47 @@ void VerifyMaterialResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto materialNode = value["Material"]; - if(!materialNode["FaceImageUrl"].isNull()) - material_.faceImageUrl = materialNode["FaceImageUrl"].asString(); - if(!materialNode["IdCardName"].isNull()) - material_.idCardName = materialNode["IdCardName"].asString(); if(!materialNode["IdCardNumber"].isNull()) material_.idCardNumber = materialNode["IdCardNumber"].asString(); - if(!materialNode["FaceQuality"].isNull()) - material_.faceQuality = materialNode["FaceQuality"].asString(); if(!materialNode["FaceGlobalUrl"].isNull()) material_.faceGlobalUrl = materialNode["FaceGlobalUrl"].asString(); + if(!materialNode["FaceImageUrl"].isNull()) + material_.faceImageUrl = materialNode["FaceImageUrl"].asString(); if(!materialNode["FaceMask"].isNull()) material_.faceMask = materialNode["FaceMask"].asString(); + if(!materialNode["IdCardName"].isNull()) + material_.idCardName = materialNode["IdCardName"].asString(); + if(!materialNode["FaceQuality"].isNull()) + material_.faceQuality = materialNode["FaceQuality"].asString(); auto idCardInfoNode = materialNode["IdCardInfo"]; - if(!idCardInfoNode["Number"].isNull()) - material_.idCardInfo.number = idCardInfoNode["Number"].asString(); - if(!idCardInfoNode["Address"].isNull()) - material_.idCardInfo.address = idCardInfoNode["Address"].asString(); - if(!idCardInfoNode["Nationality"].isNull()) - material_.idCardInfo.nationality = idCardInfoNode["Nationality"].asString(); - if(!idCardInfoNode["EndDate"].isNull()) - material_.idCardInfo.endDate = idCardInfoNode["EndDate"].asString(); - if(!idCardInfoNode["FrontImageUrl"].isNull()) - material_.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString(); - if(!idCardInfoNode["Authority"].isNull()) - material_.idCardInfo.authority = idCardInfoNode["Authority"].asString(); if(!idCardInfoNode["Sex"].isNull()) material_.idCardInfo.sex = idCardInfoNode["Sex"].asString(); - if(!idCardInfoNode["Name"].isNull()) - material_.idCardInfo.name = idCardInfoNode["Name"].asString(); - if(!idCardInfoNode["Birth"].isNull()) - material_.idCardInfo.birth = idCardInfoNode["Birth"].asString(); - if(!idCardInfoNode["BackImageUrl"].isNull()) - material_.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString(); + if(!idCardInfoNode["EndDate"].isNull()) + material_.idCardInfo.endDate = idCardInfoNode["EndDate"].asString(); + if(!idCardInfoNode["Authority"].isNull()) + material_.idCardInfo.authority = idCardInfoNode["Authority"].asString(); + if(!idCardInfoNode["Address"].isNull()) + material_.idCardInfo.address = idCardInfoNode["Address"].asString(); + if(!idCardInfoNode["Number"].isNull()) + material_.idCardInfo.number = idCardInfoNode["Number"].asString(); if(!idCardInfoNode["StartDate"].isNull()) material_.idCardInfo.startDate = idCardInfoNode["StartDate"].asString(); - if(!value["VerifyToken"].isNull()) - verifyToken_ = value["VerifyToken"].asString(); - if(!value["VerifyStatus"].isNull()) - verifyStatus_ = std::stoi(value["VerifyStatus"].asString()); + if(!idCardInfoNode["BackImageUrl"].isNull()) + material_.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString(); + if(!idCardInfoNode["Nationality"].isNull()) + material_.idCardInfo.nationality = idCardInfoNode["Nationality"].asString(); + if(!idCardInfoNode["Birth"].isNull()) + material_.idCardInfo.birth = idCardInfoNode["Birth"].asString(); + if(!idCardInfoNode["Name"].isNull()) + material_.idCardInfo.name = idCardInfoNode["Name"].asString(); + if(!idCardInfoNode["FrontImageUrl"].isNull()) + material_.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString(); if(!value["AuthorityComparisionScore"].isNull()) authorityComparisionScore_ = std::stof(value["AuthorityComparisionScore"].asString()); + if(!value["VerifyStatus"].isNull()) + verifyStatus_ = std::stoi(value["VerifyStatus"].asString()); + if(!value["VerifyToken"].isNull()) + verifyToken_ = value["VerifyToken"].asString(); if(!value["IdCardFaceComparisonScore"].isNull()) idCardFaceComparisonScore_ = std::stof(value["IdCardFaceComparisonScore"].asString());