Fix FaceContrastPicture.
This commit is contained in:
@@ -267,6 +267,42 @@ CloudauthClient::CreateVerifySettingOutcomeCallable CloudauthClient::createVerif
|
||||
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();
|
||||
@@ -447,6 +483,78 @@ CloudauthClient::DescribeRPSDKOutcomeCallable CloudauthClient::describeRPSDKCall
|
||||
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();
|
||||
@@ -879,6 +987,42 @@ 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::UpdateVerifySettingOutcome CloudauthClient::updateVerifySetting(const UpdateVerifySettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string ContrastFaceVerifyRequest::getProductCode()const
|
||||
void ContrastFaceVerifyRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
setBodyParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOssObjectName()const
|
||||
@@ -46,7 +46,7 @@ std::string ContrastFaceVerifyRequest::getOssObjectName()const
|
||||
void ContrastFaceVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setParameter("OssObjectName", ossObjectName);
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const
|
||||
@@ -57,7 +57,7 @@ std::string ContrastFaceVerifyRequest::getFaceContrastPicture()const
|
||||
void ContrastFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setParameter("FaceContrastPicture", faceContrastPicture);
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertName()const
|
||||
@@ -68,7 +68,7 @@ std::string ContrastFaceVerifyRequest::getCertName()const
|
||||
void ContrastFaceVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setParameter("CertName", certName);
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getIp()const
|
||||
@@ -79,7 +79,7 @@ std::string ContrastFaceVerifyRequest::getIp()const
|
||||
void ContrastFaceVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setParameter("Ip", ip);
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getMobile()const
|
||||
@@ -90,7 +90,7 @@ std::string ContrastFaceVerifyRequest::getMobile()const
|
||||
void ContrastFaceVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setParameter("Mobile", mobile);
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getDeviceToken()const
|
||||
@@ -101,7 +101,7 @@ std::string ContrastFaceVerifyRequest::getDeviceToken()const
|
||||
void ContrastFaceVerifyRequest::setDeviceToken(const std::string& deviceToken)
|
||||
{
|
||||
deviceToken_ = deviceToken;
|
||||
setParameter("DeviceToken", deviceToken);
|
||||
setBodyParameter("DeviceToken", deviceToken);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getUserId()const
|
||||
@@ -112,7 +112,7 @@ std::string ContrastFaceVerifyRequest::getUserId()const
|
||||
void ContrastFaceVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertifyId()const
|
||||
@@ -123,7 +123,7 @@ std::string ContrastFaceVerifyRequest::getCertifyId()const
|
||||
void ContrastFaceVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertNo()const
|
||||
@@ -134,7 +134,7 @@ std::string ContrastFaceVerifyRequest::getCertNo()const
|
||||
void ContrastFaceVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setParameter("CertNo", certNo);
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOuterOrderNo()const
|
||||
@@ -145,7 +145,7 @@ std::string ContrastFaceVerifyRequest::getOuterOrderNo()const
|
||||
void ContrastFaceVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setParameter("OuterOrderNo", outerOrderNo);
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCertType()const
|
||||
@@ -156,7 +156,7 @@ std::string ContrastFaceVerifyRequest::getCertType()const
|
||||
void ContrastFaceVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setParameter("CertType", certType);
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl()const
|
||||
@@ -167,7 +167,7 @@ std::string ContrastFaceVerifyRequest::getFaceContrastPictureUrl()const
|
||||
void ContrastFaceVerifyRequest::setFaceContrastPictureUrl(const std::string& faceContrastPictureUrl)
|
||||
{
|
||||
faceContrastPictureUrl_ = faceContrastPictureUrl;
|
||||
setParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
setBodyParameter("FaceContrastPictureUrl", faceContrastPictureUrl);
|
||||
}
|
||||
|
||||
long ContrastFaceVerifyRequest::getSceneId()const
|
||||
@@ -178,7 +178,7 @@ long ContrastFaceVerifyRequest::getSceneId()const
|
||||
void ContrastFaceVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getOssBucketName()const
|
||||
@@ -189,6 +189,6 @@ std::string ContrastFaceVerifyRequest::getOssBucketName()const
|
||||
void ContrastFaceVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setParameter("OssBucketName", ossBucketName);
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
|
||||
73
cloudauth/src/model/DescribeAppInfoRequest.cc
Normal file
73
cloudauth/src/model/DescribeAppInfoRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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));
|
||||
}
|
||||
|
||||
96
cloudauth/src/model/DescribeAppInfoResult.cc
Normal file
96
cloudauth/src/model/DescribeAppInfoResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_;
|
||||
}
|
||||
|
||||
62
cloudauth/src/model/DescribeSdkUrlRequest.cc
Normal file
62
cloudauth/src/model/DescribeSdkUrlRequest.cc
Normal 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/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));
|
||||
}
|
||||
|
||||
51
cloudauth/src/model/DescribeSdkUrlResult.cc
Normal file
51
cloudauth/src/model/DescribeSdkUrlResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_;
|
||||
}
|
||||
|
||||
51
cloudauth/src/model/DescribeUpdatePackageResultRequest.cc
Normal file
51
cloudauth/src/model/DescribeUpdatePackageResultRequest.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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);
|
||||
}
|
||||
|
||||
70
cloudauth/src/model/DescribeUpdatePackageResultResult.cc
Normal file
70
cloudauth/src/model/DescribeUpdatePackageResultResult.cc
Normal file
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <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_;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeUploadInfoRequest::DescribeUploadInfoRequest() :
|
||||
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_;
|
||||
|
||||
@@ -46,7 +46,7 @@ std::string InitFaceVerifyRequest::getFaceContrastPicture()const
|
||||
void InitFaceVerifyRequest::setFaceContrastPicture(const std::string& faceContrastPicture)
|
||||
{
|
||||
faceContrastPicture_ = faceContrastPicture;
|
||||
setParameter("FaceContrastPicture", faceContrastPicture);
|
||||
setBodyParameter("FaceContrastPicture", faceContrastPicture);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getUserId()const
|
||||
|
||||
84
cloudauth/src/model/UpdateAppPackageRequest.cc
Normal file
84
cloudauth/src/model/UpdateAppPackageRequest.cc
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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));
|
||||
}
|
||||
|
||||
51
cloudauth/src/model/UpdateAppPackageResult.cc
Normal file
51
cloudauth/src/model/UpdateAppPackageResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#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_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user