Compare commits

..

8 Commits

Author SHA1 Message Date
sdk-team
a1e11dbb5b Release RecognizeVideoCastCrewList. 2022-03-03 13:10:16 +00:00
sdk-team
5fb8057a45 Add UpdateAnycastEipAddressAssociations Interface. 2022-02-24 03:54:57 +00:00
sdk-team
fa0fe1ae07 SDK. 2022-02-23 11:41:43 +00:00
sdk-team
89a2517800 Add AuthId. 2022-02-23 09:42:15 +00:00
sdk-team
d5af7a4c61 Support remediation. 2022-02-23 07:26:43 +00:00
sdk-team
ca3cd3584e Deprecated the OnsTopicUpdate api, and will be offline soon. 2022-02-22 12:28:06 +00:00
sdk-team
5dbd88a76d Support RefreshProxyLevel. 2022-02-22 07:29:13 +00:00
sdk-team
213faf8f4f Add event tasks. 2022-02-21 13:11:10 +00:00
211 changed files with 5746 additions and 7610 deletions

View File

@@ -1,3 +1,28 @@
2022-03-03 Version: 1.36.1069
- Release RecognizeVideoCastCrewList.
2022-02-24 Version: 1.36.1068
- Add UpdateAnycastEipAddressAssociations Interface.
2022-02-23 Version: 1.36.1067
- SDK.
2022-02-23 Version: 1.36.1066
- Add AuthId.
2022-02-23 Version: 1.36.1065
- Support remediation.
2022-02-22 Version: 1.36.1064
- Deprecated the OnsTopicUpdate api, and will be offline soon.
2022-02-22 Version: 1.36.1063
- Support RefreshProxyLevel.
2022-02-21 Version: 1.36.1062
- Add event tasks.
- DescribeInstance taskProgress.
2022-02-21 Version: 1.36.1061
- Bugfix QueryMoniter.

View File

@@ -1 +1 @@
1.36.1061
1.36.1069

View File

