Compare commits
4 Commits
Emr-patch
...
videoenhan
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3387ef3a68 | ||
|
|
b1f19958a7 | ||
|
|
c5062df7f5 | ||
|
|
f9b117f5a6 |
12
CHANGELOG
12
CHANGELOG
@@ -1,3 +1,15 @@
|
||||
2020-12-28 Version: patch
|
||||
- Release InterpolateVideoFrame ToneSdrVideo ConvertHdrVideo.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Release GenRealPersonVerificationToken GetRealPersonVerificationResult.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Add CommodityCode For QueryOrderAPI.
|
||||
|
||||
2020-12-28 Version: patch
|
||||
- Add some console API operations.
|
||||
|
||||
2020-12-25 Version: patch
|
||||
- Generated 2016-04-08 for `Emr`.
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionDetailsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountTransactionsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
||||
@@ -190,6 +192,8 @@ set(bssopenapi_src
|
||||
src/model/QueryAccountBalanceResult.cc
|
||||
src/model/QueryAccountBillRequest.cc
|
||||
src/model/QueryAccountBillResult.cc
|
||||
src/model/QueryAccountTransactionDetailsRequest.cc
|
||||
src/model/QueryAccountTransactionDetailsResult.cc
|
||||
src/model/QueryAccountTransactionsRequest.cc
|
||||
src/model/QueryAccountTransactionsResult.cc
|
||||
src/model/QueryAvailableInstancesRequest.cc
|
||||
|
||||
@@ -70,6 +70,8 @@
|
||||
#include "model/QueryAccountBalanceResult.h"
|
||||
#include "model/QueryAccountBillRequest.h"
|
||||
#include "model/QueryAccountBillResult.h"
|
||||
#include "model/QueryAccountTransactionDetailsRequest.h"
|
||||
#include "model/QueryAccountTransactionDetailsResult.h"
|
||||
#include "model/QueryAccountTransactionsRequest.h"
|
||||
#include "model/QueryAccountTransactionsResult.h"
|
||||
#include "model/QueryAvailableInstancesRequest.h"
|
||||
@@ -221,6 +223,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryAccountBillResult> QueryAccountBillOutcome;
|
||||
typedef std::future<QueryAccountBillOutcome> QueryAccountBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBillRequest&, const QueryAccountBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountTransactionDetailsResult> QueryAccountTransactionDetailsOutcome;
|
||||
typedef std::future<QueryAccountTransactionDetailsOutcome> QueryAccountTransactionDetailsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionDetailsRequest&, const QueryAccountTransactionDetailsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionDetailsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountTransactionsResult> QueryAccountTransactionsOutcome;
|
||||
typedef std::future<QueryAccountTransactionsOutcome> QueryAccountTransactionsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountTransactionsRequest&, const QueryAccountTransactionsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountTransactionsAsyncHandler;
|
||||
@@ -403,6 +408,9 @@ namespace AlibabaCloud
|
||||
QueryAccountBillOutcome queryAccountBill(const Model::QueryAccountBillRequest &request)const;
|
||||
void queryAccountBillAsync(const Model::QueryAccountBillRequest& request, const QueryAccountBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBillOutcomeCallable queryAccountBillCallable(const Model::QueryAccountBillRequest& request) const;
|
||||
QueryAccountTransactionDetailsOutcome queryAccountTransactionDetails(const Model::QueryAccountTransactionDetailsRequest &request)const;
|
||||
void queryAccountTransactionDetailsAsync(const Model::QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountTransactionDetailsOutcomeCallable queryAccountTransactionDetailsCallable(const Model::QueryAccountTransactionDetailsRequest& request) const;
|
||||
QueryAccountTransactionsOutcome queryAccountTransactions(const Model::QueryAccountTransactionsRequest &request)const;
|
||||
void queryAccountTransactionsAsync(const Model::QueryAccountTransactionsRequest& request, const QueryAccountTransactionsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountTransactionsOutcomeCallable queryAccountTransactionsCallable(const Model::QueryAccountTransactionsRequest& request) const;
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
std::string apportionCode;
|
||||
long resourceUserId;
|
||||
};
|
||||
|
||||
public:
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
std::string unitName;
|
||||
};
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
|
||||
@@ -39,23 +39,24 @@ namespace AlibabaCloud
|
||||
std::string afterTaxAmount;
|
||||
std::string subOrderId;
|
||||
std::string config;
|
||||
std::string paymentTime;
|
||||
std::string tax;
|
||||
std::string paymentCurrency;
|
||||
std::string _operator;
|
||||
std::string tax;
|
||||
std::string paymentTime;
|
||||
std::string paymentCurrency;
|
||||
std::string usageEndTime;
|
||||
std::string subscriptionType;
|
||||
std::string pretaxGrossAmount;
|
||||
std::string orderType;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string usageStartTime;
|
||||
std::string originalConfig;
|
||||
std::string paymentStatus;
|
||||
std::string productCode;
|
||||
std::string createTime;
|
||||
std::string productType;
|
||||
std::string quantity;
|
||||
std::string relatedOrderId;
|
||||
std::string quantity;
|
||||
std::string orderId;
|
||||
std::string pretaxAmount;
|
||||
std::string orderSubType;
|
||||
@@ -64,8 +65,8 @@ namespace AlibabaCloud
|
||||
std::string pretaxAmountLocal;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
int pageNum;
|
||||
std::vector<Order> orderList;
|
||||
std::string hostName;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryAccountTransactionDetailsRequest();
|
||||
~QueryAccountTransactionDetailsRequest();
|
||||
|
||||
std::string getTransactionType()const;
|
||||
void setTransactionType(const std::string& transactionType);
|
||||
std::string getCreateTimeEnd()const;
|
||||
void setCreateTimeEnd(const std::string& createTimeEnd);
|
||||
std::string getRecordID()const;
|
||||
void setRecordID(const std::string& recordID);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
std::string getTransactionChannel()const;
|
||||
void setTransactionChannel(const std::string& transactionChannel);
|
||||
std::string getTransactionChannelSN()const;
|
||||
void setTransactionChannelSN(const std::string& transactionChannelSN);
|
||||
std::string getCreateTimeStart()const;
|
||||
void setCreateTimeStart(const std::string& createTimeStart);
|
||||
std::string getTransactionNumber()const;
|
||||
void setTransactionNumber(const std::string& transactionNumber);
|
||||
|
||||
private:
|
||||
std::string transactionType_;
|
||||
std::string createTimeEnd_;
|
||||
std::string recordID_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
std::string transactionChannel_;
|
||||
std::string transactionChannelSN_;
|
||||
std::string createTimeStart_;
|
||||
std::string transactionNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSREQUEST_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/bssopenapi/BssOpenApiExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace BssOpenApi
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryAccountTransactionDetailsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct AccountTransactionsListItem
|
||||
{
|
||||
std::string transactionType;
|
||||
std::string billingCycle;
|
||||
std::string transactionNumber;
|
||||
std::string amount;
|
||||
std::string transactionAccount;
|
||||
std::string transactionTime;
|
||||
std::string transactionChannelSN;
|
||||
std::string remarks;
|
||||
std::string fundType;
|
||||
std::string transactionFlow;
|
||||
std::string recordID;
|
||||
std::string balance;
|
||||
std::string transactionChannel;
|
||||
};
|
||||
int totalCount;
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<AccountTransactionsListItem> accountTransactionsList;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
QueryAccountTransactionDetailsResult();
|
||||
explicit QueryAccountTransactionDetailsResult(const std::string &payload);
|
||||
~QueryAccountTransactionDetailsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTTRANSACTIONDETAILSRESULT_H_
|
||||
@@ -37,15 +37,15 @@ namespace AlibabaCloud
|
||||
struct CostUnit
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
std::string unitName;
|
||||
};
|
||||
struct CostUnitStatisInfo
|
||||
{
|
||||
long subUnitCount;
|
||||
long totalResourceCount;
|
||||
long totalResourceGroupCount;
|
||||
long totalResourceCount;
|
||||
long userCount;
|
||||
long resourceCount;
|
||||
long totalUserCount;
|
||||
@@ -64,12 +64,12 @@ namespace AlibabaCloud
|
||||
std::string commodityCode;
|
||||
std::string resourceStatus;
|
||||
std::string resourceUserName;
|
||||
std::string commodityName;
|
||||
std::string resourceGroup;
|
||||
std::string commodityName;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
int pageNum;
|
||||
CostUnit costUnit;
|
||||
std::vector<ResourceInstanceList> resourceInstanceDtoList;
|
||||
CostUnitStatisInfo costUnitStatisInfo;
|
||||
|
||||
@@ -37,13 +37,13 @@ namespace AlibabaCloud
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
std::string unitName;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
int pageNum;
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
};
|
||||
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace AlibabaCloud
|
||||
std::string orderType;
|
||||
std::string pretaxAmount;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string paymentStatus;
|
||||
std::string pretaxAmountLocal;
|
||||
};
|
||||
|
||||
@@ -915,6 +915,42 @@ BssOpenApiClient::QueryAccountBillOutcomeCallable BssOpenApiClient::queryAccount
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionDetailsOutcome BssOpenApiClient::queryAccountTransactionDetails(const QueryAccountTransactionDetailsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccountTransactionDetailsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccountTransactionDetailsOutcome(QueryAccountTransactionDetailsResult(outcome.result()));
|
||||
else
|
||||
return QueryAccountTransactionDetailsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAccountTransactionDetailsAsync(const QueryAccountTransactionDetailsRequest& request, const QueryAccountTransactionDetailsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccountTransactionDetails(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionDetailsOutcomeCallable BssOpenApiClient::queryAccountTransactionDetailsCallable(const QueryAccountTransactionDetailsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountTransactionDetailsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccountTransactionDetails(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountTransactionsOutcome BssOpenApiClient::queryAccountTransactions(const QueryAccountTransactionsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -40,8 +40,8 @@ void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<
|
||||
std::string resourceInstanceListObjStr = "ResourceInstanceList." + std::to_string(dep1 + 1);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceId", resourceInstanceListObj.resourceId);
|
||||
setParameter(resourceInstanceListObjStr + ".CommodityCode", resourceInstanceListObj.commodityCode);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
||||
setParameter(resourceInstanceListObjStr + ".ApportionCode", resourceInstanceListObj.apportionCode);
|
||||
setParameter(resourceInstanceListObjStr + ".ResourceUserId", std::to_string(resourceInstanceListObj.resourceUserId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void AllocateCostUnitResourceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["IsSuccess"].isNull())
|
||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||
if(!dataNode["ToUnitUserId"].isNull())
|
||||
data_.toUnitUserId = std::stol(dataNode["ToUnitUserId"].asString());
|
||||
if(!dataNode["ToUnitId"].isNull())
|
||||
data_.toUnitId = std::stol(dataNode["ToUnitId"].asString());
|
||||
if(!dataNode["IsSuccess"].isNull())
|
||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||
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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -44,22 +44,22 @@ void CreateCostUnitResult::parse(const std::string &payload)
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void DeleteCostUnitResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["OwnerUid"].isNull())
|
||||
data_.ownerUid = std::stol(dataNode["OwnerUid"].asString());
|
||||
if(!dataNode["UnitId"].isNull())
|
||||
data_.unitId = std::stol(dataNode["UnitId"].asString());
|
||||
if(!dataNode["IsSuccess"].isNull())
|
||||
data_.isSuccess = dataNode["IsSuccess"].asString() == "true";
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!dataNode["UnitId"].isNull())
|
||||
data_.unitId = std::stol(dataNode["UnitId"].asString());
|
||||
if(!dataNode["OwnerUid"].isNull())
|
||||
data_.ownerUid = std::stol(dataNode["OwnerUid"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -67,18 +67,18 @@ void DescribePricingModuleResult::parse(const std::string &payload)
|
||||
attributeObject.name = dataNodeAttributeListAttribute["Name"].asString();
|
||||
if(!dataNodeAttributeListAttribute["Unit"].isNull())
|
||||
attributeObject.unit = dataNodeAttributeListAttribute["Unit"].asString();
|
||||
auto allValuesNode = allAttributeListNode["Values"]["AttributeValue"];
|
||||
for (auto allAttributeListNodeValuesAttributeValue : allValuesNode)
|
||||
auto allValuesNode = dataNodeAttributeListAttribute["Values"]["AttributeValue"];
|
||||
for (auto dataNodeAttributeListAttributeValuesAttributeValue : allValuesNode)
|
||||
{
|
||||
Data::Attribute::AttributeValue valuesObject;
|
||||
if(!allAttributeListNodeValuesAttributeValue["Type"].isNull())
|
||||
valuesObject.type = allAttributeListNodeValuesAttributeValue["Type"].asString();
|
||||
if(!allAttributeListNodeValuesAttributeValue["Name"].isNull())
|
||||
valuesObject.name = allAttributeListNodeValuesAttributeValue["Name"].asString();
|
||||
if(!allAttributeListNodeValuesAttributeValue["Value"].isNull())
|
||||
valuesObject.value = allAttributeListNodeValuesAttributeValue["Value"].asString();
|
||||
if(!allAttributeListNodeValuesAttributeValue["Remark"].isNull())
|
||||
valuesObject.remark = allAttributeListNodeValuesAttributeValue["Remark"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Type"].isNull())
|
||||
valuesObject.type = dataNodeAttributeListAttributeValuesAttributeValue["Type"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Name"].isNull())
|
||||
valuesObject.name = dataNodeAttributeListAttributeValuesAttributeValue["Name"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Value"].isNull())
|
||||
valuesObject.value = dataNodeAttributeListAttributeValuesAttributeValue["Value"].asString();
|
||||
if(!dataNodeAttributeListAttributeValuesAttributeValue["Remark"].isNull())
|
||||
valuesObject.remark = dataNodeAttributeListAttributeValuesAttributeValue["Remark"].asString();
|
||||
attributeObject.values.push_back(valuesObject);
|
||||
}
|
||||
data_.attributeList.push_back(attributeObject);
|
||||
|
||||
@@ -50,42 +50,42 @@ void DescribeResourcePackageProductResult::parse(const std::string &payload)
|
||||
resourcePackageObject.productType = dataNodeResourcePackagesResourcePackage["ProductType"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackage["Name"].isNull())
|
||||
resourcePackageObject.name = dataNodeResourcePackagesResourcePackage["Name"].asString();
|
||||
auto allPackageTypesNode = allResourcePackagesNode["PackageTypes"]["PackageType"];
|
||||
for (auto allResourcePackagesNodePackageTypesPackageType : allPackageTypesNode)
|
||||
auto allPackageTypesNode = dataNodeResourcePackagesResourcePackage["PackageTypes"]["PackageType"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageType : allPackageTypesNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType packageTypesObject;
|
||||
if(!allResourcePackagesNodePackageTypesPackageType["Name"].isNull())
|
||||
packageTypesObject.name = allResourcePackagesNodePackageTypesPackageType["Name"].asString();
|
||||
if(!allResourcePackagesNodePackageTypesPackageType["Code"].isNull())
|
||||
packageTypesObject.code = allResourcePackagesNodePackageTypesPackageType["Code"].asString();
|
||||
auto allPropertiesNode = allPackageTypesNode["Properties"]["Property"];
|
||||
for (auto allPackageTypesNodePropertiesProperty : allPropertiesNode)
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].isNull())
|
||||
packageTypesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].isNull())
|
||||
packageTypesObject.code = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Code"].asString();
|
||||
auto allPropertiesNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Properties"]["Property"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty : allPropertiesNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType::Property propertiesObject;
|
||||
if(!allPackageTypesNodePropertiesProperty["Name"].isNull())
|
||||
propertiesObject.name = allPackageTypesNodePropertiesProperty["Name"].asString();
|
||||
if(!allPackageTypesNodePropertiesProperty["Value"].isNull())
|
||||
propertiesObject.value = allPackageTypesNodePropertiesProperty["Value"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Name"].isNull())
|
||||
propertiesObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Value"].isNull())
|
||||
propertiesObject.value = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypePropertiesProperty["Value"].asString();
|
||||
packageTypesObject.properties.push_back(propertiesObject);
|
||||
}
|
||||
auto allSpecificationsNode = allPackageTypesNode["Specifications"]["Specification"];
|
||||
for (auto allPackageTypesNodeSpecificationsSpecification : allSpecificationsNode)
|
||||
auto allSpecificationsNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageType["Specifications"]["Specification"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification : allSpecificationsNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType::Specification specificationsObject;
|
||||
if(!allPackageTypesNodeSpecificationsSpecification["Name"].isNull())
|
||||
specificationsObject.name = allPackageTypesNodeSpecificationsSpecification["Name"].asString();
|
||||
if(!allPackageTypesNodeSpecificationsSpecification["Value"].isNull())
|
||||
specificationsObject.value = allPackageTypesNodeSpecificationsSpecification["Value"].asString();
|
||||
auto allAvailableDurationsNode = allSpecificationsNode["AvailableDurations"]["AvailableDuration"];
|
||||
for (auto allSpecificationsNodeAvailableDurationsAvailableDuration : allAvailableDurationsNode)
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Name"].isNull())
|
||||
specificationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Value"].isNull())
|
||||
specificationsObject.value = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["Value"].asString();
|
||||
auto allAvailableDurationsNode = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecification["AvailableDurations"]["AvailableDuration"];
|
||||
for (auto dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration : allAvailableDurationsNode)
|
||||
{
|
||||
Data::ResourcePackage::PackageType::Specification::AvailableDuration availableDurationsObject;
|
||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Name"].isNull())
|
||||
availableDurationsObject.name = allSpecificationsNodeAvailableDurationsAvailableDuration["Name"].asString();
|
||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Value"].isNull())
|
||||
availableDurationsObject.value = std::stoi(allSpecificationsNodeAvailableDurationsAvailableDuration["Value"].asString());
|
||||
if(!allSpecificationsNodeAvailableDurationsAvailableDuration["Unit"].isNull())
|
||||
availableDurationsObject.unit = allSpecificationsNodeAvailableDurationsAvailableDuration["Unit"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].isNull())
|
||||
availableDurationsObject.name = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Name"].asString();
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].isNull())
|
||||
availableDurationsObject.value = std::stoi(dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Value"].asString());
|
||||
if(!dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].isNull())
|
||||
availableDurationsObject.unit = dataNodeResourcePackagesResourcePackagePackageTypesPackageTypeSpecificationsSpecificationAvailableDurationsAvailableDuration["Unit"].asString();
|
||||
specificationsObject.availableDurations.push_back(availableDurationsObject);
|
||||
}
|
||||
packageTypesObject.specifications.push_back(specificationsObject);
|
||||
|
||||
@@ -40,78 +40,80 @@ void GetOrderDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["HostName"].isNull())
|
||||
data_.hostName = dataNode["HostName"].asString();
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["HostName"].isNull())
|
||||
data_.hostName = dataNode["HostName"].asString();
|
||||
auto allOrderListNode = dataNode["OrderList"]["Order"];
|
||||
for (auto dataNodeOrderListOrder : allOrderListNode)
|
||||
{
|
||||
Data::Order orderObject;
|
||||
if(!dataNodeOrderListOrder["OrderId"].isNull())
|
||||
orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["SubOrderId"].isNull())
|
||||
orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductCode"].isNull())
|
||||
orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductType"].isNull())
|
||||
orderObject.productType = dataNodeOrderListOrder["ProductType"].asString();
|
||||
if(!dataNodeOrderListOrder["SubscriptionType"].isNull())
|
||||
orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderType"].isNull())
|
||||
orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString();
|
||||
if(!dataNodeOrderListOrder["CreateTime"].isNull())
|
||||
orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentTime"].isNull())
|
||||
orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentStatus"].isNull())
|
||||
orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString();
|
||||
if(!dataNodeOrderListOrder["Region"].isNull())
|
||||
orderObject.region = dataNodeOrderListOrder["Region"].asString();
|
||||
if(!dataNodeOrderListOrder["Config"].isNull())
|
||||
orderObject.config = dataNodeOrderListOrder["Config"].asString();
|
||||
if(!dataNodeOrderListOrder["Quantity"].isNull())
|
||||
orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageStartTime"].isNull())
|
||||
orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageEndTime"].isNull())
|
||||
orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString();
|
||||
if(!dataNodeOrderListOrder["InstanceIDs"].isNull())
|
||||
orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull())
|
||||
orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmount"].isNull())
|
||||
orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["Currency"].isNull())
|
||||
orderObject.currency = dataNodeOrderListOrder["Currency"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull())
|
||||
orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString();
|
||||
if(!dataNodeOrderListOrder["Tax"].isNull())
|
||||
orderObject.tax = dataNodeOrderListOrder["Tax"].asString();
|
||||
if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull())
|
||||
orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentCurrency"].isNull())
|
||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||
if(!dataNodeOrderListOrder["Operator"].isNull())
|
||||
orderObject._operator = dataNodeOrderListOrder["Operator"].asString();
|
||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderSubType"].isNull())
|
||||
orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString();
|
||||
if(!dataNodeOrderListOrder["AfterTaxAmount"].isNull())
|
||||
orderObject.afterTaxAmount = dataNodeOrderListOrder["AfterTaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["SubOrderId"].isNull())
|
||||
orderObject.subOrderId = dataNodeOrderListOrder["SubOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["Config"].isNull())
|
||||
orderObject.config = dataNodeOrderListOrder["Config"].asString();
|
||||
if(!dataNodeOrderListOrder["Tax"].isNull())
|
||||
orderObject.tax = dataNodeOrderListOrder["Tax"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentTime"].isNull())
|
||||
orderObject.paymentTime = dataNodeOrderListOrder["PaymentTime"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentCurrency"].isNull())
|
||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageEndTime"].isNull())
|
||||
orderObject.usageEndTime = dataNodeOrderListOrder["UsageEndTime"].asString();
|
||||
if(!dataNodeOrderListOrder["SubscriptionType"].isNull())
|
||||
orderObject.subscriptionType = dataNodeOrderListOrder["SubscriptionType"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxGrossAmount"].isNull())
|
||||
orderObject.pretaxGrossAmount = dataNodeOrderListOrder["PretaxGrossAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderType"].isNull())
|
||||
orderObject.orderType = dataNodeOrderListOrder["OrderType"].asString();
|
||||
if(!dataNodeOrderListOrder["Currency"].isNull())
|
||||
orderObject.currency = dataNodeOrderListOrder["Currency"].asString();
|
||||
if(!dataNodeOrderListOrder["UsageStartTime"].isNull())
|
||||
orderObject.usageStartTime = dataNodeOrderListOrder["UsageStartTime"].asString();
|
||||
if(!dataNodeOrderListOrder["OriginalConfig"].isNull())
|
||||
orderObject.originalConfig = dataNodeOrderListOrder["OriginalConfig"].asString();
|
||||
if(!dataNodeOrderListOrder["PaymentStatus"].isNull())
|
||||
orderObject.paymentStatus = dataNodeOrderListOrder["PaymentStatus"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductCode"].isNull())
|
||||
orderObject.productCode = dataNodeOrderListOrder["ProductCode"].asString();
|
||||
if(!dataNodeOrderListOrder["CreateTime"].isNull())
|
||||
orderObject.createTime = dataNodeOrderListOrder["CreateTime"].asString();
|
||||
if(!dataNodeOrderListOrder["ProductType"].isNull())
|
||||
orderObject.productType = dataNodeOrderListOrder["ProductType"].asString();
|
||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["Quantity"].isNull())
|
||||
orderObject.quantity = dataNodeOrderListOrder["Quantity"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderId"].isNull())
|
||||
orderObject.orderId = dataNodeOrderListOrder["OrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmount"].isNull())
|
||||
orderObject.pretaxAmount = dataNodeOrderListOrder["PretaxAmount"].asString();
|
||||
if(!dataNodeOrderListOrder["OrderSubType"].isNull())
|
||||
orderObject.orderSubType = dataNodeOrderListOrder["OrderSubType"].asString();
|
||||
if(!dataNodeOrderListOrder["Region"].isNull())
|
||||
orderObject.region = dataNodeOrderListOrder["Region"].asString();
|
||||
if(!dataNodeOrderListOrder["InstanceIDs"].isNull())
|
||||
orderObject.instanceIDs = dataNodeOrderListOrder["InstanceIDs"].asString();
|
||||
if(!dataNodeOrderListOrder["PretaxAmountLocal"].isNull())
|
||||
orderObject.pretaxAmountLocal = dataNodeOrderListOrder["PretaxAmountLocal"].asString();
|
||||
if(!dataNodeOrderListOrder["CommodityCode"].isNull())
|
||||
orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString();
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -43,20 +43,20 @@ void ModifyCostUnitResult::parse(const std::string &payload)
|
||||
for (auto valueDataDataItem : allDataNode)
|
||||
{
|
||||
DataItem dataObject;
|
||||
if(!valueDataDataItem["OwnerUid"].isNull())
|
||||
dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString());
|
||||
if(!valueDataDataItem["UnitId"].isNull())
|
||||
dataObject.unitId = std::stol(valueDataDataItem["UnitId"].asString());
|
||||
if(!valueDataDataItem["IsSuccess"].isNull())
|
||||
dataObject.isSuccess = valueDataDataItem["IsSuccess"].asString() == "true";
|
||||
if(!valueDataDataItem["UnitId"].isNull())
|
||||
dataObject.unitId = std::stol(valueDataDataItem["UnitId"].asString());
|
||||
if(!valueDataDataItem["OwnerUid"].isNull())
|
||||
dataObject.ownerUid = std::stol(valueDataDataItem["OwnerUid"].asString());
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
128
bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc
Normal file
128
bssopenapi/src/model/QueryAccountTransactionDetailsRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryAccountTransactionDetailsRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAccountTransactionDetailsRequest;
|
||||
|
||||
QueryAccountTransactionDetailsRequest::QueryAccountTransactionDetailsRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountTransactionDetails")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryAccountTransactionDetailsRequest::~QueryAccountTransactionDetailsRequest()
|
||||
{}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionType()const
|
||||
{
|
||||
return transactionType_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionType(const std::string& transactionType)
|
||||
{
|
||||
transactionType_ = transactionType;
|
||||
setParameter("TransactionType", transactionType);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getCreateTimeEnd()const
|
||||
{
|
||||
return createTimeEnd_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setCreateTimeEnd(const std::string& createTimeEnd)
|
||||
{
|
||||
createTimeEnd_ = createTimeEnd;
|
||||
setParameter("CreateTimeEnd", createTimeEnd);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getRecordID()const
|
||||
{
|
||||
return recordID_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setRecordID(const std::string& recordID)
|
||||
{
|
||||
recordID_ = recordID;
|
||||
setParameter("RecordID", recordID);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int QueryAccountTransactionDetailsRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionChannel()const
|
||||
{
|
||||
return transactionChannel_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionChannel(const std::string& transactionChannel)
|
||||
{
|
||||
transactionChannel_ = transactionChannel;
|
||||
setParameter("TransactionChannel", transactionChannel);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionChannelSN()const
|
||||
{
|
||||
return transactionChannelSN_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionChannelSN(const std::string& transactionChannelSN)
|
||||
{
|
||||
transactionChannelSN_ = transactionChannelSN;
|
||||
setParameter("TransactionChannelSN", transactionChannelSN);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getCreateTimeStart()const
|
||||
{
|
||||
return createTimeStart_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setCreateTimeStart(const std::string& createTimeStart)
|
||||
{
|
||||
createTimeStart_ = createTimeStart;
|
||||
setParameter("CreateTimeStart", createTimeStart);
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsRequest::getTransactionNumber()const
|
||||
{
|
||||
return transactionNumber_;
|
||||
}
|
||||
|
||||
void QueryAccountTransactionDetailsRequest::setTransactionNumber(const std::string& transactionNumber)
|
||||
{
|
||||
transactionNumber_ = transactionNumber;
|
||||
setParameter("TransactionNumber", transactionNumber);
|
||||
}
|
||||
|
||||
111
bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc
Normal file
111
bssopenapi/src/model/QueryAccountTransactionDetailsResult.cc
Normal file
@@ -0,0 +1,111 @@
|
||||
/*
|
||||
* 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/bssopenapi/model/QueryAccountTransactionDetailsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryAccountTransactionDetailsResult::QueryAccountTransactionDetailsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccountTransactionDetailsResult::QueryAccountTransactionDetailsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccountTransactionDetailsResult::~QueryAccountTransactionDetailsResult()
|
||||
{}
|
||||
|
||||
void QueryAccountTransactionDetailsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
auto allAccountTransactionsListNode = dataNode["AccountTransactionsList"]["AccountTransactionsListItem"];
|
||||
for (auto dataNodeAccountTransactionsListAccountTransactionsListItem : allAccountTransactionsListNode)
|
||||
{
|
||||
Data::AccountTransactionsListItem accountTransactionsListItemObject;
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].isNull())
|
||||
accountTransactionsListItemObject.transactionNumber = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionNumber"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].isNull())
|
||||
accountTransactionsListItemObject.transactionTime = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionTime"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].isNull())
|
||||
accountTransactionsListItemObject.transactionFlow = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionFlow"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].isNull())
|
||||
accountTransactionsListItemObject.transactionType = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionType"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].isNull())
|
||||
accountTransactionsListItemObject.transactionChannel = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannel"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].isNull())
|
||||
accountTransactionsListItemObject.transactionChannelSN = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionChannelSN"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].isNull())
|
||||
accountTransactionsListItemObject.fundType = dataNodeAccountTransactionsListAccountTransactionsListItem["FundType"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].isNull())
|
||||
accountTransactionsListItemObject.recordID = dataNodeAccountTransactionsListAccountTransactionsListItem["RecordID"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].isNull())
|
||||
accountTransactionsListItemObject.remarks = dataNodeAccountTransactionsListAccountTransactionsListItem["Remarks"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].isNull())
|
||||
accountTransactionsListItemObject.billingCycle = dataNodeAccountTransactionsListAccountTransactionsListItem["BillingCycle"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].isNull())
|
||||
accountTransactionsListItemObject.amount = dataNodeAccountTransactionsListAccountTransactionsListItem["Amount"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].isNull())
|
||||
accountTransactionsListItemObject.balance = dataNodeAccountTransactionsListAccountTransactionsListItem["Balance"].asString();
|
||||
if(!dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].isNull())
|
||||
accountTransactionsListItemObject.transactionAccount = dataNodeAccountTransactionsListAccountTransactionsListItem["TransactionAccount"].asString();
|
||||
data_.accountTransactionsList.push_back(accountTransactionsListItemObject);
|
||||
}
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryAccountTransactionDetailsResult::Data QueryAccountTransactionDetailsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryAccountTransactionDetailsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAccountTransactionDetailsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -40,74 +40,74 @@ void QueryCostUnitResourceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
auto allResourceInstanceDtoListNode = dataNode["ResourceInstanceDtoList"]["ResourceInstanceList"];
|
||||
for (auto dataNodeResourceInstanceDtoListResourceInstanceList : allResourceInstanceDtoListNode)
|
||||
{
|
||||
Data::ResourceInstanceList resourceInstanceListObject;
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].isNull())
|
||||
resourceInstanceListObject.resourceUserId = std::stol(dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserId"].asString());
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].isNull())
|
||||
resourceInstanceListObject.resourceTag = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].isNull())
|
||||
resourceInstanceListObject.relatedResources = dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].isNull())
|
||||
resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].isNull())
|
||||
resourceInstanceListObject.resourceId = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceId"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].isNull())
|
||||
resourceInstanceListObject.commodityCode = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityCode"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].isNull())
|
||||
resourceInstanceListObject.resourceUserName = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].isNull())
|
||||
resourceInstanceListObject.commodityName = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].isNull())
|
||||
resourceInstanceListObject.resourceGroup = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].isNull())
|
||||
resourceInstanceListObject.resourceTag = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceTag"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].isNull())
|
||||
resourceInstanceListObject.resourceNick = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].isNull())
|
||||
resourceInstanceListObject.resourceType = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].isNull())
|
||||
resourceInstanceListObject.resourceStatus = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceStatus"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].isNull())
|
||||
resourceInstanceListObject.relatedResources = dataNodeResourceInstanceDtoListResourceInstanceList["RelatedResources"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].isNull())
|
||||
resourceInstanceListObject.resourceType = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceType"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].isNull())
|
||||
resourceInstanceListObject.resourceUserName = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceUserName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].isNull())
|
||||
resourceInstanceListObject.resourceNick = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceNick"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].isNull())
|
||||
resourceInstanceListObject.resourceGroup = dataNodeResourceInstanceDtoListResourceInstanceList["ResourceGroup"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].isNull())
|
||||
resourceInstanceListObject.commodityName = dataNodeResourceInstanceDtoListResourceInstanceList["CommodityName"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionCode"].isNull())
|
||||
resourceInstanceListObject.apportionCode = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionCode"].asString();
|
||||
if(!dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].isNull())
|
||||
resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString();
|
||||
data_.resourceInstanceDtoList.push_back(resourceInstanceListObject);
|
||||
}
|
||||
auto costUnitNode = dataNode["CostUnit"];
|
||||
if(!costUnitNode["OwnerUid"].isNull())
|
||||
data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString());
|
||||
if(!costUnitNode["ParentUnitId"].isNull())
|
||||
data_.costUnit.parentUnitId = std::stol(costUnitNode["ParentUnitId"].asString());
|
||||
if(!costUnitNode["UnitId"].isNull())
|
||||
data_.costUnit.unitId = std::stol(costUnitNode["UnitId"].asString());
|
||||
if(!costUnitNode["ParentUnitId"].isNull())
|
||||
data_.costUnit.parentUnitId = std::stol(costUnitNode["ParentUnitId"].asString());
|
||||
if(!costUnitNode["OwnerUid"].isNull())
|
||||
data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString());
|
||||
if(!costUnitNode["UnitName"].isNull())
|
||||
data_.costUnit.unitName = costUnitNode["UnitName"].asString();
|
||||
auto costUnitStatisInfoNode = dataNode["CostUnitStatisInfo"];
|
||||
if(!costUnitStatisInfoNode["ResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceCount = std::stol(costUnitStatisInfoNode["ResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceGroupCount = std::stol(costUnitStatisInfoNode["ResourceGroupCount"].asString());
|
||||
if(!costUnitStatisInfoNode["SubUnitCount"].isNull())
|
||||
data_.costUnitStatisInfo.subUnitCount = std::stol(costUnitStatisInfoNode["SubUnitCount"].asString());
|
||||
if(!costUnitStatisInfoNode["UserCount"].isNull())
|
||||
data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceCount = std::stol(costUnitStatisInfoNode["TotalResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalUserCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalUserCount = std::stol(costUnitStatisInfoNode["TotalUserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceGroupCount = std::stol(costUnitStatisInfoNode["TotalResourceGroupCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!costUnitStatisInfoNode["TotalResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceCount = std::stol(costUnitStatisInfoNode["TotalResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["UserCount"].isNull())
|
||||
data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceCount = std::stol(costUnitStatisInfoNode["ResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalUserCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalUserCount = std::stol(costUnitStatisInfoNode["TotalUserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceGroupCount = std::stol(costUnitStatisInfoNode["ResourceGroupCount"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,32 @@ void QueryCostUnitResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
auto allCostUnitDtoListNode = dataNode["CostUnitDtoList"]["CostUnitDtoListItem"];
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
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["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -84,6 +84,8 @@ void QueryOrdersResult::parse(const std::string &payload)
|
||||
orderObject.paymentCurrency = dataNodeOrderListOrder["PaymentCurrency"].asString();
|
||||
if(!dataNodeOrderListOrder["RelatedOrderId"].isNull())
|
||||
orderObject.relatedOrderId = dataNodeOrderListOrder["RelatedOrderId"].asString();
|
||||
if(!dataNodeOrderListOrder["CommodityCode"].isNull())
|
||||
orderObject.commodityCode = dataNodeOrderListOrder["CommodityCode"].asString();
|
||||
data_.orderList.push_back(orderObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -21,6 +21,8 @@ set(facebody_public_header
|
||||
include/alibabacloud/facebody/FacebodyExport.h )
|
||||
|
||||
set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/AddBodyTraceRequest.h
|
||||
include/alibabacloud/facebody/model/AddBodyTraceResult.h
|
||||
include/alibabacloud/facebody/model/AddFaceRequest.h
|
||||
include/alibabacloud/facebody/model/AddFaceResult.h
|
||||
include/alibabacloud/facebody/model/AddFaceEntityRequest.h
|
||||
@@ -33,8 +35,16 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/CompareFaceResult.h
|
||||
include/alibabacloud/facebody/model/CountCrowdRequest.h
|
||||
include/alibabacloud/facebody/model/CountCrowdResult.h
|
||||
include/alibabacloud/facebody/model/CreateBodyDbRequest.h
|
||||
include/alibabacloud/facebody/model/CreateBodyDbResult.h
|
||||
include/alibabacloud/facebody/model/CreateBodyPersonRequest.h
|
||||
include/alibabacloud/facebody/model/CreateBodyPersonResult.h
|
||||
include/alibabacloud/facebody/model/CreateFaceDbRequest.h
|
||||
include/alibabacloud/facebody/model/CreateFaceDbResult.h
|
||||
include/alibabacloud/facebody/model/DeleteBodyDbRequest.h
|
||||
include/alibabacloud/facebody/model/DeleteBodyDbResult.h
|
||||
include/alibabacloud/facebody/model/DeleteBodyPersonRequest.h
|
||||
include/alibabacloud/facebody/model/DeleteBodyPersonResult.h
|
||||
include/alibabacloud/facebody/model/DeleteFaceRequest.h
|
||||
include/alibabacloud/facebody/model/DeleteFaceResult.h
|
||||
include/alibabacloud/facebody/model/DeleteFaceDbRequest.h
|
||||
@@ -75,12 +85,22 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/FaceMakeupResult.h
|
||||
include/alibabacloud/facebody/model/FaceTidyupRequest.h
|
||||
include/alibabacloud/facebody/model/FaceTidyupResult.h
|
||||
include/alibabacloud/facebody/model/GenRealPersonVerificationTokenRequest.h
|
||||
include/alibabacloud/facebody/model/GenRealPersonVerificationTokenResult.h
|
||||
include/alibabacloud/facebody/model/GenerateHumanAnimeStyleRequest.h
|
||||
include/alibabacloud/facebody/model/GenerateHumanAnimeStyleResult.h
|
||||
include/alibabacloud/facebody/model/GetBodyPersonRequest.h
|
||||
include/alibabacloud/facebody/model/GetBodyPersonResult.h
|
||||
include/alibabacloud/facebody/model/GetFaceEntityRequest.h
|
||||
include/alibabacloud/facebody/model/GetFaceEntityResult.h
|
||||
include/alibabacloud/facebody/model/GetRealPersonVerificationResultRequest.h
|
||||
include/alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h
|
||||
include/alibabacloud/facebody/model/HandPostureRequest.h
|
||||
include/alibabacloud/facebody/model/HandPostureResult.h
|
||||
include/alibabacloud/facebody/model/ListBodyDbsRequest.h
|
||||
include/alibabacloud/facebody/model/ListBodyDbsResult.h
|
||||
include/alibabacloud/facebody/model/ListBodyPersonRequest.h
|
||||
include/alibabacloud/facebody/model/ListBodyPersonResult.h
|
||||
include/alibabacloud/facebody/model/ListFaceDbsRequest.h
|
||||
include/alibabacloud/facebody/model/ListFaceDbsResult.h
|
||||
include/alibabacloud/facebody/model/ListFaceEntitiesRequest.h
|
||||
@@ -95,6 +115,8 @@ set(facebody_public_header_model
|
||||
include/alibabacloud/facebody/model/RecognizeFaceResult.h
|
||||
include/alibabacloud/facebody/model/RecognizePublicFaceRequest.h
|
||||
include/alibabacloud/facebody/model/RecognizePublicFaceResult.h
|
||||
include/alibabacloud/facebody/model/SearchBodyTraceRequest.h
|
||||
include/alibabacloud/facebody/model/SearchBodyTraceResult.h
|
||||
include/alibabacloud/facebody/model/SearchFaceRequest.h
|
||||
include/alibabacloud/facebody/model/SearchFaceResult.h
|
||||
include/alibabacloud/facebody/model/SwapFacialFeaturesRequest.h
|
||||
@@ -106,6 +128,8 @@ set(facebody_public_header_model
|
||||
|
||||
set(facebody_src
|
||||
src/FacebodyClient.cc
|
||||
src/model/AddBodyTraceRequest.cc
|
||||
src/model/AddBodyTraceResult.cc
|
||||
src/model/AddFaceRequest.cc
|
||||
src/model/AddFaceResult.cc
|
||||
src/model/AddFaceEntityRequest.cc
|
||||
@@ -118,8 +142,16 @@ set(facebody_src
|
||||
src/model/CompareFaceResult.cc
|
||||
src/model/CountCrowdRequest.cc
|
||||
src/model/CountCrowdResult.cc
|
||||
src/model/CreateBodyDbRequest.cc
|
||||
src/model/CreateBodyDbResult.cc
|
||||
src/model/CreateBodyPersonRequest.cc
|
||||
src/model/CreateBodyPersonResult.cc
|
||||
src/model/CreateFaceDbRequest.cc
|
||||
src/model/CreateFaceDbResult.cc
|
||||
src/model/DeleteBodyDbRequest.cc
|
||||
src/model/DeleteBodyDbResult.cc
|
||||
src/model/DeleteBodyPersonRequest.cc
|
||||
src/model/DeleteBodyPersonResult.cc
|
||||
src/model/DeleteFaceRequest.cc
|
||||
src/model/DeleteFaceResult.cc
|
||||
src/model/DeleteFaceDbRequest.cc
|
||||
@@ -160,12 +192,22 @@ set(facebody_src
|
||||
src/model/FaceMakeupResult.cc
|
||||
src/model/FaceTidyupRequest.cc
|
||||
src/model/FaceTidyupResult.cc
|
||||
src/model/GenRealPersonVerificationTokenRequest.cc
|
||||
src/model/GenRealPersonVerificationTokenResult.cc
|
||||
src/model/GenerateHumanAnimeStyleRequest.cc
|
||||
src/model/GenerateHumanAnimeStyleResult.cc
|
||||
src/model/GetBodyPersonRequest.cc
|
||||
src/model/GetBodyPersonResult.cc
|
||||
src/model/GetFaceEntityRequest.cc
|
||||
src/model/GetFaceEntityResult.cc
|
||||
src/model/GetRealPersonVerificationResultRequest.cc
|
||||
src/model/GetRealPersonVerificationResultResult.cc
|
||||
src/model/HandPostureRequest.cc
|
||||
src/model/HandPostureResult.cc
|
||||
src/model/ListBodyDbsRequest.cc
|
||||
src/model/ListBodyDbsResult.cc
|
||||
src/model/ListBodyPersonRequest.cc
|
||||
src/model/ListBodyPersonResult.cc
|
||||
src/model/ListFaceDbsRequest.cc
|
||||
src/model/ListFaceDbsResult.cc
|
||||
src/model/ListFaceEntitiesRequest.cc
|
||||
@@ -180,6 +222,8 @@ set(facebody_src
|
||||
src/model/RecognizeFaceResult.cc
|
||||
src/model/RecognizePublicFaceRequest.cc
|
||||
src/model/RecognizePublicFaceResult.cc
|
||||
src/model/SearchBodyTraceRequest.cc
|
||||
src/model/SearchBodyTraceResult.cc
|
||||
src/model/SearchFaceRequest.cc
|
||||
src/model/SearchFaceResult.cc
|
||||
src/model/SwapFacialFeaturesRequest.cc
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "FacebodyExport.h"
|
||||
#include "model/AddBodyTraceRequest.h"
|
||||
#include "model/AddBodyTraceResult.h"
|
||||
#include "model/AddFaceRequest.h"
|
||||
#include "model/AddFaceResult.h"
|
||||
#include "model/AddFaceEntityRequest.h"
|
||||
@@ -34,8 +36,16 @@
|
||||
#include "model/CompareFaceResult.h"
|
||||
#include "model/CountCrowdRequest.h"
|
||||
#include "model/CountCrowdResult.h"
|
||||
#include "model/CreateBodyDbRequest.h"
|
||||
#include "model/CreateBodyDbResult.h"
|
||||
#include "model/CreateBodyPersonRequest.h"
|
||||
#include "model/CreateBodyPersonResult.h"
|
||||
#include "model/CreateFaceDbRequest.h"
|
||||
#include "model/CreateFaceDbResult.h"
|
||||
#include "model/DeleteBodyDbRequest.h"
|
||||
#include "model/DeleteBodyDbResult.h"
|
||||
#include "model/DeleteBodyPersonRequest.h"
|
||||
#include "model/DeleteBodyPersonResult.h"
|
||||
#include "model/DeleteFaceRequest.h"
|
||||
#include "model/DeleteFaceResult.h"
|
||||
#include "model/DeleteFaceDbRequest.h"
|
||||
@@ -76,12 +86,22 @@
|
||||
#include "model/FaceMakeupResult.h"
|
||||
#include "model/FaceTidyupRequest.h"
|
||||
#include "model/FaceTidyupResult.h"
|
||||
#include "model/GenRealPersonVerificationTokenRequest.h"
|
||||
#include "model/GenRealPersonVerificationTokenResult.h"
|
||||
#include "model/GenerateHumanAnimeStyleRequest.h"
|
||||
#include "model/GenerateHumanAnimeStyleResult.h"
|
||||
#include "model/GetBodyPersonRequest.h"
|
||||
#include "model/GetBodyPersonResult.h"
|
||||
#include "model/GetFaceEntityRequest.h"
|
||||
#include "model/GetFaceEntityResult.h"
|
||||
#include "model/GetRealPersonVerificationResultRequest.h"
|
||||
#include "model/GetRealPersonVerificationResultResult.h"
|
||||
#include "model/HandPostureRequest.h"
|
||||
#include "model/HandPostureResult.h"
|
||||
#include "model/ListBodyDbsRequest.h"
|
||||
#include "model/ListBodyDbsResult.h"
|
||||
#include "model/ListBodyPersonRequest.h"
|
||||
#include "model/ListBodyPersonResult.h"
|
||||
#include "model/ListFaceDbsRequest.h"
|
||||
#include "model/ListFaceDbsResult.h"
|
||||
#include "model/ListFaceEntitiesRequest.h"
|
||||
@@ -96,6 +116,8 @@
|
||||
#include "model/RecognizeFaceResult.h"
|
||||
#include "model/RecognizePublicFaceRequest.h"
|
||||
#include "model/RecognizePublicFaceResult.h"
|
||||
#include "model/SearchBodyTraceRequest.h"
|
||||
#include "model/SearchBodyTraceResult.h"
|
||||
#include "model/SearchFaceRequest.h"
|
||||
#include "model/SearchFaceResult.h"
|
||||
#include "model/SwapFacialFeaturesRequest.h"
|
||||
@@ -113,6 +135,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT FacebodyClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddBodyTraceResult> AddBodyTraceOutcome;
|
||||
typedef std::future<AddBodyTraceOutcome> AddBodyTraceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::AddBodyTraceRequest&, const AddBodyTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddBodyTraceAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddFaceResult> AddFaceOutcome;
|
||||
typedef std::future<AddFaceOutcome> AddFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::AddFaceRequest&, const AddFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddFaceAsyncHandler;
|
||||
@@ -131,9 +156,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CountCrowdResult> CountCrowdOutcome;
|
||||
typedef std::future<CountCrowdOutcome> CountCrowdOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CountCrowdRequest&, const CountCrowdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CountCrowdAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBodyDbResult> CreateBodyDbOutcome;
|
||||
typedef std::future<CreateBodyDbOutcome> CreateBodyDbOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CreateBodyDbRequest&, const CreateBodyDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBodyDbAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateBodyPersonResult> CreateBodyPersonOutcome;
|
||||
typedef std::future<CreateBodyPersonOutcome> CreateBodyPersonOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CreateBodyPersonRequest&, const CreateBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateBodyPersonAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFaceDbResult> CreateFaceDbOutcome;
|
||||
typedef std::future<CreateFaceDbOutcome> CreateFaceDbOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::CreateFaceDbRequest&, const CreateFaceDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFaceDbAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBodyDbResult> DeleteBodyDbOutcome;
|
||||
typedef std::future<DeleteBodyDbOutcome> DeleteBodyDbOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DeleteBodyDbRequest&, const DeleteBodyDbOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBodyDbAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteBodyPersonResult> DeleteBodyPersonOutcome;
|
||||
typedef std::future<DeleteBodyPersonOutcome> DeleteBodyPersonOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DeleteBodyPersonRequest&, const DeleteBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteBodyPersonAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFaceResult> DeleteFaceOutcome;
|
||||
typedef std::future<DeleteFaceOutcome> DeleteFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::DeleteFaceRequest&, const DeleteFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFaceAsyncHandler;
|
||||
@@ -194,15 +231,30 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::FaceTidyupResult> FaceTidyupOutcome;
|
||||
typedef std::future<FaceTidyupOutcome> FaceTidyupOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::FaceTidyupRequest&, const FaceTidyupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> FaceTidyupAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenRealPersonVerificationTokenResult> GenRealPersonVerificationTokenOutcome;
|
||||
typedef std::future<GenRealPersonVerificationTokenOutcome> GenRealPersonVerificationTokenOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::GenRealPersonVerificationTokenRequest&, const GenRealPersonVerificationTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenRealPersonVerificationTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::GenerateHumanAnimeStyleResult> GenerateHumanAnimeStyleOutcome;
|
||||
typedef std::future<GenerateHumanAnimeStyleOutcome> GenerateHumanAnimeStyleOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::GenerateHumanAnimeStyleRequest&, const GenerateHumanAnimeStyleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GenerateHumanAnimeStyleAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetBodyPersonResult> GetBodyPersonOutcome;
|
||||
typedef std::future<GetBodyPersonOutcome> GetBodyPersonOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::GetBodyPersonRequest&, const GetBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetBodyPersonAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetFaceEntityResult> GetFaceEntityOutcome;
|
||||
typedef std::future<GetFaceEntityOutcome> GetFaceEntityOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::GetFaceEntityRequest&, const GetFaceEntityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetFaceEntityAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRealPersonVerificationResultResult> GetRealPersonVerificationResultOutcome;
|
||||
typedef std::future<GetRealPersonVerificationResultOutcome> GetRealPersonVerificationResultOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::GetRealPersonVerificationResultRequest&, const GetRealPersonVerificationResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRealPersonVerificationResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::HandPostureResult> HandPostureOutcome;
|
||||
typedef std::future<HandPostureOutcome> HandPostureOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::HandPostureRequest&, const HandPostureOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> HandPostureAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListBodyDbsResult> ListBodyDbsOutcome;
|
||||
typedef std::future<ListBodyDbsOutcome> ListBodyDbsOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::ListBodyDbsRequest&, const ListBodyDbsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBodyDbsAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListBodyPersonResult> ListBodyPersonOutcome;
|
||||
typedef std::future<ListBodyPersonOutcome> ListBodyPersonOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::ListBodyPersonRequest&, const ListBodyPersonOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListBodyPersonAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListFaceDbsResult> ListFaceDbsOutcome;
|
||||
typedef std::future<ListFaceDbsOutcome> ListFaceDbsOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::ListFaceDbsRequest&, const ListFaceDbsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListFaceDbsAsyncHandler;
|
||||
@@ -224,6 +276,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::RecognizePublicFaceResult> RecognizePublicFaceOutcome;
|
||||
typedef std::future<RecognizePublicFaceOutcome> RecognizePublicFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::RecognizePublicFaceRequest&, const RecognizePublicFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RecognizePublicFaceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchBodyTraceResult> SearchBodyTraceOutcome;
|
||||
typedef std::future<SearchBodyTraceOutcome> SearchBodyTraceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::SearchBodyTraceRequest&, const SearchBodyTraceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchBodyTraceAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchFaceResult> SearchFaceOutcome;
|
||||
typedef std::future<SearchFaceOutcome> SearchFaceOutcomeCallable;
|
||||
typedef std::function<void(const FacebodyClient*, const Model::SearchFaceRequest&, const SearchFaceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchFaceAsyncHandler;
|
||||
@@ -241,6 +296,9 @@ namespace AlibabaCloud
|
||||
FacebodyClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
FacebodyClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~FacebodyClient();
|
||||
AddBodyTraceOutcome addBodyTrace(const Model::AddBodyTraceRequest &request)const;
|
||||
void addBodyTraceAsync(const Model::AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddBodyTraceOutcomeCallable addBodyTraceCallable(const Model::AddBodyTraceRequest& request) const;
|
||||
AddFaceOutcome addFace(const Model::AddFaceRequest &request)const;
|
||||
void addFaceAsync(const Model::AddFaceRequest& request, const AddFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddFaceOutcomeCallable addFaceCallable(const Model::AddFaceRequest& request) const;
|
||||
@@ -259,9 +317,21 @@ namespace AlibabaCloud
|
||||
CountCrowdOutcome countCrowd(const Model::CountCrowdRequest &request)const;
|
||||
void countCrowdAsync(const Model::CountCrowdRequest& request, const CountCrowdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CountCrowdOutcomeCallable countCrowdCallable(const Model::CountCrowdRequest& request) const;
|
||||
CreateBodyDbOutcome createBodyDb(const Model::CreateBodyDbRequest &request)const;
|
||||
void createBodyDbAsync(const Model::CreateBodyDbRequest& request, const CreateBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBodyDbOutcomeCallable createBodyDbCallable(const Model::CreateBodyDbRequest& request) const;
|
||||
CreateBodyPersonOutcome createBodyPerson(const Model::CreateBodyPersonRequest &request)const;
|
||||
void createBodyPersonAsync(const Model::CreateBodyPersonRequest& request, const CreateBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateBodyPersonOutcomeCallable createBodyPersonCallable(const Model::CreateBodyPersonRequest& request) const;
|
||||
CreateFaceDbOutcome createFaceDb(const Model::CreateFaceDbRequest &request)const;
|
||||
void createFaceDbAsync(const Model::CreateFaceDbRequest& request, const CreateFaceDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFaceDbOutcomeCallable createFaceDbCallable(const Model::CreateFaceDbRequest& request) const;
|
||||
DeleteBodyDbOutcome deleteBodyDb(const Model::DeleteBodyDbRequest &request)const;
|
||||
void deleteBodyDbAsync(const Model::DeleteBodyDbRequest& request, const DeleteBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBodyDbOutcomeCallable deleteBodyDbCallable(const Model::DeleteBodyDbRequest& request) const;
|
||||
DeleteBodyPersonOutcome deleteBodyPerson(const Model::DeleteBodyPersonRequest &request)const;
|
||||
void deleteBodyPersonAsync(const Model::DeleteBodyPersonRequest& request, const DeleteBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteBodyPersonOutcomeCallable deleteBodyPersonCallable(const Model::DeleteBodyPersonRequest& request) const;
|
||||
DeleteFaceOutcome deleteFace(const Model::DeleteFaceRequest &request)const;
|
||||
void deleteFaceAsync(const Model::DeleteFaceRequest& request, const DeleteFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFaceOutcomeCallable deleteFaceCallable(const Model::DeleteFaceRequest& request) const;
|
||||
@@ -322,15 +392,30 @@ namespace AlibabaCloud
|
||||
FaceTidyupOutcome faceTidyup(const Model::FaceTidyupRequest &request)const;
|
||||
void faceTidyupAsync(const Model::FaceTidyupRequest& request, const FaceTidyupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
FaceTidyupOutcomeCallable faceTidyupCallable(const Model::FaceTidyupRequest& request) const;
|
||||
GenRealPersonVerificationTokenOutcome genRealPersonVerificationToken(const Model::GenRealPersonVerificationTokenRequest &request)const;
|
||||
void genRealPersonVerificationTokenAsync(const Model::GenRealPersonVerificationTokenRequest& request, const GenRealPersonVerificationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenRealPersonVerificationTokenOutcomeCallable genRealPersonVerificationTokenCallable(const Model::GenRealPersonVerificationTokenRequest& request) const;
|
||||
GenerateHumanAnimeStyleOutcome generateHumanAnimeStyle(const Model::GenerateHumanAnimeStyleRequest &request)const;
|
||||
void generateHumanAnimeStyleAsync(const Model::GenerateHumanAnimeStyleRequest& request, const GenerateHumanAnimeStyleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GenerateHumanAnimeStyleOutcomeCallable generateHumanAnimeStyleCallable(const Model::GenerateHumanAnimeStyleRequest& request) const;
|
||||
GetBodyPersonOutcome getBodyPerson(const Model::GetBodyPersonRequest &request)const;
|
||||
void getBodyPersonAsync(const Model::GetBodyPersonRequest& request, const GetBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetBodyPersonOutcomeCallable getBodyPersonCallable(const Model::GetBodyPersonRequest& request) const;
|
||||
GetFaceEntityOutcome getFaceEntity(const Model::GetFaceEntityRequest &request)const;
|
||||
void getFaceEntityAsync(const Model::GetFaceEntityRequest& request, const GetFaceEntityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetFaceEntityOutcomeCallable getFaceEntityCallable(const Model::GetFaceEntityRequest& request) const;
|
||||
GetRealPersonVerificationResultOutcome getRealPersonVerificationResult(const Model::GetRealPersonVerificationResultRequest &request)const;
|
||||
void getRealPersonVerificationResultAsync(const Model::GetRealPersonVerificationResultRequest& request, const GetRealPersonVerificationResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRealPersonVerificationResultOutcomeCallable getRealPersonVerificationResultCallable(const Model::GetRealPersonVerificationResultRequest& request) const;
|
||||
HandPostureOutcome handPosture(const Model::HandPostureRequest &request)const;
|
||||
void handPostureAsync(const Model::HandPostureRequest& request, const HandPostureAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
HandPostureOutcomeCallable handPostureCallable(const Model::HandPostureRequest& request) const;
|
||||
ListBodyDbsOutcome listBodyDbs(const Model::ListBodyDbsRequest &request)const;
|
||||
void listBodyDbsAsync(const Model::ListBodyDbsRequest& request, const ListBodyDbsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListBodyDbsOutcomeCallable listBodyDbsCallable(const Model::ListBodyDbsRequest& request) const;
|
||||
ListBodyPersonOutcome listBodyPerson(const Model::ListBodyPersonRequest &request)const;
|
||||
void listBodyPersonAsync(const Model::ListBodyPersonRequest& request, const ListBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListBodyPersonOutcomeCallable listBodyPersonCallable(const Model::ListBodyPersonRequest& request) const;
|
||||
ListFaceDbsOutcome listFaceDbs(const Model::ListFaceDbsRequest &request)const;
|
||||
void listFaceDbsAsync(const Model::ListFaceDbsRequest& request, const ListFaceDbsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListFaceDbsOutcomeCallable listFaceDbsCallable(const Model::ListFaceDbsRequest& request) const;
|
||||
@@ -352,6 +437,9 @@ namespace AlibabaCloud
|
||||
RecognizePublicFaceOutcome recognizePublicFace(const Model::RecognizePublicFaceRequest &request)const;
|
||||
void recognizePublicFaceAsync(const Model::RecognizePublicFaceRequest& request, const RecognizePublicFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RecognizePublicFaceOutcomeCallable recognizePublicFaceCallable(const Model::RecognizePublicFaceRequest& request) const;
|
||||
SearchBodyTraceOutcome searchBodyTrace(const Model::SearchBodyTraceRequest &request)const;
|
||||
void searchBodyTraceAsync(const Model::SearchBodyTraceRequest& request, const SearchBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchBodyTraceOutcomeCallable searchBodyTraceCallable(const Model::SearchBodyTraceRequest& request) const;
|
||||
SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const;
|
||||
void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddBodyTraceRequest();
|
||||
~AddBodyTraceRequest();
|
||||
|
||||
std::string getExtraData()const;
|
||||
void setExtraData(const std::string& extraData);
|
||||
long getPersonId()const;
|
||||
void setPersonId(long personId);
|
||||
Array getImages()const;
|
||||
void setImages(const Array& images);
|
||||
long getDbId()const;
|
||||
void setDbId(long dbId);
|
||||
|
||||
private:
|
||||
std::string extraData_;
|
||||
long personId_;
|
||||
Array images_;
|
||||
long dbId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACEREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT AddBodyTraceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
AddBodyTraceResult();
|
||||
explicit AddBodyTraceResult(const std::string &payload);
|
||||
~AddBodyTraceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_ADDBODYTRACERESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBodyDbRequest();
|
||||
~CreateBodyDbRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyDbResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
CreateBodyDbResult();
|
||||
explicit CreateBodyDbResult(const std::string &payload);
|
||||
~CreateBodyDbResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYDBRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateBodyPersonRequest();
|
||||
~CreateBodyPersonRequest();
|
||||
|
||||
long getDbId()const;
|
||||
void setDbId(long dbId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
long dbId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONREQUEST_H_
|
||||
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT CreateBodyPersonResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
long id;
|
||||
};
|
||||
|
||||
|
||||
CreateBodyPersonResult();
|
||||
explicit CreateBodyPersonResult(const std::string &payload);
|
||||
~CreateBodyPersonResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_CREATEBODYPERSONRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBodyDbRequest();
|
||||
~DeleteBodyDbRequest();
|
||||
|
||||
long getId()const;
|
||||
void setId(long id);
|
||||
|
||||
private:
|
||||
long id_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBREQUEST_H_
|
||||
@@ -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_FACEBODY_MODEL_DELETEBODYDBRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyDbResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteBodyDbResult();
|
||||
explicit DeleteBodyDbResult(const std::string &payload);
|
||||
~DeleteBodyDbResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYDBRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteBodyPersonRequest();
|
||||
~DeleteBodyPersonRequest();
|
||||
|
||||
long getPersonId()const;
|
||||
void setPersonId(long personId);
|
||||
long getDbId()const;
|
||||
void setDbId(long dbId);
|
||||
|
||||
private:
|
||||
long personId_;
|
||||
long dbId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONREQUEST_H_
|
||||
@@ -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_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT DeleteBodyPersonResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteBodyPersonResult();
|
||||
explicit DeleteBodyPersonResult(const std::string &payload);
|
||||
~DeleteBodyPersonResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_DELETEBODYPERSONRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GenRealPersonVerificationTokenRequest();
|
||||
~GenRealPersonVerificationTokenRequest();
|
||||
|
||||
std::string getCertificateNumber()const;
|
||||
void setCertificateNumber(const std::string& certificateNumber);
|
||||
std::string getCertificateName()const;
|
||||
void setCertificateName(const std::string& certificateName);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
|
||||
private:
|
||||
std::string certificateNumber_;
|
||||
std::string certificateName_;
|
||||
std::string metaInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENREQUEST_H_
|
||||
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT GenRealPersonVerificationTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string verificationToken;
|
||||
};
|
||||
|
||||
|
||||
GenRealPersonVerificationTokenResult();
|
||||
explicit GenRealPersonVerificationTokenResult(const std::string &payload);
|
||||
~GenRealPersonVerificationTokenResult();
|
||||
Data getData()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GENREALPERSONVERIFICATIONTOKENRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetBodyPersonRequest();
|
||||
~GetBodyPersonRequest();
|
||||
|
||||
long getPersonId()const;
|
||||
void setPersonId(long personId);
|
||||
long getDbId()const;
|
||||
void setDbId(long dbId);
|
||||
|
||||
private:
|
||||
long personId_;
|
||||
long dbId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONREQUEST_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT GetBodyPersonResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Trace
|
||||
{
|
||||
std::string extraData;
|
||||
long id;
|
||||
};
|
||||
long traceCount;
|
||||
long instanceId;
|
||||
std::vector<Trace> traceList;
|
||||
long dbId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetBodyPersonResult();
|
||||
explicit GetBodyPersonResult(const std::string &payload);
|
||||
~GetBodyPersonResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETBODYPERSONRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT GetRealPersonVerificationResultRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetRealPersonVerificationResultRequest();
|
||||
~GetRealPersonVerificationResultRequest();
|
||||
|
||||
std::string getVerificationToken()const;
|
||||
void setVerificationToken(const std::string& verificationToken);
|
||||
std::string getMaterialHash()const;
|
||||
void setMaterialHash(const std::string& materialHash);
|
||||
|
||||
private:
|
||||
std::string verificationToken_;
|
||||
std::string materialHash_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT GetRealPersonVerificationResultResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
bool pass;
|
||||
std::string materialMatch;
|
||||
std::string identityInfo;
|
||||
};
|
||||
|
||||
|
||||
GetRealPersonVerificationResultResult();
|
||||
explicit GetRealPersonVerificationResultResult(const std::string &payload);
|
||||
~GetRealPersonVerificationResultResult();
|
||||
Data getData()const;
|
||||
std::string getErrorMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
Data data_;
|
||||
std::string errorMessage_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_GETREALPERSONVERIFICATIONRESULTRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListBodyDbsRequest();
|
||||
~ListBodyDbsRequest();
|
||||
|
||||
long getLimit()const;
|
||||
void setLimit(long limit);
|
||||
long getOffset()const;
|
||||
void setOffset(long offset);
|
||||
|
||||
private:
|
||||
long limit_;
|
||||
long offset_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSREQUEST_H_
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_LISTBODYDBSRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyDbsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct DbListItem
|
||||
{
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
long total;
|
||||
std::vector<DbListItem> dbList;
|
||||
};
|
||||
|
||||
|
||||
ListBodyDbsResult();
|
||||
explicit ListBodyDbsResult(const std::string &payload);
|
||||
~ListBodyDbsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYDBSRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListBodyPersonRequest();
|
||||
~ListBodyPersonRequest();
|
||||
|
||||
long getLimit()const;
|
||||
void setLimit(long limit);
|
||||
long getOffset()const;
|
||||
void setOffset(long offset);
|
||||
long getDbId()const;
|
||||
void setDbId(long dbId);
|
||||
|
||||
private:
|
||||
long limit_;
|
||||
long offset_;
|
||||
long dbId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT ListBodyPersonResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Person
|
||||
{
|
||||
long traceCount;
|
||||
long instanceId;
|
||||
long dbId;
|
||||
long id;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<Person> personList;
|
||||
long total;
|
||||
};
|
||||
|
||||
|
||||
ListBodyPersonResult();
|
||||
explicit ListBodyPersonResult(const std::string &payload);
|
||||
~ListBodyPersonResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_LISTBODYPERSONRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchBodyTraceRequest();
|
||||
~SearchBodyTraceRequest();
|
||||
|
||||
float getMinScore()const;
|
||||
void setMinScore(float minScore);
|
||||
long getLimit()const;
|
||||
void setLimit(long limit);
|
||||
Array getImages()const;
|
||||
void setImages(const Array& images);
|
||||
long getDbId()const;
|
||||
void setDbId(long dbId);
|
||||
|
||||
private:
|
||||
float minScore_;
|
||||
long limit_;
|
||||
Array images_;
|
||||
long dbId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACEREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_
|
||||
#define ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/facebody/FacebodyExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Facebody
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_FACEBODY_EXPORT SearchBodyTraceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Trace
|
||||
{
|
||||
float score;
|
||||
long personId;
|
||||
long traceId;
|
||||
long dbId;
|
||||
std::string extraData;
|
||||
};
|
||||
std::vector<Trace> matchList;
|
||||
};
|
||||
|
||||
|
||||
SearchBodyTraceResult();
|
||||
explicit SearchBodyTraceResult(const std::string &payload);
|
||||
~SearchBodyTraceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_FACEBODY_MODEL_SEARCHBODYTRACERESULT_H_
|
||||
@@ -51,6 +51,42 @@ FacebodyClient::FacebodyClient(const std::string & accessKeyId, const std::strin
|
||||
FacebodyClient::~FacebodyClient()
|
||||
{}
|
||||
|
||||
FacebodyClient::AddBodyTraceOutcome FacebodyClient::addBodyTrace(const AddBodyTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AddBodyTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AddBodyTraceOutcome(AddBodyTraceResult(outcome.result()));
|
||||
else
|
||||
return AddBodyTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::addBodyTraceAsync(const AddBodyTraceRequest& request, const AddBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, addBodyTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::AddBodyTraceOutcomeCallable FacebodyClient::addBodyTraceCallable(const AddBodyTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AddBodyTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->addBodyTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::AddFaceOutcome FacebodyClient::addFace(const AddFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -267,6 +303,78 @@ FacebodyClient::CountCrowdOutcomeCallable FacebodyClient::countCrowdCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyDbOutcome FacebodyClient::createBodyDb(const CreateBodyDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBodyDbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBodyDbOutcome(CreateBodyDbResult(outcome.result()));
|
||||
else
|
||||
return CreateBodyDbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::createBodyDbAsync(const CreateBodyDbRequest& request, const CreateBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBodyDb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyDbOutcomeCallable FacebodyClient::createBodyDbCallable(const CreateBodyDbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBodyDbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBodyDb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyPersonOutcome FacebodyClient::createBodyPerson(const CreateBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateBodyPersonOutcome(CreateBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return CreateBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::createBodyPersonAsync(const CreateBodyPersonRequest& request, const CreateBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::CreateBodyPersonOutcomeCallable FacebodyClient::createBodyPersonCallable(const CreateBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::CreateFaceDbOutcome FacebodyClient::createFaceDb(const CreateFaceDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +411,78 @@ FacebodyClient::CreateFaceDbOutcomeCallable FacebodyClient::createFaceDbCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyDbOutcome FacebodyClient::deleteBodyDb(const DeleteBodyDbRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteBodyDbOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteBodyDbOutcome(DeleteBodyDbResult(outcome.result()));
|
||||
else
|
||||
return DeleteBodyDbOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::deleteBodyDbAsync(const DeleteBodyDbRequest& request, const DeleteBodyDbAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteBodyDb(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyDbOutcomeCallable FacebodyClient::deleteBodyDbCallable(const DeleteBodyDbRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteBodyDbOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteBodyDb(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyPersonOutcome FacebodyClient::deleteBodyPerson(const DeleteBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteBodyPersonOutcome(DeleteBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return DeleteBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::deleteBodyPersonAsync(const DeleteBodyPersonRequest& request, const DeleteBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteBodyPersonOutcomeCallable FacebodyClient::deleteBodyPersonCallable(const DeleteBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::DeleteFaceOutcome FacebodyClient::deleteFace(const DeleteFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1023,6 +1203,42 @@ FacebodyClient::FaceTidyupOutcomeCallable FacebodyClient::faceTidyupCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GenRealPersonVerificationTokenOutcome FacebodyClient::genRealPersonVerificationToken(const GenRealPersonVerificationTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GenRealPersonVerificationTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GenRealPersonVerificationTokenOutcome(GenRealPersonVerificationTokenResult(outcome.result()));
|
||||
else
|
||||
return GenRealPersonVerificationTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::genRealPersonVerificationTokenAsync(const GenRealPersonVerificationTokenRequest& request, const GenRealPersonVerificationTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, genRealPersonVerificationToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::GenRealPersonVerificationTokenOutcomeCallable FacebodyClient::genRealPersonVerificationTokenCallable(const GenRealPersonVerificationTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GenRealPersonVerificationTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->genRealPersonVerificationToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GenerateHumanAnimeStyleOutcome FacebodyClient::generateHumanAnimeStyle(const GenerateHumanAnimeStyleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1059,6 +1275,42 @@ FacebodyClient::GenerateHumanAnimeStyleOutcomeCallable FacebodyClient::generateH
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GetBodyPersonOutcome FacebodyClient::getBodyPerson(const GetBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetBodyPersonOutcome(GetBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return GetBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::getBodyPersonAsync(const GetBodyPersonRequest& request, const GetBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::GetBodyPersonOutcomeCallable FacebodyClient::getBodyPersonCallable(const GetBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GetFaceEntityOutcome FacebodyClient::getFaceEntity(const GetFaceEntityRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1095,6 +1347,42 @@ FacebodyClient::GetFaceEntityOutcomeCallable FacebodyClient::getFaceEntityCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::GetRealPersonVerificationResultOutcome FacebodyClient::getRealPersonVerificationResult(const GetRealPersonVerificationResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRealPersonVerificationResultOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRealPersonVerificationResultOutcome(GetRealPersonVerificationResultResult(outcome.result()));
|
||||
else
|
||||
return GetRealPersonVerificationResultOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::getRealPersonVerificationResultAsync(const GetRealPersonVerificationResultRequest& request, const GetRealPersonVerificationResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRealPersonVerificationResult(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::GetRealPersonVerificationResultOutcomeCallable FacebodyClient::getRealPersonVerificationResultCallable(const GetRealPersonVerificationResultRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRealPersonVerificationResultOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRealPersonVerificationResult(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::HandPostureOutcome FacebodyClient::handPosture(const HandPostureRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1419,78 @@ FacebodyClient::HandPostureOutcomeCallable FacebodyClient::handPostureCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyDbsOutcome FacebodyClient::listBodyDbs(const ListBodyDbsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListBodyDbsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListBodyDbsOutcome(ListBodyDbsResult(outcome.result()));
|
||||
else
|
||||
return ListBodyDbsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::listBodyDbsAsync(const ListBodyDbsRequest& request, const ListBodyDbsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listBodyDbs(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyDbsOutcomeCallable FacebodyClient::listBodyDbsCallable(const ListBodyDbsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListBodyDbsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listBodyDbs(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyPersonOutcome FacebodyClient::listBodyPerson(const ListBodyPersonRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListBodyPersonOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListBodyPersonOutcome(ListBodyPersonResult(outcome.result()));
|
||||
else
|
||||
return ListBodyPersonOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::listBodyPersonAsync(const ListBodyPersonRequest& request, const ListBodyPersonAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listBodyPerson(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::ListBodyPersonOutcomeCallable FacebodyClient::listBodyPersonCallable(const ListBodyPersonRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListBodyPersonOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listBodyPerson(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::ListFaceDbsOutcome FacebodyClient::listFaceDbs(const ListFaceDbsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,6 +1743,42 @@ FacebodyClient::RecognizePublicFaceOutcomeCallable FacebodyClient::recognizePubl
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::SearchBodyTraceOutcome FacebodyClient::searchBodyTrace(const SearchBodyTraceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchBodyTraceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchBodyTraceOutcome(SearchBodyTraceResult(outcome.result()));
|
||||
else
|
||||
return SearchBodyTraceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void FacebodyClient::searchBodyTraceAsync(const SearchBodyTraceRequest& request, const SearchBodyTraceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchBodyTrace(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
FacebodyClient::SearchBodyTraceOutcomeCallable FacebodyClient::searchBodyTraceCallable(const SearchBodyTraceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchBodyTraceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchBodyTrace(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
FacebodyClient::SearchFaceOutcome FacebodyClient::searchFace(const SearchFaceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
73
facebody/src/model/AddBodyTraceRequest.cc
Normal file
73
facebody/src/model/AddBodyTraceRequest.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/facebody/model/AddBodyTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::AddBodyTraceRequest;
|
||||
|
||||
AddBodyTraceRequest::AddBodyTraceRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "AddBodyTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
AddBodyTraceRequest::~AddBodyTraceRequest()
|
||||
{}
|
||||
|
||||
std::string AddBodyTraceRequest::getExtraData()const
|
||||
{
|
||||
return extraData_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setExtraData(const std::string& extraData)
|
||||
{
|
||||
extraData_ = extraData;
|
||||
setBodyParameter("ExtraData", extraData);
|
||||
}
|
||||
|
||||
long AddBodyTraceRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setPersonId(long personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", std::to_string(personId));
|
||||
}
|
||||
|
||||
Array AddBodyTraceRequest::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setImages(const Array& images)
|
||||
{
|
||||
images_ = images;
|
||||
setBodyParameter("Images", std::to_string(images));
|
||||
}
|
||||
|
||||
long AddBodyTraceRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void AddBodyTraceRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
66
facebody/src/model/AddBodyTraceResult.cc
Normal file
66
facebody/src/model/AddBodyTraceResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/AddBodyTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
AddBodyTraceResult::AddBodyTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddBodyTraceResult::AddBodyTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddBodyTraceResult::~AddBodyTraceResult()
|
||||
{}
|
||||
|
||||
void AddBodyTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string AddBodyTraceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AddBodyTraceResult::Data AddBodyTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AddBodyTraceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
facebody/src/model/CreateBodyDbRequest.cc
Normal file
40
facebody/src/model/CreateBodyDbRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/facebody/model/CreateBodyDbRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::CreateBodyDbRequest;
|
||||
|
||||
CreateBodyDbRequest::CreateBodyDbRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "CreateBodyDb")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBodyDbRequest::~CreateBodyDbRequest()
|
||||
{}
|
||||
|
||||
std::string CreateBodyDbRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBodyDbRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
66
facebody/src/model/CreateBodyDbResult.cc
Normal file
66
facebody/src/model/CreateBodyDbResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/CreateBodyDbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
CreateBodyDbResult::CreateBodyDbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBodyDbResult::CreateBodyDbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBodyDbResult::~CreateBodyDbResult()
|
||||
{}
|
||||
|
||||
void CreateBodyDbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBodyDbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateBodyDbResult::Data CreateBodyDbResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateBodyDbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/CreateBodyPersonRequest.cc
Normal file
51
facebody/src/model/CreateBodyPersonRequest.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/facebody/model/CreateBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::CreateBodyPersonRequest;
|
||||
|
||||
CreateBodyPersonRequest::CreateBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "CreateBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateBodyPersonRequest::~CreateBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long CreateBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void CreateBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
std::string CreateBodyPersonRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateBodyPersonRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setBodyParameter("Name", name);
|
||||
}
|
||||
|
||||
66
facebody/src/model/CreateBodyPersonResult.cc
Normal file
66
facebody/src/model/CreateBodyPersonResult.cc
Normal file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/CreateBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
CreateBodyPersonResult::CreateBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateBodyPersonResult::CreateBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateBodyPersonResult::~CreateBodyPersonResult()
|
||||
{}
|
||||
|
||||
void CreateBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateBodyPersonResult::Data CreateBodyPersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
40
facebody/src/model/DeleteBodyDbRequest.cc
Normal file
40
facebody/src/model/DeleteBodyDbRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 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/facebody/model/DeleteBodyDbRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DeleteBodyDbRequest;
|
||||
|
||||
DeleteBodyDbRequest::DeleteBodyDbRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyDb")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBodyDbRequest::~DeleteBodyDbRequest()
|
||||
{}
|
||||
|
||||
long DeleteBodyDbRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void DeleteBodyDbRequest::setId(long id)
|
||||
{
|
||||
id_ = id;
|
||||
setBodyParameter("Id", std::to_string(id));
|
||||
}
|
||||
|
||||
58
facebody/src/model/DeleteBodyDbResult.cc
Normal file
58
facebody/src/model/DeleteBodyDbResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/facebody/model/DeleteBodyDbResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DeleteBodyDbResult::DeleteBodyDbResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBodyDbResult::DeleteBodyDbResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBodyDbResult::~DeleteBodyDbResult()
|
||||
{}
|
||||
|
||||
void DeleteBodyDbResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBodyDbResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteBodyDbResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/DeleteBodyPersonRequest.cc
Normal file
51
facebody/src/model/DeleteBodyPersonRequest.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/facebody/model/DeleteBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::DeleteBodyPersonRequest;
|
||||
|
||||
DeleteBodyPersonRequest::DeleteBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "DeleteBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteBodyPersonRequest::~DeleteBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long DeleteBodyPersonRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void DeleteBodyPersonRequest::setPersonId(long personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setBodyParameter("PersonId", std::to_string(personId));
|
||||
}
|
||||
|
||||
long DeleteBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void DeleteBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
58
facebody/src/model/DeleteBodyPersonResult.cc
Normal file
58
facebody/src/model/DeleteBodyPersonResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/facebody/model/DeleteBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
DeleteBodyPersonResult::DeleteBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteBodyPersonResult::DeleteBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteBodyPersonResult::~DeleteBodyPersonResult()
|
||||
{}
|
||||
|
||||
void DeleteBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
facebody/src/model/GenRealPersonVerificationTokenRequest.cc
Normal file
62
facebody/src/model/GenRealPersonVerificationTokenRequest.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/facebody/model/GenRealPersonVerificationTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::GenRealPersonVerificationTokenRequest;
|
||||
|
||||
GenRealPersonVerificationTokenRequest::GenRealPersonVerificationTokenRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "GenRealPersonVerificationToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GenRealPersonVerificationTokenRequest::~GenRealPersonVerificationTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GenRealPersonVerificationTokenRequest::getCertificateNumber()const
|
||||
{
|
||||
return certificateNumber_;
|
||||
}
|
||||
|
||||
void GenRealPersonVerificationTokenRequest::setCertificateNumber(const std::string& certificateNumber)
|
||||
{
|
||||
certificateNumber_ = certificateNumber;
|
||||
setBodyParameter("CertificateNumber", certificateNumber);
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenRequest::getCertificateName()const
|
||||
{
|
||||
return certificateName_;
|
||||
}
|
||||
|
||||
void GenRealPersonVerificationTokenRequest::setCertificateName(const std::string& certificateName)
|
||||
{
|
||||
certificateName_ = certificateName;
|
||||
setBodyParameter("CertificateName", certificateName);
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
}
|
||||
|
||||
void GenRealPersonVerificationTokenRequest::setMetaInfo(const std::string& metaInfo)
|
||||
{
|
||||
metaInfo_ = metaInfo;
|
||||
setBodyParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
73
facebody/src/model/GenRealPersonVerificationTokenResult.cc
Normal file
73
facebody/src/model/GenRealPersonVerificationTokenResult.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/facebody/model/GenRealPersonVerificationTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GenRealPersonVerificationTokenResult::GenRealPersonVerificationTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GenRealPersonVerificationTokenResult::~GenRealPersonVerificationTokenResult()
|
||||
{}
|
||||
|
||||
void GenRealPersonVerificationTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["VerificationToken"].isNull())
|
||||
data_.verificationToken = dataNode["VerificationToken"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
GenRealPersonVerificationTokenResult::Data GenRealPersonVerificationTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GenRealPersonVerificationTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GenRealPersonVerificationTokenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/GetBodyPersonRequest.cc
Normal file
51
facebody/src/model/GetBodyPersonRequest.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/facebody/model/GetBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::GetBodyPersonRequest;
|
||||
|
||||
GetBodyPersonRequest::GetBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "GetBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
GetBodyPersonRequest::~GetBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long GetBodyPersonRequest::getPersonId()const
|
||||
{
|
||||
return personId_;
|
||||
}
|
||||
|
||||
void GetBodyPersonRequest::setPersonId(long personId)
|
||||
{
|
||||
personId_ = personId;
|
||||
setParameter("PersonId", std::to_string(personId));
|
||||
}
|
||||
|
||||
long GetBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void GetBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
84
facebody/src/model/GetBodyPersonResult.cc
Normal file
84
facebody/src/model/GetBodyPersonResult.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/facebody/model/GetBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
GetBodyPersonResult::GetBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetBodyPersonResult::GetBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetBodyPersonResult::~GetBodyPersonResult()
|
||||
{}
|
||||
|
||||
void GetBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["TraceCount"].isNull())
|
||||
data_.traceCount = std::stol(dataNode["TraceCount"].asString());
|
||||
if(!dataNode["InstanceId"].isNull())
|
||||
data_.instanceId = std::stol(dataNode["InstanceId"].asString());
|
||||
if(!dataNode["DbId"].isNull())
|
||||
data_.dbId = std::stol(dataNode["DbId"].asString());
|
||||
if(!dataNode["Id"].isNull())
|
||||
data_.id = std::stol(dataNode["Id"].asString());
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
auto allTraceListNode = dataNode["TraceList"]["Trace"];
|
||||
for (auto dataNodeTraceListTrace : allTraceListNode)
|
||||
{
|
||||
Data::Trace traceObject;
|
||||
if(!dataNodeTraceListTrace["ExtraData"].isNull())
|
||||
traceObject.extraData = dataNodeTraceListTrace["ExtraData"].asString();
|
||||
if(!dataNodeTraceListTrace["Id"].isNull())
|
||||
traceObject.id = std::stol(dataNodeTraceListTrace["Id"].asString());
|
||||
data_.traceList.push_back(traceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetBodyPersonResult::Data GetBodyPersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/GetRealPersonVerificationResultRequest.cc
Normal file
51
facebody/src/model/GetRealPersonVerificationResultRequest.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/facebody/model/GetRealPersonVerificationResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::GetRealPersonVerificationResultRequest;
|
||||
|
||||
GetRealPersonVerificationResultRequest::GetRealPersonVerificationResultRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "GetRealPersonVerificationResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRealPersonVerificationResultRequest::~GetRealPersonVerificationResultRequest()
|
||||
{}
|
||||
|
||||
std::string GetRealPersonVerificationResultRequest::getVerificationToken()const
|
||||
{
|
||||
return verificationToken_;
|
||||
}
|
||||
|
||||
void GetRealPersonVerificationResultRequest::setVerificationToken(const std::string& verificationToken)
|
||||
{
|
||||
verificationToken_ = verificationToken;
|
||||
setBodyParameter("VerificationToken", verificationToken);
|
||||
}
|
||||
|
||||
std::string GetRealPersonVerificationResultRequest::getMaterialHash()const
|
||||
{
|
||||
return materialHash_;
|
||||
}
|
||||
|
||||
void GetRealPersonVerificationResultRequest::setMaterialHash(const std::string& materialHash)
|
||||
{
|
||||
materialHash_ = materialHash;
|
||||
setBodyParameter("MaterialHash", materialHash);
|
||||
}
|
||||
|
||||
77
facebody/src/model/GetRealPersonVerificationResultResult.cc
Normal file
77
facebody/src/model/GetRealPersonVerificationResultResult.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/facebody/model/GetRealPersonVerificationResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
GetRealPersonVerificationResultResult::GetRealPersonVerificationResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRealPersonVerificationResultResult::GetRealPersonVerificationResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRealPersonVerificationResultResult::~GetRealPersonVerificationResultResult()
|
||||
{}
|
||||
|
||||
void GetRealPersonVerificationResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Pass"].isNull())
|
||||
data_.pass = dataNode["Pass"].asString() == "true";
|
||||
if(!dataNode["MaterialMatch"].isNull())
|
||||
data_.materialMatch = dataNode["MaterialMatch"].asString();
|
||||
if(!dataNode["IdentityInfo"].isNull())
|
||||
data_.identityInfo = dataNode["IdentityInfo"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
GetRealPersonVerificationResultResult::Data GetRealPersonVerificationResultResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetRealPersonVerificationResultResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
std::string GetRealPersonVerificationResultResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetRealPersonVerificationResultResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
facebody/src/model/ListBodyDbsRequest.cc
Normal file
51
facebody/src/model/ListBodyDbsRequest.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/facebody/model/ListBodyDbsRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::ListBodyDbsRequest;
|
||||
|
||||
ListBodyDbsRequest::ListBodyDbsRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "ListBodyDbs")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListBodyDbsRequest::~ListBodyDbsRequest()
|
||||
{}
|
||||
|
||||
long ListBodyDbsRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListBodyDbsRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long ListBodyDbsRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void ListBodyDbsRequest::setOffset(long offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
76
facebody/src/model/ListBodyDbsResult.cc
Normal file
76
facebody/src/model/ListBodyDbsResult.cc
Normal file
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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/facebody/model/ListBodyDbsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
ListBodyDbsResult::ListBodyDbsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBodyDbsResult::ListBodyDbsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBodyDbsResult::~ListBodyDbsResult()
|
||||
{}
|
||||
|
||||
void ListBodyDbsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allDbListNode = dataNode["DbList"]["DbListItem"];
|
||||
for (auto dataNodeDbListDbListItem : allDbListNode)
|
||||
{
|
||||
Data::DbListItem dbListItemObject;
|
||||
if(!dataNodeDbListDbListItem["Id"].isNull())
|
||||
dbListItemObject.id = std::stol(dataNodeDbListDbListItem["Id"].asString());
|
||||
if(!dataNodeDbListDbListItem["Name"].isNull())
|
||||
dbListItemObject.name = dataNodeDbListDbListItem["Name"].asString();
|
||||
data_.dbList.push_back(dbListItemObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListBodyDbsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListBodyDbsResult::Data ListBodyDbsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListBodyDbsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
62
facebody/src/model/ListBodyPersonRequest.cc
Normal file
62
facebody/src/model/ListBodyPersonRequest.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/facebody/model/ListBodyPersonRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::ListBodyPersonRequest;
|
||||
|
||||
ListBodyPersonRequest::ListBodyPersonRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "ListBodyPerson")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
ListBodyPersonRequest::~ListBodyPersonRequest()
|
||||
{}
|
||||
|
||||
long ListBodyPersonRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void ListBodyPersonRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long ListBodyPersonRequest::getOffset()const
|
||||
{
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void ListBodyPersonRequest::setOffset(long offset)
|
||||
{
|
||||
offset_ = offset;
|
||||
setParameter("Offset", std::to_string(offset));
|
||||
}
|
||||
|
||||
long ListBodyPersonRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void ListBodyPersonRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
82
facebody/src/model/ListBodyPersonResult.cc
Normal file
82
facebody/src/model/ListBodyPersonResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/facebody/model/ListBodyPersonResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
ListBodyPersonResult::ListBodyPersonResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListBodyPersonResult::ListBodyPersonResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListBodyPersonResult::~ListBodyPersonResult()
|
||||
{}
|
||||
|
||||
void ListBodyPersonResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Total"].isNull())
|
||||
data_.total = std::stol(dataNode["Total"].asString());
|
||||
auto allPersonListNode = dataNode["PersonList"]["Person"];
|
||||
for (auto dataNodePersonListPerson : allPersonListNode)
|
||||
{
|
||||
Data::Person personObject;
|
||||
if(!dataNodePersonListPerson["TraceCount"].isNull())
|
||||
personObject.traceCount = std::stol(dataNodePersonListPerson["TraceCount"].asString());
|
||||
if(!dataNodePersonListPerson["InstanceId"].isNull())
|
||||
personObject.instanceId = std::stol(dataNodePersonListPerson["InstanceId"].asString());
|
||||
if(!dataNodePersonListPerson["DbId"].isNull())
|
||||
personObject.dbId = std::stol(dataNodePersonListPerson["DbId"].asString());
|
||||
if(!dataNodePersonListPerson["Id"].isNull())
|
||||
personObject.id = std::stol(dataNodePersonListPerson["Id"].asString());
|
||||
if(!dataNodePersonListPerson["Name"].isNull())
|
||||
personObject.name = dataNodePersonListPerson["Name"].asString();
|
||||
data_.personList.push_back(personObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListBodyPersonResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
ListBodyPersonResult::Data ListBodyPersonResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ListBodyPersonResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
facebody/src/model/SearchBodyTraceRequest.cc
Normal file
73
facebody/src/model/SearchBodyTraceRequest.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/facebody/model/SearchBodyTraceRequest.h>
|
||||
|
||||
using AlibabaCloud::Facebody::Model::SearchBodyTraceRequest;
|
||||
|
||||
SearchBodyTraceRequest::SearchBodyTraceRequest() :
|
||||
RpcServiceRequest("facebody", "2019-12-30", "SearchBodyTrace")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchBodyTraceRequest::~SearchBodyTraceRequest()
|
||||
{}
|
||||
|
||||
float SearchBodyTraceRequest::getMinScore()const
|
||||
{
|
||||
return minScore_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setMinScore(float minScore)
|
||||
{
|
||||
minScore_ = minScore;
|
||||
setBodyParameter("MinScore", std::to_string(minScore));
|
||||
}
|
||||
|
||||
long SearchBodyTraceRequest::getLimit()const
|
||||
{
|
||||
return limit_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setLimit(long limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setBodyParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
Array SearchBodyTraceRequest::getImages()const
|
||||
{
|
||||
return images_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setImages(const Array& images)
|
||||
{
|
||||
images_ = images;
|
||||
setBodyParameter("Images", std::to_string(images));
|
||||
}
|
||||
|
||||
long SearchBodyTraceRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
void SearchBodyTraceRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setBodyParameter("DbId", std::to_string(dbId));
|
||||
}
|
||||
|
||||
80
facebody/src/model/SearchBodyTraceResult.cc
Normal file
80
facebody/src/model/SearchBodyTraceResult.cc
Normal file
@@ -0,0 +1,80 @@
|
||||
/*
|
||||
* 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/facebody/model/SearchBodyTraceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Facebody;
|
||||
using namespace AlibabaCloud::Facebody::Model;
|
||||
|
||||
SearchBodyTraceResult::SearchBodyTraceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchBodyTraceResult::SearchBodyTraceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchBodyTraceResult::~SearchBodyTraceResult()
|
||||
{}
|
||||
|
||||
void SearchBodyTraceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allMatchListNode = dataNode["MatchList"]["Trace"];
|
||||
for (auto dataNodeMatchListTrace : allMatchListNode)
|
||||
{
|
||||
Data::Trace traceObject;
|
||||
if(!dataNodeMatchListTrace["Score"].isNull())
|
||||
traceObject.score = std::stof(dataNodeMatchListTrace["Score"].asString());
|
||||
if(!dataNodeMatchListTrace["PersonId"].isNull())
|
||||
traceObject.personId = std::stol(dataNodeMatchListTrace["PersonId"].asString());
|
||||
if(!dataNodeMatchListTrace["TraceId"].isNull())
|
||||
traceObject.traceId = std::stol(dataNodeMatchListTrace["TraceId"].asString());
|
||||
if(!dataNodeMatchListTrace["DbId"].isNull())
|
||||
traceObject.dbId = std::stol(dataNodeMatchListTrace["DbId"].asString());
|
||||
if(!dataNodeMatchListTrace["ExtraData"].isNull())
|
||||
traceObject.extraData = dataNodeMatchListTrace["ExtraData"].asString();
|
||||
data_.matchList.push_back(traceObject);
|
||||
}
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SearchBodyTraceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SearchBodyTraceResult::Data SearchBodyTraceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SearchBodyTraceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -21,12 +21,44 @@ set(nlp-automl_public_header
|
||||
include/alibabacloud/nlp-automl/Nlp_automlExport.h )
|
||||
|
||||
set(nlp-automl_public_header_model
|
||||
include/alibabacloud/nlp-automl/model/AddMTInterveneWordRequest.h
|
||||
include/alibabacloud/nlp-automl/model/AddMTInterveneWordResult.h
|
||||
include/alibabacloud/nlp-automl/model/AddMtIntervenePackageRequest.h
|
||||
include/alibabacloud/nlp-automl/model/AddMtIntervenePackageResult.h
|
||||
include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelRequest.h
|
||||
include/alibabacloud/nlp-automl/model/BindIntervenePackageAndModelResult.h
|
||||
include/alibabacloud/nlp-automl/model/CreateAsyncPredictRequest.h
|
||||
include/alibabacloud/nlp-automl/model/CreateAsyncPredictResult.h
|
||||
include/alibabacloud/nlp-automl/model/CreateDatasetRequest.h
|
||||
include/alibabacloud/nlp-automl/model/CreateDatasetResult.h
|
||||
include/alibabacloud/nlp-automl/model/CreateDatasetRecordRequest.h
|
||||
include/alibabacloud/nlp-automl/model/CreateDatasetRecordResult.h
|
||||
include/alibabacloud/nlp-automl/model/CreateModelRequest.h
|
||||
include/alibabacloud/nlp-automl/model/CreateModelResult.h
|
||||
include/alibabacloud/nlp-automl/model/CreateProjectRequest.h
|
||||
include/alibabacloud/nlp-automl/model/CreateProjectResult.h
|
||||
include/alibabacloud/nlp-automl/model/DeleteModelRequest.h
|
||||
include/alibabacloud/nlp-automl/model/DeleteModelResult.h
|
||||
include/alibabacloud/nlp-automl/model/DeployModelRequest.h
|
||||
include/alibabacloud/nlp-automl/model/DeployModelResult.h
|
||||
include/alibabacloud/nlp-automl/model/GetAsyncPredictRequest.h
|
||||
include/alibabacloud/nlp-automl/model/GetAsyncPredictResult.h
|
||||
include/alibabacloud/nlp-automl/model/GetModelRequest.h
|
||||
include/alibabacloud/nlp-automl/model/GetModelResult.h
|
||||
include/alibabacloud/nlp-automl/model/GetPredictDocRequest.h
|
||||
include/alibabacloud/nlp-automl/model/GetPredictDocResult.h
|
||||
include/alibabacloud/nlp-automl/model/GetPredictResultRequest.h
|
||||
include/alibabacloud/nlp-automl/model/GetPredictResultResult.h
|
||||
include/alibabacloud/nlp-automl/model/InvokeActionRequest.h
|
||||
include/alibabacloud/nlp-automl/model/InvokeActionResult.h
|
||||
include/alibabacloud/nlp-automl/model/ListDatasetRequest.h
|
||||
include/alibabacloud/nlp-automl/model/ListDatasetResult.h
|
||||
include/alibabacloud/nlp-automl/model/ListModelsRequest.h
|
||||
include/alibabacloud/nlp-automl/model/ListModelsResult.h
|
||||
include/alibabacloud/nlp-automl/model/PredictMTModelRequest.h
|
||||
include/alibabacloud/nlp-automl/model/PredictMTModelResult.h
|
||||
include/alibabacloud/nlp-automl/model/PredictMTModelByDocRequest.h
|
||||
include/alibabacloud/nlp-automl/model/PredictMTModelByDocResult.h
|
||||
include/alibabacloud/nlp-automl/model/RunContactReviewRequest.h
|
||||
include/alibabacloud/nlp-automl/model/RunContactReviewResult.h
|
||||
include/alibabacloud/nlp-automl/model/RunPreTrainServiceRequest.h
|
||||
@@ -36,12 +68,44 @@ set(nlp-automl_public_header_model
|
||||
|
||||
set(nlp-automl_src
|
||||
src/Nlp-automlClient.cc
|
||||
src/model/AddMTInterveneWordRequest.cc
|
||||
src/model/AddMTInterveneWordResult.cc
|
||||
src/model/AddMtIntervenePackageRequest.cc
|
||||
src/model/AddMtIntervenePackageResult.cc
|
||||
src/model/BindIntervenePackageAndModelRequest.cc
|
||||
src/model/BindIntervenePackageAndModelResult.cc
|
||||
src/model/CreateAsyncPredictRequest.cc
|
||||
src/model/CreateAsyncPredictResult.cc
|
||||
src/model/CreateDatasetRequest.cc
|
||||
src/model/CreateDatasetResult.cc
|
||||
src/model/CreateDatasetRecordRequest.cc
|
||||
src/model/CreateDatasetRecordResult.cc
|
||||
src/model/CreateModelRequest.cc
|
||||
src/model/CreateModelResult.cc
|
||||
src/model/CreateProjectRequest.cc
|
||||
src/model/CreateProjectResult.cc
|
||||
src/model/DeleteModelRequest.cc
|
||||
src/model/DeleteModelResult.cc
|
||||
src/model/DeployModelRequest.cc
|
||||
src/model/DeployModelResult.cc
|
||||
src/model/GetAsyncPredictRequest.cc
|
||||
src/model/GetAsyncPredictResult.cc
|
||||
src/model/GetModelRequest.cc
|
||||
src/model/GetModelResult.cc
|
||||
src/model/GetPredictDocRequest.cc
|
||||
src/model/GetPredictDocResult.cc
|
||||
src/model/GetPredictResultRequest.cc
|
||||
src/model/GetPredictResultResult.cc
|
||||
src/model/InvokeActionRequest.cc
|
||||
src/model/InvokeActionResult.cc
|
||||
src/model/ListDatasetRequest.cc
|
||||
src/model/ListDatasetResult.cc
|
||||
src/model/ListModelsRequest.cc
|
||||
src/model/ListModelsResult.cc
|
||||
src/model/PredictMTModelRequest.cc
|
||||
src/model/PredictMTModelResult.cc
|
||||
src/model/PredictMTModelByDocRequest.cc
|
||||
src/model/PredictMTModelByDocResult.cc
|
||||
src/model/RunContactReviewRequest.cc
|
||||
src/model/RunContactReviewResult.cc
|
||||
src/model/RunPreTrainServiceRequest.cc
|
||||
|
||||
@@ -22,12 +22,44 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "Nlp_automlExport.h"
|
||||
#include "model/AddMTInterveneWordRequest.h"
|
||||
#include "model/AddMTInterveneWordResult.h"
|
||||
#include "model/AddMtIntervenePackageRequest.h"
|
||||
#include "model/AddMtIntervenePackageResult.h"
|
||||
#include "model/BindIntervenePackageAndModelRequest.h"
|
||||
#include "model/BindIntervenePackageAndModelResult.h"
|
||||
#include "model/CreateAsyncPredictRequest.h"
|
||||
#include "model/CreateAsyncPredictResult.h"
|
||||
#include "model/CreateDatasetRequest.h"
|
||||
#include "model/CreateDatasetResult.h"
|
||||
#include "model/CreateDatasetRecordRequest.h"
|
||||
#include "model/CreateDatasetRecordResult.h"
|
||||
#include "model/CreateModelRequest.h"
|
||||
#include "model/CreateModelResult.h"
|
||||
#include "model/CreateProjectRequest.h"
|
||||
#include "model/CreateProjectResult.h"
|
||||
#include "model/DeleteModelRequest.h"
|
||||
#include "model/DeleteModelResult.h"
|
||||
#include "model/DeployModelRequest.h"
|
||||
#include "model/DeployModelResult.h"
|
||||
#include "model/GetAsyncPredictRequest.h"
|
||||
#include "model/GetAsyncPredictResult.h"
|
||||
#include "model/GetModelRequest.h"
|
||||
#include "model/GetModelResult.h"
|
||||
#include "model/GetPredictDocRequest.h"
|
||||
#include "model/GetPredictDocResult.h"
|
||||
#include "model/GetPredictResultRequest.h"
|
||||
#include "model/GetPredictResultResult.h"
|
||||
#include "model/InvokeActionRequest.h"
|
||||
#include "model/InvokeActionResult.h"
|
||||
#include "model/ListDatasetRequest.h"
|
||||
#include "model/ListDatasetResult.h"
|
||||
#include "model/ListModelsRequest.h"
|
||||
#include "model/ListModelsResult.h"
|
||||
#include "model/PredictMTModelRequest.h"
|
||||
#include "model/PredictMTModelResult.h"
|
||||
#include "model/PredictMTModelByDocRequest.h"
|
||||
#include "model/PredictMTModelByDocResult.h"
|
||||
#include "model/RunContactReviewRequest.h"
|
||||
#include "model/RunContactReviewResult.h"
|
||||
#include "model/RunPreTrainServiceRequest.h"
|
||||
@@ -43,15 +75,63 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT Nlp_automlClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AddMTInterveneWordResult> AddMTInterveneWordOutcome;
|
||||
typedef std::future<AddMTInterveneWordOutcome> AddMTInterveneWordOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::AddMTInterveneWordRequest&, const AddMTInterveneWordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddMTInterveneWordAsyncHandler;
|
||||
typedef Outcome<Error, Model::AddMtIntervenePackageResult> AddMtIntervenePackageOutcome;
|
||||
typedef std::future<AddMtIntervenePackageOutcome> AddMtIntervenePackageOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::AddMtIntervenePackageRequest&, const AddMtIntervenePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AddMtIntervenePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::BindIntervenePackageAndModelResult> BindIntervenePackageAndModelOutcome;
|
||||
typedef std::future<BindIntervenePackageAndModelOutcome> BindIntervenePackageAndModelOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::BindIntervenePackageAndModelRequest&, const BindIntervenePackageAndModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BindIntervenePackageAndModelAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAsyncPredictResult> CreateAsyncPredictOutcome;
|
||||
typedef std::future<CreateAsyncPredictOutcome> CreateAsyncPredictOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::CreateAsyncPredictRequest&, const CreateAsyncPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAsyncPredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDatasetResult> CreateDatasetOutcome;
|
||||
typedef std::future<CreateDatasetOutcome> CreateDatasetOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::CreateDatasetRequest&, const CreateDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDatasetAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDatasetRecordResult> CreateDatasetRecordOutcome;
|
||||
typedef std::future<CreateDatasetRecordOutcome> CreateDatasetRecordOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::CreateDatasetRecordRequest&, const CreateDatasetRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDatasetRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateModelResult> CreateModelOutcome;
|
||||
typedef std::future<CreateModelOutcome> CreateModelOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::CreateModelRequest&, const CreateModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateModelAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateProjectResult> CreateProjectOutcome;
|
||||
typedef std::future<CreateProjectOutcome> CreateProjectOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::CreateProjectRequest&, const CreateProjectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateProjectAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteModelResult> DeleteModelOutcome;
|
||||
typedef std::future<DeleteModelOutcome> DeleteModelOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::DeleteModelRequest&, const DeleteModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteModelAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeployModelResult> DeployModelOutcome;
|
||||
typedef std::future<DeployModelOutcome> DeployModelOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::DeployModelRequest&, const DeployModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeployModelAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetAsyncPredictResult> GetAsyncPredictOutcome;
|
||||
typedef std::future<GetAsyncPredictOutcome> GetAsyncPredictOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::GetAsyncPredictRequest&, const GetAsyncPredictOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetAsyncPredictAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetModelResult> GetModelOutcome;
|
||||
typedef std::future<GetModelOutcome> GetModelOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::GetModelRequest&, const GetModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetModelAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPredictDocResult> GetPredictDocOutcome;
|
||||
typedef std::future<GetPredictDocOutcome> GetPredictDocOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::GetPredictDocRequest&, const GetPredictDocOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPredictDocAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetPredictResultResult> GetPredictResultOutcome;
|
||||
typedef std::future<GetPredictResultOutcome> GetPredictResultOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::GetPredictResultRequest&, const GetPredictResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetPredictResultAsyncHandler;
|
||||
typedef Outcome<Error, Model::InvokeActionResult> InvokeActionOutcome;
|
||||
typedef std::future<InvokeActionOutcome> InvokeActionOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::InvokeActionRequest&, const InvokeActionOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InvokeActionAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListDatasetResult> ListDatasetOutcome;
|
||||
typedef std::future<ListDatasetOutcome> ListDatasetOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::ListDatasetRequest&, const ListDatasetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListDatasetAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListModelsResult> ListModelsOutcome;
|
||||
typedef std::future<ListModelsOutcome> ListModelsOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::ListModelsRequest&, const ListModelsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListModelsAsyncHandler;
|
||||
typedef Outcome<Error, Model::PredictMTModelResult> PredictMTModelOutcome;
|
||||
typedef std::future<PredictMTModelOutcome> PredictMTModelOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::PredictMTModelRequest&, const PredictMTModelOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictMTModelAsyncHandler;
|
||||
typedef Outcome<Error, Model::PredictMTModelByDocResult> PredictMTModelByDocOutcome;
|
||||
typedef std::future<PredictMTModelByDocOutcome> PredictMTModelByDocOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::PredictMTModelByDocRequest&, const PredictMTModelByDocOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PredictMTModelByDocAsyncHandler;
|
||||
typedef Outcome<Error, Model::RunContactReviewResult> RunContactReviewOutcome;
|
||||
typedef std::future<RunContactReviewOutcome> RunContactReviewOutcomeCallable;
|
||||
typedef std::function<void(const Nlp_automlClient*, const Model::RunContactReviewRequest&, const RunContactReviewOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RunContactReviewAsyncHandler;
|
||||
@@ -66,15 +146,63 @@ namespace AlibabaCloud
|
||||
Nlp_automlClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
Nlp_automlClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~Nlp_automlClient();
|
||||
AddMTInterveneWordOutcome addMTInterveneWord(const Model::AddMTInterveneWordRequest &request)const;
|
||||
void addMTInterveneWordAsync(const Model::AddMTInterveneWordRequest& request, const AddMTInterveneWordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddMTInterveneWordOutcomeCallable addMTInterveneWordCallable(const Model::AddMTInterveneWordRequest& request) const;
|
||||
AddMtIntervenePackageOutcome addMtIntervenePackage(const Model::AddMtIntervenePackageRequest &request)const;
|
||||
void addMtIntervenePackageAsync(const Model::AddMtIntervenePackageRequest& request, const AddMtIntervenePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AddMtIntervenePackageOutcomeCallable addMtIntervenePackageCallable(const Model::AddMtIntervenePackageRequest& request) const;
|
||||
BindIntervenePackageAndModelOutcome bindIntervenePackageAndModel(const Model::BindIntervenePackageAndModelRequest &request)const;
|
||||
void bindIntervenePackageAndModelAsync(const Model::BindIntervenePackageAndModelRequest& request, const BindIntervenePackageAndModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BindIntervenePackageAndModelOutcomeCallable bindIntervenePackageAndModelCallable(const Model::BindIntervenePackageAndModelRequest& request) const;
|
||||
CreateAsyncPredictOutcome createAsyncPredict(const Model::CreateAsyncPredictRequest &request)const;
|
||||
void createAsyncPredictAsync(const Model::CreateAsyncPredictRequest& request, const CreateAsyncPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAsyncPredictOutcomeCallable createAsyncPredictCallable(const Model::CreateAsyncPredictRequest& request) const;
|
||||
CreateDatasetOutcome createDataset(const Model::CreateDatasetRequest &request)const;
|
||||
void createDatasetAsync(const Model::CreateDatasetRequest& request, const CreateDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDatasetOutcomeCallable createDatasetCallable(const Model::CreateDatasetRequest& request) const;
|
||||
CreateDatasetRecordOutcome createDatasetRecord(const Model::CreateDatasetRecordRequest &request)const;
|
||||
void createDatasetRecordAsync(const Model::CreateDatasetRecordRequest& request, const CreateDatasetRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDatasetRecordOutcomeCallable createDatasetRecordCallable(const Model::CreateDatasetRecordRequest& request) const;
|
||||
CreateModelOutcome createModel(const Model::CreateModelRequest &request)const;
|
||||
void createModelAsync(const Model::CreateModelRequest& request, const CreateModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateModelOutcomeCallable createModelCallable(const Model::CreateModelRequest& request) const;
|
||||
CreateProjectOutcome createProject(const Model::CreateProjectRequest &request)const;
|
||||
void createProjectAsync(const Model::CreateProjectRequest& request, const CreateProjectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateProjectOutcomeCallable createProjectCallable(const Model::CreateProjectRequest& request) const;
|
||||
DeleteModelOutcome deleteModel(const Model::DeleteModelRequest &request)const;
|
||||
void deleteModelAsync(const Model::DeleteModelRequest& request, const DeleteModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteModelOutcomeCallable deleteModelCallable(const Model::DeleteModelRequest& request) const;
|
||||
DeployModelOutcome deployModel(const Model::DeployModelRequest &request)const;
|
||||
void deployModelAsync(const Model::DeployModelRequest& request, const DeployModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeployModelOutcomeCallable deployModelCallable(const Model::DeployModelRequest& request) const;
|
||||
GetAsyncPredictOutcome getAsyncPredict(const Model::GetAsyncPredictRequest &request)const;
|
||||
void getAsyncPredictAsync(const Model::GetAsyncPredictRequest& request, const GetAsyncPredictAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetAsyncPredictOutcomeCallable getAsyncPredictCallable(const Model::GetAsyncPredictRequest& request) const;
|
||||
GetModelOutcome getModel(const Model::GetModelRequest &request)const;
|
||||
void getModelAsync(const Model::GetModelRequest& request, const GetModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetModelOutcomeCallable getModelCallable(const Model::GetModelRequest& request) const;
|
||||
GetPredictDocOutcome getPredictDoc(const Model::GetPredictDocRequest &request)const;
|
||||
void getPredictDocAsync(const Model::GetPredictDocRequest& request, const GetPredictDocAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPredictDocOutcomeCallable getPredictDocCallable(const Model::GetPredictDocRequest& request) const;
|
||||
GetPredictResultOutcome getPredictResult(const Model::GetPredictResultRequest &request)const;
|
||||
void getPredictResultAsync(const Model::GetPredictResultRequest& request, const GetPredictResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetPredictResultOutcomeCallable getPredictResultCallable(const Model::GetPredictResultRequest& request) const;
|
||||
InvokeActionOutcome invokeAction(const Model::InvokeActionRequest &request)const;
|
||||
void invokeActionAsync(const Model::InvokeActionRequest& request, const InvokeActionAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InvokeActionOutcomeCallable invokeActionCallable(const Model::InvokeActionRequest& request) const;
|
||||
ListDatasetOutcome listDataset(const Model::ListDatasetRequest &request)const;
|
||||
void listDatasetAsync(const Model::ListDatasetRequest& request, const ListDatasetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListDatasetOutcomeCallable listDatasetCallable(const Model::ListDatasetRequest& request) const;
|
||||
ListModelsOutcome listModels(const Model::ListModelsRequest &request)const;
|
||||
void listModelsAsync(const Model::ListModelsRequest& request, const ListModelsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListModelsOutcomeCallable listModelsCallable(const Model::ListModelsRequest& request) const;
|
||||
PredictMTModelOutcome predictMTModel(const Model::PredictMTModelRequest &request)const;
|
||||
void predictMTModelAsync(const Model::PredictMTModelRequest& request, const PredictMTModelAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PredictMTModelOutcomeCallable predictMTModelCallable(const Model::PredictMTModelRequest& request) const;
|
||||
PredictMTModelByDocOutcome predictMTModelByDoc(const Model::PredictMTModelByDocRequest &request)const;
|
||||
void predictMTModelByDocAsync(const Model::PredictMTModelByDocRequest& request, const PredictMTModelByDocAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PredictMTModelByDocOutcomeCallable predictMTModelByDocCallable(const Model::PredictMTModelByDocRequest& request) const;
|
||||
RunContactReviewOutcome runContactReview(const Model::RunContactReviewRequest &request)const;
|
||||
void runContactReviewAsync(const Model::RunContactReviewRequest& request, const RunContactReviewAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RunContactReviewOutcomeCallable runContactReviewCallable(const Model::RunContactReviewRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMTInterveneWordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddMTInterveneWordRequest();
|
||||
~AddMTInterveneWordRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getSourceText()const;
|
||||
void setSourceText(const std::string& sourceText);
|
||||
std::string getPackageId()const;
|
||||
void setPackageId(const std::string& packageId);
|
||||
std::string getTargetText()const;
|
||||
void setTargetText(const std::string& targetText);
|
||||
int getTenantId()const;
|
||||
void setTenantId(int tenantId);
|
||||
std::string getProjectId()const;
|
||||
void setProjectId(const std::string& projectId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
std::string sourceText_;
|
||||
std::string packageId_;
|
||||
std::string targetText_;
|
||||
int tenantId_;
|
||||
std::string projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMTInterveneWordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddMTInterveneWordResult();
|
||||
explicit AddMTInterveneWordResult(const std::string &payload);
|
||||
~AddMTInterveneWordResult();
|
||||
std::string getWordId()const;
|
||||
int getMessage()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string wordId_;
|
||||
int message_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEWORDRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGEREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMtIntervenePackageRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
AddMtIntervenePackageRequest();
|
||||
~AddMtIntervenePackageRequest();
|
||||
|
||||
std::string getSourceLanguage()const;
|
||||
void setSourceLanguage(const std::string& sourceLanguage);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getPackageName()const;
|
||||
void setPackageName(const std::string& packageName);
|
||||
int getTenantId()const;
|
||||
void setTenantId(int tenantId);
|
||||
std::string getProjectType()const;
|
||||
void setProjectType(const std::string& projectType);
|
||||
std::string getSourceType()const;
|
||||
void setSourceType(const std::string& sourceType);
|
||||
std::string getTargetLanguage()const;
|
||||
void setTargetLanguage(const std::string& targetLanguage);
|
||||
std::string getCategory()const;
|
||||
void setCategory(const std::string& category);
|
||||
int getProjectId()const;
|
||||
void setProjectId(int projectId);
|
||||
|
||||
private:
|
||||
std::string sourceLanguage_;
|
||||
std::string product_;
|
||||
std::string packageName_;
|
||||
int tenantId_;
|
||||
std::string projectType_;
|
||||
std::string sourceType_;
|
||||
std::string targetLanguage_;
|
||||
std::string category_;
|
||||
int projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGEREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGERESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT AddMtIntervenePackageResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AddMtIntervenePackageResult();
|
||||
explicit AddMtIntervenePackageResult(const std::string &payload);
|
||||
~AddMtIntervenePackageResult();
|
||||
int getMessage()const;
|
||||
std::string getPackageId()const;
|
||||
int getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int message_;
|
||||
std::string packageId_;
|
||||
int code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_ADDMTINTERVENEPACKAGERESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT BindIntervenePackageAndModelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BindIntervenePackageAndModelRequest();
|
||||
~BindIntervenePackageAndModelRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
long getModelId()const;
|
||||
void setModelId(long modelId);
|
||||
long getPackageId()const;
|
||||
void setPackageId(long packageId);
|
||||
long getTenantId()const;
|
||||
void setTenantId(long tenantId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getModelVersion()const;
|
||||
void setModelVersion(const std::string& modelVersion);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
long modelId_;
|
||||
long packageId_;
|
||||
long tenantId_;
|
||||
long projectId_;
|
||||
std::string modelVersion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT BindIntervenePackageAndModelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BindIntervenePackageAndModelResult();
|
||||
explicit BindIntervenePackageAndModelResult(const std::string &payload);
|
||||
~BindIntervenePackageAndModelResult();
|
||||
int getMessage()const;
|
||||
int getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int message_;
|
||||
int code_;
|
||||
std::string success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_BINDINTERVENEPACKAGEANDMODELRESULT_H_
|
||||
@@ -47,6 +47,8 @@ namespace AlibabaCloud
|
||||
void setContent(const std::string& content);
|
||||
std::string getFileContent()const;
|
||||
void setFileContent(const std::string& fileContent);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
int getModelId()const;
|
||||
void setModelId(int modelId);
|
||||
std::string getFileUrl()const;
|
||||
@@ -61,6 +63,7 @@ namespace AlibabaCloud
|
||||
std::string fetchContent_;
|
||||
std::string content_;
|
||||
std::string fileContent_;
|
||||
std::string product_;
|
||||
int modelId_;
|
||||
std::string fileUrl_;
|
||||
std::string modelVersion_;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDatasetRecordRequest();
|
||||
~CreateDatasetRecordRequest();
|
||||
|
||||
std::string getDatasetRecord()const;
|
||||
void setDatasetRecord(const std::string& datasetRecord);
|
||||
long getDatasetId()const;
|
||||
void setDatasetId(long datasetId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string datasetRecord_;
|
||||
long datasetId_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDatasetRecordResult();
|
||||
explicit CreateDatasetRecordResult(const std::string &payload);
|
||||
~CreateDatasetRecordResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDatasetRecordId()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string datasetRecordId_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRECORDRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateDatasetRequest();
|
||||
~CreateDatasetRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getDatasetName()const;
|
||||
void setDatasetName(const std::string& datasetName);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
std::string datasetName_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateDatasetResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateDatasetResult();
|
||||
explicit CreateDatasetResult(const std::string &payload);
|
||||
~CreateDatasetResult();
|
||||
std::string getMessage()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getDatasetId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int code_;
|
||||
bool success_;
|
||||
std::string datasetId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEDATASETRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateModelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateModelRequest();
|
||||
~CreateModelRequest();
|
||||
|
||||
std::string getIsIncrementalTrain()const;
|
||||
void setIsIncrementalTrain(const std::string& isIncrementalTrain);
|
||||
std::string getModelName()const;
|
||||
void setModelName(const std::string& modelName);
|
||||
std::map<std::string, std::string> getDatasetIdList()const;
|
||||
void setDatasetIdList(const std::map<std::string, std::string>& datasetIdList);
|
||||
std::map<std::string, std::string> getTestDatasetIdList()const;
|
||||
void setTestDatasetIdList(const std::map<std::string, std::string>& testDatasetIdList);
|
||||
std::string getModelType()const;
|
||||
void setModelType(const std::string& modelType);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
long getModelId()const;
|
||||
void setModelId(long modelId);
|
||||
|
||||
private:
|
||||
std::string isIncrementalTrain_;
|
||||
std::string modelName_;
|
||||
std::map<std::string, std::string> datasetIdList_;
|
||||
std::map<std::string, std::string> testDatasetIdList_;
|
||||
std::string modelType_;
|
||||
long projectId_;
|
||||
std::string product_;
|
||||
long modelId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateModelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateModelResult();
|
||||
explicit CreateModelResult(const std::string &payload);
|
||||
~CreateModelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEMODELRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateProjectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateProjectRequest();
|
||||
~CreateProjectRequest();
|
||||
|
||||
std::string getProjectName()const;
|
||||
void setProjectName(const std::string& projectName);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getProjectDescription()const;
|
||||
void setProjectDescription(const std::string& projectDescription);
|
||||
std::string getProjectType()const;
|
||||
void setProjectType(const std::string& projectType);
|
||||
|
||||
private:
|
||||
std::string projectName_;
|
||||
std::string product_;
|
||||
std::string projectDescription_;
|
||||
std::string projectType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT CreateProjectResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateProjectResult();
|
||||
explicit CreateProjectResult(const std::string &payload);
|
||||
~CreateProjectResult();
|
||||
std::string getMessage()const;
|
||||
std::string getProjectId()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string projectId_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_CREATEPROJECTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT DeleteModelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteModelRequest();
|
||||
~DeleteModelRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
long getModelId()const;
|
||||
void setModelId(long modelId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
long modelId_;
|
||||
long projectId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT DeleteModelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteModelResult();
|
||||
explicit DeleteModelResult(const std::string &payload);
|
||||
~DeleteModelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DELETEMODELRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT DeployModelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeployModelRequest();
|
||||
~DeployModelRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
long getModelId()const;
|
||||
void setModelId(long modelId);
|
||||
std::string getOptType()const;
|
||||
void setOptType(const std::string& optType);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getModelVersion()const;
|
||||
void setModelVersion(const std::string& modelVersion);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
long modelId_;
|
||||
std::string optType_;
|
||||
long projectId_;
|
||||
std::string modelVersion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT DeployModelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeployModelResult();
|
||||
explicit DeployModelResult(const std::string &payload);
|
||||
~DeployModelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_DEPLOYMODELRESULT_H_
|
||||
@@ -35,10 +35,13 @@ namespace AlibabaCloud
|
||||
GetAsyncPredictRequest();
|
||||
~GetAsyncPredictRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
int getAsyncPredictId()const;
|
||||
void setAsyncPredictId(int asyncPredictId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
int asyncPredictId_;
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT GetModelRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetModelRequest();
|
||||
~GetModelRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
long getModelId()const;
|
||||
void setModelId(long modelId);
|
||||
long getProjectId()const;
|
||||
void setProjectId(long projectId);
|
||||
std::string getModelVersion()const;
|
||||
void setModelVersion(const std::string& modelVersion);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
long modelId_;
|
||||
long projectId_;
|
||||
std::string modelVersion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELREQUEST_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT GetModelResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetModelResult();
|
||||
explicit GetModelResult(const std::string &payload);
|
||||
~GetModelResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETMODELRESULT_H_
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT GetPredictDocRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetPredictDocRequest();
|
||||
~GetPredictDocRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
long getDocId()const;
|
||||
void setDocId(long docId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
long docId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCREQUEST_H_
|
||||
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_NLP_AUTOML_MODEL_GETPREDICTDOCRESULT_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT GetPredictDocResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetPredictDocResult();
|
||||
explicit GetPredictDocResult(const std::string &payload);
|
||||
~GetPredictDocResult();
|
||||
int getStatus()const;
|
||||
std::string getXLIFFInfo()const;
|
||||
std::string getResultContent()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
int status_;
|
||||
std::string xLIFFInfo_;
|
||||
std::string resultContent_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_GETPREDICTDOCRESULT_H_
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
int getTopK()const;
|
||||
void setTopK(int topK);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
int getModelId()const;
|
||||
void setModelId(int modelId);
|
||||
std::string getDetailTag()const;
|
||||
@@ -48,6 +50,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
int topK_;
|
||||
std::string product_;
|
||||
int modelId_;
|
||||
std::string detailTag_;
|
||||
std::string content_;
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONREQUEST_H_
|
||||
#define ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/nlp-automl/Nlp_automlExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Nlp_automl
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_NLP_AUTOML_EXPORT InvokeActionRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InvokeActionRequest();
|
||||
~InvokeActionRequest();
|
||||
|
||||
std::string getInvokeProduct()const;
|
||||
void setInvokeProduct(const std::string& invokeProduct);
|
||||
std::string getInvokeAction()const;
|
||||
void setInvokeAction(const std::string& invokeAction);
|
||||
std::string getInvokeParams()const;
|
||||
void setInvokeParams(const std::string& invokeParams);
|
||||
std::string getInvokeRegion()const;
|
||||
void setInvokeRegion(const std::string& invokeRegion);
|
||||
|
||||
private:
|
||||
std::string invokeProduct_;
|
||||
std::string invokeAction_;
|
||||
std::string invokeParams_;
|
||||
std::string invokeRegion_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_NLP_AUTOML_MODEL_INVOKEACTIONREQUEST_H_
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user