@@ -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.
#
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
set(cloudauth-console_public_header
include/alibabacloud/cloudauth-console/Cloudauth_consoleClient.h
include/alibabacloud/cloudauth-console/Cloudauth_consoleExport.h )
set(cloudauth-console_public_header_model
include/alibabacloud/cloudauth-console/model/RetrieveFaceRequest.h
include/alibabacloud/cloudauth-console/model/RetrieveFaceResult.h
include/alibabacloud/cloudauth-console/model/UploadIdentifyRecordRequest.h
include/alibabacloud/cloudauth-console/model/UploadIdentifyRecordResult.h )
set(cloudauth-console_src
src/Cloudauth-consoleClient.cc
src/model/RetrieveFaceRequest.cc
src/model/RetrieveFaceResult.cc
src/model/UploadIdentifyRecordRequest.cc
src/model/UploadIdentifyRecordResult.cc )
add_library(cloudauth-console ${LIB_TYPE}
${cloudauth-console_public_header}
${cloudauth-console_public_header_model}
${cloudauth-console_src})
set_target_properties(cloudauth-console
PROPERTIES
LINKER_LANGUAGE CXX
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cloudauth-console
)
if(${LIB_TYPE} STREQUAL "SHARED")
set_target_properties(cloudauth-console
PROPERTIES
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_CONSOLE_LIBRARY)
endif()
target_include_directories(cloudauth-console
PRIVATE include
${CMAKE_SOURCE_DIR}/core/include
)
target_link_libraries(cloudauth-console
core)
if(CMAKE_HOST_WIN32)
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
set(jsoncpp_install_dir ${INSTALL_DIR})
add_dependencies(cloudauth-console
jsoncpp)
target_include_directories(cloudauth-console
PRIVATE ${jsoncpp_install_dir}/include)
target_link_libraries(cloudauth-console
${jsoncpp_install_dir}/lib/jsoncpp.lib)
set_target_properties(cloudauth-console
PROPERTIES
COMPILE_OPTIONS "/bigobj")
else()
target_include_directories(cloudauth-console
PRIVATE /usr/include/jsoncpp)
target_link_libraries(cloudauth-console
jsoncpp)
endif()
install(FILES ${cloudauth-console_public_header}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth-console)
install(FILES ${cloudauth-console_public_header_model}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth-console/model)
install(TARGETS cloudauth-console
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLECLIENT_H_
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLECLIENT_H_
#include <future>
#include <alibabacloud/core/AsyncCallerContext.h>
#include <alibabacloud/core/EndpointProvider.h>
#include <alibabacloud/core/RpcServiceClient.h>
#include "Cloudauth_consoleExport.h"
#include "model/RetrieveFaceRequest.h"
#include "model/RetrieveFaceResult.h"
#include "model/UploadIdentifyRecordRequest.h"
#include "model/UploadIdentifyRecordResult.h"
namespace AlibabaCloud
{
namespace Cloudauth_console
{
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT Cloudauth_consoleClient : public RpcServiceClient
{
public:
typedef Outcome<Error, Model::RetrieveFaceResult> RetrieveFaceOutcome;
typedef std::future<RetrieveFaceOutcome> RetrieveFaceOutcomeCallable;
typedef std::function<void(const Cloudauth_consoleClient*, const Model::RetrieveFaceRequest&, const RetrieveFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RetrieveFaceAsyncHandler;
typedef Outcome<Error, Model::UploadIdentifyRecordResult> UploadIdentifyRecordOutcome;
typedef std::future<UploadIdentifyRecordOutcome> UploadIdentifyRecordOutcomeCallable;
typedef std::function<void(const Cloudauth_consoleClient*, const Model::UploadIdentifyRecordRequest&, const UploadIdentifyRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UploadIdentifyRecordAsyncHandler;
Cloudauth_consoleClient(const Credentials &credentials, const ClientConfiguration &configuration);
Cloudauth_consoleClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
Cloudauth_consoleClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
~Cloudauth_consoleClient();
RetrieveFaceOutcome retrieveFace(const Model::RetrieveFaceRequest &request)const;
void retrieveFaceAsync(const Model::RetrieveFaceRequest& request, const RetrieveFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
RetrieveFaceOutcomeCallable retrieveFaceCallable(const Model::RetrieveFaceRequest& request) const;
UploadIdentifyRecordOutcome uploadIdentifyRecord(const Model::UploadIdentifyRecordRequest &request)const;
void uploadIdentifyRecordAsync(const Model::UploadIdentifyRecordRequest& request, const UploadIdentifyRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UploadIdentifyRecordOutcomeCallable uploadIdentifyRecordCallable(const Model::UploadIdentifyRecordRequest& request) const;
private:
std::shared_ptr<EndpointProvider> endpointProvider_;
};
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLECLIENT_H_

View File

@@ -14,27 +14,19 @@
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUserStatusRequest.h>
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLEEXPORT_H_
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLEEXPORT_H_
using AlibabaCloud::Cloudauth::Model::DescribeUserStatusRequest;
#include <alibabacloud/core/Global.h>
DescribeUserStatusRequest::DescribeUserStatusRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUserStatus")
{
setMethod(HttpRequest::Method::Post);
}
#if defined(ALIBABACLOUD_SHARED)
# if defined(ALIBABACLOUD_CLOUDAUTH_CONSOLE_LIBRARY)
# define ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT ALIBABACLOUD_DECL_EXPORT
# else
# define ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT ALIBABACLOUD_DECL_IMPORT
# endif
#else
# define ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT
#endif
DescribeUserStatusRequest::~DescribeUserStatusRequest()
{}
std::string DescribeUserStatusRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUserStatusRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_CLOUDAUTH_CONSOLEEXPORT_H_

View File

@@ -14,41 +14,41 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBERPSDKREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBERPSDKREQUEST_H_
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
namespace Cloudauth_console
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeRPSDKRequest : public RpcServiceRequest
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT RetrieveFaceRequest : public RpcServiceRequest
{
public:
DescribeRPSDKRequest();
~DescribeRPSDKRequest();
RetrieveFaceRequest();
~RetrieveFaceRequest();
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);
std::string getFace64String()const;
void setFace64String(const std::string& face64String);
std::string getFaceUrl()const;
void setFaceUrl(const std::string& faceUrl);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
private:
std::string sourceIp_;
std::string lang_;
std::string taskId_;
std::string face64String_;
std::string faceUrl_;
std::string projectId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBERPSDKREQUEST_H_
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACEREQUEST_H_

View File

@@ -14,44 +14,46 @@
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
namespace Cloudauth_console
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigResult : public ServiceResult
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT RetrieveFaceResult : public ServiceResult
{
public:
struct ItemsItem
struct DataItem
{
long gmtUpdated;
std::string bizType;
std::string bizName;
std::string userName;
long userId;
std::string rate;
};
DescribeFaceConfigResult();
explicit DescribeFaceConfigResult(const std::string &payload);
~DescribeFaceConfigResult();
std::vector<ItemsItem> getItems()const;
RetrieveFaceResult();
explicit RetrieveFaceResult(const std::string &payload);
~RetrieveFaceResult();
std::vector<DataItem> getData()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
std::vector<ItemsItem> items_;
std::vector<DataItem> data_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGRESULT_H_
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_RETRIEVEFACERESULT_H_

View File

@@ -0,0 +1,78 @@
/*
* 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_CONSOLE_MODEL_UPLOADIDENTIFYRECORDREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
namespace AlibabaCloud
{
namespace Cloudauth_console
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT UploadIdentifyRecordRequest : public RpcServiceRequest
{
public:
UploadIdentifyRecordRequest();
~UploadIdentifyRecordRequest();
std::string getExt()const;
void setExt(const std::string& ext);
std::string getIdentifyingImageUrl()const;
void setIdentifyingImageUrl(const std::string& identifyingImageUrl);
std::string getIdentifyingImageBase64()const;
void setIdentifyingImageBase64(const std::string& identifyingImageBase64);
std::string getDeviceSecret()const;
void setDeviceSecret(const std::string& deviceSecret);
std::string getProductKey()const;
void setProductKey(const std::string& productKey);
std::string getUserId()const;
void setUserId(const std::string& userId);
std::string getIotId()const;
void setIotId(const std::string& iotId);
std::string getDeviceName()const;
void setDeviceName(const std::string& deviceName);
long getIdentifyingTime()const;
void setIdentifyingTime(long identifyingTime);
std::string getProjectId()const;
void setProjectId(const std::string& projectId);
std::string getUserName()const;
void setUserName(const std::string& userName);
private:
std::string ext_;
std::string identifyingImageUrl_;
std::string identifyingImageBase64_;
std::string deviceSecret_;
std::string productKey_;
std::string userId_;
std::string iotId_;
std::string deviceName_;
long identifyingTime_;
std::string projectId_;
std::string userName_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDREQUEST_H_

View File

@@ -0,0 +1,53 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth-console/Cloudauth_consoleExport.h>
namespace AlibabaCloud
{
namespace Cloudauth_console
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_CONSOLE_EXPORT UploadIdentifyRecordResult : public ServiceResult
{
public:
UploadIdentifyRecordResult();
explicit UploadIdentifyRecordResult(const std::string &payload);
~UploadIdentifyRecordResult();
int getHttpStatusCode()const;
bool getSuccess()const;
protected:
void parse(const std::string &payload);
private:
int httpStatusCode_;
bool success_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_CONSOLE_MODEL_UPLOADIDENTIFYRECORDRESULT_H_

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth-console/model/RetrieveFaceRequest.h>
using AlibabaCloud::Cloudauth_console::Model::RetrieveFaceRequest;
RetrieveFaceRequest::RetrieveFaceRequest() :
RpcServiceRequest("cloudauth-console", "2019-04-03", "RetrieveFace")
{
setMethod(HttpRequest::Method::Post);
}
RetrieveFaceRequest::~RetrieveFaceRequest()
{}
std::string RetrieveFaceRequest::getFace64String()const
{
return face64String_;
}
void RetrieveFaceRequest::setFace64String(const std::string& face64String)
{
face64String_ = face64String;
setBodyParameter("Face64String", face64String);
}
std::string RetrieveFaceRequest::getFaceUrl()const
{
return faceUrl_;
}
void RetrieveFaceRequest::setFaceUrl(const std::string& faceUrl)
{
faceUrl_ = faceUrl;
setParameter("FaceUrl", faceUrl);
}
std::string RetrieveFaceRequest::getProjectId()const
{
return projectId_;
}
void RetrieveFaceRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -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 <alibabacloud/cloudauth-console/model/RetrieveFaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth_console;
using namespace AlibabaCloud::Cloudauth_console::Model;
RetrieveFaceResult::RetrieveFaceResult() :
ServiceResult()
{}
RetrieveFaceResult::RetrieveFaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RetrieveFaceResult::~RetrieveFaceResult()
{}
void RetrieveFaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDataNode = value["Data"]["DataItem"];
for (auto valueDataDataItem : allDataNode)
{
DataItem dataObject;
if(!valueDataDataItem["UserId"].isNull())
dataObject.userId = std::stol(valueDataDataItem["UserId"].asString());
if(!valueDataDataItem["UserName"].isNull())
dataObject.userName = valueDataDataItem["UserName"].asString();
if(!valueDataDataItem["Rate"].isNull())
dataObject.rate = valueDataDataItem["Rate"].asString();
data_.push_back(dataObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<RetrieveFaceResult::DataItem> RetrieveFaceResult::getData()const
{
return data_;
}
bool RetrieveFaceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,150 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth-console/model/UploadIdentifyRecordRequest.h>
using AlibabaCloud::Cloudauth_console::Model::UploadIdentifyRecordRequest;
UploadIdentifyRecordRequest::UploadIdentifyRecordRequest() :
RpcServiceRequest("cloudauth-console", "2019-04-03", "UploadIdentifyRecord")
{
setMethod(HttpRequest::Method::Post);
}
UploadIdentifyRecordRequest::~UploadIdentifyRecordRequest()
{}
std::string UploadIdentifyRecordRequest::getExt()const
{
return ext_;
}
void UploadIdentifyRecordRequest::setExt(const std::string& ext)
{
ext_ = ext;
setParameter("Ext", ext);
}
std::string UploadIdentifyRecordRequest::getIdentifyingImageUrl()const
{
return identifyingImageUrl_;
}
void UploadIdentifyRecordRequest::setIdentifyingImageUrl(const std::string& identifyingImageUrl)
{
identifyingImageUrl_ = identifyingImageUrl;
setParameter("IdentifyingImageUrl", identifyingImageUrl);
}
std::string UploadIdentifyRecordRequest::getIdentifyingImageBase64()const
{
return identifyingImageBase64_;
}
void UploadIdentifyRecordRequest::setIdentifyingImageBase64(const std::string& identifyingImageBase64)
{
identifyingImageBase64_ = identifyingImageBase64;
setBodyParameter("IdentifyingImageBase64", identifyingImageBase64);
}
std::string UploadIdentifyRecordRequest::getDeviceSecret()const
{
return deviceSecret_;
}
void UploadIdentifyRecordRequest::setDeviceSecret(const std::string& deviceSecret)
{
deviceSecret_ = deviceSecret;
setParameter("DeviceSecret", deviceSecret);
}
std::string UploadIdentifyRecordRequest::getProductKey()const
{
return productKey_;
}
void UploadIdentifyRecordRequest::setProductKey(const std::string& productKey)
{
productKey_ = productKey;
setParameter("ProductKey", productKey);
}
std::string UploadIdentifyRecordRequest::getUserId()const
{
return userId_;
}
void UploadIdentifyRecordRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setParameter("UserId", userId);
}
std::string UploadIdentifyRecordRequest::getIotId()const
{
return iotId_;
}
void UploadIdentifyRecordRequest::setIotId(const std::string& iotId)
{
iotId_ = iotId;
setParameter("IotId", iotId);
}
std::string UploadIdentifyRecordRequest::getDeviceName()const
{
return deviceName_;
}
void UploadIdentifyRecordRequest::setDeviceName(const std::string& deviceName)
{
deviceName_ = deviceName;
setParameter("DeviceName", deviceName);
}
long UploadIdentifyRecordRequest::getIdentifyingTime()const
{
return identifyingTime_;
}
void UploadIdentifyRecordRequest::setIdentifyingTime(long identifyingTime)
{
identifyingTime_ = identifyingTime;
setParameter("IdentifyingTime", std::to_string(identifyingTime));
}
std::string UploadIdentifyRecordRequest::getProjectId()const
{
return projectId_;
}
void UploadIdentifyRecordRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string UploadIdentifyRecordRequest::getUserName()const
{
return userName_;
}
void UploadIdentifyRecordRequest::setUserName(const std::string& userName)
{
userName_ = userName;
setParameter("UserName", userName);
}

View File

@@ -14,38 +14,45 @@
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUserStatusResult.h>
#include <alibabacloud/cloudauth-console/model/UploadIdentifyRecordResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
using namespace AlibabaCloud::Cloudauth_console;
using namespace AlibabaCloud::Cloudauth_console::Model;
DescribeUserStatusResult::DescribeUserStatusResult() :
UploadIdentifyRecordResult::UploadIdentifyRecordResult() :
ServiceResult()
{}
DescribeUserStatusResult::DescribeUserStatusResult(const std::string &payload) :
UploadIdentifyRecordResult::UploadIdentifyRecordResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUserStatusResult::~DescribeUserStatusResult()
UploadIdentifyRecordResult::~UploadIdentifyRecordResult()
{}
void DescribeUserStatusResult::parse(const std::string &payload)
void UploadIdentifyRecordResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Enabled"].isNull())
enabled_ = value["Enabled"].asString() == "true";
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["HttpStatusCode"].isNull())
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
}
bool DescribeUserStatusResult::getEnabled()const
int UploadIdentifyRecordResult::getHttpStatusCode()const
{
return enabled_;
return httpStatusCode_;
}
bool UploadIdentifyRecordResult::getSuccess()const
{
return success_;
}

View File

@@ -29,78 +29,28 @@ set(cloudauth_public_header_model
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
include/alibabacloud/cloudauth/model/CreateFaceConfigRequest.h
include/alibabacloud/cloudauth/model/CreateFaceConfigResult.h
include/alibabacloud/cloudauth/model/CreateRPSDKRequest.h
include/alibabacloud/cloudauth/model/CreateRPSDKResult.h
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
include/alibabacloud/cloudauth/model/CreateVerifySettingRequest.h
include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h
include/alibabacloud/cloudauth/model/CreateWhitelistRequest.h
include/alibabacloud/cloudauth/model/CreateWhitelistResult.h
include/alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h
include/alibabacloud/cloudauth/model/CreateWhitelistSettingResult.h
include/alibabacloud/cloudauth/model/DeleteWhitelistRequest.h
include/alibabacloud/cloudauth/model/DeleteWhitelistResult.h
include/alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h
include/alibabacloud/cloudauth/model/DeleteWhitelistSettingResult.h
include/alibabacloud/cloudauth/model/DescribeAppInfoRequest.h
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
include/alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h
include/alibabacloud/cloudauth/model/DescribeFaceConfigResult.h
include/alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h
include/alibabacloud/cloudauth/model/DescribeFaceUsageResult.h
include/alibabacloud/cloudauth/model/DescribeFaceVerifyRequest.h
include/alibabacloud/cloudauth/model/DescribeFaceVerifyResult.h
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenRequest.h
include/alibabacloud/cloudauth/model/DescribeOssUploadTokenResult.h
include/alibabacloud/cloudauth/model/DescribeRPSDKRequest.h
include/alibabacloud/cloudauth/model/DescribeRPSDKResult.h
include/alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h
include/alibabacloud/cloudauth/model/DescribeSdkUrlResult.h
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h
include/alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h
include/alibabacloud/cloudauth/model/DescribeUploadInfoResult.h
include/alibabacloud/cloudauth/model/DescribeUserStatusRequest.h
include/alibabacloud/cloudauth/model/DescribeUserStatusResult.h
include/alibabacloud/cloudauth/model/DescribeVerifyRecordsRequest.h
include/alibabacloud/cloudauth/model/DescribeVerifyRecordsResult.h
include/alibabacloud/cloudauth/model/DescribeVerifyResultRequest.h
include/alibabacloud/cloudauth/model/DescribeVerifyResultResult.h
include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h
include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h
include/alibabacloud/cloudauth/model/DescribeVerifySettingRequest.h
include/alibabacloud/cloudauth/model/DescribeVerifySettingResult.h
include/alibabacloud/cloudauth/model/DescribeVerifyTokenRequest.h
include/alibabacloud/cloudauth/model/DescribeVerifyTokenResult.h
include/alibabacloud/cloudauth/model/DescribeVerifyUsageRequest.h
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
include/alibabacloud/cloudauth/model/DescribeWhitelistRequest.h
include/alibabacloud/cloudauth/model/DescribeWhitelistResult.h
include/alibabacloud/cloudauth/model/DescribeWhitelistSettingRequest.h
include/alibabacloud/cloudauth/model/DescribeWhitelistSettingResult.h
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
include/alibabacloud/cloudauth/model/InitDeviceRequest.h
include/alibabacloud/cloudauth/model/InitDeviceResult.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/ModifyDeviceInfoRequest.h
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
include/alibabacloud/cloudauth/model/UpdateFaceConfigRequest.h
include/alibabacloud/cloudauth/model/UpdateFaceConfigResult.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
include/alibabacloud/cloudauth/model/VerifyDeviceResult.h
include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h
include/alibabacloud/cloudauth/model/VerifyMaterialResult.h )
@@ -114,78 +64,28 @@ set(cloudauth_src
src/model/ContrastFaceVerifyResult.cc
src/model/CreateAuthKeyRequest.cc
src/model/CreateAuthKeyResult.cc
src/model/CreateFaceConfigRequest.cc
src/model/CreateFaceConfigResult.cc
src/model/CreateRPSDKRequest.cc
src/model/CreateRPSDKResult.cc
src/model/CreateVerifySDKRequest.cc
src/model/CreateVerifySDKResult.cc
src/model/CreateVerifySettingRequest.cc
src/model/CreateVerifySettingResult.cc
src/model/CreateWhitelistRequest.cc
src/model/CreateWhitelistResult.cc
src/model/CreateWhitelistSettingRequest.cc
src/model/CreateWhitelistSettingResult.cc
src/model/DeleteWhitelistRequest.cc
src/model/DeleteWhitelistResult.cc
src/model/DeleteWhitelistSettingRequest.cc
src/model/DeleteWhitelistSettingResult.cc
src/model/DescribeAppInfoRequest.cc
src/model/DescribeAppInfoResult.cc
src/model/DescribeDeviceInfoRequest.cc
src/model/DescribeDeviceInfoResult.cc
src/model/DescribeFaceConfigRequest.cc
src/model/DescribeFaceConfigResult.cc
src/model/DescribeFaceUsageRequest.cc
src/model/DescribeFaceUsageResult.cc
src/model/DescribeFaceVerifyRequest.cc
src/model/DescribeFaceVerifyResult.cc
src/model/DescribeOssUploadTokenRequest.cc
src/model/DescribeOssUploadTokenResult.cc
src/model/DescribeRPSDKRequest.cc
src/model/DescribeRPSDKResult.cc
src/model/DescribeSdkUrlRequest.cc
src/model/DescribeSdkUrlResult.cc
src/model/DescribeUpdatePackageResultRequest.cc
src/model/DescribeUpdatePackageResultResult.cc
src/model/DescribeUploadInfoRequest.cc
src/model/DescribeUploadInfoResult.cc
src/model/DescribeUserStatusRequest.cc
src/model/DescribeUserStatusResult.cc
src/model/DescribeVerifyRecordsRequest.cc
src/model/DescribeVerifyRecordsResult.cc
src/model/DescribeVerifyResultRequest.cc
src/model/DescribeVerifyResultResult.cc
src/model/DescribeVerifySDKRequest.cc
src/model/DescribeVerifySDKResult.cc
src/model/DescribeVerifySettingRequest.cc
src/model/DescribeVerifySettingResult.cc
src/model/DescribeVerifyTokenRequest.cc
src/model/DescribeVerifyTokenResult.cc
src/model/DescribeVerifyUsageRequest.cc
src/model/DescribeVerifyUsageResult.cc
src/model/DescribeWhitelistRequest.cc
src/model/DescribeWhitelistResult.cc
src/model/DescribeWhitelistSettingRequest.cc
src/model/DescribeWhitelistSettingResult.cc
src/model/DetectFaceAttributesRequest.cc
src/model/DetectFaceAttributesResult.cc
src/model/InitDeviceRequest.cc
src/model/InitDeviceResult.cc
src/model/InitFaceVerifyRequest.cc
src/model/InitFaceVerifyResult.cc
src/model/LivenessFaceVerifyRequest.cc
src/model/LivenessFaceVerifyResult.cc
src/model/ModifyDeviceInfoRequest.cc
src/model/ModifyDeviceInfoResult.cc
src/model/UpdateAppPackageRequest.cc
src/model/UpdateAppPackageResult.cc
src/model/UpdateFaceConfigRequest.cc
src/model/UpdateFaceConfigResult.cc
src/model/UpdateVerifySettingRequest.cc
src/model/UpdateVerifySettingResult.cc
src/model/VerifyDeviceRequest.cc
src/model/VerifyDeviceResult.cc
src/model/VerifyMaterialRequest.cc
src/model/VerifyMaterialResult.cc )

View File

@@ -30,78 +30,28 @@
#include "model/ContrastFaceVerifyResult.h"
#include "model/CreateAuthKeyRequest.h"
#include "model/CreateAuthKeyResult.h"
#include "model/CreateFaceConfigRequest.h"
#include "model/CreateFaceConfigResult.h"
#include "model/CreateRPSDKRequest.h"
#include "model/CreateRPSDKResult.h"
#include "model/CreateVerifySDKRequest.h"
#include "model/CreateVerifySDKResult.h"
#include "model/CreateVerifySettingRequest.h"
#include "model/CreateVerifySettingResult.h"
#include "model/CreateWhitelistRequest.h"
#include "model/CreateWhitelistResult.h"
#include "model/CreateWhitelistSettingRequest.h"
#include "model/CreateWhitelistSettingResult.h"
#include "model/DeleteWhitelistRequest.h"
#include "model/DeleteWhitelistResult.h"
#include "model/DeleteWhitelistSettingRequest.h"
#include "model/DeleteWhitelistSettingResult.h"
#include "model/DescribeAppInfoRequest.h"
#include "model/DescribeAppInfoResult.h"
#include "model/DescribeDeviceInfoRequest.h"
#include "model/DescribeDeviceInfoResult.h"
#include "model/DescribeFaceConfigRequest.h"
#include "model/DescribeFaceConfigResult.h"
#include "model/DescribeFaceUsageRequest.h"
#include "model/DescribeFaceUsageResult.h"
#include "model/DescribeFaceVerifyRequest.h"
#include "model/DescribeFaceVerifyResult.h"
#include "model/DescribeOssUploadTokenRequest.h"
#include "model/DescribeOssUploadTokenResult.h"
#include "model/DescribeRPSDKRequest.h"
#include "model/DescribeRPSDKResult.h"
#include "model/DescribeSdkUrlRequest.h"
#include "model/DescribeSdkUrlResult.h"
#include "model/DescribeUpdatePackageResultRequest.h"
#include "model/DescribeUpdatePackageResultResult.h"
#include "model/DescribeUploadInfoRequest.h"
#include "model/DescribeUploadInfoResult.h"
#include "model/DescribeUserStatusRequest.h"
#include "model/DescribeUserStatusResult.h"
#include "model/DescribeVerifyRecordsRequest.h"
#include "model/DescribeVerifyRecordsResult.h"
#include "model/DescribeVerifyResultRequest.h"
#include "model/DescribeVerifyResultResult.h"
#include "model/DescribeVerifySDKRequest.h"
#include "model/DescribeVerifySDKResult.h"
#include "model/DescribeVerifySettingRequest.h"
#include "model/DescribeVerifySettingResult.h"
#include "model/DescribeVerifyTokenRequest.h"
#include "model/DescribeVerifyTokenResult.h"
#include "model/DescribeVerifyUsageRequest.h"
#include "model/DescribeVerifyUsageResult.h"
#include "model/DescribeWhitelistRequest.h"
#include "model/DescribeWhitelistResult.h"
#include "model/DescribeWhitelistSettingRequest.h"
#include "model/DescribeWhitelistSettingResult.h"
#include "model/DetectFaceAttributesRequest.h"
#include "model/DetectFaceAttributesResult.h"
#include "model/InitDeviceRequest.h"
#include "model/InitDeviceResult.h"
#include "model/InitFaceVerifyRequest.h"
#include "model/InitFaceVerifyResult.h"
#include "model/LivenessFaceVerifyRequest.h"
#include "model/LivenessFaceVerifyResult.h"
#include "model/ModifyDeviceInfoRequest.h"
#include "model/ModifyDeviceInfoResult.h"
#include "model/UpdateAppPackageRequest.h"
#include "model/UpdateAppPackageResult.h"
#include "model/UpdateFaceConfigRequest.h"
#include "model/UpdateFaceConfigResult.h"
#include "model/UpdateVerifySettingRequest.h"
#include "model/UpdateVerifySettingResult.h"
#include "model/VerifyDeviceRequest.h"
#include "model/VerifyDeviceResult.h"
#include "model/VerifyMaterialRequest.h"
#include "model/VerifyMaterialResult.h"
@@ -125,93 +75,30 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
typedef Outcome<Error, Model::CreateFaceConfigResult> CreateFaceConfigOutcome;
typedef std::future<CreateFaceConfigOutcome> CreateFaceConfigOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateFaceConfigRequest&, const CreateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceConfigAsyncHandler;
typedef Outcome<Error, Model::CreateRPSDKResult> CreateRPSDKOutcome;
typedef std::future<CreateRPSDKOutcome> CreateRPSDKOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateRPSDKRequest&, const CreateRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRPSDKAsyncHandler;
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySDKRequest&, const CreateVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySDKAsyncHandler;
typedef Outcome<Error, Model::CreateVerifySettingResult> CreateVerifySettingOutcome;
typedef std::future<CreateVerifySettingOutcome> CreateVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySettingRequest&, const CreateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySettingAsyncHandler;
typedef Outcome<Error, Model::CreateWhitelistResult> CreateWhitelistOutcome;
typedef std::future<CreateWhitelistOutcome> CreateWhitelistOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistRequest&, const CreateWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistAsyncHandler;
typedef Outcome<Error, Model::CreateWhitelistSettingResult> CreateWhitelistSettingOutcome;
typedef std::future<CreateWhitelistSettingOutcome> CreateWhitelistSettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistSettingRequest&, const CreateWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistSettingAsyncHandler;
typedef Outcome<Error, Model::DeleteWhitelistResult> DeleteWhitelistOutcome;
typedef std::future<DeleteWhitelistOutcome> DeleteWhitelistOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistRequest&, const DeleteWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistAsyncHandler;
typedef Outcome<Error, Model::DeleteWhitelistSettingResult> DeleteWhitelistSettingOutcome;
typedef std::future<DeleteWhitelistSettingOutcome> DeleteWhitelistSettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistSettingRequest&, const DeleteWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistSettingAsyncHandler;
typedef Outcome<Error, Model::DescribeAppInfoResult> DescribeAppInfoOutcome;
typedef std::future<DescribeAppInfoOutcome> DescribeAppInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeAppInfoRequest&, const DescribeAppInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAppInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeFaceConfigResult> DescribeFaceConfigOutcome;
typedef std::future<DescribeFaceConfigOutcome> DescribeFaceConfigOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceConfigRequest&, const DescribeFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceConfigAsyncHandler;
typedef Outcome<Error, Model::DescribeFaceUsageResult> DescribeFaceUsageOutcome;
typedef std::future<DescribeFaceUsageOutcome> DescribeFaceUsageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceUsageRequest&, const DescribeFaceUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceUsageAsyncHandler;
typedef Outcome<Error, Model::DescribeFaceVerifyResult> DescribeFaceVerifyOutcome;
typedef std::future<DescribeFaceVerifyOutcome> DescribeFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeFaceVerifyRequest&, const DescribeFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFaceVerifyAsyncHandler;
typedef Outcome<Error, Model::DescribeOssUploadTokenResult> DescribeOssUploadTokenOutcome;
typedef std::future<DescribeOssUploadTokenOutcome> DescribeOssUploadTokenOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeOssUploadTokenRequest&, const DescribeOssUploadTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeOssUploadTokenAsyncHandler;
typedef Outcome<Error, Model::DescribeRPSDKResult> DescribeRPSDKOutcome;
typedef std::future<DescribeRPSDKOutcome> DescribeRPSDKOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeRPSDKRequest&, const DescribeRPSDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeRPSDKAsyncHandler;
typedef Outcome<Error, Model::DescribeSdkUrlResult> DescribeSdkUrlOutcome;
typedef std::future<DescribeSdkUrlOutcome> DescribeSdkUrlOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeSdkUrlRequest&, const DescribeSdkUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSdkUrlAsyncHandler;
typedef Outcome<Error, Model::DescribeUpdatePackageResultResult> DescribeUpdatePackageResultOutcome;
typedef std::future<DescribeUpdatePackageResultOutcome> DescribeUpdatePackageResultOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUpdatePackageResultRequest&, const DescribeUpdatePackageResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpdatePackageResultAsyncHandler;
typedef Outcome<Error, Model::DescribeUploadInfoResult> DescribeUploadInfoOutcome;
typedef std::future<DescribeUploadInfoOutcome> DescribeUploadInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUploadInfoRequest&, const DescribeUploadInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUploadInfoAsyncHandler;
typedef Outcome<Error, Model::DescribeUserStatusResult> DescribeUserStatusOutcome;
typedef std::future<DescribeUserStatusOutcome> DescribeUserStatusOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeUserStatusRequest&, const DescribeUserStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUserStatusAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifyRecordsResult> DescribeVerifyRecordsOutcome;
typedef std::future<DescribeVerifyRecordsOutcome> DescribeVerifyRecordsOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyRecordsRequest&, const DescribeVerifyRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyRecordsAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifyResultResult> DescribeVerifyResultOutcome;
typedef std::future<DescribeVerifyResultOutcome> DescribeVerifyResultOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyResultRequest&, const DescribeVerifyResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyResultAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySDKRequest&, const DescribeVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySDKAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifySettingResult> DescribeVerifySettingOutcome;
typedef std::future<DescribeVerifySettingOutcome> DescribeVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySettingRequest&, const DescribeVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySettingAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifyTokenResult> DescribeVerifyTokenOutcome;
typedef std::future<DescribeVerifyTokenOutcome> DescribeVerifyTokenOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyTokenRequest&, const DescribeVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyTokenAsyncHandler;
typedef Outcome<Error, Model::DescribeVerifyUsageResult> DescribeVerifyUsageOutcome;
typedef std::future<DescribeVerifyUsageOutcome> DescribeVerifyUsageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifyUsageRequest&, const DescribeVerifyUsageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifyUsageAsyncHandler;
typedef Outcome<Error, Model::DescribeWhitelistResult> DescribeWhitelistOutcome;
typedef std::future<DescribeWhitelistOutcome> DescribeWhitelistOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistRequest&, const DescribeWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistAsyncHandler;
typedef Outcome<Error, Model::DescribeWhitelistSettingResult> DescribeWhitelistSettingOutcome;
typedef std::future<DescribeWhitelistSettingOutcome> DescribeWhitelistSettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistSettingRequest&, const DescribeWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistSettingAsyncHandler;
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
typedef Outcome<Error, Model::InitDeviceResult> InitDeviceOutcome;
typedef std::future<InitDeviceOutcome> InitDeviceOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitDeviceRequest&, const InitDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitDeviceAsyncHandler;
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
@@ -221,18 +108,6 @@ namespace AlibabaCloud
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
typedef Outcome<Error, Model::UpdateFaceConfigResult> UpdateFaceConfigOutcome;
typedef std::future<UpdateFaceConfigOutcome> UpdateFaceConfigOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateFaceConfigRequest&, const UpdateFaceConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateFaceConfigAsyncHandler;
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
typedef Outcome<Error, Model::VerifyDeviceResult> VerifyDeviceOutcome;
typedef std::future<VerifyDeviceOutcome> VerifyDeviceOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::VerifyDeviceRequest&, const VerifyDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDeviceAsyncHandler;
typedef Outcome<Error, Model::VerifyMaterialResult> VerifyMaterialOutcome;
typedef std::future<VerifyMaterialOutcome> VerifyMaterialOutcomeCallable;
typedef std::function<void(const CloudauthClient*, const Model::VerifyMaterialRequest&, const VerifyMaterialOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyMaterialAsyncHandler;
@@ -253,93 +128,30 @@ namespace AlibabaCloud
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
CreateFaceConfigOutcome createFaceConfig(const Model::CreateFaceConfigRequest &request)const;
void createFaceConfigAsync(const Model::CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateFaceConfigOutcomeCallable createFaceConfigCallable(const Model::CreateFaceConfigRequest& request) const;
CreateRPSDKOutcome createRPSDK(const Model::CreateRPSDKRequest &request)const;
void createRPSDKAsync(const Model::CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateRPSDKOutcomeCallable createRPSDKCallable(const Model::CreateRPSDKRequest& request) const;
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVerifySDKOutcomeCallable createVerifySDKCallable(const Model::CreateVerifySDKRequest& request) const;
CreateVerifySettingOutcome createVerifySetting(const Model::CreateVerifySettingRequest &request)const;
void createVerifySettingAsync(const Model::CreateVerifySettingRequest& request, const CreateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateVerifySettingOutcomeCallable createVerifySettingCallable(const Model::CreateVerifySettingRequest& request) const;
CreateWhitelistOutcome createWhitelist(const Model::CreateWhitelistRequest &request)const;
void createWhitelistAsync(const Model::CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateWhitelistOutcomeCallable createWhitelistCallable(const Model::CreateWhitelistRequest& request) const;
CreateWhitelistSettingOutcome createWhitelistSetting(const Model::CreateWhitelistSettingRequest &request)const;
void createWhitelistSettingAsync(const Model::CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
CreateWhitelistSettingOutcomeCallable createWhitelistSettingCallable(const Model::CreateWhitelistSettingRequest& request) const;
DeleteWhitelistOutcome deleteWhitelist(const Model::DeleteWhitelistRequest &request)const;
void deleteWhitelistAsync(const Model::DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteWhitelistOutcomeCallable deleteWhitelistCallable(const Model::DeleteWhitelistRequest& request) const;
DeleteWhitelistSettingOutcome deleteWhitelistSetting(const Model::DeleteWhitelistSettingRequest &request)const;
void deleteWhitelistSettingAsync(const Model::DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DeleteWhitelistSettingOutcomeCallable deleteWhitelistSettingCallable(const Model::DeleteWhitelistSettingRequest& request) const;
DescribeAppInfoOutcome describeAppInfo(const Model::DescribeAppInfoRequest &request)const;
void describeAppInfoAsync(const Model::DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeAppInfoOutcomeCallable describeAppInfoCallable(const Model::DescribeAppInfoRequest& request) const;
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
DescribeFaceConfigOutcome describeFaceConfig(const Model::DescribeFaceConfigRequest &request)const;
void describeFaceConfigAsync(const Model::DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFaceConfigOutcomeCallable describeFaceConfigCallable(const Model::DescribeFaceConfigRequest& request) const;
DescribeFaceUsageOutcome describeFaceUsage(const Model::DescribeFaceUsageRequest &request)const;
void describeFaceUsageAsync(const Model::DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFaceUsageOutcomeCallable describeFaceUsageCallable(const Model::DescribeFaceUsageRequest& request) const;
DescribeFaceVerifyOutcome describeFaceVerify(const Model::DescribeFaceVerifyRequest &request)const;
void describeFaceVerifyAsync(const Model::DescribeFaceVerifyRequest& request, const DescribeFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeFaceVerifyOutcomeCallable describeFaceVerifyCallable(const Model::DescribeFaceVerifyRequest& request) const;
DescribeOssUploadTokenOutcome describeOssUploadToken(const Model::DescribeOssUploadTokenRequest &request)const;
void describeOssUploadTokenAsync(const Model::DescribeOssUploadTokenRequest& request, const DescribeOssUploadTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeOssUploadTokenOutcomeCallable describeOssUploadTokenCallable(const Model::DescribeOssUploadTokenRequest& request) const;
DescribeRPSDKOutcome describeRPSDK(const Model::DescribeRPSDKRequest &request)const;
void describeRPSDKAsync(const Model::DescribeRPSDKRequest& request, const DescribeRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeRPSDKOutcomeCallable describeRPSDKCallable(const Model::DescribeRPSDKRequest& request) const;
DescribeSdkUrlOutcome describeSdkUrl(const Model::DescribeSdkUrlRequest &request)const;
void describeSdkUrlAsync(const Model::DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeSdkUrlOutcomeCallable describeSdkUrlCallable(const Model::DescribeSdkUrlRequest& request) const;
DescribeUpdatePackageResultOutcome describeUpdatePackageResult(const Model::DescribeUpdatePackageResultRequest &request)const;
void describeUpdatePackageResultAsync(const Model::DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUpdatePackageResultOutcomeCallable describeUpdatePackageResultCallable(const Model::DescribeUpdatePackageResultRequest& request) const;
DescribeUploadInfoOutcome describeUploadInfo(const Model::DescribeUploadInfoRequest &request)const;
void describeUploadInfoAsync(const Model::DescribeUploadInfoRequest& request, const DescribeUploadInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUploadInfoOutcomeCallable describeUploadInfoCallable(const Model::DescribeUploadInfoRequest& request) const;
DescribeUserStatusOutcome describeUserStatus(const Model::DescribeUserStatusRequest &request)const;
void describeUserStatusAsync(const Model::DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeUserStatusOutcomeCallable describeUserStatusCallable(const Model::DescribeUserStatusRequest& request) const;
DescribeVerifyRecordsOutcome describeVerifyRecords(const Model::DescribeVerifyRecordsRequest &request)const;
void describeVerifyRecordsAsync(const Model::DescribeVerifyRecordsRequest& request, const DescribeVerifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifyRecordsOutcomeCallable describeVerifyRecordsCallable(const Model::DescribeVerifyRecordsRequest& request) const;
DescribeVerifyResultOutcome describeVerifyResult(const Model::DescribeVerifyResultRequest &request)const;
void describeVerifyResultAsync(const Model::DescribeVerifyResultRequest& request, const DescribeVerifyResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifyResultOutcomeCallable describeVerifyResultCallable(const Model::DescribeVerifyResultRequest& request) const;
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifySDKOutcomeCallable describeVerifySDKCallable(const Model::DescribeVerifySDKRequest& request) const;
DescribeVerifySettingOutcome describeVerifySetting(const Model::DescribeVerifySettingRequest &request)const;
void describeVerifySettingAsync(const Model::DescribeVerifySettingRequest& request, const DescribeVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifySettingOutcomeCallable describeVerifySettingCallable(const Model::DescribeVerifySettingRequest& request) const;
DescribeVerifyTokenOutcome describeVerifyToken(const Model::DescribeVerifyTokenRequest &request)const;
void describeVerifyTokenAsync(const Model::DescribeVerifyTokenRequest& request, const DescribeVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifyTokenOutcomeCallable describeVerifyTokenCallable(const Model::DescribeVerifyTokenRequest& request) const;
DescribeVerifyUsageOutcome describeVerifyUsage(const Model::DescribeVerifyUsageRequest &request)const;
void describeVerifyUsageAsync(const Model::DescribeVerifyUsageRequest& request, const DescribeVerifyUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeVerifyUsageOutcomeCallable describeVerifyUsageCallable(const Model::DescribeVerifyUsageRequest& request) const;
DescribeWhitelistOutcome describeWhitelist(const Model::DescribeWhitelistRequest &request)const;
void describeWhitelistAsync(const Model::DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeWhitelistOutcomeCallable describeWhitelistCallable(const Model::DescribeWhitelistRequest& request) const;
DescribeWhitelistSettingOutcome describeWhitelistSetting(const Model::DescribeWhitelistSettingRequest &request)const;
void describeWhitelistSettingAsync(const Model::DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DescribeWhitelistSettingOutcomeCallable describeWhitelistSettingCallable(const Model::DescribeWhitelistSettingRequest& request) const;
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
InitDeviceOutcome initDevice(const Model::InitDeviceRequest &request)const;
void initDeviceAsync(const Model::InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitDeviceOutcomeCallable initDeviceCallable(const Model::InitDeviceRequest& request) const;
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
@@ -349,18 +161,6 @@ namespace AlibabaCloud
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
UpdateFaceConfigOutcome updateFaceConfig(const Model::UpdateFaceConfigRequest &request)const;
void updateFaceConfigAsync(const Model::UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateFaceConfigOutcomeCallable updateFaceConfigCallable(const Model::UpdateFaceConfigRequest& request) const;
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
VerifyDeviceOutcome verifyDevice(const Model::VerifyDeviceRequest &request)const;
void verifyDeviceAsync(const Model::VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyDeviceOutcomeCallable verifyDeviceCallable(const Model::VerifyDeviceRequest& request) const;
VerifyMaterialOutcome verifyMaterial(const Model::VerifyMaterialRequest &request)const;
void verifyMaterialAsync(const Model::VerifyMaterialRequest& request, const VerifyMaterialAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
VerifyMaterialOutcomeCallable verifyMaterialCallable(const Model::VerifyMaterialRequest& request) const;

View File

@@ -35,49 +35,49 @@ namespace AlibabaCloud
CompareFaceVerifyRequest();
~CompareFaceVerifyRequest();
std::string getTargetFaceContrastPictureUrl()const;
void setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl);
std::string getProductCode()const;
void setProductCode(const std::string& productCode);
std::string getTargetCertifyId()const;
void setTargetCertifyId(const std::string& targetCertifyId);
std::string getSourceOssObjectName()const;
void setSourceOssObjectName(const std::string& sourceOssObjectName);
std::string getTargetFaceContrastPicture()const;
void setTargetFaceContrastPicture(const std::string& targetFaceContrastPicture);
std::string getTargetOssBucketName()const;
void setTargetOssBucketName(const std::string& targetOssBucketName);
std::string getSourceOssBucketName()const;
void setSourceOssBucketName(const std::string& sourceOssBucketName);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getTargetOssObjectName()const;
void setTargetOssObjectName(const std::string& targetOssObjectName);
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 getSourceCertifyId()const;
void setSourceCertifyId(const std::string& sourceCertifyId);
std::string getCrop()const;
void setCrop(const std::string& crop);
private:
std::string targetFaceContrastPictureUrl_;
std::string productCode_;
std::string targetCertifyId_;
std::string sourceOssObjectName_;
std::string targetFaceContrastPicture_;
std::string targetOssBucketName_;
std::string sourceOssBucketName_;
std::string outerOrderNo_;
std::string targetOssObjectName_;
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 sourceCertifyId_;
std::string crop_;
};

View File

@@ -1,57 +0,0 @@
/*
* 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_CREATEFACECONFIGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateFaceConfigRequest : public RpcServiceRequest
{
public:
CreateFaceConfigRequest();
~CreateFaceConfigRequest();
std::string getBizName()const;
void setBizName(const std::string& bizName);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string bizName_;
std::string bizType_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEFACECONFIGREQUEST_H_

View File

@@ -1,57 +0,0 @@
/*
* 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_CREATERPSDKREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATERPSDKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateRPSDKRequest : public RpcServiceRequest
{
public:
CreateRPSDKRequest();
~CreateRPSDKRequest();
std::string getAppUrl()const;
void setAppUrl(const std::string& appUrl);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string appUrl_;
std::string platform_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATERPSDKREQUEST_H_

View File

@@ -1,57 +0,0 @@
/*
* 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_CREATEVERIFYSDKREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest
{
public:
CreateVerifySDKRequest();
~CreateVerifySDKRequest();
std::string getAppUrl()const;
void setAppUrl(const std::string& appUrl);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string appUrl_;
std::string platform_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_

View File

@@ -1,63 +0,0 @@
/*
* 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_CREATEWHITELISTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistRequest : public RpcServiceRequest
{
public:
CreateWhitelistRequest();
~CreateWhitelistRequest();
std::string getValidDay()const;
void setValidDay(const std::string& validDay);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getIdCardNum()const;
void setIdCardNum(const std::string& idCardNum);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string validDay_;
std::string bizType_;
std::string idCardNum_;
std::string sourceIp_;
std::string bizId_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTREQUEST_H_

View File

@@ -1,66 +0,0 @@
/*
* 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_CREATEWHITELISTSETTINGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistSettingRequest : public RpcServiceRequest
{
public:
CreateWhitelistSettingRequest();
~CreateWhitelistSettingRequest();
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getCertNo()const;
void setCertNo(const std::string& certNo);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
int getValidDay()const;
void setValidDay(int validDay);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
long getSceneId()const;
void setSceneId(long sceneId);
private:
std::string certifyId_;
std::string certNo_;
std::string sourceIp_;
std::string lang_;
int validDay_;
std::string serviceCode_;
long sceneId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_

View File

@@ -1,54 +0,0 @@
/*
* 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_DELETEWHITELISTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistRequest : public RpcServiceRequest
{
public:
DeleteWhitelistRequest();
~DeleteWhitelistRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getIds()const;
void setIds(const std::string& ids);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string sourceIp_;
std::string ids_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTREQUEST_H_

View File

@@ -1,57 +0,0 @@
/*
* 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_DELETEWHITELISTSETTINGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistSettingRequest : public RpcServiceRequest
{
public:
DeleteWhitelistSettingRequest();
~DeleteWhitelistSettingRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
std::string getIds()const;
void setIds(const std::string& ids);
private:
std::string sourceIp_;
std::string lang_;
std::string serviceCode_;
std::string ids_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* 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_DELETEWHITELISTSETTINGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistSettingResult : public ServiceResult
{
public:
DeleteWhitelistSettingResult();
explicit DeleteWhitelistSettingResult(const std::string &payload);
~DeleteWhitelistSettingResult();
bool getResultObject()const;
protected:
void parse(const std::string &payload);
private:
bool resultObject_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGRESULT_H_

View File

@@ -1,57 +0,0 @@
/*
* 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_DESCRIBEAPPINFOREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeAppInfoRequest : public RpcServiceRequest
{
public:
DescribeAppInfoRequest();
~DescribeAppInfoRequest();
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getPageSize()const;
void setPageSize(int pageSize);
private:
int currentPage_;
std::string platform_;
std::string sourceIp_;
int pageSize_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFOREQUEST_H_

View File

@@ -1,77 +0,0 @@
/*
* 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_DESCRIBEAPPINFORESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeAppInfoResult : public ServiceResult
{
public:
struct AppInfo
{
struct PackageInfo
{
std::string version;
};
struct DebugPackageInfo
{
std::string version;
};
std::string startDate;
int type;
DebugPackageInfo debugPackageInfo;
std::string packageName;
PackageInfo packageInfo;
long id;
std::string icon;
std::string endDate;
std::string name;
};
DescribeAppInfoResult();
explicit DescribeAppInfoResult(const std::string &payload);
~DescribeAppInfoResult();
int getTotalCount()const;
int getPageSize()const;
int getCurrentPage()const;
std::vector<AppInfo> getAppInfoList()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int currentPage_;
std::vector<AppInfo> appInfoList_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEAPPINFORESULT_H_

View File

@@ -1,51 +0,0 @@
/*
* 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_DESCRIBEFACECONFIGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceConfigRequest : public RpcServiceRequest
{
public:
DescribeFaceConfigRequest();
~DescribeFaceConfigRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACECONFIGREQUEST_H_

View File

@@ -1,54 +0,0 @@
/*
* 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_DESCRIBEFACEUSAGEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEUSAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeFaceUsageRequest : public RpcServiceRequest
{
public:
DescribeFaceUsageRequest();
~DescribeFaceUsageRequest();
std::string getStartDate()const;
void setStartDate(const std::string& startDate);
std::string getEndDate()const;
void setEndDate(const std::string& endDate);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string startDate_;
std::string endDate_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEFACEUSAGEREQUEST_H_

View File

@@ -1,54 +0,0 @@
/*
* 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_DESCRIBESDKURLREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESDKURLREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSdkUrlRequest : public RpcServiceRequest
{
public:
DescribeSdkUrlRequest();
~DescribeSdkUrlRequest();
bool getDebug()const;
void setDebug(bool debug);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
long getId()const;
void setId(long id);
private:
bool debug_;
std::string sourceIp_;
long id_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESDKURLREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* 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_DESCRIBEUPDATEPACKAGERESULTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUpdatePackageResultRequest : public RpcServiceRequest
{
public:
DescribeUpdatePackageResultRequest();
~DescribeUpdatePackageResultRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getTaskId()const;
void setTaskId(const std::string& taskId);
private:
std::string sourceIp_;
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTREQUEST_H_

View File

@@ -1,71 +0,0 @@
/*
* 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_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUpdatePackageResultResult : public ServiceResult
{
public:
struct AppInfo
{
struct PackageInfo
{
std::string version;
};
struct DebugPackageInfo
{
std::string version;
};
std::string startDate;
int type;
DebugPackageInfo debugPackageInfo;
std::string packageName;
PackageInfo packageInfo;
long id;
std::string icon;
std::string endDate;
std::string name;
};
DescribeUpdatePackageResultResult();
explicit DescribeUpdatePackageResultResult(const std::string &payload);
~DescribeUpdatePackageResultResult();
AppInfo getAppInfo()const;
protected:
void parse(const std::string &payload);
private:
AppInfo appInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPDATEPACKAGERESULTRESULT_H_

View File

@@ -1,51 +0,0 @@
/*
* 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_DESCRIBEUPLOADINFOREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPLOADINFOREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUploadInfoRequest : public RpcServiceRequest
{
public:
DescribeUploadInfoRequest();
~DescribeUploadInfoRequest();
std::string getBiz()const;
void setBiz(const std::string& biz);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string biz_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPLOADINFOREQUEST_H_

View File

@@ -1,61 +0,0 @@
/*
* 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_DESCRIBEUPLOADINFORESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPLOADINFORESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUploadInfoResult : public ServiceResult
{
public:
DescribeUploadInfoResult();
explicit DescribeUploadInfoResult(const std::string &payload);
~DescribeUploadInfoResult();
std::string getPolicy()const;
long getExpire()const;
std::string getAccessid()const;
std::string getSignature()const;
std::string getHost()const;
std::string getFolder()const;
protected:
void parse(const std::string &payload);
private:
std::string policy_;
long expire_;
std::string accessid_;
std::string signature_;
std::string host_;
std::string folder_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUPLOADINFORESULT_H_

View File

@@ -1,48 +0,0 @@
/*
* 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_DESCRIBEUSERSTATUSREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUSERSTATUSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUserStatusRequest : public RpcServiceRequest
{
public:
DescribeUserStatusRequest();
~DescribeUserStatusRequest();
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUSERSTATUSREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* 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_DESCRIBEUSERSTATUSRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUSERSTATUSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeUserStatusResult : public ServiceResult
{
public:
DescribeUserStatusResult();
explicit DescribeUserStatusResult(const std::string &payload);
~DescribeUserStatusResult();
bool getEnabled()const;
protected:
void parse(const std::string &payload);
private:
bool enabled_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEUSERSTATUSRESULT_H_

View File

@@ -1,78 +0,0 @@
/*
* 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_DESCRIBEVERIFYRECORDSREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyRecordsRequest : public RpcServiceRequest
{
public:
DescribeVerifyRecordsRequest();
~DescribeVerifyRecordsRequest();
std::string getStatusList()const;
void setStatusList(const std::string& statusList);
std::string getStartDate()const;
void setStartDate(const std::string& startDate);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
int getPageSize()const;
void setPageSize(int pageSize);
int getTotalCount()const;
void setTotalCount(int totalCount);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getQueryId()const;
void setQueryId(const std::string& queryId);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getIdCardNum()const;
void setIdCardNum(const std::string& idCardNum);
std::string getEndDate()const;
void setEndDate(const std::string& endDate);
std::string getBizId()const;
void setBizId(const std::string& bizId);
private:
std::string statusList_;
std::string startDate_;
std::string sourceIp_;
int pageSize_;
int totalCount_;
int currentPage_;
std::string queryId_;
std::string bizType_;
std::string idCardNum_;
std::string endDate_;
std::string bizId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSREQUEST_H_

View File

@@ -1,92 +0,0 @@
/*
* 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_DESCRIBEVERIFYRECORDSRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyRecordsResult : public ServiceResult
{
public:
struct Records
{
struct Material
{
struct IdCardInfo
{
std::string startDate;
std::string number;
std::string address;
std::string authority;
std::string sex;
std::string backImageUrl;
std::string frontImageUrl;
std::string birth;
std::string endDate;
std::string nationality;
std::string name;
};
std::string idCardName;
std::string idCardNumber;
IdCardInfo idCardInfo;
std::string faceImageUrl;
};
int status;
long finishTime;
std::string dataStats;
float authorityComparisonScore;
Material material;
std::string bizType;
std::string bizId;
std::string verifyId;
float idCardFaceComparisonScore;
};
DescribeVerifyRecordsResult();
explicit DescribeVerifyRecordsResult(const std::string &payload);
~DescribeVerifyRecordsResult();
int getTotalCount()const;
int getPageSize()const;
int getCurrentPage()const;
std::vector<Records> getRecordsList()const;
std::string getQueryId()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int currentPage_;
std::vector<Records> recordsList_;
std::string queryId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYRECORDSRESULT_H_

View File

@@ -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::vector<std::string> videoUrls;

View File

@@ -1,57 +0,0 @@
/*
* 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_DESCRIBEVERIFYUSAGEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyUsageRequest : public RpcServiceRequest
{
public:
DescribeVerifyUsageRequest();
~DescribeVerifyUsageRequest();
std::string getStartDate()const;
void setStartDate(const std::string& startDate);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getEndDate()const;
void setEndDate(const std::string& endDate);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
private:
std::string startDate_;
std::string bizType_;
std::string endDate_;
std::string sourceIp_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGEREQUEST_H_

View File

@@ -1,61 +0,0 @@
/*
* 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_DESCRIBEVERIFYUSAGERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifyUsageResult : public ServiceResult
{
public:
struct VerifyUsage
{
long totalCount;
long failCount;
std::string bizType;
long passCount;
std::string date;
};
DescribeVerifyUsageResult();
explicit DescribeVerifyUsageResult(const std::string &payload);
~DescribeVerifyUsageResult();
std::vector<VerifyUsage> getVerifyUsageList()const;
int getTotalCount()const;
protected:
void parse(const std::string &payload);
private:
std::vector<VerifyUsage> verifyUsageList_;
int totalCount_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYUSAGERESULT_H_

View File

@@ -1,75 +0,0 @@
/*
* 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_DESCRIBEWHITELISTREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistRequest : public RpcServiceRequest
{
public:
DescribeWhitelistRequest();
~DescribeWhitelistRequest();
std::string getValidEndDate()const;
void setValidEndDate(const std::string& validEndDate);
std::string getValid()const;
void setValid(const std::string& valid);
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);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getIdCardNum()const;
void setIdCardNum(const std::string& idCardNum);
std::string getBizId()const;
void setBizId(const std::string& bizId);
std::string getValidStartDate()const;
void setValidStartDate(const std::string& validStartDate);
private:
std::string validEndDate_;
std::string valid_;
std::string sourceIp_;
int pageSize_;
std::string lang_;
int currentPage_;
std::string bizType_;
std::string idCardNum_;
std::string bizId_;
std::string validStartDate_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTREQUEST_H_

View File

@@ -1,70 +0,0 @@
/*
* 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_DESCRIBEWHITELISTRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistResult : public ServiceResult
{
public:
struct Item
{
long startDate;
long uid;
long gmtCreate;
int valid;
long gmtModified;
std::string bizType;
long id;
long endDate;
std::string bizId;
std::string idCardNum;
};
DescribeWhitelistResult();
explicit DescribeWhitelistResult(const std::string &payload);
~DescribeWhitelistResult();
int getTotalCount()const;
int getPageSize()const;
int getCurrentPage()const;
std::vector<Item> getItems()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int currentPage_;
std::vector<Item> items_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTRESULT_H_

View File

@@ -1,78 +0,0 @@
/*
* 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_DESCRIBEWHITELISTSETTINGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistSettingRequest : public RpcServiceRequest
{
public:
DescribeWhitelistSettingRequest();
~DescribeWhitelistSettingRequest();
long getValidEndDate()const;
void setValidEndDate(long validEndDate);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getCertNo()const;
void setCertNo(const std::string& certNo);
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);
int getCurrentPage()const;
void setCurrentPage(int currentPage);
std::string getServiceCode()const;
void setServiceCode(const std::string& serviceCode);
long getSceneId()const;
void setSceneId(long sceneId);
long getValidStartDate()const;
void setValidStartDate(long validStartDate);
std::string getStatus()const;
void setStatus(const std::string& status);
private:
long validEndDate_;
std::string certifyId_;
std::string certNo_;
std::string sourceIp_;
int pageSize_;
std::string lang_;
int currentPage_;
std::string serviceCode_;
long sceneId_;
long validStartDate_;
std::string status_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_

View File

@@ -1,69 +0,0 @@
/*
* 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_DESCRIBEWHITELISTSETTINGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistSettingResult : public ServiceResult
{
public:
struct Item
{
long sceneId;
std::string status;
std::string validEndDate;
std::string validStartDate;
std::string gmtCreate;
std::string certifyId;
std::string gmtModified;
long id;
std::string certNo;
};
DescribeWhitelistSettingResult();
explicit DescribeWhitelistSettingResult(const std::string &payload);
~DescribeWhitelistSettingResult();
int getTotalCount()const;
int getPageSize()const;
int getCurrentPage()const;
std::vector<Item> getItems()const;
protected:
void parse(const std::string &payload);
private:
int totalCount_;
int pageSize_;
int currentPage_;
std::vector<Item> items_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGRESULT_H_

View File

@@ -69,8 +69,8 @@ namespace AlibabaCloud
Smiling smiling;
Gender gender;
float appearanceScore;
int age;
float facequal;
int age;
int integrity;
};
FaceAttributes faceAttributes;

View File

@@ -1,84 +0,0 @@
/*
* 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_INITDEVICEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitDeviceRequest : public RpcServiceRequest
{
public:
InitDeviceRequest();
~InitDeviceRequest();
std::string getChannel()const;
void setChannel(const std::string& channel);
std::string getBizData()const;
void setBizData(const std::string& bizData);
std::string getMerchant()const;
void setMerchant(const std::string& merchant);
std::string getAppVersion()const;
void setAppVersion(const std::string& appVersion);
std::string getDeviceToken()const;
void setDeviceToken(const std::string& deviceToken);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
std::string getWebUmidToken()const;
void setWebUmidToken(const std::string& webUmidToken);
std::string getOuterOrderNo()const;
void setOuterOrderNo(const std::string& outerOrderNo);
std::string getProduceNode()const;
void setProduceNode(const std::string& produceNode);
std::string getUaToken()const;
void setUaToken(const std::string& uaToken);
std::string getProductName()const;
void setProductName(const std::string& productName);
std::string getCertifyPrincipal()const;
void setCertifyPrincipal(const std::string& certifyPrincipal);
std::string getMetaInfo()const;
void setMetaInfo(const std::string& metaInfo);
private:
std::string channel_;
std::string bizData_;
std::string merchant_;
std::string appVersion_;
std::string deviceToken_;
std::string certifyId_;
std::string webUmidToken_;
std::string outerOrderNo_;
std::string produceNode_;
std::string uaToken_;
std::string productName_;
std::string certifyPrincipal_;
std::string metaInfo_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICEREQUEST_H_

View File

@@ -1,73 +0,0 @@
/*
* 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_INITDEVICERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITDEVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitDeviceResult : public ServiceResult
{
public:
struct ResultObject
{
std::string retMessageSub;
std::string certifyId;
std::string message;
std::string extParams;
std::string accessKeySecret;
std::string fileName;
std::string ossEndPoint;
std::string securityToken;
std::string bucketName;
std::string presignedUrl;
std::string retCode;
std::string fileNamePrefix;
std::string accessKeyId;
std::string retCodeSub;
std::string protocol;
};
InitDeviceResult();
explicit InitDeviceResult(const std::string &payload);
~InitDeviceResult();
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_INITDEVICERESULT_H_

View File

@@ -63,6 +63,8 @@ namespace AlibabaCloud
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;
@@ -75,6 +77,8 @@ namespace AlibabaCloud
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_;
@@ -91,12 +95,14 @@ namespace AlibabaCloud
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_;
};
}

View File

@@ -37,14 +37,8 @@ namespace AlibabaCloud
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 getIp()const;
void setIp(const std::string& ip);
std::string getMobile()const;
void setMobile(const std::string& mobile);
std::string getDeviceToken()const;
void setDeviceToken(const std::string& deviceToken);
std::string getUserId()const;
@@ -55,29 +49,35 @@ namespace AlibabaCloud
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 getModel()const;
void setModel(const std::string& model);
std::string getCrop()const;
void setCrop(const std::string& crop);
private:
std::string productCode_;
std::string ossObjectName_;
std::string faceContrastPicture_;
std::string ip_;
std::string mobile_;
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 model_;
std::string crop_;
};

View File

@@ -1,60 +0,0 @@
/*
* 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_UPDATEAPPPACKAGEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateAppPackageRequest : public RpcServiceRequest
{
public:
UpdateAppPackageRequest();
~UpdateAppPackageRequest();
bool getDebug()const;
void setDebug(bool debug);
std::string getPlatform()const;
void setPlatform(const std::string& platform);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getPackageUrl()const;
void setPackageUrl(const std::string& packageUrl);
long getId()const;
void setId(long id);
private:
bool debug_;
std::string platform_;
std::string sourceIp_;
std::string packageUrl_;
long id_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGEREQUEST_H_

View File

@@ -1,51 +0,0 @@
/*
* 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_UPDATEAPPPACKAGERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateAppPackageResult : public ServiceResult
{
public:
UpdateAppPackageResult();
explicit UpdateAppPackageResult(const std::string &payload);
~UpdateAppPackageResult();
std::string getTaskId()const;
protected:
void parse(const std::string &payload);
private:
std::string taskId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEAPPPACKAGERESULT_H_

View File

@@ -1,57 +0,0 @@
/*
* 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_UPDATEFACECONFIGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigRequest : public RpcServiceRequest
{
public:
UpdateFaceConfigRequest();
~UpdateFaceConfigRequest();
std::string getBizName()const;
void setBizName(const std::string& bizName);
std::string getBizType()const;
void setBizType(const std::string& bizType);
std::string getSourceIp()const;
void setSourceIp(const std::string& sourceIp);
std::string getLang()const;
void setLang(const std::string& lang);
private:
std::string bizName_;
std::string bizType_;
std::string sourceIp_;
std::string lang_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGREQUEST_H_

View File

@@ -1,49 +0,0 @@
/*
* 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_UPDATEFACECONFIGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateFaceConfigResult : public ServiceResult
{
public:
UpdateFaceConfigResult();
explicit UpdateFaceConfigResult(const std::string &payload);
~UpdateFaceConfigResult();
protected:
void parse(const std::string &payload);
private:
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEFACECONFIGRESULT_H_

View File

@@ -1,66 +0,0 @@
/*
* 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_UPDATEVERIFYSETTINGREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEVERIFYSETTINGREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateVerifySettingRequest : public RpcServiceRequest
{
public:
UpdateVerifySettingRequest();
~UpdateVerifySettingRequest();
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_UPDATEVERIFYSETTINGREQUEST_H_

View File

@@ -1,57 +0,0 @@
/*
* 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_UPDATEVERIFYSETTINGRESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEVERIFYSETTINGRESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT UpdateVerifySettingResult : public ServiceResult
{
public:
UpdateVerifySettingResult();
explicit UpdateVerifySettingResult(const std::string &payload);
~UpdateVerifySettingResult();
std::vector<std::string> getStepList()const;
std::string getBizType()const;
std::string getBizName()const;
std::string getSolution()const;
protected:
void parse(const std::string &payload);
private:
std::vector<std::string> stepList_;
std::string bizType_;
std::string bizName_;
std::string solution_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_UPDATEVERIFYSETTINGRESULT_H_

View File

@@ -1,60 +0,0 @@
/*
* 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_VERIFYDEVICEREQUEST_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_
#include <string>
#include <vector>
#include <alibabacloud/core/RpcServiceRequest.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyDeviceRequest : public RpcServiceRequest
{
public:
VerifyDeviceRequest();
~VerifyDeviceRequest();
std::string getExtInfo()const;
void setExtInfo(const std::string& extInfo);
std::string getCertifyData()const;
void setCertifyData(const std::string& certifyData);
std::string getAppVersion()const;
void setAppVersion(const std::string& appVersion);
std::string getDeviceToken()const;
void setDeviceToken(const std::string& deviceToken);
std::string getCertifyId()const;
void setCertifyId(const std::string& certifyId);
private:
std::string extInfo_;
std::string certifyData_;
std::string appVersion_;
std::string deviceToken_;
std::string certifyId_;
};
}
}
}
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICEREQUEST_H_

View File

@@ -1,64 +0,0 @@
/*
* 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_VERIFYDEVICERESULT_H_
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYDEVICERESULT_H_
#include <string>
#include <vector>
#include <utility>
#include <alibabacloud/core/ServiceResult.h>
#include <alibabacloud/cloudauth/CloudauthExport.h>
namespace AlibabaCloud
{
namespace Cloudauth
{
namespace Model
{
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyDeviceResult : public ServiceResult
{
public:
struct ResultObject
{
std::string validationRetCode;
std::string productRetCode;
std::string retMessageSub;
std::string extParams;
std::string retCodeSub;
std::string hasNext;
};
VerifyDeviceResult();
explicit VerifyDeviceResult(const std::string &payload);
~VerifyDeviceResult();
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_VERIFYDEVICERESULT_H_

View File

@@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
{
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
{
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
}
CloudauthClient::~CloudauthClient()
@@ -195,114 +195,6 @@ CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCall
return task->get_future();
}
CloudauthClient::CreateFaceConfigOutcome CloudauthClient::createFaceConfig(const CreateFaceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateFaceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateFaceConfigOutcome(CreateFaceConfigResult(outcome.result()));
else
return CreateFaceConfigOutcome(outcome.error());
}
void CloudauthClient::createFaceConfigAsync(const CreateFaceConfigRequest& request, const CreateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createFaceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateFaceConfigOutcomeCallable CloudauthClient::createFaceConfigCallable(const CreateFaceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateFaceConfigOutcome()>>(
[this, request]()
{
return this->createFaceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateRPSDKOutcome CloudauthClient::createRPSDK(const CreateRPSDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateRPSDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateRPSDKOutcome(CreateRPSDKResult(outcome.result()));
else
return CreateRPSDKOutcome(outcome.error());
}
void CloudauthClient::createRPSDKAsync(const CreateRPSDKRequest& request, const CreateRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createRPSDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateRPSDKOutcomeCallable CloudauthClient::createRPSDKCallable(const CreateRPSDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateRPSDKOutcome()>>(
[this, request]()
{
return this->createRPSDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateVerifySDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
else
return CreateVerifySDKOutcome(outcome.error());
}
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createVerifySDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
[this, request]()
{
return this->createVerifySDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateVerifySettingOutcome CloudauthClient::createVerifySetting(const CreateVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -339,186 +231,6 @@ CloudauthClient::CreateVerifySettingOutcomeCallable CloudauthClient::createVerif
return task->get_future();
}
CloudauthClient::CreateWhitelistOutcome CloudauthClient::createWhitelist(const CreateWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWhitelistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWhitelistOutcome(CreateWhitelistResult(outcome.result()));
else
return CreateWhitelistOutcome(outcome.error());
}
void CloudauthClient::createWhitelistAsync(const CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWhitelist(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateWhitelistOutcomeCallable CloudauthClient::createWhitelistCallable(const CreateWhitelistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWhitelistOutcome()>>(
[this, request]()
{
return this->createWhitelist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::CreateWhitelistSettingOutcome CloudauthClient::createWhitelistSetting(const CreateWhitelistSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateWhitelistSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateWhitelistSettingOutcome(CreateWhitelistSettingResult(outcome.result()));
else
return CreateWhitelistSettingOutcome(outcome.error());
}
void CloudauthClient::createWhitelistSettingAsync(const CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createWhitelistSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::CreateWhitelistSettingOutcomeCallable CloudauthClient::createWhitelistSettingCallable(const CreateWhitelistSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateWhitelistSettingOutcome()>>(
[this, request]()
{
return this->createWhitelistSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DeleteWhitelistOutcome CloudauthClient::deleteWhitelist(const DeleteWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteWhitelistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteWhitelistOutcome(DeleteWhitelistResult(outcome.result()));
else
return DeleteWhitelistOutcome(outcome.error());
}
void CloudauthClient::deleteWhitelistAsync(const DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteWhitelist(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DeleteWhitelistOutcomeCallable CloudauthClient::deleteWhitelistCallable(const DeleteWhitelistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteWhitelistOutcome()>>(
[this, request]()
{
return this->deleteWhitelist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DeleteWhitelistSettingOutcome CloudauthClient::deleteWhitelistSetting(const DeleteWhitelistSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteWhitelistSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteWhitelistSettingOutcome(DeleteWhitelistSettingResult(outcome.result()));
else
return DeleteWhitelistSettingOutcome(outcome.error());
}
void CloudauthClient::deleteWhitelistSettingAsync(const DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteWhitelistSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DeleteWhitelistSettingOutcomeCallable CloudauthClient::deleteWhitelistSettingCallable(const DeleteWhitelistSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteWhitelistSettingOutcome()>>(
[this, request]()
{
return this->deleteWhitelistSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeAppInfoOutcome CloudauthClient::describeAppInfo(const DescribeAppInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeAppInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeAppInfoOutcome(DescribeAppInfoResult(outcome.result()));
else
return DescribeAppInfoOutcome(outcome.error());
}
void CloudauthClient::describeAppInfoAsync(const DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeAppInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeAppInfoOutcomeCallable CloudauthClient::describeAppInfoCallable(const DescribeAppInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeAppInfoOutcome()>>(
[this, request]()
{
return this->describeAppInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -555,78 +267,6 @@ CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDevi
return task->get_future();
}
CloudauthClient::DescribeFaceConfigOutcome CloudauthClient::describeFaceConfig(const DescribeFaceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeFaceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeFaceConfigOutcome(DescribeFaceConfigResult(outcome.result()));
else
return DescribeFaceConfigOutcome(outcome.error());
}
void CloudauthClient::describeFaceConfigAsync(const DescribeFaceConfigRequest& request, const DescribeFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeFaceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeFaceConfigOutcomeCallable CloudauthClient::describeFaceConfigCallable(const DescribeFaceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeFaceConfigOutcome()>>(
[this, request]()
{
return this->describeFaceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeFaceUsageOutcome CloudauthClient::describeFaceUsage(const DescribeFaceUsageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeFaceUsageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeFaceUsageOutcome(DescribeFaceUsageResult(outcome.result()));
else
return DescribeFaceUsageOutcome(outcome.error());
}
void CloudauthClient::describeFaceUsageAsync(const DescribeFaceUsageRequest& request, const DescribeFaceUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeFaceUsage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeFaceUsageOutcomeCallable CloudauthClient::describeFaceUsageCallable(const DescribeFaceUsageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeFaceUsageOutcome()>>(
[this, request]()
{
return this->describeFaceUsage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeFaceVerifyOutcome CloudauthClient::describeFaceVerify(const DescribeFaceVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -699,222 +339,6 @@ CloudauthClient::DescribeOssUploadTokenOutcomeCallable CloudauthClient::describe
return task->get_future();
}
CloudauthClient::DescribeRPSDKOutcome CloudauthClient::describeRPSDK(const DescribeRPSDKRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeRPSDKOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeRPSDKOutcome(DescribeRPSDKResult(outcome.result()));
else
return DescribeRPSDKOutcome(outcome.error());
}
void CloudauthClient::describeRPSDKAsync(const DescribeRPSDKRequest& request, const DescribeRPSDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeRPSDK(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeRPSDKOutcomeCallable CloudauthClient::describeRPSDKCallable(const DescribeRPSDKRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeRPSDKOutcome()>>(
[this, request]()
{
return this->describeRPSDK(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeSdkUrlOutcome CloudauthClient::describeSdkUrl(const DescribeSdkUrlRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeSdkUrlOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeSdkUrlOutcome(DescribeSdkUrlResult(outcome.result()));
else
return DescribeSdkUrlOutcome(outcome.error());
}
void CloudauthClient::describeSdkUrlAsync(const DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeSdkUrl(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeSdkUrlOutcomeCallable CloudauthClient::describeSdkUrlCallable(const DescribeSdkUrlRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeSdkUrlOutcome()>>(
[this, request]()
{
return this->describeSdkUrl(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUpdatePackageResultOutcome CloudauthClient::describeUpdatePackageResult(const DescribeUpdatePackageResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUpdatePackageResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUpdatePackageResultOutcome(DescribeUpdatePackageResultResult(outcome.result()));
else
return DescribeUpdatePackageResultOutcome(outcome.error());
}
void CloudauthClient::describeUpdatePackageResultAsync(const DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUpdatePackageResult(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUpdatePackageResultOutcomeCallable CloudauthClient::describeUpdatePackageResultCallable(const DescribeUpdatePackageResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUpdatePackageResultOutcome()>>(
[this, request]()
{
return this->describeUpdatePackageResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUploadInfoOutcome CloudauthClient::describeUploadInfo(const DescribeUploadInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUploadInfoOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUploadInfoOutcome(DescribeUploadInfoResult(outcome.result()));
else
return DescribeUploadInfoOutcome(outcome.error());
}
void CloudauthClient::describeUploadInfoAsync(const DescribeUploadInfoRequest& request, const DescribeUploadInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUploadInfo(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUploadInfoOutcomeCallable CloudauthClient::describeUploadInfoCallable(const DescribeUploadInfoRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUploadInfoOutcome()>>(
[this, request]()
{
return this->describeUploadInfo(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeUserStatusOutcome CloudauthClient::describeUserStatus(const DescribeUserStatusRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeUserStatusOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeUserStatusOutcome(DescribeUserStatusResult(outcome.result()));
else
return DescribeUserStatusOutcome(outcome.error());
}
void CloudauthClient::describeUserStatusAsync(const DescribeUserStatusRequest& request, const DescribeUserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeUserStatus(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeUserStatusOutcomeCallable CloudauthClient::describeUserStatusCallable(const DescribeUserStatusRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeUserStatusOutcome()>>(
[this, request]()
{
return this->describeUserStatus(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifyRecordsOutcome CloudauthClient::describeVerifyRecords(const DescribeVerifyRecordsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifyRecordsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifyRecordsOutcome(DescribeVerifyRecordsResult(outcome.result()));
else
return DescribeVerifyRecordsOutcome(outcome.error());
}
void CloudauthClient::describeVerifyRecordsAsync(const DescribeVerifyRecordsRequest& request, const DescribeVerifyRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifyRecords(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifyRecordsOutcomeCallable CloudauthClient::describeVerifyRecordsCallable(const DescribeVerifyRecordsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifyRecordsOutcome()>>(
[this, request]()
{
return this->describeVerifyRecords(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifyResultOutcome CloudauthClient::describeVerifyResult(const DescribeVerifyResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -987,42 +411,6 @@ CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerif
return task->get_future();
}
CloudauthClient::DescribeVerifySettingOutcome CloudauthClient::describeVerifySetting(const DescribeVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifySettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifySettingOutcome(DescribeVerifySettingResult(outcome.result()));
else
return DescribeVerifySettingOutcome(outcome.error());
}
void CloudauthClient::describeVerifySettingAsync(const DescribeVerifySettingRequest& request, const DescribeVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifySetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifySettingOutcomeCallable CloudauthClient::describeVerifySettingCallable(const DescribeVerifySettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifySettingOutcome()>>(
[this, request]()
{
return this->describeVerifySetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeVerifyTokenOutcome CloudauthClient::describeVerifyToken(const DescribeVerifyTokenRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1059,114 +447,6 @@ CloudauthClient::DescribeVerifyTokenOutcomeCallable CloudauthClient::describeVer
return task->get_future();
}
CloudauthClient::DescribeVerifyUsageOutcome CloudauthClient::describeVerifyUsage(const DescribeVerifyUsageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVerifyUsageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVerifyUsageOutcome(DescribeVerifyUsageResult(outcome.result()));
else
return DescribeVerifyUsageOutcome(outcome.error());
}
void CloudauthClient::describeVerifyUsageAsync(const DescribeVerifyUsageRequest& request, const DescribeVerifyUsageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVerifyUsage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeVerifyUsageOutcomeCallable CloudauthClient::describeVerifyUsageCallable(const DescribeVerifyUsageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVerifyUsageOutcome()>>(
[this, request]()
{
return this->describeVerifyUsage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeWhitelistOutcome CloudauthClient::describeWhitelist(const DescribeWhitelistRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeWhitelistOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeWhitelistOutcome(DescribeWhitelistResult(outcome.result()));
else
return DescribeWhitelistOutcome(outcome.error());
}
void CloudauthClient::describeWhitelistAsync(const DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeWhitelist(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeWhitelistOutcomeCallable CloudauthClient::describeWhitelistCallable(const DescribeWhitelistRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeWhitelistOutcome()>>(
[this, request]()
{
return this->describeWhitelist(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DescribeWhitelistSettingOutcome CloudauthClient::describeWhitelistSetting(const DescribeWhitelistSettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeWhitelistSettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeWhitelistSettingOutcome(DescribeWhitelistSettingResult(outcome.result()));
else
return DescribeWhitelistSettingOutcome(outcome.error());
}
void CloudauthClient::describeWhitelistSettingAsync(const DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeWhitelistSetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::DescribeWhitelistSettingOutcomeCallable CloudauthClient::describeWhitelistSettingCallable(const DescribeWhitelistSettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeWhitelistSettingOutcome()>>(
[this, request]()
{
return this->describeWhitelistSetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1203,42 +483,6 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
return task->get_future();
}
CloudauthClient::InitDeviceOutcome CloudauthClient::initDevice(const InitDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return InitDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return InitDeviceOutcome(InitDeviceResult(outcome.result()));
else
return InitDeviceOutcome(outcome.error());
}
void CloudauthClient::initDeviceAsync(const InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, initDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::InitDeviceOutcomeCallable CloudauthClient::initDeviceCallable(const InitDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<InitDeviceOutcome()>>(
[this, request]()
{
return this->initDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::InitFaceVerifyOutcome CloudauthClient::initFaceVerify(const InitFaceVerifyRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1347,150 +591,6 @@ CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceIn
return task->get_future();
}
CloudauthClient::UpdateAppPackageOutcome CloudauthClient::updateAppPackage(const UpdateAppPackageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateAppPackageOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateAppPackageOutcome(UpdateAppPackageResult(outcome.result()));
else
return UpdateAppPackageOutcome(outcome.error());
}
void CloudauthClient::updateAppPackageAsync(const UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateAppPackage(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateAppPackageOutcomeCallable CloudauthClient::updateAppPackageCallable(const UpdateAppPackageRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateAppPackageOutcome()>>(
[this, request]()
{
return this->updateAppPackage(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::UpdateFaceConfigOutcome CloudauthClient::updateFaceConfig(const UpdateFaceConfigRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateFaceConfigOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateFaceConfigOutcome(UpdateFaceConfigResult(outcome.result()));
else
return UpdateFaceConfigOutcome(outcome.error());
}
void CloudauthClient::updateFaceConfigAsync(const UpdateFaceConfigRequest& request, const UpdateFaceConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateFaceConfig(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateFaceConfigOutcomeCallable CloudauthClient::updateFaceConfigCallable(const UpdateFaceConfigRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateFaceConfigOutcome()>>(
[this, request]()
{
return this->updateFaceConfig(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateVerifySettingOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateVerifySettingOutcome(UpdateVerifySettingResult(outcome.result()));
else
return UpdateVerifySettingOutcome(outcome.error());
}
void CloudauthClient::updateVerifySettingAsync(const UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateVerifySetting(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::UpdateVerifySettingOutcomeCallable CloudauthClient::updateVerifySettingCallable(const UpdateVerifySettingRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateVerifySettingOutcome()>>(
[this, request]()
{
return this->updateVerifySetting(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::VerifyDeviceOutcome CloudauthClient::verifyDevice(const VerifyDeviceRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return VerifyDeviceOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return VerifyDeviceOutcome(VerifyDeviceResult(outcome.result()));
else
return VerifyDeviceOutcome(outcome.error());
}
void CloudauthClient::verifyDeviceAsync(const VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, verifyDevice(request), context);
};
asyncExecute(new Runnable(fn));
}
CloudauthClient::VerifyDeviceOutcomeCallable CloudauthClient::verifyDeviceCallable(const VerifyDeviceRequest &request) const
{
auto task = std::make_shared<std::packaged_task<VerifyDeviceOutcome()>>(
[this, request]()
{
return this->verifyDevice(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
CloudauthClient::VerifyMaterialOutcome CloudauthClient::verifyMaterial(const VerifyMaterialRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -27,17 +27,6 @@ CompareFaceVerifyRequest::CompareFaceVerifyRequest() :
CompareFaceVerifyRequest::~CompareFaceVerifyRequest()
{}
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
{
return targetFaceContrastPictureUrl_;
}
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
{
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
}
std::string CompareFaceVerifyRequest::getProductCode()const
{
return productCode_;
@@ -60,17 +49,6 @@ void CompareFaceVerifyRequest::setTargetCertifyId(const std::string& targetCerti
setBodyParameter("TargetCertifyId", targetCertifyId);
}
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
{
return sourceOssObjectName_;
}
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
{
sourceOssObjectName_ = sourceOssObjectName;
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
}
std::string CompareFaceVerifyRequest::getTargetFaceContrastPicture()const
{
return targetFaceContrastPicture_;
@@ -93,17 +71,6 @@ void CompareFaceVerifyRequest::setTargetOssBucketName(const std::string& targetO
setBodyParameter("TargetOssBucketName", targetOssBucketName);
}
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
{
return sourceOssBucketName_;
}
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
{
sourceOssBucketName_ = sourceOssBucketName;
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
}
std::string CompareFaceVerifyRequest::getOuterOrderNo()const
{
return outerOrderNo_;
@@ -115,17 +82,6 @@ void CompareFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
setBodyParameter("OuterOrderNo", outerOrderNo);
}
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
{
return targetOssObjectName_;
}
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
{
targetOssObjectName_ = targetOssObjectName;
setBodyParameter("TargetOssObjectName", targetOssObjectName);
}
std::string CompareFaceVerifyRequest::getSourceFaceContrastPicture()const
{
return sourceFaceContrastPicture_;
@@ -137,6 +93,61 @@ void CompareFaceVerifyRequest::setSourceFaceContrastPicture(const std::string& s
setBodyParameter("SourceFaceContrastPicture", sourceFaceContrastPicture);
}
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
{
return sourceCertifyId_;
}
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
{
sourceCertifyId_ = sourceCertifyId;
setBodyParameter("SourceCertifyId", sourceCertifyId);
}
std::string CompareFaceVerifyRequest::getTargetFaceContrastPictureUrl()const
{
return targetFaceContrastPictureUrl_;
}
void CompareFaceVerifyRequest::setTargetFaceContrastPictureUrl(const std::string& targetFaceContrastPictureUrl)
{
targetFaceContrastPictureUrl_ = targetFaceContrastPictureUrl;
setBodyParameter("TargetFaceContrastPictureUrl", targetFaceContrastPictureUrl);
}
std::string CompareFaceVerifyRequest::getSourceOssObjectName()const
{
return sourceOssObjectName_;
}
void CompareFaceVerifyRequest::setSourceOssObjectName(const std::string& sourceOssObjectName)
{
sourceOssObjectName_ = sourceOssObjectName;
setBodyParameter("SourceOssObjectName", sourceOssObjectName);
}
std::string CompareFaceVerifyRequest::getSourceOssBucketName()const
{
return sourceOssBucketName_;
}
void CompareFaceVerifyRequest::setSourceOssBucketName(const std::string& sourceOssBucketName)
{
sourceOssBucketName_ = sourceOssBucketName;
setBodyParameter("SourceOssBucketName", sourceOssBucketName);
}
std::string CompareFaceVerifyRequest::getTargetOssObjectName()const
{
return targetOssObjectName_;
}
void CompareFaceVerifyRequest::setTargetOssObjectName(const std::string& targetOssObjectName)
{
targetOssObjectName_ = targetOssObjectName;
setBodyParameter("TargetOssObjectName", targetOssObjectName);
}
long CompareFaceVerifyRequest::getSceneId()const
{
return sceneId_;
@@ -159,17 +170,6 @@ void CompareFaceVerifyRequest::setSourceFaceContrastPictureUrl(const std::string
setBodyParameter("SourceFaceContrastPictureUrl", sourceFaceContrastPictureUrl);
}
std::string CompareFaceVerifyRequest::getSourceCertifyId()const
{
return sourceCertifyId_;
}
void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCertifyId)
{
sourceCertifyId_ = sourceCertifyId;
setBodyParameter("SourceCertifyId", sourceCertifyId);
}
std::string CompareFaceVerifyRequest::getCrop()const
{
return crop_;

View File

@@ -44,12 +44,12 @@ void CompareFacesResult::parse(const std::string &payload)
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
if(!dataNode["ConfidenceThresholds"].isNull())
data_.confidenceThresholds = dataNode["ConfidenceThresholds"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateFaceConfigRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateFaceConfigRequest;
CreateFaceConfigRequest::CreateFaceConfigRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateFaceConfig")
{
setMethod(HttpRequest::Method::Post);
}
CreateFaceConfigRequest::~CreateFaceConfigRequest()
{}
std::string CreateFaceConfigRequest::getBizName()const
{
return bizName_;
}
void CreateFaceConfigRequest::setBizName(const std::string& bizName)
{
bizName_ = bizName;
setParameter("BizName", bizName);
}
std::string CreateFaceConfigRequest::getBizType()const
{
return bizType_;
}
void CreateFaceConfigRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string CreateFaceConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateFaceConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateFaceConfigRequest::getLang()const
{
return lang_;
}
void CreateFaceConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateRPSDKRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateRPSDKRequest;
CreateRPSDKRequest::CreateRPSDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateRPSDK")
{
setMethod(HttpRequest::Method::Post);
}
CreateRPSDKRequest::~CreateRPSDKRequest()
{}
std::string CreateRPSDKRequest::getAppUrl()const
{
return appUrl_;
}
void CreateRPSDKRequest::setAppUrl(const std::string& appUrl)
{
appUrl_ = appUrl;
setParameter("AppUrl", appUrl);
}
std::string CreateRPSDKRequest::getPlatform()const
{
return platform_;
}
void CreateRPSDKRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string CreateRPSDKRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateRPSDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateRPSDKRequest::getLang()const
{
return lang_;
}
void CreateRPSDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateVerifySDKRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
CreateVerifySDKRequest::CreateVerifySDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySDK")
{
setMethod(HttpRequest::Method::Post);
}
CreateVerifySDKRequest::~CreateVerifySDKRequest()
{}
std::string CreateVerifySDKRequest::getAppUrl()const
{
return appUrl_;
}
void CreateVerifySDKRequest::setAppUrl(const std::string& appUrl)
{
appUrl_ = appUrl;
setParameter("AppUrl", appUrl);
}
std::string CreateVerifySDKRequest::getPlatform()const
{
return platform_;
}
void CreateVerifySDKRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string CreateVerifySDKRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateVerifySDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateVerifySDKRequest::getLang()const
{
return lang_;
}
void CreateVerifySDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateWhitelistRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateWhitelistRequest;
CreateWhitelistRequest::CreateWhitelistRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
CreateWhitelistRequest::~CreateWhitelistRequest()
{}
std::string CreateWhitelistRequest::getValidDay()const
{
return validDay_;
}
void CreateWhitelistRequest::setValidDay(const std::string& validDay)
{
validDay_ = validDay;
setParameter("ValidDay", validDay);
}
std::string CreateWhitelistRequest::getBizType()const
{
return bizType_;
}
void CreateWhitelistRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string CreateWhitelistRequest::getIdCardNum()const
{
return idCardNum_;
}
void CreateWhitelistRequest::setIdCardNum(const std::string& idCardNum)
{
idCardNum_ = idCardNum;
setParameter("IdCardNum", idCardNum);
}
std::string CreateWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateWhitelistRequest::getBizId()const
{
return bizId_;
}
void CreateWhitelistRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}
std::string CreateWhitelistRequest::getLang()const
{
return lang_;
}
void CreateWhitelistRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -1,106 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h>
using AlibabaCloud::Cloudauth::Model::CreateWhitelistSettingRequest;
CreateWhitelistSettingRequest::CreateWhitelistSettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelistSetting")
{
setMethod(HttpRequest::Method::Post);
}
CreateWhitelistSettingRequest::~CreateWhitelistSettingRequest()
{}
std::string CreateWhitelistSettingRequest::getCertifyId()const
{
return certifyId_;
}
void CreateWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}
std::string CreateWhitelistSettingRequest::getCertNo()const
{
return certNo_;
}
void CreateWhitelistSettingRequest::setCertNo(const std::string& certNo)
{
certNo_ = certNo;
setParameter("CertNo", certNo);
}
std::string CreateWhitelistSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void CreateWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string CreateWhitelistSettingRequest::getLang()const
{
return lang_;
}
void CreateWhitelistSettingRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int CreateWhitelistSettingRequest::getValidDay()const
{
return validDay_;
}
void CreateWhitelistSettingRequest::setValidDay(int validDay)
{
validDay_ = validDay;
setParameter("ValidDay", std::to_string(validDay));
}
std::string CreateWhitelistSettingRequest::getServiceCode()const
{
return serviceCode_;
}
void CreateWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
long CreateWhitelistSettingRequest::getSceneId()const
{
return sceneId_;
}
void CreateWhitelistSettingRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DeleteWhitelistRequest.h>
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistRequest;
DeleteWhitelistRequest::DeleteWhitelistRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWhitelistRequest::~DeleteWhitelistRequest()
{}
std::string DeleteWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteWhitelistRequest::getIds()const
{
return ids_;
}
void DeleteWhitelistRequest::setIds(const std::string& ids)
{
ids_ = ids;
setParameter("Ids", ids);
}
std::string DeleteWhitelistRequest::getLang()const
{
return lang_;
}
void DeleteWhitelistRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h>
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistSettingRequest;
DeleteWhitelistSettingRequest::DeleteWhitelistSettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelistSetting")
{
setMethod(HttpRequest::Method::Post);
}
DeleteWhitelistSettingRequest::~DeleteWhitelistSettingRequest()
{}
std::string DeleteWhitelistSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DeleteWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DeleteWhitelistSettingRequest::getLang()const
{
return lang_;
}
void DeleteWhitelistSettingRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DeleteWhitelistSettingRequest::getServiceCode()const
{
return serviceCode_;
}
void DeleteWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
std::string DeleteWhitelistSettingRequest::getIds()const
{
return ids_;
}
void DeleteWhitelistSettingRequest::setIds(const std::string& ids)
{
ids_ = ids;
setParameter("Ids", ids);
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeAppInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeAppInfoRequest;
DescribeAppInfoRequest::DescribeAppInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeAppInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAppInfoRequest::~DescribeAppInfoRequest()
{}
int DescribeAppInfoRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeAppInfoRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeAppInfoRequest::getPlatform()const
{
return platform_;
}
void DescribeAppInfoRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string DescribeAppInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeAppInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeAppInfoRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAppInfoRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -1,96 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeAppInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeAppInfoResult::DescribeAppInfoResult() :
ServiceResult()
{}
DescribeAppInfoResult::DescribeAppInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAppInfoResult::~DescribeAppInfoResult()
{}
void DescribeAppInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppInfoListNode = value["AppInfoList"]["AppInfo"];
for (auto valueAppInfoListAppInfo : allAppInfoListNode)
{
AppInfo appInfoListObject;
if(!valueAppInfoListAppInfo["Id"].isNull())
appInfoListObject.id = std::stol(valueAppInfoListAppInfo["Id"].asString());
if(!valueAppInfoListAppInfo["Name"].isNull())
appInfoListObject.name = valueAppInfoListAppInfo["Name"].asString();
if(!valueAppInfoListAppInfo["PackageName"].isNull())
appInfoListObject.packageName = valueAppInfoListAppInfo["PackageName"].asString();
if(!valueAppInfoListAppInfo["Icon"].isNull())
appInfoListObject.icon = valueAppInfoListAppInfo["Icon"].asString();
if(!valueAppInfoListAppInfo["StartDate"].isNull())
appInfoListObject.startDate = valueAppInfoListAppInfo["StartDate"].asString();
if(!valueAppInfoListAppInfo["EndDate"].isNull())
appInfoListObject.endDate = valueAppInfoListAppInfo["EndDate"].asString();
if(!valueAppInfoListAppInfo["Type"].isNull())
appInfoListObject.type = std::stoi(valueAppInfoListAppInfo["Type"].asString());
auto packageInfoNode = value["PackageInfo"];
if(!packageInfoNode["Version"].isNull())
appInfoListObject.packageInfo.version = packageInfoNode["Version"].asString();
auto debugPackageInfoNode = value["DebugPackageInfo"];
if(!debugPackageInfoNode["Version"].isNull())
appInfoListObject.debugPackageInfo.version = debugPackageInfoNode["Version"].asString();
appInfoList_.push_back(appInfoListObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeAppInfoResult::getTotalCount()const
{
return totalCount_;
}
int DescribeAppInfoResult::getPageSize()const
{
return pageSize_;
}
int DescribeAppInfoResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeAppInfoResult::AppInfo> DescribeAppInfoResult::getAppInfoList()const
{
return appInfoList_;
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeFaceConfigRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeFaceConfigRequest;
DescribeFaceConfigRequest::DescribeFaceConfigRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceConfig")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFaceConfigRequest::~DescribeFaceConfigRequest()
{}
std::string DescribeFaceConfigRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeFaceConfigRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeFaceConfigRequest::getLang()const
{
return lang_;
}
void DescribeFaceConfigRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}

View File

@@ -1,61 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeFaceConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeFaceConfigResult::DescribeFaceConfigResult() :
ServiceResult()
{}
DescribeFaceConfigResult::DescribeFaceConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFaceConfigResult::~DescribeFaceConfigResult()
{}
void DescribeFaceConfigResult::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["BizType"].isNull())
itemsObject.bizType = valueItemsItemsItem["BizType"].asString();
if(!valueItemsItemsItem["BizName"].isNull())
itemsObject.bizName = valueItemsItemsItem["BizName"].asString();
if(!valueItemsItemsItem["GmtUpdated"].isNull())
itemsObject.gmtUpdated = std::stol(valueItemsItemsItem["GmtUpdated"].asString());
items_.push_back(itemsObject);
}
}
std::vector<DescribeFaceConfigResult::ItemsItem> DescribeFaceConfigResult::getItems()const
{
return items_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeFaceUsageRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeFaceUsageRequest;
DescribeFaceUsageRequest::DescribeFaceUsageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeFaceUsage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeFaceUsageRequest::~DescribeFaceUsageRequest()
{}
std::string DescribeFaceUsageRequest::getStartDate()const
{
return startDate_;
}
void DescribeFaceUsageRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeFaceUsageRequest::getEndDate()const
{
return endDate_;
}
void DescribeFaceUsageRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeFaceUsageRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeFaceUsageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -1,66 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeFaceUsageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeFaceUsageResult::DescribeFaceUsageResult() :
ServiceResult()
{}
DescribeFaceUsageResult::DescribeFaceUsageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeFaceUsageResult::~DescribeFaceUsageResult()
{}
void DescribeFaceUsageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFaceUsageListNode = value["FaceUsageList"]["FaceUsage"];
for (auto valueFaceUsageListFaceUsage : allFaceUsageListNode)
{
FaceUsage faceUsageListObject;
if(!valueFaceUsageListFaceUsage["Date"].isNull())
faceUsageListObject.date = valueFaceUsageListFaceUsage["Date"].asString();
if(!valueFaceUsageListFaceUsage["TotalCount"].isNull())
faceUsageListObject.totalCount = std::stol(valueFaceUsageListFaceUsage["TotalCount"].asString());
faceUsageList_.push_back(faceUsageListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
int DescribeFaceUsageResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeFaceUsageResult::FaceUsage> DescribeFaceUsageResult::getFaceUsageList()const
{
return faceUsageList_;
}

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeRPSDKRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeRPSDKRequest;
DescribeRPSDKRequest::DescribeRPSDKRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeRPSDK")
{
setMethod(HttpRequest::Method::Post);
}
DescribeRPSDKRequest::~DescribeRPSDKRequest()
{}
std::string DescribeRPSDKRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeRPSDKRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeRPSDKRequest::getLang()const
{
return lang_;
}
void DescribeRPSDKRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
std::string DescribeRPSDKRequest::getTaskId()const
{
return taskId_;
}
void DescribeRPSDKRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

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

View File

@@ -1,62 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeSdkUrlRequest;
DescribeSdkUrlRequest::DescribeSdkUrlRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeSdkUrl")
{
setMethod(HttpRequest::Method::Post);
}
DescribeSdkUrlRequest::~DescribeSdkUrlRequest()
{}
bool DescribeSdkUrlRequest::getDebug()const
{
return debug_;
}
void DescribeSdkUrlRequest::setDebug(bool debug)
{
debug_ = debug;
setParameter("Debug", debug ? "true" : "false");
}
std::string DescribeSdkUrlRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeSdkUrlRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
long DescribeSdkUrlRequest::getId()const
{
return id_;
}
void DescribeSdkUrlRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeUpdatePackageResultRequest;
DescribeUpdatePackageResultRequest::DescribeUpdatePackageResultRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUpdatePackageResult")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUpdatePackageResultRequest::~DescribeUpdatePackageResultRequest()
{}
std::string DescribeUpdatePackageResultRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUpdatePackageResultRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string DescribeUpdatePackageResultRequest::getTaskId()const
{
return taskId_;
}
void DescribeUpdatePackageResultRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeUpdatePackageResultResult::DescribeUpdatePackageResultResult() :
ServiceResult()
{}
DescribeUpdatePackageResultResult::DescribeUpdatePackageResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUpdatePackageResultResult::~DescribeUpdatePackageResultResult()
{}
void DescribeUpdatePackageResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto appInfoNode = value["AppInfo"];
if(!appInfoNode["Id"].isNull())
appInfo_.id = std::stol(appInfoNode["Id"].asString());
if(!appInfoNode["Name"].isNull())
appInfo_.name = appInfoNode["Name"].asString();
if(!appInfoNode["PackageName"].isNull())
appInfo_.packageName = appInfoNode["PackageName"].asString();
if(!appInfoNode["Icon"].isNull())
appInfo_.icon = appInfoNode["Icon"].asString();
if(!appInfoNode["StartDate"].isNull())
appInfo_.startDate = appInfoNode["StartDate"].asString();
if(!appInfoNode["EndDate"].isNull())
appInfo_.endDate = appInfoNode["EndDate"].asString();
if(!appInfoNode["Type"].isNull())
appInfo_.type = std::stoi(appInfoNode["Type"].asString());
auto packageInfoNode = appInfoNode["PackageInfo"];
if(!packageInfoNode["Version"].isNull())
appInfo_.packageInfo.version = packageInfoNode["Version"].asString();
auto debugPackageInfoNode = appInfoNode["DebugPackageInfo"];
if(!debugPackageInfoNode["Version"].isNull())
appInfo_.debugPackageInfo.version = debugPackageInfoNode["Version"].asString();
}
DescribeUpdatePackageResultResult::AppInfo DescribeUpdatePackageResultResult::getAppInfo()const
{
return appInfo_;
}

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeUploadInfoRequest;
DescribeUploadInfoRequest::DescribeUploadInfoRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeUploadInfo")
{
setMethod(HttpRequest::Method::Post);
}
DescribeUploadInfoRequest::~DescribeUploadInfoRequest()
{}
std::string DescribeUploadInfoRequest::getBiz()const
{
return biz_;
}
void DescribeUploadInfoRequest::setBiz(const std::string& biz)
{
biz_ = biz;
setParameter("Biz", biz);
}
std::string DescribeUploadInfoRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeUploadInfoRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -1,86 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeUploadInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeUploadInfoResult::DescribeUploadInfoResult() :
ServiceResult()
{}
DescribeUploadInfoResult::DescribeUploadInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeUploadInfoResult::~DescribeUploadInfoResult()
{}
void DescribeUploadInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Accessid"].isNull())
accessid_ = value["Accessid"].asString();
if(!value["Policy"].isNull())
policy_ = value["Policy"].asString();
if(!value["Signature"].isNull())
signature_ = value["Signature"].asString();
if(!value["Folder"].isNull())
folder_ = value["Folder"].asString();
if(!value["Host"].isNull())
host_ = value["Host"].asString();
if(!value["Expire"].isNull())
expire_ = std::stol(value["Expire"].asString());
}
std::string DescribeUploadInfoResult::getPolicy()const
{
return policy_;
}
long DescribeUploadInfoResult::getExpire()const
{
return expire_;
}
std::string DescribeUploadInfoResult::getAccessid()const
{
return accessid_;
}
std::string DescribeUploadInfoResult::getSignature()const
{
return signature_;
}
std::string DescribeUploadInfoResult::getHost()const
{
return host_;
}
std::string DescribeUploadInfoResult::getFolder()const
{
return folder_;
}

View File

@@ -1,150 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyRecordsRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifyRecordsRequest;
DescribeVerifyRecordsRequest::DescribeVerifyRecordsRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyRecords")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifyRecordsRequest::~DescribeVerifyRecordsRequest()
{}
std::string DescribeVerifyRecordsRequest::getStatusList()const
{
return statusList_;
}
void DescribeVerifyRecordsRequest::setStatusList(const std::string& statusList)
{
statusList_ = statusList;
setParameter("StatusList", statusList);
}
std::string DescribeVerifyRecordsRequest::getStartDate()const
{
return startDate_;
}
void DescribeVerifyRecordsRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeVerifyRecordsRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifyRecordsRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeVerifyRecordsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeVerifyRecordsRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
int DescribeVerifyRecordsRequest::getTotalCount()const
{
return totalCount_;
}
void DescribeVerifyRecordsRequest::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
setParameter("TotalCount", std::to_string(totalCount));
}
int DescribeVerifyRecordsRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeVerifyRecordsRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeVerifyRecordsRequest::getQueryId()const
{
return queryId_;
}
void DescribeVerifyRecordsRequest::setQueryId(const std::string& queryId)
{
queryId_ = queryId;
setParameter("QueryId", queryId);
}
std::string DescribeVerifyRecordsRequest::getBizType()const
{
return bizType_;
}
void DescribeVerifyRecordsRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string DescribeVerifyRecordsRequest::getIdCardNum()const
{
return idCardNum_;
}
void DescribeVerifyRecordsRequest::setIdCardNum(const std::string& idCardNum)
{
idCardNum_ = idCardNum;
setParameter("IdCardNum", idCardNum);
}
std::string DescribeVerifyRecordsRequest::getEndDate()const
{
return endDate_;
}
void DescribeVerifyRecordsRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeVerifyRecordsRequest::getBizId()const
{
return bizId_;
}
void DescribeVerifyRecordsRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}

View File

@@ -1,129 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyRecordsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeVerifyRecordsResult::DescribeVerifyRecordsResult() :
ServiceResult()
{}
DescribeVerifyRecordsResult::DescribeVerifyRecordsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifyRecordsResult::~DescribeVerifyRecordsResult()
{}
void DescribeVerifyRecordsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allRecordsListNode = value["RecordsList"]["Records"];
for (auto valueRecordsListRecords : allRecordsListNode)
{
Records recordsListObject;
if(!valueRecordsListRecords["BizType"].isNull())
recordsListObject.bizType = valueRecordsListRecords["BizType"].asString();
if(!valueRecordsListRecords["BizId"].isNull())
recordsListObject.bizId = valueRecordsListRecords["BizId"].asString();
if(!valueRecordsListRecords["DataStats"].isNull())
recordsListObject.dataStats = valueRecordsListRecords["DataStats"].asString();
if(!valueRecordsListRecords["VerifyId"].isNull())
recordsListObject.verifyId = valueRecordsListRecords["VerifyId"].asString();
if(!valueRecordsListRecords["FinishTime"].isNull())
recordsListObject.finishTime = std::stol(valueRecordsListRecords["FinishTime"].asString());
if(!valueRecordsListRecords["Status"].isNull())
recordsListObject.status = std::stoi(valueRecordsListRecords["Status"].asString());
if(!valueRecordsListRecords["IdCardFaceComparisonScore"].isNull())
recordsListObject.idCardFaceComparisonScore = std::stof(valueRecordsListRecords["IdCardFaceComparisonScore"].asString());
if(!valueRecordsListRecords["AuthorityComparisonScore"].isNull())
recordsListObject.authorityComparisonScore = std::stof(valueRecordsListRecords["AuthorityComparisonScore"].asString());
auto materialNode = value["Material"];
if(!materialNode["FaceImageUrl"].isNull())
recordsListObject.material.faceImageUrl = materialNode["FaceImageUrl"].asString();
if(!materialNode["IdCardName"].isNull())
recordsListObject.material.idCardName = materialNode["IdCardName"].asString();
if(!materialNode["IdCardNumber"].isNull())
recordsListObject.material.idCardNumber = materialNode["IdCardNumber"].asString();
auto idCardInfoNode = materialNode["IdCardInfo"];
if(!idCardInfoNode["FrontImageUrl"].isNull())
recordsListObject.material.idCardInfo.frontImageUrl = idCardInfoNode["FrontImageUrl"].asString();
if(!idCardInfoNode["BackImageUrl"].isNull())
recordsListObject.material.idCardInfo.backImageUrl = idCardInfoNode["BackImageUrl"].asString();
if(!idCardInfoNode["Name"].isNull())
recordsListObject.material.idCardInfo.name = idCardInfoNode["Name"].asString();
if(!idCardInfoNode["Number"].isNull())
recordsListObject.material.idCardInfo.number = idCardInfoNode["Number"].asString();
if(!idCardInfoNode["Address"].isNull())
recordsListObject.material.idCardInfo.address = idCardInfoNode["Address"].asString();
if(!idCardInfoNode["Birth"].isNull())
recordsListObject.material.idCardInfo.birth = idCardInfoNode["Birth"].asString();
if(!idCardInfoNode["Sex"].isNull())
recordsListObject.material.idCardInfo.sex = idCardInfoNode["Sex"].asString();
if(!idCardInfoNode["Nationality"].isNull())
recordsListObject.material.idCardInfo.nationality = idCardInfoNode["Nationality"].asString();
if(!idCardInfoNode["Authority"].isNull())
recordsListObject.material.idCardInfo.authority = idCardInfoNode["Authority"].asString();
if(!idCardInfoNode["StartDate"].isNull())
recordsListObject.material.idCardInfo.startDate = idCardInfoNode["StartDate"].asString();
if(!idCardInfoNode["EndDate"].isNull())
recordsListObject.material.idCardInfo.endDate = idCardInfoNode["EndDate"].asString();
recordsList_.push_back(recordsListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["QueryId"].isNull())
queryId_ = value["QueryId"].asString();
}
int DescribeVerifyRecordsResult::getTotalCount()const
{
return totalCount_;
}
int DescribeVerifyRecordsResult::getPageSize()const
{
return pageSize_;
}
int DescribeVerifyRecordsResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeVerifyRecordsResult::Records> DescribeVerifyRecordsResult::getRecordsList()const
{
return recordsList_;
}
std::string DescribeVerifyRecordsResult::getQueryId()const
{
return queryId_;
}

View File

@@ -40,48 +40,48 @@ void DescribeVerifyResultResult::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() == "true";
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(!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();
auto allVideoUrls = materialNode["VideoUrls"]["VideoUrl"];
for (auto value : allVideoUrls)
material_.videoUrls.push_back(value.asString());
if(!value["VerifyStatus"].isNull())
verifyStatus_ = std::stoi(value["VerifyStatus"].asString());
if(!value["AuthorityComparisionScore"].isNull())
authorityComparisionScore_ = std::stof(value["AuthorityComparisionScore"].asString());
if(!value["VerifyStatus"].isNull())
verifyStatus_ = std::stoi(value["VerifyStatus"].asString());
if(!value["FaceComparisonScore"].isNull())
faceComparisonScore_ = std::stof(value["FaceComparisonScore"].asString());
if(!value["IdCardFaceComparisonScore"].isNull())

View File

@@ -1,40 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifySettingRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifySettingRequest;
DescribeVerifySettingRequest::DescribeVerifySettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySetting")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifySettingRequest::~DescribeVerifySettingRequest()
{}
std::string DescribeVerifySettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifySettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -1,64 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifySettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeVerifySettingResult::DescribeVerifySettingResult() :
ServiceResult()
{}
DescribeVerifySettingResult::DescribeVerifySettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifySettingResult::~DescribeVerifySettingResult()
{}
void DescribeVerifySettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVerifySettingListNode = value["VerifySettingList"]["VerifySetting"];
for (auto valueVerifySettingListVerifySetting : allVerifySettingListNode)
{
VerifySetting verifySettingListObject;
if(!valueVerifySettingListVerifySetting["BizType"].isNull())
verifySettingListObject.bizType = valueVerifySettingListVerifySetting["BizType"].asString();
if(!valueVerifySettingListVerifySetting["BizName"].isNull())
verifySettingListObject.bizName = valueVerifySettingListVerifySetting["BizName"].asString();
if(!valueVerifySettingListVerifySetting["Solution"].isNull())
verifySettingListObject.solution = valueVerifySettingListVerifySetting["Solution"].asString();
auto allStepList = value["StepList"]["Step"];
for (auto value : allStepList)
verifySettingListObject.stepList.push_back(value.asString());
verifySettingList_.push_back(verifySettingListObject);
}
}
std::vector<DescribeVerifySettingResult::VerifySetting> DescribeVerifySettingResult::getVerifySettingList()const
{
return verifySettingList_;
}

View File

@@ -1,73 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyUsageRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeVerifyUsageRequest;
DescribeVerifyUsageRequest::DescribeVerifyUsageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifyUsage")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVerifyUsageRequest::~DescribeVerifyUsageRequest()
{}
std::string DescribeVerifyUsageRequest::getStartDate()const
{
return startDate_;
}
void DescribeVerifyUsageRequest::setStartDate(const std::string& startDate)
{
startDate_ = startDate;
setParameter("StartDate", startDate);
}
std::string DescribeVerifyUsageRequest::getBizType()const
{
return bizType_;
}
void DescribeVerifyUsageRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string DescribeVerifyUsageRequest::getEndDate()const
{
return endDate_;
}
void DescribeVerifyUsageRequest::setEndDate(const std::string& endDate)
{
endDate_ = endDate;
setParameter("EndDate", endDate);
}
std::string DescribeVerifyUsageRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeVerifyUsageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeVerifyUsageResult::DescribeVerifyUsageResult() :
ServiceResult()
{}
DescribeVerifyUsageResult::DescribeVerifyUsageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVerifyUsageResult::~DescribeVerifyUsageResult()
{}
void DescribeVerifyUsageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allVerifyUsageListNode = value["VerifyUsageList"]["VerifyUsage"];
for (auto valueVerifyUsageListVerifyUsage : allVerifyUsageListNode)
{
VerifyUsage verifyUsageListObject;
if(!valueVerifyUsageListVerifyUsage["BizType"].isNull())
verifyUsageListObject.bizType = valueVerifyUsageListVerifyUsage["BizType"].asString();
if(!valueVerifyUsageListVerifyUsage["Date"].isNull())
verifyUsageListObject.date = valueVerifyUsageListVerifyUsage["Date"].asString();
if(!valueVerifyUsageListVerifyUsage["TotalCount"].isNull())
verifyUsageListObject.totalCount = std::stol(valueVerifyUsageListVerifyUsage["TotalCount"].asString());
if(!valueVerifyUsageListVerifyUsage["PassCount"].isNull())
verifyUsageListObject.passCount = std::stol(valueVerifyUsageListVerifyUsage["PassCount"].asString());
if(!valueVerifyUsageListVerifyUsage["FailCount"].isNull())
verifyUsageListObject.failCount = std::stol(valueVerifyUsageListVerifyUsage["FailCount"].asString());
verifyUsageList_.push_back(verifyUsageListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
}
std::vector<DescribeVerifyUsageResult::VerifyUsage> DescribeVerifyUsageResult::getVerifyUsageList()const
{
return verifyUsageList_;
}
int DescribeVerifyUsageResult::getTotalCount()const
{
return totalCount_;
}

View File

@@ -1,139 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeWhitelistRequest;
DescribeWhitelistRequest::DescribeWhitelistRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeWhitelist")
{
setMethod(HttpRequest::Method::Post);
}
DescribeWhitelistRequest::~DescribeWhitelistRequest()
{}
std::string DescribeWhitelistRequest::getValidEndDate()const
{
return validEndDate_;
}
void DescribeWhitelistRequest::setValidEndDate(const std::string& validEndDate)
{
validEndDate_ = validEndDate;
setParameter("ValidEndDate", validEndDate);
}
std::string DescribeWhitelistRequest::getValid()const
{
return valid_;
}
void DescribeWhitelistRequest::setValid(const std::string& valid)
{
valid_ = valid;
setParameter("Valid", valid);
}
std::string DescribeWhitelistRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeWhitelistRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeWhitelistRequest::getPageSize()const
{
return pageSize_;
}
void DescribeWhitelistRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeWhitelistRequest::getLang()const
{
return lang_;
}
void DescribeWhitelistRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeWhitelistRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeWhitelistRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeWhitelistRequest::getBizType()const
{
return bizType_;
}
void DescribeWhitelistRequest::setBizType(const std::string& bizType)
{
bizType_ = bizType;
setParameter("BizType", bizType);
}
std::string DescribeWhitelistRequest::getIdCardNum()const
{
return idCardNum_;
}
void DescribeWhitelistRequest::setIdCardNum(const std::string& idCardNum)
{
idCardNum_ = idCardNum;
setParameter("IdCardNum", idCardNum);
}
std::string DescribeWhitelistRequest::getBizId()const
{
return bizId_;
}
void DescribeWhitelistRequest::setBizId(const std::string& bizId)
{
bizId_ = bizId;
setParameter("BizId", bizId);
}
std::string DescribeWhitelistRequest::getValidStartDate()const
{
return validStartDate_;
}
void DescribeWhitelistRequest::setValidStartDate(const std::string& validStartDate)
{
validStartDate_ = validStartDate;
setParameter("ValidStartDate", validStartDate);
}

View File

@@ -1,96 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeWhitelistResult::DescribeWhitelistResult() :
ServiceResult()
{}
DescribeWhitelistResult::DescribeWhitelistResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhitelistResult::~DescribeWhitelistResult()
{}
void DescribeWhitelistResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItemsNode = value["Items"]["Item"];
for (auto valueItemsItem : allItemsNode)
{
Item itemsObject;
if(!valueItemsItem["Id"].isNull())
itemsObject.id = std::stol(valueItemsItem["Id"].asString());
if(!valueItemsItem["Uid"].isNull())
itemsObject.uid = std::stol(valueItemsItem["Uid"].asString());
if(!valueItemsItem["BizType"].isNull())
itemsObject.bizType = valueItemsItem["BizType"].asString();
if(!valueItemsItem["StartDate"].isNull())
itemsObject.startDate = std::stol(valueItemsItem["StartDate"].asString());
if(!valueItemsItem["EndDate"].isNull())
itemsObject.endDate = std::stol(valueItemsItem["EndDate"].asString());
if(!valueItemsItem["IdCardNum"].isNull())
itemsObject.idCardNum = valueItemsItem["IdCardNum"].asString();
if(!valueItemsItem["BizId"].isNull())
itemsObject.bizId = valueItemsItem["BizId"].asString();
if(!valueItemsItem["Valid"].isNull())
itemsObject.valid = std::stoi(valueItemsItem["Valid"].asString());
if(!valueItemsItem["GmtCreate"].isNull())
itemsObject.gmtCreate = std::stol(valueItemsItem["GmtCreate"].asString());
if(!valueItemsItem["GmtModified"].isNull())
itemsObject.gmtModified = std::stol(valueItemsItem["GmtModified"].asString());
items_.push_back(itemsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeWhitelistResult::getTotalCount()const
{
return totalCount_;
}
int DescribeWhitelistResult::getPageSize()const
{
return pageSize_;
}
int DescribeWhitelistResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeWhitelistResult::Item> DescribeWhitelistResult::getItems()const
{
return items_;
}

View File

@@ -1,150 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistSettingRequest.h>
using AlibabaCloud::Cloudauth::Model::DescribeWhitelistSettingRequest;
DescribeWhitelistSettingRequest::DescribeWhitelistSettingRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeWhitelistSetting")
{
setMethod(HttpRequest::Method::Post);
}
DescribeWhitelistSettingRequest::~DescribeWhitelistSettingRequest()
{}
long DescribeWhitelistSettingRequest::getValidEndDate()const
{
return validEndDate_;
}
void DescribeWhitelistSettingRequest::setValidEndDate(long validEndDate)
{
validEndDate_ = validEndDate;
setParameter("ValidEndDate", std::to_string(validEndDate));
}
std::string DescribeWhitelistSettingRequest::getCertifyId()const
{
return certifyId_;
}
void DescribeWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}
std::string DescribeWhitelistSettingRequest::getCertNo()const
{
return certNo_;
}
void DescribeWhitelistSettingRequest::setCertNo(const std::string& certNo)
{
certNo_ = certNo;
setParameter("CertNo", certNo);
}
std::string DescribeWhitelistSettingRequest::getSourceIp()const
{
return sourceIp_;
}
void DescribeWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
int DescribeWhitelistSettingRequest::getPageSize()const
{
return pageSize_;
}
void DescribeWhitelistSettingRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeWhitelistSettingRequest::getLang()const
{
return lang_;
}
void DescribeWhitelistSettingRequest::setLang(const std::string& lang)
{
lang_ = lang;
setParameter("Lang", lang);
}
int DescribeWhitelistSettingRequest::getCurrentPage()const
{
return currentPage_;
}
void DescribeWhitelistSettingRequest::setCurrentPage(int currentPage)
{
currentPage_ = currentPage;
setParameter("CurrentPage", std::to_string(currentPage));
}
std::string DescribeWhitelistSettingRequest::getServiceCode()const
{
return serviceCode_;
}
void DescribeWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
{
serviceCode_ = serviceCode;
setParameter("ServiceCode", serviceCode);
}
long DescribeWhitelistSettingRequest::getSceneId()const
{
return sceneId_;
}
void DescribeWhitelistSettingRequest::setSceneId(long sceneId)
{
sceneId_ = sceneId;
setParameter("SceneId", std::to_string(sceneId));
}
long DescribeWhitelistSettingRequest::getValidStartDate()const
{
return validStartDate_;
}
void DescribeWhitelistSettingRequest::setValidStartDate(long validStartDate)
{
validStartDate_ = validStartDate;
setParameter("ValidStartDate", std::to_string(validStartDate));
}
std::string DescribeWhitelistSettingRequest::getStatus()const
{
return status_;
}
void DescribeWhitelistSettingRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -1,94 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/DescribeWhitelistSettingResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
DescribeWhitelistSettingResult::DescribeWhitelistSettingResult() :
ServiceResult()
{}
DescribeWhitelistSettingResult::DescribeWhitelistSettingResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeWhitelistSettingResult::~DescribeWhitelistSettingResult()
{}
void DescribeWhitelistSettingResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allItemsNode = value["Items"]["Item"];
for (auto valueItemsItem : allItemsNode)
{
Item itemsObject;
if(!valueItemsItem["Id"].isNull())
itemsObject.id = std::stol(valueItemsItem["Id"].asString());
if(!valueItemsItem["SceneId"].isNull())
itemsObject.sceneId = std::stol(valueItemsItem["SceneId"].asString());
if(!valueItemsItem["ValidStartDate"].isNull())
itemsObject.validStartDate = valueItemsItem["ValidStartDate"].asString();
if(!valueItemsItem["ValidEndDate"].isNull())
itemsObject.validEndDate = valueItemsItem["ValidEndDate"].asString();
if(!valueItemsItem["CertNo"].isNull())
itemsObject.certNo = valueItemsItem["CertNo"].asString();
if(!valueItemsItem["CertifyId"].isNull())
itemsObject.certifyId = valueItemsItem["CertifyId"].asString();
if(!valueItemsItem["Status"].isNull())
itemsObject.status = valueItemsItem["Status"].asString();
if(!valueItemsItem["GmtCreate"].isNull())
itemsObject.gmtCreate = valueItemsItem["GmtCreate"].asString();
if(!valueItemsItem["GmtModified"].isNull())
itemsObject.gmtModified = valueItemsItem["GmtModified"].asString();
items_.push_back(itemsObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
if(!value["CurrentPage"].isNull())
currentPage_ = std::stoi(value["CurrentPage"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
}
int DescribeWhitelistSettingResult::getTotalCount()const
{
return totalCount_;
}
int DescribeWhitelistSettingResult::getPageSize()const
{
return pageSize_;
}
int DescribeWhitelistSettingResult::getCurrentPage()const
{
return currentPage_;
}
std::vector<DescribeWhitelistSettingResult::Item> DescribeWhitelistSettingResult::getItems()const
{
return items_;
}

View File

@@ -40,45 +40,45 @@ void DetectFaceAttributesResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
if(!dataNode["ImgWidth"].isNull())
data_.imgWidth = std::stoi(dataNode["ImgWidth"].asString());
if(!dataNode["ImgHeight"].isNull())
data_.imgHeight = std::stoi(dataNode["ImgHeight"].asString());
if(!dataNode["ImgWidth"].isNull())
data_.imgWidth = std::stoi(dataNode["ImgWidth"].asString());
auto allFaceInfosNode = dataNode["FaceInfos"]["FaceAttributesDetectInfo"];
for (auto dataNodeFaceInfosFaceAttributesDetectInfo : allFaceInfosNode)
{
Data::FaceAttributesDetectInfo faceAttributesDetectInfoObject;
auto faceRectNode = value["FaceRect"];
if(!faceRectNode["Top"].isNull())
faceAttributesDetectInfoObject.faceRect.top = std::stoi(faceRectNode["Top"].asString());
if(!faceRectNode["Left"].isNull())
faceAttributesDetectInfoObject.faceRect.left = std::stoi(faceRectNode["Left"].asString());
if(!faceRectNode["Top"].isNull())
faceAttributesDetectInfoObject.faceRect.top = std::stoi(faceRectNode["Top"].asString());
if(!faceRectNode["Width"].isNull())
faceAttributesDetectInfoObject.faceRect.width = std::stoi(faceRectNode["Width"].asString());
if(!faceRectNode["Height"].isNull())
faceAttributesDetectInfoObject.faceRect.height = std::stoi(faceRectNode["Height"].asString());
auto faceAttributesNode = value["FaceAttributes"];
if(!faceAttributesNode["Age"].isNull())
faceAttributesDetectInfoObject.faceAttributes.age = std::stoi(faceAttributesNode["Age"].asString());
if(!faceAttributesNode["Glasses"].isNull())
faceAttributesDetectInfoObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
if(!faceAttributesNode["Facetype"].isNull())
faceAttributesDetectInfoObject.faceAttributes.facetype = faceAttributesNode["Facetype"].asString();
if(!faceAttributesNode["Blur"].isNull())
faceAttributesDetectInfoObject.faceAttributes.blur = std::stof(faceAttributesNode["Blur"].asString());
if(!faceAttributesNode["Facequal"].isNull())
faceAttributesDetectInfoObject.faceAttributes.facequal = std::stof(faceAttributesNode["Facequal"].asString());
if(!faceAttributesNode["Integrity"].isNull())
faceAttributesDetectInfoObject.faceAttributes.integrity = std::stoi(faceAttributesNode["Integrity"].asString());
if(!faceAttributesNode["Facetype"].isNull())
faceAttributesDetectInfoObject.faceAttributes.facetype = faceAttributesNode["Facetype"].asString();
if(!faceAttributesNode["Respirator"].isNull())
faceAttributesDetectInfoObject.faceAttributes.respirator = faceAttributesNode["Respirator"].asString();
if(!faceAttributesNode["AppearanceScore"].isNull())
faceAttributesDetectInfoObject.faceAttributes.appearanceScore = std::stof(faceAttributesNode["AppearanceScore"].asString());
if(!faceAttributesNode["Age"].isNull())
faceAttributesDetectInfoObject.faceAttributes.age = std::stoi(faceAttributesNode["Age"].asString());
if(!faceAttributesNode["Blur"].isNull())
faceAttributesDetectInfoObject.faceAttributes.blur = std::stof(faceAttributesNode["Blur"].asString());
auto genderNode = faceAttributesNode["Gender"];
if(!genderNode["Score"].isNull())
faceAttributesDetectInfoObject.faceAttributes.gender.score = std::stof(genderNode["Score"].asString());
if(!genderNode["Value"].isNull())
faceAttributesDetectInfoObject.faceAttributes.gender.value = genderNode["Value"].asString();
if(!genderNode["Score"].isNull())
faceAttributesDetectInfoObject.faceAttributes.gender.score = std::stof(genderNode["Score"].asString());
auto smilingNode = faceAttributesNode["Smiling"];
if(!smilingNode["Value"].isNull())
faceAttributesDetectInfoObject.faceAttributes.smiling.value = std::stof(smilingNode["Value"].asString());
@@ -93,12 +93,12 @@ void DetectFaceAttributesResult::parse(const std::string &payload)
faceAttributesDetectInfoObject.faceAttributes.headpose.yawAngle = std::stof(headposeNode["YawAngle"].asString());
data_.faceInfos.push_back(faceAttributesDetectInfoObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -1,172 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/InitDeviceRequest.h>
using AlibabaCloud::Cloudauth::Model::InitDeviceRequest;
InitDeviceRequest::InitDeviceRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "InitDevice")
{
setMethod(HttpRequest::Method::Post);
}
InitDeviceRequest::~InitDeviceRequest()
{}
std::string InitDeviceRequest::getChannel()const
{
return channel_;
}
void InitDeviceRequest::setChannel(const std::string& channel)
{
channel_ = channel;
setParameter("Channel", channel);
}
std::string InitDeviceRequest::getBizData()const
{
return bizData_;
}
void InitDeviceRequest::setBizData(const std::string& bizData)
{
bizData_ = bizData;
setParameter("BizData", bizData);
}
std::string InitDeviceRequest::getMerchant()const
{
return merchant_;
}
void InitDeviceRequest::setMerchant(const std::string& merchant)
{
merchant_ = merchant;
setParameter("Merchant", merchant);
}
std::string InitDeviceRequest::getAppVersion()const
{
return appVersion_;
}
void InitDeviceRequest::setAppVersion(const std::string& appVersion)
{
appVersion_ = appVersion;
setParameter("AppVersion", appVersion);
}
std::string InitDeviceRequest::getDeviceToken()const
{
return deviceToken_;
}
void InitDeviceRequest::setDeviceToken(const std::string& deviceToken)
{
deviceToken_ = deviceToken;
setParameter("DeviceToken", deviceToken);
}
std::string InitDeviceRequest::getCertifyId()const
{
return certifyId_;
}
void InitDeviceRequest::setCertifyId(const std::string& certifyId)
{
certifyId_ = certifyId;
setParameter("CertifyId", certifyId);
}
std::string InitDeviceRequest::getWebUmidToken()const
{
return webUmidToken_;
}
void InitDeviceRequest::setWebUmidToken(const std::string& webUmidToken)
{
webUmidToken_ = webUmidToken;
setBodyParameter("WebUmidToken", webUmidToken);
}
std::string InitDeviceRequest::getOuterOrderNo()const
{
return outerOrderNo_;
}
void InitDeviceRequest::setOuterOrderNo(const std::string& outerOrderNo)
{
outerOrderNo_ = outerOrderNo;
setParameter("OuterOrderNo", outerOrderNo);
}
std::string InitDeviceRequest::getProduceNode()const
{
return produceNode_;
}
void InitDeviceRequest::setProduceNode(const std::string& produceNode)
{
produceNode_ = produceNode;
setParameter("ProduceNode", produceNode);
}
std::string InitDeviceRequest::getUaToken()const
{
return uaToken_;
}
void InitDeviceRequest::setUaToken(const std::string& uaToken)
{
uaToken_ = uaToken;
setBodyParameter("UaToken", uaToken);
}
std::string InitDeviceRequest::getProductName()const
{
return productName_;
}
void InitDeviceRequest::setProductName(const std::string& productName)
{
productName_ = productName;
setParameter("ProductName", productName);
}
std::string InitDeviceRequest::getCertifyPrincipal()const
{
return certifyPrincipal_;
}
void InitDeviceRequest::setCertifyPrincipal(const std::string& certifyPrincipal)
{
certifyPrincipal_ = certifyPrincipal;
setParameter("CertifyPrincipal", certifyPrincipal);
}
std::string InitDeviceRequest::getMetaInfo()const
{
return metaInfo_;
}
void InitDeviceRequest::setMetaInfo(const std::string& metaInfo)
{
metaInfo_ = metaInfo;
setParameter("MetaInfo", metaInfo);
}

View File

@@ -1,94 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/InitDeviceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cloudauth;
using namespace AlibabaCloud::Cloudauth::Model;
InitDeviceResult::InitDeviceResult() :
ServiceResult()
{}
InitDeviceResult::InitDeviceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InitDeviceResult::~InitDeviceResult()
{}
void InitDeviceResult::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["CertifyId"].isNull())
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
if(!resultObjectNode["Protocol"].isNull())
resultObject_.protocol = resultObjectNode["Protocol"].asString();
if(!resultObjectNode["ExtParams"].isNull())
resultObject_.extParams = resultObjectNode["ExtParams"].asString();
if(!resultObjectNode["RetCode"].isNull())
resultObject_.retCode = resultObjectNode["RetCode"].asString();
if(!resultObjectNode["RetCodeSub"].isNull())
resultObject_.retCodeSub = resultObjectNode["RetCodeSub"].asString();
if(!resultObjectNode["RetMessageSub"].isNull())
resultObject_.retMessageSub = resultObjectNode["RetMessageSub"].asString();
if(!resultObjectNode["Message"].isNull())
resultObject_.message = resultObjectNode["Message"].asString();
if(!resultObjectNode["OssEndPoint"].isNull())
resultObject_.ossEndPoint = resultObjectNode["OssEndPoint"].asString();
if(!resultObjectNode["AccessKeyId"].isNull())
resultObject_.accessKeyId = resultObjectNode["AccessKeyId"].asString();
if(!resultObjectNode["AccessKeySecret"].isNull())
resultObject_.accessKeySecret = resultObjectNode["AccessKeySecret"].asString();
if(!resultObjectNode["SecurityToken"].isNull())
resultObject_.securityToken = resultObjectNode["SecurityToken"].asString();
if(!resultObjectNode["BucketName"].isNull())
resultObject_.bucketName = resultObjectNode["BucketName"].asString();
if(!resultObjectNode["FileNamePrefix"].isNull())
resultObject_.fileNamePrefix = resultObjectNode["FileNamePrefix"].asString();
if(!resultObjectNode["FileName"].isNull())
resultObject_.fileName = resultObjectNode["FileName"].asString();
if(!resultObjectNode["PresignedUrl"].isNull())
resultObject_.presignedUrl = resultObjectNode["PresignedUrl"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
}
InitDeviceResult::ResultObject InitDeviceResult::getResultObject()const
{
return resultObject_;
}
std::string InitDeviceResult::getMessage()const
{
return message_;
}
std::string InitDeviceResult::getCode()const
{
return code_;
}

View File

@@ -181,6 +181,17 @@ void InitFaceVerifyRequest::setMobile(const std::string& mobile)
setParameter("Mobile", mobile);
}
std::string InitFaceVerifyRequest::getAuthId()const
{
return authId_;
}
void InitFaceVerifyRequest::setAuthId(const std::string& authId)
{
authId_ = authId;
setBodyParameter("AuthId", authId);
}
long InitFaceVerifyRequest::getSceneId()const
{
return sceneId_;
@@ -247,3 +258,14 @@ void InitFaceVerifyRequest::setCrop(const std::string& crop)
setBodyParameter("Crop", crop);
}
std::string InitFaceVerifyRequest::getCertifyUrlType()const
{
return certifyUrlType_;
}
void InitFaceVerifyRequest::setCertifyUrlType(const std::string& certifyUrlType)
{
certifyUrlType_ = certifyUrlType;
setParameter("CertifyUrlType", certifyUrlType);
}

View File

@@ -38,17 +38,6 @@ void LivenessFaceVerifyRequest::setProductCode(const std::string& productCode)
setBodyParameter("ProductCode", productCode);
}
std::string LivenessFaceVerifyRequest::getOssObjectName()const
{
return ossObjectName_;
}
void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
{
ossObjectName_ = ossObjectName;
setBodyParameter("OssObjectName", ossObjectName);
}
std::string LivenessFaceVerifyRequest::getFaceContrastPicture()const
{
return faceContrastPicture_;
@@ -60,28 +49,6 @@ void LivenessFaceVerifyRequest::setFaceContrastPicture(const std::string& faceCo
setBodyParameter("FaceContrastPicture", faceContrastPicture);
}
std::string LivenessFaceVerifyRequest::getIp()const
{
return ip_;
}
void LivenessFaceVerifyRequest::setIp(const std::string& ip)
{
ip_ = ip;
setBodyParameter("Ip", ip);
}
std::string LivenessFaceVerifyRequest::getMobile()const
{
return mobile_;
}
void LivenessFaceVerifyRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setBodyParameter("Mobile", mobile);
}
std::string LivenessFaceVerifyRequest::getDeviceToken()const
{
return deviceToken_;
@@ -137,6 +104,50 @@ void LivenessFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& fac
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
}
std::string LivenessFaceVerifyRequest::getModel()const
{
return model_;
}
void LivenessFaceVerifyRequest::setModel(const std::string& model)
{
model_ = model;
setParameter("Model", model);
}
std::string LivenessFaceVerifyRequest::getOssObjectName()const
{
return ossObjectName_;
}
void LivenessFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
{
ossObjectName_ = ossObjectName;
setBodyParameter("OssObjectName", ossObjectName);
}
std::string LivenessFaceVerifyRequest::getIp()const
{
return ip_;
}
void LivenessFaceVerifyRequest::setIp(const std::string& ip)
{
ip_ = ip;
setBodyParameter("Ip", ip);
}
std::string LivenessFaceVerifyRequest::getMobile()const
{
return mobile_;
}
void LivenessFaceVerifyRequest::setMobile(const std::string& mobile)
{
mobile_ = mobile;
setBodyParameter("Mobile", mobile);
}
long LivenessFaceVerifyRequest::getSceneId()const
{
return sceneId_;
@@ -159,17 +170,6 @@ void LivenessFaceVerifyRequest::setOssBucketName(const std::string& ossBucketNam
setBodyParameter("OssBucketName", ossBucketName);
}
std::string LivenessFaceVerifyRequest::getModel()const
{
return model_;
}
void LivenessFaceVerifyRequest::setModel(const std::string& model)
{
model_ = model;
setParameter("Model", model);
}
std::string LivenessFaceVerifyRequest::getCrop()const
{
return crop_;

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/cloudauth/model/UpdateAppPackageRequest.h>
using AlibabaCloud::Cloudauth::Model::UpdateAppPackageRequest;
UpdateAppPackageRequest::UpdateAppPackageRequest() :
RpcServiceRequest("cloudauth", "2019-03-07", "UpdateAppPackage")
{
setMethod(HttpRequest::Method::Post);
}
UpdateAppPackageRequest::~UpdateAppPackageRequest()
{}
bool UpdateAppPackageRequest::getDebug()const
{
return debug_;
}
void UpdateAppPackageRequest::setDebug(bool debug)
{
debug_ = debug;
setParameter("Debug", debug ? "true" : "false");
}
std::string UpdateAppPackageRequest::getPlatform()const
{
return platform_;
}
void UpdateAppPackageRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
std::string UpdateAppPackageRequest::getSourceIp()const
{
return sourceIp_;
}
void UpdateAppPackageRequest::setSourceIp(const std::string& sourceIp)
{
sourceIp_ = sourceIp;
setParameter("SourceIp", sourceIp);
}
std::string UpdateAppPackageRequest::getPackageUrl()const
{
return packageUrl_;
}
void UpdateAppPackageRequest::setPackageUrl(const std::string& packageUrl)
{
packageUrl_ = packageUrl;
setParameter("PackageUrl", packageUrl);
}
long UpdateAppPackageRequest::getId()const
{
return id_;
}
void UpdateAppPackageRequest::setId(long id)
{
id_ = id;
setParameter("Id", std::to_string(id));
}

View File

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

Some files were not shown because too many files have changed in this diff Show More