Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3144309f2 | ||
|
|
74dce9533b | ||
|
|
e4f9772459 | ||
|
|
d5eca473f1 | ||
|
|
67bc9aa0c6 | ||
|
|
769d0b4573 | ||
|
|
b149df91f7 | ||
|
|
de0a72b9c7 | ||
|
|
ddd7183cb1 | ||
|
|
164b701c97 | ||
|
|
f032a433f2 | ||
|
|
150db4c6af | ||
|
|
d2fe63b527 | ||
|
|
45b9477b0e | ||
|
|
ebcf5e990d | ||
|
|
e1febab02f | ||
|
|
eb42c015e7 | ||
|
|
a95ff9b425 | ||
|
|
b3c7c65989 | ||
|
|
a4e469e042 | ||
|
|
c4e4d725b9 | ||
|
|
dcbaed3217 | ||
|
|
34fabe824b | ||
|
|
2ee90f14b2 | ||
|
|
464ff6cf22 |
87
CHANGELOG
87
CHANGELOG
@@ -1,3 +1,90 @@
|
||||
2019-05-31 Version: 1.36.39
|
||||
1, Add authority in GetMaterials API.
|
||||
|
||||
2019-05-29 Version 1.36.38
|
||||
update Smartag
|
||||
|
||||
2019-05-29 Version 1.36.37
|
||||
update product
|
||||
|
||||
2019-05-29 Version: 1.36.36
|
||||
1, Fix ServiceCode typo in request
|
||||
|
||||
2019-05-28 Version: 1.36.35
|
||||
1, CreateDBInstance now support autoRenew
|
||||
|
||||
2019-05-27 Version: 1.36.34
|
||||
1, Support video transcode.
|
||||
|
||||
2019-05-27 Version: 1.36.33
|
||||
1, Initial release of api, including data management api, rule configuration api and system configuration api.
|
||||
|
||||
2019-05-22 Version: 1.36.32
|
||||
1, Add EndTime parameter to api ModifyPrepayInstanceSpec
|
||||
2, Add RebootTime parameter to api ModifyPrepayInstanceSpec
|
||||
|
||||
2019-05-20 Version: 1.36.31
|
||||
1, Add both api, ListNotaryInfos
|
||||
|
||||
2019-05-20 Version: 1.36.30
|
||||
1, Initial release of api, including data management api, rule configuration api and system configuration api.
|
||||
|
||||
2019-05-16 Version: 1.36.29
|
||||
1, Add some new apis to fetch the usage data from VoD, such as DescribeVodDomainUsageData, DescribeVodStorageData, DescribeVodTranscodeData, DescribeVodAIData.
|
||||
2, Add a new api named GetUploadDetails to describe the upload detail, such as uploading time and uploading source.
|
||||
3, Add a new api named GetAIVideoTagResult to describe the result of AI tag.
|
||||
4, Add new field Icon and OnlineStatus to some apis to manage short video materials, such as SearchMedia, GetAttachedMediaInfo, CreateUploadAttachedMedia.
|
||||
5, Add a new field RegionId to the response of GetAttachedMediaInfo and GetImageInfo.
|
||||
6, Add the field named UserData to SubmitSnapshotJob api request.
|
||||
|
||||
2019-05-15 Version: 1.36.28
|
||||
1, Add InstanceId parameter to api CreateDisk
|
||||
2, Add parameter Affinity and Tenancy in ECS instance DedicatedHost related apis.
|
||||
3, Add SecurityGroupIds parameter to Instance creation apis.
|
||||
|
||||
2019-05-14 Version: 1.36.27
|
||||
1, support body detect
|
||||
|
||||
2019-05-14 Version: 1.36.26
|
||||
1, Support body detect.
|
||||
|
||||
2019-05-14 Version: 1.36.25
|
||||
1, Support body detect.
|
||||
|
||||
2019-05-14 Version: 1.36.24
|
||||
1, Support body detect.
|
||||
|
||||
2019-05-13 Version: 1.36.23
|
||||
1, Support for creating instances and joining multiple security groups at the same time.
|
||||
|
||||
2019-04-26 Version: 1.36.22
|
||||
1, add new openapi.
|
||||
|
||||
2019-04-23 Version: 1.36.21
|
||||
1, Support mounting multiple volumes using different protocol
|
||||
2, Support scaling out cross AZ
|
||||
|
||||
2019-04-22 Version: 1.36.20
|
||||
1, This is an example of release-log.
|
||||
2, Please strictly follow this format to edit in English.
|
||||
3, Format:Number + , + Space + Description
|
||||
|
||||
2019-04-18 Version: 1.36.19
|
||||
1, Add CreateAccount
|
||||
|
||||
2019-04-18 Version: 1.36.18
|
||||
1, CreateCacheAnalysisTask prop modify
|
||||
|
||||
2019-04-18 Version: 1.36.17
|
||||
1, add ReservedInstance API.
|
||||
|
||||
2019-04-17 Version: 1.36.16
|
||||
1, Add DescribeRestoreTaskList DBS interface.
|
||||
2, Add DescribeNodeCidrList DBS interface.
|
||||
|
||||
2019-04-16 Version: 1.36.15
|
||||
1, Fixed DescribeAccounts response type error.
|
||||
|
||||
2019-04-16 Version: 1.36.14
|
||||
1, Add api about pushing security check commands
|
||||
|
||||
|
||||
@@ -120,4 +120,8 @@ add_subdirectory(bssopenapi)
|
||||
add_subdirectory(sas)
|
||||
|
||||
add_subdirectory(dbs)
|
||||
add_subdirectory(r-kvstore)
|
||||
add_subdirectory(r-kvstore)
|
||||
add_subdirectory(dds)
|
||||
add_subdirectory(yundun-ds)
|
||||
add_subdirectory(trademark)
|
||||
add_subdirectory(sddp)
|
||||
@@ -23,6 +23,28 @@ set(bssopenapi_public_header
|
||||
set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryMonthlyBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryMonthlyBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateUserQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateUserQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryUserAlarmThresholdRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryUserAlarmThresholdResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeDetailRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeDetailResult.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetEnduserStatusRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetEnduserStatusResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/RenewInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionRequest.h
|
||||
@@ -31,18 +53,20 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvailableInstancesResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetOrderDetailRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetOrderDetailResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEnduserStatusRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEnduserStatusResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeExportToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeExportToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRedeemResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h
|
||||
@@ -53,34 +77,38 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/ChangeConsumeAmountRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ChangeConsumeAmountResult.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryProductListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryProductListResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserAlarmThresholdRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SetUserAlarmThresholdResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBookListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBookListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryOrdersResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/RenewInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/RenewInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeExportToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeExportToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvaliableQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAvaliableQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/SetRenewalRequest.h
|
||||
@@ -98,6 +126,28 @@ set(bssopenapi_src
|
||||
src/BssOpenApiClient.cc
|
||||
src/model/QueryMonthlyBillRequest.cc
|
||||
src/model/QueryMonthlyBillResult.cc
|
||||
src/model/CreateUserQuotaRequest.cc
|
||||
src/model/CreateUserQuotaResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CancelOrderRequest.cc
|
||||
src/model/CancelOrderResult.cc
|
||||
src/model/QueryResourcePackageInstancesRequest.cc
|
||||
src/model/QueryResourcePackageInstancesResult.cc
|
||||
src/model/QueryUserAlarmThresholdRequest.cc
|
||||
src/model/QueryUserAlarmThresholdResult.cc
|
||||
src/model/SubscribeDetailRequest.cc
|
||||
src/model/SubscribeDetailResult.cc
|
||||
src/model/EnableBillGenerationRequest.cc
|
||||
src/model/EnableBillGenerationResult.cc
|
||||
src/model/SetEnduserStatusRequest.cc
|
||||
src/model/SetEnduserStatusResult.cc
|
||||
src/model/QueryInvoicingCustomerListRequest.cc
|
||||
src/model/QueryInvoicingCustomerListResult.cc
|
||||
src/model/QueryAccountBalanceRequest.cc
|
||||
src/model/QueryAccountBalanceResult.cc
|
||||
src/model/RenewInstanceRequest.cc
|
||||
src/model/RenewInstanceResult.cc
|
||||
src/model/QueryInstanceGaapCostRequest.cc
|
||||
src/model/QueryInstanceGaapCostResult.cc
|
||||
src/model/QueryMonthlyInstanceConsumptionRequest.cc
|
||||
@@ -106,18 +156,20 @@ set(bssopenapi_src
|
||||
src/model/QueryPrepaidCardsResult.cc
|
||||
src/model/QueryAvailableInstancesRequest.cc
|
||||
src/model/QueryAvailableInstancesResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/GetOrderDetailRequest.cc
|
||||
src/model/GetOrderDetailResult.cc
|
||||
src/model/QueryEnduserStatusRequest.cc
|
||||
src/model/QueryEnduserStatusResult.cc
|
||||
src/model/ModifyInstanceRequest.cc
|
||||
src/model/ModifyInstanceResult.cc
|
||||
src/model/QueryCustomerAddressListRequest.cc
|
||||
src/model/QueryCustomerAddressListResult.cc
|
||||
src/model/CancelOrderRequest.cc
|
||||
src/model/CancelOrderResult.cc
|
||||
src/model/QueryResourcePackageInstancesRequest.cc
|
||||
src/model/QueryResourcePackageInstancesResult.cc
|
||||
src/model/SetUserQuotaRequest.cc
|
||||
src/model/SetUserQuotaResult.cc
|
||||
src/model/UnsubscribeExportToOSSRequest.cc
|
||||
src/model/UnsubscribeExportToOSSResult.cc
|
||||
src/model/QueryPriceListRequest.cc
|
||||
src/model/QueryPriceListResult.cc
|
||||
src/model/QueryRedeemRequest.cc
|
||||
src/model/QueryRedeemResult.cc
|
||||
src/model/SubscribeBillToOSSRequest.cc
|
||||
@@ -128,34 +180,38 @@ set(bssopenapi_src
|
||||
src/model/GetResourcePackagePriceResult.cc
|
||||
src/model/UnsubscribeBillToOSSRequest.cc
|
||||
src/model/UnsubscribeBillToOSSResult.cc
|
||||
src/model/ChangeConsumeAmountRequest.cc
|
||||
src/model/ChangeConsumeAmountResult.cc
|
||||
src/model/ApplyInvoiceRequest.cc
|
||||
src/model/ApplyInvoiceResult.cc
|
||||
src/model/QueryProductListRequest.cc
|
||||
src/model/QueryProductListResult.cc
|
||||
src/model/SetUserAlarmThresholdRequest.cc
|
||||
src/model/SetUserAlarmThresholdResult.cc
|
||||
src/model/GetSubscriptionPriceRequest.cc
|
||||
src/model/GetSubscriptionPriceResult.cc
|
||||
src/model/EnableBillGenerationRequest.cc
|
||||
src/model/EnableBillGenerationResult.cc
|
||||
src/model/QueryAccountBookListRequest.cc
|
||||
src/model/QueryAccountBookListResult.cc
|
||||
src/model/QueryOrdersRequest.cc
|
||||
src/model/QueryOrdersResult.cc
|
||||
src/model/QueryCashCouponsRequest.cc
|
||||
src/model/QueryCashCouponsResult.cc
|
||||
src/model/QueryInvoicingCustomerListRequest.cc
|
||||
src/model/QueryInvoicingCustomerListResult.cc
|
||||
src/model/QueryEvaluateListRequest.cc
|
||||
src/model/QueryEvaluateListResult.cc
|
||||
src/model/DescribePricingModuleRequest.cc
|
||||
src/model/DescribePricingModuleResult.cc
|
||||
src/model/DescribeResourcePackageProductRequest.cc
|
||||
src/model/DescribeResourcePackageProductResult.cc
|
||||
src/model/QueryAccountBalanceRequest.cc
|
||||
src/model/QueryAccountBalanceResult.cc
|
||||
src/model/RenewInstanceRequest.cc
|
||||
src/model/RenewInstanceResult.cc
|
||||
src/model/CreateResourcePackageRequest.cc
|
||||
src/model/CreateResourcePackageResult.cc
|
||||
src/model/QueryInstanceBillRequest.cc
|
||||
src/model/QueryInstanceBillResult.cc
|
||||
src/model/SubscribeExportToOSSRequest.cc
|
||||
src/model/SubscribeExportToOSSResult.cc
|
||||
src/model/QueryAvaliableQuotaRequest.cc
|
||||
src/model/QueryAvaliableQuotaResult.cc
|
||||
src/model/QueryPriceRequest.cc
|
||||
src/model/QueryPriceResult.cc
|
||||
src/model/QueryBillRequest.cc
|
||||
src/model/QueryBillResult.cc
|
||||
src/model/SetRenewalRequest.cc
|
||||
|
||||
@@ -24,6 +24,28 @@
|
||||
#include "BssOpenApiExport.h"
|
||||
#include "model/QueryMonthlyBillRequest.h"
|
||||
#include "model/QueryMonthlyBillResult.h"
|
||||
#include "model/CreateUserQuotaRequest.h"
|
||||
#include "model/CreateUserQuotaResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CancelOrderRequest.h"
|
||||
#include "model/CancelOrderResult.h"
|
||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||
#include "model/QueryResourcePackageInstancesResult.h"
|
||||
#include "model/QueryUserAlarmThresholdRequest.h"
|
||||
#include "model/QueryUserAlarmThresholdResult.h"
|
||||
#include "model/SubscribeDetailRequest.h"
|
||||
#include "model/SubscribeDetailResult.h"
|
||||
#include "model/EnableBillGenerationRequest.h"
|
||||
#include "model/EnableBillGenerationResult.h"
|
||||
#include "model/SetEnduserStatusRequest.h"
|
||||
#include "model/SetEnduserStatusResult.h"
|
||||
#include "model/QueryInvoicingCustomerListRequest.h"
|
||||
#include "model/QueryInvoicingCustomerListResult.h"
|
||||
#include "model/QueryAccountBalanceRequest.h"
|
||||
#include "model/QueryAccountBalanceResult.h"
|
||||
#include "model/RenewInstanceRequest.h"
|
||||
#include "model/RenewInstanceResult.h"
|
||||
#include "model/QueryInstanceGaapCostRequest.h"
|
||||
#include "model/QueryInstanceGaapCostResult.h"
|
||||
#include "model/QueryMonthlyInstanceConsumptionRequest.h"
|
||||
@@ -32,18 +54,20 @@
|
||||
#include "model/QueryPrepaidCardsResult.h"
|
||||
#include "model/QueryAvailableInstancesRequest.h"
|
||||
#include "model/QueryAvailableInstancesResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/GetOrderDetailRequest.h"
|
||||
#include "model/GetOrderDetailResult.h"
|
||||
#include "model/QueryEnduserStatusRequest.h"
|
||||
#include "model/QueryEnduserStatusResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
#include "model/ModifyInstanceResult.h"
|
||||
#include "model/QueryCustomerAddressListRequest.h"
|
||||
#include "model/QueryCustomerAddressListResult.h"
|
||||
#include "model/CancelOrderRequest.h"
|
||||
#include "model/CancelOrderResult.h"
|
||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||
#include "model/QueryResourcePackageInstancesResult.h"
|
||||
#include "model/SetUserQuotaRequest.h"
|
||||
#include "model/SetUserQuotaResult.h"
|
||||
#include "model/UnsubscribeExportToOSSRequest.h"
|
||||
#include "model/UnsubscribeExportToOSSResult.h"
|
||||
#include "model/QueryPriceListRequest.h"
|
||||
#include "model/QueryPriceListResult.h"
|
||||
#include "model/QueryRedeemRequest.h"
|
||||
#include "model/QueryRedeemResult.h"
|
||||
#include "model/SubscribeBillToOSSRequest.h"
|
||||
@@ -54,34 +78,38 @@
|
||||
#include "model/GetResourcePackagePriceResult.h"
|
||||
#include "model/UnsubscribeBillToOSSRequest.h"
|
||||
#include "model/UnsubscribeBillToOSSResult.h"
|
||||
#include "model/ChangeConsumeAmountRequest.h"
|
||||
#include "model/ChangeConsumeAmountResult.h"
|
||||
#include "model/ApplyInvoiceRequest.h"
|
||||
#include "model/ApplyInvoiceResult.h"
|
||||
#include "model/QueryProductListRequest.h"
|
||||
#include "model/QueryProductListResult.h"
|
||||
#include "model/SetUserAlarmThresholdRequest.h"
|
||||
#include "model/SetUserAlarmThresholdResult.h"
|
||||
#include "model/GetSubscriptionPriceRequest.h"
|
||||
#include "model/GetSubscriptionPriceResult.h"
|
||||
#include "model/EnableBillGenerationRequest.h"
|
||||
#include "model/EnableBillGenerationResult.h"
|
||||
#include "model/QueryAccountBookListRequest.h"
|
||||
#include "model/QueryAccountBookListResult.h"
|
||||
#include "model/QueryOrdersRequest.h"
|
||||
#include "model/QueryOrdersResult.h"
|
||||
#include "model/QueryCashCouponsRequest.h"
|
||||
#include "model/QueryCashCouponsResult.h"
|
||||
#include "model/QueryInvoicingCustomerListRequest.h"
|
||||
#include "model/QueryInvoicingCustomerListResult.h"
|
||||
#include "model/QueryEvaluateListRequest.h"
|
||||
#include "model/QueryEvaluateListResult.h"
|
||||
#include "model/DescribePricingModuleRequest.h"
|
||||
#include "model/DescribePricingModuleResult.h"
|
||||
#include "model/DescribeResourcePackageProductRequest.h"
|
||||
#include "model/DescribeResourcePackageProductResult.h"
|
||||
#include "model/QueryAccountBalanceRequest.h"
|
||||
#include "model/QueryAccountBalanceResult.h"
|
||||
#include "model/RenewInstanceRequest.h"
|
||||
#include "model/RenewInstanceResult.h"
|
||||
#include "model/CreateResourcePackageRequest.h"
|
||||
#include "model/CreateResourcePackageResult.h"
|
||||
#include "model/QueryInstanceBillRequest.h"
|
||||
#include "model/QueryInstanceBillResult.h"
|
||||
#include "model/SubscribeExportToOSSRequest.h"
|
||||
#include "model/SubscribeExportToOSSResult.h"
|
||||
#include "model/QueryAvaliableQuotaRequest.h"
|
||||
#include "model/QueryAvaliableQuotaResult.h"
|
||||
#include "model/QueryPriceRequest.h"
|
||||
#include "model/QueryPriceResult.h"
|
||||
#include "model/QueryBillRequest.h"
|
||||
#include "model/QueryBillResult.h"
|
||||
#include "model/SetRenewalRequest.h"
|
||||
@@ -106,6 +134,39 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryMonthlyBillResult> QueryMonthlyBillOutcome;
|
||||
typedef std::future<QueryMonthlyBillOutcome> QueryMonthlyBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryMonthlyBillRequest&, const QueryMonthlyBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMonthlyBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateUserQuotaResult> CreateUserQuotaOutcome;
|
||||
typedef std::future<CreateUserQuotaOutcome> CreateUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateUserQuotaRequest&, const CreateUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateUserQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelOrderResult> CancelOrderOutcome;
|
||||
typedef std::future<CancelOrderOutcome> CancelOrderOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CancelOrderRequest&, const CancelOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
||||
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryUserAlarmThresholdResult> QueryUserAlarmThresholdOutcome;
|
||||
typedef std::future<QueryUserAlarmThresholdOutcome> QueryUserAlarmThresholdOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryUserAlarmThresholdRequest&, const QueryUserAlarmThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryUserAlarmThresholdAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubscribeDetailResult> SubscribeDetailOutcome;
|
||||
typedef std::future<SubscribeDetailOutcome> SubscribeDetailOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SubscribeDetailRequest&, const SubscribeDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableBillGenerationResult> EnableBillGenerationOutcome;
|
||||
typedef std::future<EnableBillGenerationOutcome> EnableBillGenerationOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::EnableBillGenerationRequest&, const EnableBillGenerationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableBillGenerationAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetEnduserStatusResult> SetEnduserStatusOutcome;
|
||||
typedef std::future<SetEnduserStatusOutcome> SetEnduserStatusOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetEnduserStatusRequest&, const SetEnduserStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetEnduserStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryInvoicingCustomerListResult> QueryInvoicingCustomerListOutcome;
|
||||
typedef std::future<QueryInvoicingCustomerListOutcome> QueryInvoicingCustomerListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInvoicingCustomerListRequest&, const QueryInvoicingCustomerListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInvoicingCustomerListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountBalanceResult> QueryAccountBalanceOutcome;
|
||||
typedef std::future<QueryAccountBalanceOutcome> QueryAccountBalanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBalanceRequest&, const QueryAccountBalanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBalanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewInstanceResult> RenewInstanceOutcome;
|
||||
typedef std::future<RenewInstanceOutcome> RenewInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::RenewInstanceRequest&, const RenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryInstanceGaapCostResult> QueryInstanceGaapCostOutcome;
|
||||
typedef std::future<QueryInstanceGaapCostOutcome> QueryInstanceGaapCostOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInstanceGaapCostRequest&, const QueryInstanceGaapCostOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInstanceGaapCostAsyncHandler;
|
||||
@@ -118,24 +179,27 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryAvailableInstancesResult> QueryAvailableInstancesOutcome;
|
||||
typedef std::future<QueryAvailableInstancesOutcome> QueryAvailableInstancesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAvailableInstancesRequest&, const QueryAvailableInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAvailableInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetOrderDetailResult> GetOrderDetailOutcome;
|
||||
typedef std::future<GetOrderDetailOutcome> GetOrderDetailOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetOrderDetailRequest&, const GetOrderDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetOrderDetailAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryEnduserStatusResult> QueryEnduserStatusOutcome;
|
||||
typedef std::future<QueryEnduserStatusOutcome> QueryEnduserStatusOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryEnduserStatusRequest&, const QueryEnduserStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEnduserStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceResult> ModifyInstanceOutcome;
|
||||
typedef std::future<ModifyInstanceOutcome> ModifyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyInstanceRequest&, const ModifyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCustomerAddressListResult> QueryCustomerAddressListOutcome;
|
||||
typedef std::future<QueryCustomerAddressListOutcome> QueryCustomerAddressListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCustomerAddressListRequest&, const QueryCustomerAddressListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerAddressListAsyncHandler;
|
||||
typedef Outcome<Error, Model::CancelOrderResult> CancelOrderOutcome;
|
||||
typedef std::future<CancelOrderOutcome> CancelOrderOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CancelOrderRequest&, const CancelOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CancelOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryResourcePackageInstancesResult> QueryResourcePackageInstancesOutcome;
|
||||
typedef std::future<QueryResourcePackageInstancesOutcome> QueryResourcePackageInstancesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResourcePackageInstancesRequest&, const QueryResourcePackageInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResourcePackageInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetUserQuotaResult> SetUserQuotaOutcome;
|
||||
typedef std::future<SetUserQuotaOutcome> SetUserQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetUserQuotaRequest&, const SetUserQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::UnsubscribeExportToOSSResult> UnsubscribeExportToOSSOutcome;
|
||||
typedef std::future<UnsubscribeExportToOSSOutcome> UnsubscribeExportToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::UnsubscribeExportToOSSRequest&, const UnsubscribeExportToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnsubscribeExportToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPriceListResult> QueryPriceListOutcome;
|
||||
typedef std::future<QueryPriceListOutcome> QueryPriceListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPriceListRequest&, const QueryPriceListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPriceListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryRedeemResult> QueryRedeemOutcome;
|
||||
typedef std::future<QueryRedeemOutcome> QueryRedeemOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryRedeemRequest&, const QueryRedeemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRedeemAsyncHandler;
|
||||
@@ -151,27 +215,30 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UnsubscribeBillToOSSResult> UnsubscribeBillToOSSOutcome;
|
||||
typedef std::future<UnsubscribeBillToOSSOutcome> UnsubscribeBillToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::UnsubscribeBillToOSSRequest&, const UnsubscribeBillToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UnsubscribeBillToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeConsumeAmountResult> ChangeConsumeAmountOutcome;
|
||||
typedef std::future<ChangeConsumeAmountOutcome> ChangeConsumeAmountOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ChangeConsumeAmountRequest&, const ChangeConsumeAmountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeConsumeAmountAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyInvoiceResult> ApplyInvoiceOutcome;
|
||||
typedef std::future<ApplyInvoiceOutcome> ApplyInvoiceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ApplyInvoiceRequest&, const ApplyInvoiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyInvoiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryProductListResult> QueryProductListOutcome;
|
||||
typedef std::future<QueryProductListOutcome> QueryProductListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryProductListRequest&, const QueryProductListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryProductListAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetUserAlarmThresholdResult> SetUserAlarmThresholdOutcome;
|
||||
typedef std::future<SetUserAlarmThresholdOutcome> SetUserAlarmThresholdOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SetUserAlarmThresholdRequest&, const SetUserAlarmThresholdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetUserAlarmThresholdAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetSubscriptionPriceResult> GetSubscriptionPriceOutcome;
|
||||
typedef std::future<GetSubscriptionPriceOutcome> GetSubscriptionPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetSubscriptionPriceRequest&, const GetSubscriptionPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSubscriptionPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableBillGenerationResult> EnableBillGenerationOutcome;
|
||||
typedef std::future<EnableBillGenerationOutcome> EnableBillGenerationOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::EnableBillGenerationRequest&, const EnableBillGenerationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableBillGenerationAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountBookListResult> QueryAccountBookListOutcome;
|
||||
typedef std::future<QueryAccountBookListOutcome> QueryAccountBookListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBookListRequest&, const QueryAccountBookListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBookListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryOrdersResult> QueryOrdersOutcome;
|
||||
typedef std::future<QueryOrdersOutcome> QueryOrdersOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryOrdersRequest&, const QueryOrdersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryOrdersAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCashCouponsResult> QueryCashCouponsOutcome;
|
||||
typedef std::future<QueryCashCouponsOutcome> QueryCashCouponsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCashCouponsRequest&, const QueryCashCouponsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCashCouponsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryInvoicingCustomerListResult> QueryInvoicingCustomerListOutcome;
|
||||
typedef std::future<QueryInvoicingCustomerListOutcome> QueryInvoicingCustomerListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInvoicingCustomerListRequest&, const QueryInvoicingCustomerListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInvoicingCustomerListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryEvaluateListResult> QueryEvaluateListOutcome;
|
||||
typedef std::future<QueryEvaluateListOutcome> QueryEvaluateListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryEvaluateListRequest&, const QueryEvaluateListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEvaluateListAsyncHandler;
|
||||
@@ -181,18 +248,21 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeResourcePackageProductResult> DescribeResourcePackageProductOutcome;
|
||||
typedef std::future<DescribeResourcePackageProductOutcome> DescribeResourcePackageProductOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribeResourcePackageProductRequest&, const DescribeResourcePackageProductOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeResourcePackageProductAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAccountBalanceResult> QueryAccountBalanceOutcome;
|
||||
typedef std::future<QueryAccountBalanceOutcome> QueryAccountBalanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAccountBalanceRequest&, const QueryAccountBalanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAccountBalanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::RenewInstanceResult> RenewInstanceOutcome;
|
||||
typedef std::future<RenewInstanceOutcome> RenewInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::RenewInstanceRequest&, const RenewInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RenewInstanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateResourcePackageResult> CreateResourcePackageOutcome;
|
||||
typedef std::future<CreateResourcePackageOutcome> CreateResourcePackageOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateResourcePackageRequest&, const CreateResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourcePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryInstanceBillResult> QueryInstanceBillOutcome;
|
||||
typedef std::future<QueryInstanceBillOutcome> QueryInstanceBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInstanceBillRequest&, const QueryInstanceBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInstanceBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubscribeExportToOSSResult> SubscribeExportToOSSOutcome;
|
||||
typedef std::future<SubscribeExportToOSSOutcome> SubscribeExportToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SubscribeExportToOSSRequest&, const SubscribeExportToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeExportToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryAvaliableQuotaResult> QueryAvaliableQuotaOutcome;
|
||||
typedef std::future<QueryAvaliableQuotaOutcome> QueryAvaliableQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryAvaliableQuotaRequest&, const QueryAvaliableQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryAvaliableQuotaAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPriceResult> QueryPriceOutcome;
|
||||
typedef std::future<QueryPriceOutcome> QueryPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPriceRequest&, const QueryPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryBillResult> QueryBillOutcome;
|
||||
typedef std::future<QueryBillOutcome> QueryBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryBillRequest&, const QueryBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryBillAsyncHandler;
|
||||
@@ -219,6 +289,39 @@ namespace AlibabaCloud
|
||||
QueryMonthlyBillOutcome queryMonthlyBill(const Model::QueryMonthlyBillRequest &request)const;
|
||||
void queryMonthlyBillAsync(const Model::QueryMonthlyBillRequest& request, const QueryMonthlyBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMonthlyBillOutcomeCallable queryMonthlyBillCallable(const Model::QueryMonthlyBillRequest& request) const;
|
||||
CreateUserQuotaOutcome createUserQuota(const Model::CreateUserQuotaRequest &request)const;
|
||||
void createUserQuotaAsync(const Model::CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateUserQuotaOutcomeCallable createUserQuotaCallable(const Model::CreateUserQuotaRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
CancelOrderOutcome cancelOrder(const Model::CancelOrderRequest &request)const;
|
||||
void cancelOrderAsync(const Model::CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelOrderOutcomeCallable cancelOrderCallable(const Model::CancelOrderRequest& request) const;
|
||||
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
||||
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
||||
QueryUserAlarmThresholdOutcome queryUserAlarmThreshold(const Model::QueryUserAlarmThresholdRequest &request)const;
|
||||
void queryUserAlarmThresholdAsync(const Model::QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryUserAlarmThresholdOutcomeCallable queryUserAlarmThresholdCallable(const Model::QueryUserAlarmThresholdRequest& request) const;
|
||||
SubscribeDetailOutcome subscribeDetail(const Model::SubscribeDetailRequest &request)const;
|
||||
void subscribeDetailAsync(const Model::SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubscribeDetailOutcomeCallable subscribeDetailCallable(const Model::SubscribeDetailRequest& request) const;
|
||||
EnableBillGenerationOutcome enableBillGeneration(const Model::EnableBillGenerationRequest &request)const;
|
||||
void enableBillGenerationAsync(const Model::EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableBillGenerationOutcomeCallable enableBillGenerationCallable(const Model::EnableBillGenerationRequest& request) const;
|
||||
SetEnduserStatusOutcome setEnduserStatus(const Model::SetEnduserStatusRequest &request)const;
|
||||
void setEnduserStatusAsync(const Model::SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetEnduserStatusOutcomeCallable setEnduserStatusCallable(const Model::SetEnduserStatusRequest& request) const;
|
||||
QueryInvoicingCustomerListOutcome queryInvoicingCustomerList(const Model::QueryInvoicingCustomerListRequest &request)const;
|
||||
void queryInvoicingCustomerListAsync(const Model::QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInvoicingCustomerListOutcomeCallable queryInvoicingCustomerListCallable(const Model::QueryInvoicingCustomerListRequest& request) const;
|
||||
QueryAccountBalanceOutcome queryAccountBalance(const Model::QueryAccountBalanceRequest &request)const;
|
||||
void queryAccountBalanceAsync(const Model::QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBalanceOutcomeCallable queryAccountBalanceCallable(const Model::QueryAccountBalanceRequest& request) const;
|
||||
RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const;
|
||||
void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const;
|
||||
QueryInstanceGaapCostOutcome queryInstanceGaapCost(const Model::QueryInstanceGaapCostRequest &request)const;
|
||||
void queryInstanceGaapCostAsync(const Model::QueryInstanceGaapCostRequest& request, const QueryInstanceGaapCostAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInstanceGaapCostOutcomeCallable queryInstanceGaapCostCallable(const Model::QueryInstanceGaapCostRequest& request) const;
|
||||
@@ -231,24 +334,27 @@ namespace AlibabaCloud
|
||||
QueryAvailableInstancesOutcome queryAvailableInstances(const Model::QueryAvailableInstancesRequest &request)const;
|
||||
void queryAvailableInstancesAsync(const Model::QueryAvailableInstancesRequest& request, const QueryAvailableInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAvailableInstancesOutcomeCallable queryAvailableInstancesCallable(const Model::QueryAvailableInstancesRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
GetOrderDetailOutcome getOrderDetail(const Model::GetOrderDetailRequest &request)const;
|
||||
void getOrderDetailAsync(const Model::GetOrderDetailRequest& request, const GetOrderDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetOrderDetailOutcomeCallable getOrderDetailCallable(const Model::GetOrderDetailRequest& request) const;
|
||||
QueryEnduserStatusOutcome queryEnduserStatus(const Model::QueryEnduserStatusRequest &request)const;
|
||||
void queryEnduserStatusAsync(const Model::QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEnduserStatusOutcomeCallable queryEnduserStatusCallable(const Model::QueryEnduserStatusRequest& request) const;
|
||||
ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const;
|
||||
void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const;
|
||||
QueryCustomerAddressListOutcome queryCustomerAddressList(const Model::QueryCustomerAddressListRequest &request)const;
|
||||
void queryCustomerAddressListAsync(const Model::QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCustomerAddressListOutcomeCallable queryCustomerAddressListCallable(const Model::QueryCustomerAddressListRequest& request) const;
|
||||
CancelOrderOutcome cancelOrder(const Model::CancelOrderRequest &request)const;
|
||||
void cancelOrderAsync(const Model::CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CancelOrderOutcomeCallable cancelOrderCallable(const Model::CancelOrderRequest& request) const;
|
||||
QueryResourcePackageInstancesOutcome queryResourcePackageInstances(const Model::QueryResourcePackageInstancesRequest &request)const;
|
||||
void queryResourcePackageInstancesAsync(const Model::QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryResourcePackageInstancesOutcomeCallable queryResourcePackageInstancesCallable(const Model::QueryResourcePackageInstancesRequest& request) const;
|
||||
SetUserQuotaOutcome setUserQuota(const Model::SetUserQuotaRequest &request)const;
|
||||
void setUserQuotaAsync(const Model::SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetUserQuotaOutcomeCallable setUserQuotaCallable(const Model::SetUserQuotaRequest& request) const;
|
||||
UnsubscribeExportToOSSOutcome unsubscribeExportToOSS(const Model::UnsubscribeExportToOSSRequest &request)const;
|
||||
void unsubscribeExportToOSSAsync(const Model::UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnsubscribeExportToOSSOutcomeCallable unsubscribeExportToOSSCallable(const Model::UnsubscribeExportToOSSRequest& request) const;
|
||||
QueryPriceListOutcome queryPriceList(const Model::QueryPriceListRequest &request)const;
|
||||
void queryPriceListAsync(const Model::QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPriceListOutcomeCallable queryPriceListCallable(const Model::QueryPriceListRequest& request) const;
|
||||
QueryRedeemOutcome queryRedeem(const Model::QueryRedeemRequest &request)const;
|
||||
void queryRedeemAsync(const Model::QueryRedeemRequest& request, const QueryRedeemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRedeemOutcomeCallable queryRedeemCallable(const Model::QueryRedeemRequest& request) const;
|
||||
@@ -264,27 +370,30 @@ namespace AlibabaCloud
|
||||
UnsubscribeBillToOSSOutcome unsubscribeBillToOSS(const Model::UnsubscribeBillToOSSRequest &request)const;
|
||||
void unsubscribeBillToOSSAsync(const Model::UnsubscribeBillToOSSRequest& request, const UnsubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UnsubscribeBillToOSSOutcomeCallable unsubscribeBillToOSSCallable(const Model::UnsubscribeBillToOSSRequest& request) const;
|
||||
ChangeConsumeAmountOutcome changeConsumeAmount(const Model::ChangeConsumeAmountRequest &request)const;
|
||||
void changeConsumeAmountAsync(const Model::ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeConsumeAmountOutcomeCallable changeConsumeAmountCallable(const Model::ChangeConsumeAmountRequest& request) const;
|
||||
ApplyInvoiceOutcome applyInvoice(const Model::ApplyInvoiceRequest &request)const;
|
||||
void applyInvoiceAsync(const Model::ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyInvoiceOutcomeCallable applyInvoiceCallable(const Model::ApplyInvoiceRequest& request) const;
|
||||
QueryProductListOutcome queryProductList(const Model::QueryProductListRequest &request)const;
|
||||
void queryProductListAsync(const Model::QueryProductListRequest& request, const QueryProductListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryProductListOutcomeCallable queryProductListCallable(const Model::QueryProductListRequest& request) const;
|
||||
SetUserAlarmThresholdOutcome setUserAlarmThreshold(const Model::SetUserAlarmThresholdRequest &request)const;
|
||||
void setUserAlarmThresholdAsync(const Model::SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetUserAlarmThresholdOutcomeCallable setUserAlarmThresholdCallable(const Model::SetUserAlarmThresholdRequest& request) const;
|
||||
GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const;
|
||||
void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const;
|
||||
EnableBillGenerationOutcome enableBillGeneration(const Model::EnableBillGenerationRequest &request)const;
|
||||
void enableBillGenerationAsync(const Model::EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableBillGenerationOutcomeCallable enableBillGenerationCallable(const Model::EnableBillGenerationRequest& request) const;
|
||||
QueryAccountBookListOutcome queryAccountBookList(const Model::QueryAccountBookListRequest &request)const;
|
||||
void queryAccountBookListAsync(const Model::QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBookListOutcomeCallable queryAccountBookListCallable(const Model::QueryAccountBookListRequest& request) const;
|
||||
QueryOrdersOutcome queryOrders(const Model::QueryOrdersRequest &request)const;
|
||||
void queryOrdersAsync(const Model::QueryOrdersRequest& request, const QueryOrdersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryOrdersOutcomeCallable queryOrdersCallable(const Model::QueryOrdersRequest& request) const;
|
||||
QueryCashCouponsOutcome queryCashCoupons(const Model::QueryCashCouponsRequest &request)const;
|
||||
void queryCashCouponsAsync(const Model::QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCashCouponsOutcomeCallable queryCashCouponsCallable(const Model::QueryCashCouponsRequest& request) const;
|
||||
QueryInvoicingCustomerListOutcome queryInvoicingCustomerList(const Model::QueryInvoicingCustomerListRequest &request)const;
|
||||
void queryInvoicingCustomerListAsync(const Model::QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInvoicingCustomerListOutcomeCallable queryInvoicingCustomerListCallable(const Model::QueryInvoicingCustomerListRequest& request) const;
|
||||
QueryEvaluateListOutcome queryEvaluateList(const Model::QueryEvaluateListRequest &request)const;
|
||||
void queryEvaluateListAsync(const Model::QueryEvaluateListRequest& request, const QueryEvaluateListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEvaluateListOutcomeCallable queryEvaluateListCallable(const Model::QueryEvaluateListRequest& request) const;
|
||||
@@ -294,18 +403,21 @@ namespace AlibabaCloud
|
||||
DescribeResourcePackageProductOutcome describeResourcePackageProduct(const Model::DescribeResourcePackageProductRequest &request)const;
|
||||
void describeResourcePackageProductAsync(const Model::DescribeResourcePackageProductRequest& request, const DescribeResourcePackageProductAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeResourcePackageProductOutcomeCallable describeResourcePackageProductCallable(const Model::DescribeResourcePackageProductRequest& request) const;
|
||||
QueryAccountBalanceOutcome queryAccountBalance(const Model::QueryAccountBalanceRequest &request)const;
|
||||
void queryAccountBalanceAsync(const Model::QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAccountBalanceOutcomeCallable queryAccountBalanceCallable(const Model::QueryAccountBalanceRequest& request) const;
|
||||
RenewInstanceOutcome renewInstance(const Model::RenewInstanceRequest &request)const;
|
||||
void renewInstanceAsync(const Model::RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
RenewInstanceOutcomeCallable renewInstanceCallable(const Model::RenewInstanceRequest& request) const;
|
||||
CreateResourcePackageOutcome createResourcePackage(const Model::CreateResourcePackageRequest &request)const;
|
||||
void createResourcePackageAsync(const Model::CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourcePackageOutcomeCallable createResourcePackageCallable(const Model::CreateResourcePackageRequest& request) const;
|
||||
QueryInstanceBillOutcome queryInstanceBill(const Model::QueryInstanceBillRequest &request)const;
|
||||
void queryInstanceBillAsync(const Model::QueryInstanceBillRequest& request, const QueryInstanceBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInstanceBillOutcomeCallable queryInstanceBillCallable(const Model::QueryInstanceBillRequest& request) const;
|
||||
SubscribeExportToOSSOutcome subscribeExportToOSS(const Model::SubscribeExportToOSSRequest &request)const;
|
||||
void subscribeExportToOSSAsync(const Model::SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubscribeExportToOSSOutcomeCallable subscribeExportToOSSCallable(const Model::SubscribeExportToOSSRequest& request) const;
|
||||
QueryAvaliableQuotaOutcome queryAvaliableQuota(const Model::QueryAvaliableQuotaRequest &request)const;
|
||||
void queryAvaliableQuotaAsync(const Model::QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryAvaliableQuotaOutcomeCallable queryAvaliableQuotaCallable(const Model::QueryAvaliableQuotaRequest& request) const;
|
||||
QueryPriceOutcome queryPrice(const Model::QueryPriceRequest &request)const;
|
||||
void queryPriceAsync(const Model::QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPriceOutcomeCallable queryPriceCallable(const Model::QueryPriceRequest& request) const;
|
||||
QueryBillOutcome queryBill(const Model::QueryBillRequest &request)const;
|
||||
void queryBillAsync(const Model::QueryBillRequest& request, const QueryBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryBillOutcomeCallable queryBillCallable(const Model::QueryBillRequest& request) const;
|
||||
|
||||
@@ -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_CHANGECONSUMEAMOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTREQUEST_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 ChangeConsumeAmountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeConsumeAmountRequest();
|
||||
~ChangeConsumeAmountRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAdjustType()const;
|
||||
void setAdjustType(const std::string& adjustType);
|
||||
std::string getAmount()const;
|
||||
void setAmount(const std::string& amount);
|
||||
std::string getOutBizId()const;
|
||||
void setOutBizId(const std::string& outBizId);
|
||||
std::string getExtendMap()const;
|
||||
void setExtendMap(const std::string& extendMap);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getSource()const;
|
||||
void setSource(const std::string& source);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
std::string getBusinessType()const;
|
||||
void setBusinessType(const std::string& businessType);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string adjustType_;
|
||||
std::string amount_;
|
||||
std::string outBizId_;
|
||||
std::string extendMap_;
|
||||
std::string currency_;
|
||||
std::string source_;
|
||||
std::string bid_;
|
||||
std::string businessType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTREQUEST_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_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTRESULT_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 ChangeConsumeAmountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ChangeConsumeAmountResult();
|
||||
explicit ChangeConsumeAmountResult(const std::string &payload);
|
||||
~ChangeConsumeAmountResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CHANGECONSUMEAMOUNTRESULT_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_BSSOPENAPI_MODEL_CREATEUSERQUOTAREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTAREQUEST_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 CreateUserQuotaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateUserQuotaRequest();
|
||||
~CreateUserQuotaRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAmount()const;
|
||||
void setAmount(const std::string& amount);
|
||||
std::string getOutBizId()const;
|
||||
void setOutBizId(const std::string& outBizId);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string amount_;
|
||||
std::string outBizId_;
|
||||
std::string currency_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTAREQUEST_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_BSSOPENAPI_MODEL_CREATEUSERQUOTARESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTARESULT_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 CreateUserQuotaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateUserQuotaResult();
|
||||
explicit CreateUserQuotaResult(const std::string &payload);
|
||||
~CreateUserQuotaResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEUSERQUOTARESULT_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_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTREQUEST_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 QueryAccountBookListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryAccountBookListRequest();
|
||||
~QueryAccountBookListRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getItemCodes()const;
|
||||
void setItemCodes(const std::string& itemCodes);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string itemCodes_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTREQUEST_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_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTRESULT_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 QueryAccountBookListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string itemCode;
|
||||
long userId;
|
||||
std::string amount;
|
||||
std::string currency;
|
||||
long effectTimeStamp;
|
||||
long invalidTimeStamp;
|
||||
std::string bid;
|
||||
};
|
||||
|
||||
|
||||
QueryAccountBookListResult();
|
||||
explicit QueryAccountBookListResult(const std::string &payload);
|
||||
~QueryAccountBookListResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Data> getDatas()const;
|
||||
int getCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<Data> datas_;
|
||||
int count_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYACCOUNTBOOKLISTRESULT_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_BSSOPENAPI_MODEL_QUERYAVALIABLEQUOTAREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVALIABLEQUOTAREQUEST_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 QueryAvaliableQuotaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryAvaliableQuotaRequest();
|
||||
~QueryAvaliableQuotaRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getItemCodes()const;
|
||||
void setItemCodes(const std::string& itemCodes);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string itemCodes_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVALIABLEQUOTAREQUEST_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_BSSOPENAPI_MODEL_QUERYAVALIABLEQUOTARESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVALIABLEQUOTARESULT_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 QueryAvaliableQuotaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryAvaliableQuotaResult();
|
||||
explicit QueryAvaliableQuotaResult(const std::string &payload);
|
||||
~QueryAvaliableQuotaResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYAVALIABLEQUOTARESULT_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_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSREQUEST_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 QueryEnduserStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryEnduserStatusRequest();
|
||||
~QueryEnduserStatusRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getPrimaryAccount()const;
|
||||
void setPrimaryAccount(const std::string& primaryAccount);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
std::string getBusinessType()const;
|
||||
void setBusinessType(const std::string& businessType);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string primaryAccount_;
|
||||
std::string status_;
|
||||
std::string businessType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSRESULT_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 QueryEnduserStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string status;
|
||||
long uid;
|
||||
std::string primaryAccount;
|
||||
std::string businessType;
|
||||
};
|
||||
|
||||
|
||||
QueryEnduserStatusResult();
|
||||
explicit QueryEnduserStatusResult(const std::string &payload);
|
||||
~QueryEnduserStatusResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Data> getDatas()const;
|
||||
int getCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<Data> datas_;
|
||||
int count_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYENDUSERSTATUSRESULT_H_
|
||||
@@ -43,8 +43,6 @@ namespace AlibabaCloud
|
||||
void setSortType(int sortType);
|
||||
std::vector<std::string> getBizTypeList()const;
|
||||
void setBizTypeList(const std::vector<std::string>& bizTypeList);
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
int getType()const;
|
||||
void setType(int type);
|
||||
long getOwnerId()const;
|
||||
@@ -65,15 +63,12 @@ namespace AlibabaCloud
|
||||
void setStartAmount(long startAmount);
|
||||
std::string getStartBizTime()const;
|
||||
void setStartBizTime(const std::string& startBizTime);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
|
||||
private:
|
||||
std::string endSearchTime_;
|
||||
std::string outBizId_;
|
||||
int sortType_;
|
||||
std::vector<std::string> bizTypeList_;
|
||||
long callerBid_;
|
||||
int type_;
|
||||
long ownerId_;
|
||||
int pageNum_;
|
||||
@@ -84,7 +79,6 @@ namespace AlibabaCloud
|
||||
std::string billCycle_;
|
||||
long startAmount_;
|
||||
std::string startBizTime_;
|
||||
long callerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -58,9 +58,11 @@ namespace AlibabaCloud
|
||||
long invoicedAmount;
|
||||
long canInvoiceAmount;
|
||||
};
|
||||
long totalInvoiceAmount;
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
long totalUnAppliedInvoiceAmount;
|
||||
std::string hostId;
|
||||
std::vector<Evaluate> evaluateList;
|
||||
};
|
||||
|
||||
@@ -35,17 +35,11 @@ namespace AlibabaCloud
|
||||
QueryInvoicingCustomerListRequest();
|
||||
~QueryInvoicingCustomerListRequest();
|
||||
|
||||
long getCallerBid()const;
|
||||
void setCallerBid(long callerBid);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getCallerUid()const;
|
||||
void setCallerUid(long callerUid);
|
||||
|
||||
private:
|
||||
long callerBid_;
|
||||
long ownerId_;
|
||||
long callerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string registerNo;
|
||||
long id;
|
||||
std::string userNick;
|
||||
std::string defaultRemark;
|
||||
long taxpayerType;
|
||||
};
|
||||
std::vector<CustomerInvoice> customerInvoiceList;
|
||||
|
||||
@@ -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_BSSOPENAPI_MODEL_QUERYPRICELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTREQUEST_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 QueryPriceListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPriceListRequest();
|
||||
~QueryPriceListRequest();
|
||||
|
||||
std::string getModuleCode()const;
|
||||
void setModuleCode(const std::string& moduleCode);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getSubscriptionType()const;
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
|
||||
private:
|
||||
std::string moduleCode_;
|
||||
std::string productCode_;
|
||||
std::string subscriptionType_;
|
||||
long ownerId_;
|
||||
std::string productType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTREQUEST_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_QUERYPRICELISTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICELISTRESULT_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 QueryPriceListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Module
|
||||
{
|
||||
struct TierPrice
|
||||
{
|
||||
std::string endSymbol;
|
||||
std::string tierType;
|
||||
std::string tierStart;
|
||||
std::string tierEnd;
|
||||
std::string price;
|
||||
std::string startSymbol;
|
||||
std::string priceType;
|
||||
};
|
||||
std::string priceUnit;
|
||||
std::string moduleCode;
|
||||
std::string config;
|
||||
std::string region;
|
||||
std::string priceUnitQuantity;
|
||||
std::vector<Module::TierPrice> tierPrices;
|
||||
};
|
||||
std::vector<Module> modules;
|
||||
std::string currency;
|
||||
};
|
||||
|
||||
|
||||
QueryPriceListResult();
|
||||
explicit QueryPriceListResult(const std::string &payload);
|
||||
~QueryPriceListResult();
|
||||
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_QUERYPRICELISTRESULT_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_BSSOPENAPI_MODEL_QUERYPRICEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICEREQUEST_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 QueryPriceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPriceRequest();
|
||||
~QueryPriceRequest();
|
||||
|
||||
std::string getParamStr()const;
|
||||
void setParamStr(const std::string& paramStr);
|
||||
|
||||
private:
|
||||
std::string paramStr_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICEREQUEST_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_BSSOPENAPI_MODEL_QUERYPRICERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICERESULT_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 QueryPriceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
QueryPriceResult();
|
||||
explicit QueryPriceResult(const std::string &payload);
|
||||
~QueryPriceResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getErrCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
std::string errCode_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPRICERESULT_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_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDREQUEST_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 QueryUserAlarmThresholdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryUserAlarmThresholdRequest();
|
||||
~QueryUserAlarmThresholdRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAlarmType()const;
|
||||
void setAlarmType(const std::string& alarmType);
|
||||
std::string getAlarmThresholds()const;
|
||||
void setAlarmThresholds(const std::string& alarmThresholds);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string alarmType_;
|
||||
std::string alarmThresholds_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDRESULT_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 QueryUserAlarmThresholdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string thresholdAmount;
|
||||
int numerator;
|
||||
int denominator;
|
||||
int thresholdType;
|
||||
};
|
||||
|
||||
|
||||
QueryUserAlarmThresholdResult();
|
||||
explicit QueryUserAlarmThresholdResult(const std::string &payload);
|
||||
~QueryUserAlarmThresholdResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Data> getDatas()const;
|
||||
int getCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<Data> datas_;
|
||||
int count_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYUSERALARMTHRESHOLDRESULT_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_BSSOPENAPI_MODEL_SETENDUSERSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETENDUSERSTATUSREQUEST_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 SetEnduserStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetEnduserStatusRequest();
|
||||
~SetEnduserStatusRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getPrimaryAccount()const;
|
||||
void setPrimaryAccount(const std::string& primaryAccount);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
std::string getBusinessType()const;
|
||||
void setBusinessType(const std::string& businessType);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string primaryAccount_;
|
||||
std::string status_;
|
||||
std::string businessType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETENDUSERSTATUSREQUEST_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_BSSOPENAPI_MODEL_SETENDUSERSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETENDUSERSTATUSRESULT_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 SetEnduserStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetEnduserStatusResult();
|
||||
explicit SetEnduserStatusResult(const std::string &payload);
|
||||
~SetEnduserStatusResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETENDUSERSTATUSRESULT_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_BSSOPENAPI_MODEL_SETUSERALARMTHRESHOLDREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERALARMTHRESHOLDREQUEST_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 SetUserAlarmThresholdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetUserAlarmThresholdRequest();
|
||||
~SetUserAlarmThresholdRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAlarmType()const;
|
||||
void setAlarmType(const std::string& alarmType);
|
||||
std::string getAlarmThresholds()const;
|
||||
void setAlarmThresholds(const std::string& alarmThresholds);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string alarmType_;
|
||||
std::string alarmThresholds_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERALARMTHRESHOLDREQUEST_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_BSSOPENAPI_MODEL_SETUSERALARMTHRESHOLDRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERALARMTHRESHOLDRESULT_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 SetUserAlarmThresholdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetUserAlarmThresholdResult();
|
||||
explicit SetUserAlarmThresholdResult(const std::string &payload);
|
||||
~SetUserAlarmThresholdResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERALARMTHRESHOLDRESULT_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_BSSOPENAPI_MODEL_SETUSERQUOTAREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTAREQUEST_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 SetUserQuotaRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetUserQuotaRequest();
|
||||
~SetUserQuotaRequest();
|
||||
|
||||
long getUid()const;
|
||||
void setUid(long uid);
|
||||
std::string getAmount()const;
|
||||
void setAmount(const std::string& amount);
|
||||
std::string getOutBizId()const;
|
||||
void setOutBizId(const std::string& outBizId);
|
||||
std::string getCurrency()const;
|
||||
void setCurrency(const std::string& currency);
|
||||
std::string getBid()const;
|
||||
void setBid(const std::string& bid);
|
||||
|
||||
private:
|
||||
long uid_;
|
||||
std::string amount_;
|
||||
std::string outBizId_;
|
||||
std::string currency_;
|
||||
std::string bid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTAREQUEST_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_BSSOPENAPI_MODEL_SETUSERQUOTARESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTARESULT_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 SetUserQuotaResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetUserQuotaResult();
|
||||
explicit SetUserQuotaResult(const std::string &payload);
|
||||
~SetUserQuotaResult();
|
||||
std::string getMessage()const;
|
||||
bool getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
bool data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SETUSERQUOTARESULT_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_BSSOPENAPI_MODEL_SUBSCRIBEDETAILREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILREQUEST_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 SubscribeDetailRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SubscribeDetailRequest();
|
||||
~SubscribeDetailRequest();
|
||||
|
||||
long getBucketOwnerId()const;
|
||||
void setBucketOwnerId(long bucketOwnerId);
|
||||
std::vector<std::string> getSubscribeType()const;
|
||||
void setSubscribeType(const std::vector<std::string>& subscribeType);
|
||||
std::string getSubscribeBucket()const;
|
||||
void setSubscribeBucket(const std::string& subscribeBucket);
|
||||
|
||||
private:
|
||||
long bucketOwnerId_;
|
||||
std::vector<std::string> subscribeType_;
|
||||
std::string subscribeBucket_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILREQUEST_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_BSSOPENAPI_MODEL_SUBSCRIBEDETAILRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILRESULT_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 SubscribeDetailResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SubscribeDetailResult();
|
||||
explicit SubscribeDetailResult(const std::string &payload);
|
||||
~SubscribeDetailResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEDETAILRESULT_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_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSREQUEST_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 SubscribeExportToOSSRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SubscribeExportToOSSRequest();
|
||||
~SubscribeExportToOSSRequest();
|
||||
|
||||
long getBucketOwnerId()const;
|
||||
void setBucketOwnerId(long bucketOwnerId);
|
||||
std::vector<std::string> getSubscribeType()const;
|
||||
void setSubscribeType(const std::vector<std::string>& subscribeType);
|
||||
std::string getSubscribeBucket()const;
|
||||
void setSubscribeBucket(const std::string& subscribeBucket);
|
||||
|
||||
private:
|
||||
long bucketOwnerId_;
|
||||
std::vector<std::string> subscribeType_;
|
||||
std::string subscribeBucket_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSREQUEST_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_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSRESULT_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 SubscribeExportToOSSResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SubscribeExportToOSSResult();
|
||||
explicit SubscribeExportToOSSResult(const std::string &payload);
|
||||
~SubscribeExportToOSSResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_SUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEEXPORTTOOSSREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEEXPORTTOOSSREQUEST_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 UnsubscribeExportToOSSRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UnsubscribeExportToOSSRequest();
|
||||
~UnsubscribeExportToOSSRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEEXPORTTOOSSREQUEST_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_BSSOPENAPI_MODEL_UNSUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEEXPORTTOOSSRESULT_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 UnsubscribeExportToOSSResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnsubscribeExportToOSSResult();
|
||||
explicit UnsubscribeExportToOSSResult(const std::string &payload);
|
||||
~UnsubscribeExportToOSSResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNSUBSCRIBEEXPORTTOOSSRESULT_H_
|
||||
@@ -31,21 +31,21 @@ BssOpenApiClient::BssOpenApiClient(const Credentials &credentials, const ClientC
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
BssOpenApiClient::BssOpenApiClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
BssOpenApiClient::BssOpenApiClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "bssopenapi");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
BssOpenApiClient::~BssOpenApiClient()
|
||||
@@ -87,6 +87,402 @@ BssOpenApiClient::QueryMonthlyBillOutcomeCallable BssOpenApiClient::queryMonthly
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateUserQuotaOutcome BssOpenApiClient::createUserQuota(const CreateUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateUserQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateUserQuotaOutcome(CreateUserQuotaResult(outcome.result()));
|
||||
else
|
||||
return CreateUserQuotaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::createUserQuotaAsync(const CreateUserQuotaRequest& request, const CreateUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createUserQuota(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateUserQuotaOutcomeCallable BssOpenApiClient::createUserQuotaCallable(const CreateUserQuotaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateUserQuotaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createUserQuota(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateInstanceOutcome BssOpenApiClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateInstanceOutcome(CreateInstanceResult(outcome.result()));
|
||||
else
|
||||
return CreateInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateInstanceOutcomeCallable BssOpenApiClient::createInstanceCallable(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CancelOrderOutcome BssOpenApiClient::cancelOrder(const CancelOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelOrderOutcome(CancelOrderResult(outcome.result()));
|
||||
else
|
||||
return CancelOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::cancelOrderAsync(const CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallable(const CancelOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryResourcePackageInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryResourcePackageInstancesOutcome(QueryResourcePackageInstancesResult(outcome.result()));
|
||||
else
|
||||
return QueryResourcePackageInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryResourcePackageInstancesAsync(const QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryResourcePackageInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient::queryResourcePackageInstancesCallable(const QueryResourcePackageInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryResourcePackageInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryResourcePackageInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryUserAlarmThresholdOutcome BssOpenApiClient::queryUserAlarmThreshold(const QueryUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryUserAlarmThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryUserAlarmThresholdOutcome(QueryUserAlarmThresholdResult(outcome.result()));
|
||||
else
|
||||
return QueryUserAlarmThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryUserAlarmThresholdAsync(const QueryUserAlarmThresholdRequest& request, const QueryUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryUserAlarmThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryUserAlarmThresholdOutcomeCallable BssOpenApiClient::queryUserAlarmThresholdCallable(const QueryUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryUserAlarmThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryUserAlarmThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeDetailOutcome BssOpenApiClient::subscribeDetail(const SubscribeDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubscribeDetailOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubscribeDetailOutcome(SubscribeDetailResult(outcome.result()));
|
||||
else
|
||||
return SubscribeDetailOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::subscribeDetailAsync(const SubscribeDetailRequest& request, const SubscribeDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, subscribeDetail(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeDetailOutcomeCallable BssOpenApiClient::subscribeDetailCallable(const SubscribeDetailRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubscribeDetailOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->subscribeDetail(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableBillGenerationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableBillGenerationOutcome(EnableBillGenerationResult(outcome.result()));
|
||||
else
|
||||
return EnableBillGenerationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::enableBillGenerationAsync(const EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableBillGeneration(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBillGenerationCallable(const EnableBillGenerationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableBillGenerationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableBillGeneration(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetEnduserStatusOutcome BssOpenApiClient::setEnduserStatus(const SetEnduserStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetEnduserStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetEnduserStatusOutcome(SetEnduserStatusResult(outcome.result()));
|
||||
else
|
||||
return SetEnduserStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::setEnduserStatusAsync(const SetEnduserStatusRequest& request, const SetEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setEnduserStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetEnduserStatusOutcomeCallable BssOpenApiClient::setEnduserStatusCallable(const SetEnduserStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetEnduserStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setEnduserStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInvoicingCustomerListOutcome BssOpenApiClient::queryInvoicingCustomerList(const QueryInvoicingCustomerListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryInvoicingCustomerListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryInvoicingCustomerListOutcome(QueryInvoicingCustomerListResult(outcome.result()));
|
||||
else
|
||||
return QueryInvoicingCustomerListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryInvoicingCustomerListAsync(const QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryInvoicingCustomerList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInvoicingCustomerListOutcomeCallable BssOpenApiClient::queryInvoicingCustomerListCallable(const QueryInvoicingCustomerListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryInvoicingCustomerListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryInvoicingCustomerList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBalanceOutcome BssOpenApiClient::queryAccountBalance(const QueryAccountBalanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccountBalanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccountBalanceOutcome(QueryAccountBalanceResult(outcome.result()));
|
||||
else
|
||||
return QueryAccountBalanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAccountBalanceAsync(const QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccountBalance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAccountBalanceCallable(const QueryAccountBalanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountBalanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccountBalance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::RenewInstanceOutcome BssOpenApiClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RenewInstanceOutcome(RenewInstanceResult(outcome.result()));
|
||||
else
|
||||
return RenewInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, renewInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::RenewInstanceOutcomeCallable BssOpenApiClient::renewInstanceCallable(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RenewInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->renewInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceGaapCostOutcome BssOpenApiClient::queryInstanceGaapCost(const QueryInstanceGaapCostRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,42 +627,6 @@ BssOpenApiClient::QueryAvailableInstancesOutcomeCallable BssOpenApiClient::query
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateInstanceOutcome BssOpenApiClient::createInstance(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateInstanceOutcome(CreateInstanceResult(outcome.result()));
|
||||
else
|
||||
return CreateInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::createInstanceAsync(const CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateInstanceOutcomeCallable BssOpenApiClient::createInstanceCallable(const CreateInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::GetOrderDetailOutcome BssOpenApiClient::getOrderDetail(const GetOrderDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -303,6 +663,42 @@ BssOpenApiClient::GetOrderDetailOutcomeCallable BssOpenApiClient::getOrderDetail
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryEnduserStatusOutcome BssOpenApiClient::queryEnduserStatus(const QueryEnduserStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryEnduserStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryEnduserStatusOutcome(QueryEnduserStatusResult(outcome.result()));
|
||||
else
|
||||
return QueryEnduserStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryEnduserStatusAsync(const QueryEnduserStatusRequest& request, const QueryEnduserStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryEnduserStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryEnduserStatusOutcomeCallable BssOpenApiClient::queryEnduserStatusCallable(const QueryEnduserStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryEnduserStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryEnduserStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ModifyInstanceOutcome BssOpenApiClient::modifyInstance(const ModifyInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -375,72 +771,108 @@ BssOpenApiClient::QueryCustomerAddressListOutcomeCallable BssOpenApiClient::quer
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CancelOrderOutcome BssOpenApiClient::cancelOrder(const CancelOrderRequest &request) const
|
||||
BssOpenApiClient::SetUserQuotaOutcome BssOpenApiClient::setUserQuota(const SetUserQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CancelOrderOutcome(endpointOutcome.error());
|
||||
return SetUserQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CancelOrderOutcome(CancelOrderResult(outcome.result()));
|
||||
return SetUserQuotaOutcome(SetUserQuotaResult(outcome.result()));
|
||||
else
|
||||
return CancelOrderOutcome(outcome.error());
|
||||
return SetUserQuotaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::cancelOrderAsync(const CancelOrderRequest& request, const CancelOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::setUserQuotaAsync(const SetUserQuotaRequest& request, const SetUserQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, cancelOrder(request), context);
|
||||
handler(this, request, setUserQuota(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CancelOrderOutcomeCallable BssOpenApiClient::cancelOrderCallable(const CancelOrderRequest &request) const
|
||||
BssOpenApiClient::SetUserQuotaOutcomeCallable BssOpenApiClient::setUserQuotaCallable(const SetUserQuotaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CancelOrderOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<SetUserQuotaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->cancelOrder(request);
|
||||
return this->setUserQuota(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryResourcePackageInstancesOutcome BssOpenApiClient::queryResourcePackageInstances(const QueryResourcePackageInstancesRequest &request) const
|
||||
BssOpenApiClient::UnsubscribeExportToOSSOutcome BssOpenApiClient::unsubscribeExportToOSS(const UnsubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryResourcePackageInstancesOutcome(endpointOutcome.error());
|
||||
return UnsubscribeExportToOSSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryResourcePackageInstancesOutcome(QueryResourcePackageInstancesResult(outcome.result()));
|
||||
return UnsubscribeExportToOSSOutcome(UnsubscribeExportToOSSResult(outcome.result()));
|
||||
else
|
||||
return QueryResourcePackageInstancesOutcome(outcome.error());
|
||||
return UnsubscribeExportToOSSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryResourcePackageInstancesAsync(const QueryResourcePackageInstancesRequest& request, const QueryResourcePackageInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::unsubscribeExportToOSSAsync(const UnsubscribeExportToOSSRequest& request, const UnsubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryResourcePackageInstances(request), context);
|
||||
handler(this, request, unsubscribeExportToOSS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryResourcePackageInstancesOutcomeCallable BssOpenApiClient::queryResourcePackageInstancesCallable(const QueryResourcePackageInstancesRequest &request) const
|
||||
BssOpenApiClient::UnsubscribeExportToOSSOutcomeCallable BssOpenApiClient::unsubscribeExportToOSSCallable(const UnsubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryResourcePackageInstancesOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<UnsubscribeExportToOSSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryResourcePackageInstances(request);
|
||||
return this->unsubscribeExportToOSS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceListOutcome BssOpenApiClient::queryPriceList(const QueryPriceListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryPriceListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryPriceListOutcome(QueryPriceListResult(outcome.result()));
|
||||
else
|
||||
return QueryPriceListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryPriceListAsync(const QueryPriceListRequest& request, const QueryPriceListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryPriceList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceListOutcomeCallable BssOpenApiClient::queryPriceListCallable(const QueryPriceListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryPriceListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryPriceList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -627,6 +1059,42 @@ BssOpenApiClient::UnsubscribeBillToOSSOutcomeCallable BssOpenApiClient::unsubscr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ChangeConsumeAmountOutcome BssOpenApiClient::changeConsumeAmount(const ChangeConsumeAmountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeConsumeAmountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeConsumeAmountOutcome(ChangeConsumeAmountResult(outcome.result()));
|
||||
else
|
||||
return ChangeConsumeAmountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::changeConsumeAmountAsync(const ChangeConsumeAmountRequest& request, const ChangeConsumeAmountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeConsumeAmount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::ChangeConsumeAmountOutcomeCallable BssOpenApiClient::changeConsumeAmountCallable(const ChangeConsumeAmountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeConsumeAmountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeConsumeAmount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ApplyInvoiceOutcome BssOpenApiClient::applyInvoice(const ApplyInvoiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -699,6 +1167,42 @@ BssOpenApiClient::QueryProductListOutcomeCallable BssOpenApiClient::queryProduct
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetUserAlarmThresholdOutcome BssOpenApiClient::setUserAlarmThreshold(const SetUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetUserAlarmThresholdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetUserAlarmThresholdOutcome(SetUserAlarmThresholdResult(outcome.result()));
|
||||
else
|
||||
return SetUserAlarmThresholdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::setUserAlarmThresholdAsync(const SetUserAlarmThresholdRequest& request, const SetUserAlarmThresholdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setUserAlarmThreshold(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SetUserAlarmThresholdOutcomeCallable BssOpenApiClient::setUserAlarmThresholdCallable(const SetUserAlarmThresholdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetUserAlarmThresholdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setUserAlarmThreshold(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::GetSubscriptionPriceOutcome BssOpenApiClient::getSubscriptionPrice(const GetSubscriptionPriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,36 +1239,36 @@ BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubsc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const
|
||||
BssOpenApiClient::QueryAccountBookListOutcome BssOpenApiClient::queryAccountBookList(const QueryAccountBookListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableBillGenerationOutcome(endpointOutcome.error());
|
||||
return QueryAccountBookListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableBillGenerationOutcome(EnableBillGenerationResult(outcome.result()));
|
||||
return QueryAccountBookListOutcome(QueryAccountBookListResult(outcome.result()));
|
||||
else
|
||||
return EnableBillGenerationOutcome(outcome.error());
|
||||
return QueryAccountBookListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::enableBillGenerationAsync(const EnableBillGenerationRequest& request, const EnableBillGenerationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::queryAccountBookListAsync(const QueryAccountBookListRequest& request, const QueryAccountBookListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableBillGeneration(request), context);
|
||||
handler(this, request, queryAccountBookList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::EnableBillGenerationOutcomeCallable BssOpenApiClient::enableBillGenerationCallable(const EnableBillGenerationRequest &request) const
|
||||
BssOpenApiClient::QueryAccountBookListOutcomeCallable BssOpenApiClient::queryAccountBookListCallable(const QueryAccountBookListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableBillGenerationOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountBookListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableBillGeneration(request);
|
||||
return this->queryAccountBookList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -843,42 +1347,6 @@ BssOpenApiClient::QueryCashCouponsOutcomeCallable BssOpenApiClient::queryCashCou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInvoicingCustomerListOutcome BssOpenApiClient::queryInvoicingCustomerList(const QueryInvoicingCustomerListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryInvoicingCustomerListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryInvoicingCustomerListOutcome(QueryInvoicingCustomerListResult(outcome.result()));
|
||||
else
|
||||
return QueryInvoicingCustomerListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryInvoicingCustomerListAsync(const QueryInvoicingCustomerListRequest& request, const QueryInvoicingCustomerListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryInvoicingCustomerList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInvoicingCustomerListOutcomeCallable BssOpenApiClient::queryInvoicingCustomerListCallable(const QueryInvoicingCustomerListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryInvoicingCustomerListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryInvoicingCustomerList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryEvaluateListOutcome BssOpenApiClient::queryEvaluateList(const QueryEvaluateListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -987,78 +1455,6 @@ BssOpenApiClient::DescribeResourcePackageProductOutcomeCallable BssOpenApiClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBalanceOutcome BssOpenApiClient::queryAccountBalance(const QueryAccountBalanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAccountBalanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAccountBalanceOutcome(QueryAccountBalanceResult(outcome.result()));
|
||||
else
|
||||
return QueryAccountBalanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAccountBalanceAsync(const QueryAccountBalanceRequest& request, const QueryAccountBalanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAccountBalance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAccountBalanceOutcomeCallable BssOpenApiClient::queryAccountBalanceCallable(const QueryAccountBalanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAccountBalanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAccountBalance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::RenewInstanceOutcome BssOpenApiClient::renewInstance(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return RenewInstanceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return RenewInstanceOutcome(RenewInstanceResult(outcome.result()));
|
||||
else
|
||||
return RenewInstanceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::renewInstanceAsync(const RenewInstanceRequest& request, const RenewInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, renewInstance(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::RenewInstanceOutcomeCallable BssOpenApiClient::renewInstanceCallable(const RenewInstanceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<RenewInstanceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->renewInstance(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateResourcePackageOutcome BssOpenApiClient::createResourcePackage(const CreateResourcePackageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1527,114 @@ BssOpenApiClient::QueryInstanceBillOutcomeCallable BssOpenApiClient::queryInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeExportToOSSOutcome BssOpenApiClient::subscribeExportToOSS(const SubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubscribeExportToOSSOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubscribeExportToOSSOutcome(SubscribeExportToOSSResult(outcome.result()));
|
||||
else
|
||||
return SubscribeExportToOSSOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::subscribeExportToOSSAsync(const SubscribeExportToOSSRequest& request, const SubscribeExportToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, subscribeExportToOSS(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::SubscribeExportToOSSOutcomeCallable BssOpenApiClient::subscribeExportToOSSCallable(const SubscribeExportToOSSRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubscribeExportToOSSOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->subscribeExportToOSS(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAvaliableQuotaOutcome BssOpenApiClient::queryAvaliableQuota(const QueryAvaliableQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryAvaliableQuotaOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryAvaliableQuotaOutcome(QueryAvaliableQuotaResult(outcome.result()));
|
||||
else
|
||||
return QueryAvaliableQuotaOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryAvaliableQuotaAsync(const QueryAvaliableQuotaRequest& request, const QueryAvaliableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryAvaliableQuota(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryAvaliableQuotaOutcomeCallable BssOpenApiClient::queryAvaliableQuotaCallable(const QueryAvaliableQuotaRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryAvaliableQuotaOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryAvaliableQuota(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceOutcome BssOpenApiClient::queryPrice(const QueryPriceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryPriceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryPriceOutcome(QueryPriceResult(outcome.result()));
|
||||
else
|
||||
return QueryPriceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryPriceAsync(const QueryPriceRequest& request, const QueryPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryPrice(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPriceOutcomeCallable BssOpenApiClient::queryPriceCallable(const QueryPriceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryPriceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryPrice(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryBillOutcome BssOpenApiClient::queryBill(const QueryBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
126
bssopenapi/src/model/ChangeConsumeAmountRequest.cc
Normal file
126
bssopenapi/src/model/ChangeConsumeAmountRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* 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/ChangeConsumeAmountRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::ChangeConsumeAmountRequest;
|
||||
|
||||
ChangeConsumeAmountRequest::ChangeConsumeAmountRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ChangeConsumeAmount")
|
||||
{}
|
||||
|
||||
ChangeConsumeAmountRequest::~ChangeConsumeAmountRequest()
|
||||
{}
|
||||
|
||||
long ChangeConsumeAmountRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getAdjustType()const
|
||||
{
|
||||
return adjustType_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setAdjustType(const std::string& adjustType)
|
||||
{
|
||||
adjustType_ = adjustType;
|
||||
setCoreParameter("AdjustType", adjustType);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setAmount(const std::string& amount)
|
||||
{
|
||||
amount_ = amount;
|
||||
setCoreParameter("Amount", amount);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getOutBizId()const
|
||||
{
|
||||
return outBizId_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getExtendMap()const
|
||||
{
|
||||
return extendMap_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setExtendMap(const std::string& extendMap)
|
||||
{
|
||||
extendMap_ = extendMap;
|
||||
setCoreParameter("ExtendMap", extendMap);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getSource()const
|
||||
{
|
||||
return source_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setSource(const std::string& source)
|
||||
{
|
||||
source_ = source;
|
||||
setCoreParameter("Source", source);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void ChangeConsumeAmountRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setCoreParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
73
bssopenapi/src/model/ChangeConsumeAmountResult.cc
Normal file
73
bssopenapi/src/model/ChangeConsumeAmountResult.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/bssopenapi/model/ChangeConsumeAmountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
ChangeConsumeAmountResult::ChangeConsumeAmountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeConsumeAmountResult::ChangeConsumeAmountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeConsumeAmountResult::~ChangeConsumeAmountResult()
|
||||
{}
|
||||
|
||||
void ChangeConsumeAmountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ChangeConsumeAmountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ChangeConsumeAmountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
82
bssopenapi/src/model/CreateUserQuotaRequest.cc
Normal file
82
bssopenapi/src/model/CreateUserQuotaRequest.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/bssopenapi/model/CreateUserQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::CreateUserQuotaRequest;
|
||||
|
||||
CreateUserQuotaRequest::CreateUserQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateUserQuota")
|
||||
{}
|
||||
|
||||
CreateUserQuotaRequest::~CreateUserQuotaRequest()
|
||||
{}
|
||||
|
||||
long CreateUserQuotaRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setAmount(const std::string& amount)
|
||||
{
|
||||
amount_ = amount;
|
||||
setCoreParameter("Amount", amount);
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getOutBizId()const
|
||||
{
|
||||
return outBizId_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void CreateUserQuotaRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
73
bssopenapi/src/model/CreateUserQuotaResult.cc
Normal file
73
bssopenapi/src/model/CreateUserQuotaResult.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/bssopenapi/model/CreateUserQuotaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
CreateUserQuotaResult::CreateUserQuotaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUserQuotaResult::CreateUserQuotaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUserQuotaResult::~CreateUserQuotaResult()
|
||||
{}
|
||||
|
||||
void CreateUserQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool CreateUserQuotaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateUserQuotaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateUserQuotaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
60
bssopenapi/src/model/QueryAccountBookListRequest.cc
Normal file
60
bssopenapi/src/model/QueryAccountBookListRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryAccountBookListRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAccountBookListRequest;
|
||||
|
||||
QueryAccountBookListRequest::QueryAccountBookListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAccountBookList")
|
||||
{}
|
||||
|
||||
QueryAccountBookListRequest::~QueryAccountBookListRequest()
|
||||
{}
|
||||
|
||||
long QueryAccountBookListRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryAccountBookListRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListRequest::getItemCodes()const
|
||||
{
|
||||
return itemCodes_;
|
||||
}
|
||||
|
||||
void QueryAccountBookListRequest::setItemCodes(const std::string& itemCodes)
|
||||
{
|
||||
itemCodes_ = itemCodes;
|
||||
setCoreParameter("ItemCodes", itemCodes);
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void QueryAccountBookListRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
98
bssopenapi/src/model/QueryAccountBookListResult.cc
Normal file
98
bssopenapi/src/model/QueryAccountBookListResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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/QueryAccountBookListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryAccountBookListResult::QueryAccountBookListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAccountBookListResult::QueryAccountBookListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAccountBookListResult::~QueryAccountBookListResult()
|
||||
{}
|
||||
|
||||
void QueryAccountBookListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatas = value["Datas"]["Data"];
|
||||
for (auto value : allDatas)
|
||||
{
|
||||
Data datasObject;
|
||||
if(!value["UserId"].isNull())
|
||||
datasObject.userId = std::stol(value["UserId"].asString());
|
||||
if(!value["Bid"].isNull())
|
||||
datasObject.bid = value["Bid"].asString();
|
||||
if(!value["ItemCode"].isNull())
|
||||
datasObject.itemCode = value["ItemCode"].asString();
|
||||
if(!value["Amount"].isNull())
|
||||
datasObject.amount = value["Amount"].asString();
|
||||
if(!value["EffectTimeStamp"].isNull())
|
||||
datasObject.effectTimeStamp = std::stol(value["EffectTimeStamp"].asString());
|
||||
if(!value["InvalidTimeStamp"].isNull())
|
||||
datasObject.invalidTimeStamp = std::stol(value["InvalidTimeStamp"].asString());
|
||||
if(!value["Currency"].isNull())
|
||||
datasObject.currency = value["Currency"].asString();
|
||||
datas_.push_back(datasObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryAccountBookListResult::Data> QueryAccountBookListResult::getDatas()const
|
||||
{
|
||||
return datas_;
|
||||
}
|
||||
|
||||
int QueryAccountBookListResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string QueryAccountBookListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAccountBookListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
60
bssopenapi/src/model/QueryAvaliableQuotaRequest.cc
Normal file
60
bssopenapi/src/model/QueryAvaliableQuotaRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryAvaliableQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryAvaliableQuotaRequest;
|
||||
|
||||
QueryAvaliableQuotaRequest::QueryAvaliableQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryAvaliableQuota")
|
||||
{}
|
||||
|
||||
QueryAvaliableQuotaRequest::~QueryAvaliableQuotaRequest()
|
||||
{}
|
||||
|
||||
long QueryAvaliableQuotaRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryAvaliableQuotaRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaRequest::getItemCodes()const
|
||||
{
|
||||
return itemCodes_;
|
||||
}
|
||||
|
||||
void QueryAvaliableQuotaRequest::setItemCodes(const std::string& itemCodes)
|
||||
{
|
||||
itemCodes_ = itemCodes;
|
||||
setCoreParameter("ItemCodes", itemCodes);
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void QueryAvaliableQuotaRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
73
bssopenapi/src/model/QueryAvaliableQuotaResult.cc
Normal file
73
bssopenapi/src/model/QueryAvaliableQuotaResult.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/bssopenapi/model/QueryAvaliableQuotaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryAvaliableQuotaResult::QueryAvaliableQuotaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryAvaliableQuotaResult::QueryAvaliableQuotaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryAvaliableQuotaResult::~QueryAvaliableQuotaResult()
|
||||
{}
|
||||
|
||||
void QueryAvaliableQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryAvaliableQuotaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryAvaliableQuotaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
bssopenapi/src/model/QueryEnduserStatusRequest.cc
Normal file
71
bssopenapi/src/model/QueryEnduserStatusRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/QueryEnduserStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryEnduserStatusRequest;
|
||||
|
||||
QueryEnduserStatusRequest::QueryEnduserStatusRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryEnduserStatus")
|
||||
{}
|
||||
|
||||
QueryEnduserStatusRequest::~QueryEnduserStatusRequest()
|
||||
{}
|
||||
|
||||
long QueryEnduserStatusRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusRequest::getPrimaryAccount()const
|
||||
{
|
||||
return primaryAccount_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
|
||||
{
|
||||
primaryAccount_ = primaryAccount;
|
||||
setCoreParameter("PrimaryAccount", primaryAccount);
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void QueryEnduserStatusRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setCoreParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
92
bssopenapi/src/model/QueryEnduserStatusResult.cc
Normal file
92
bssopenapi/src/model/QueryEnduserStatusResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/QueryEnduserStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryEnduserStatusResult::QueryEnduserStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryEnduserStatusResult::QueryEnduserStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryEnduserStatusResult::~QueryEnduserStatusResult()
|
||||
{}
|
||||
|
||||
void QueryEnduserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatas = value["Datas"]["Data"];
|
||||
for (auto value : allDatas)
|
||||
{
|
||||
Data datasObject;
|
||||
if(!value["Uid"].isNull())
|
||||
datasObject.uid = std::stol(value["Uid"].asString());
|
||||
if(!value["PrimaryAccount"].isNull())
|
||||
datasObject.primaryAccount = value["PrimaryAccount"].asString();
|
||||
if(!value["BusinessType"].isNull())
|
||||
datasObject.businessType = value["BusinessType"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
datasObject.status = value["Status"].asString();
|
||||
datas_.push_back(datasObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryEnduserStatusResult::Data> QueryEnduserStatusResult::getDatas()const
|
||||
{
|
||||
return datas_;
|
||||
}
|
||||
|
||||
int QueryEnduserStatusResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string QueryEnduserStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryEnduserStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -70,17 +70,6 @@ void QueryEvaluateListRequest::setBizTypeList(const std::vector<std::string>& bi
|
||||
setCoreParameter("BizTypeList."+ std::to_string(i), bizTypeList.at(i));
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
int QueryEvaluateListRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
@@ -191,14 +180,3 @@ void QueryEvaluateListRequest::setStartBizTime(const std::string& startBizTime)
|
||||
setCoreParameter("StartBizTime", startBizTime);
|
||||
}
|
||||
|
||||
long QueryEvaluateListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryEvaluateListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,10 @@ void QueryEvaluateListResult::parse(const std::string &payload)
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["TotalInvoiceAmount"].isNull())
|
||||
data_.totalInvoiceAmount = std::stol(dataNode["TotalInvoiceAmount"].asString());
|
||||
if(!dataNode["TotalUnAppliedInvoiceAmount"].isNull())
|
||||
data_.totalUnAppliedInvoiceAmount = std::stol(dataNode["TotalUnAppliedInvoiceAmount"].asString());
|
||||
auto allEvaluateList = value["EvaluateList"]["Evaluate"];
|
||||
for (auto value : allEvaluateList)
|
||||
{
|
||||
|
||||
@@ -25,17 +25,6 @@ QueryInvoicingCustomerListRequest::QueryInvoicingCustomerListRequest() :
|
||||
QueryInvoicingCustomerListRequest::~QueryInvoicingCustomerListRequest()
|
||||
{}
|
||||
|
||||
long QueryInvoicingCustomerListRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void QueryInvoicingCustomerListRequest::setCallerBid(long callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setCoreParameter("CallerBid", std::to_string(callerBid));
|
||||
}
|
||||
|
||||
long QueryInvoicingCustomerListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -47,14 +36,3 @@ void QueryInvoicingCustomerListRequest::setOwnerId(long ownerId)
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long QueryInvoicingCustomerListRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void QueryInvoicingCustomerListRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setCoreParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
|
||||
@@ -85,6 +85,8 @@ void QueryInvoicingCustomerListResult::parse(const std::string &payload)
|
||||
customerInvoiceObject.issueType = std::stol(value["IssueType"].asString());
|
||||
if(!value["Type"].isNull())
|
||||
customerInvoiceObject.type = std::stol(value["Type"].asString());
|
||||
if(!value["DefaultRemark"].isNull())
|
||||
customerInvoiceObject.defaultRemark = value["DefaultRemark"].asString();
|
||||
data_.customerInvoiceList.push_back(customerInvoiceObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
82
bssopenapi/src/model/QueryPriceListRequest.cc
Normal file
82
bssopenapi/src/model/QueryPriceListRequest.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/bssopenapi/model/QueryPriceListRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryPriceListRequest;
|
||||
|
||||
QueryPriceListRequest::QueryPriceListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPriceList")
|
||||
{}
|
||||
|
||||
QueryPriceListRequest::~QueryPriceListRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPriceListRequest::getModuleCode()const
|
||||
{
|
||||
return moduleCode_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setModuleCode(const std::string& moduleCode)
|
||||
{
|
||||
moduleCode_ = moduleCode;
|
||||
setCoreParameter("ModuleCode", moduleCode);
|
||||
}
|
||||
|
||||
std::string QueryPriceListRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setCoreParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string QueryPriceListRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setCoreParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long QueryPriceListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string QueryPriceListRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void QueryPriceListRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setCoreParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
110
bssopenapi/src/model/QueryPriceListResult.cc
Normal file
110
bssopenapi/src/model/QueryPriceListResult.cc
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
* 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/QueryPriceListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryPriceListResult::QueryPriceListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPriceListResult::QueryPriceListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPriceListResult::~QueryPriceListResult()
|
||||
{}
|
||||
|
||||
void QueryPriceListResult::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["Currency"].isNull())
|
||||
data_.currency = dataNode["Currency"].asString();
|
||||
auto allModules = value["Modules"]["Module"];
|
||||
for (auto value : allModules)
|
||||
{
|
||||
Data::Module moduleObject;
|
||||
if(!value["ModuleCode"].isNull())
|
||||
moduleObject.moduleCode = value["ModuleCode"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
moduleObject.region = value["Region"].asString();
|
||||
if(!value["Config"].isNull())
|
||||
moduleObject.config = value["Config"].asString();
|
||||
if(!value["PriceUnitQuantity"].isNull())
|
||||
moduleObject.priceUnitQuantity = value["PriceUnitQuantity"].asString();
|
||||
if(!value["PriceUnit"].isNull())
|
||||
moduleObject.priceUnit = value["PriceUnit"].asString();
|
||||
auto allTierPrices = value["TierPrices"]["TierPrice"];
|
||||
for (auto value : allTierPrices)
|
||||
{
|
||||
Data::Module::TierPrice tierPricesObject;
|
||||
if(!value["TierStart"].isNull())
|
||||
tierPricesObject.tierStart = value["TierStart"].asString();
|
||||
if(!value["StartSymbol"].isNull())
|
||||
tierPricesObject.startSymbol = value["StartSymbol"].asString();
|
||||
if(!value["TierEnd"].isNull())
|
||||
tierPricesObject.tierEnd = value["TierEnd"].asString();
|
||||
if(!value["EndSymbol"].isNull())
|
||||
tierPricesObject.endSymbol = value["EndSymbol"].asString();
|
||||
if(!value["TierType"].isNull())
|
||||
tierPricesObject.tierType = value["TierType"].asString();
|
||||
if(!value["PriceType"].isNull())
|
||||
tierPricesObject.priceType = value["PriceType"].asString();
|
||||
if(!value["Price"].isNull())
|
||||
tierPricesObject.price = value["Price"].asString();
|
||||
moduleObject.tierPrices.push_back(tierPricesObject);
|
||||
}
|
||||
data_.modules.push_back(moduleObject);
|
||||
}
|
||||
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 QueryPriceListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryPriceListResult::Data QueryPriceListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryPriceListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryPriceListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
38
bssopenapi/src/model/QueryPriceRequest.cc
Normal file
38
bssopenapi/src/model/QueryPriceRequest.cc
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* 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/QueryPriceRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryPriceRequest;
|
||||
|
||||
QueryPriceRequest::QueryPriceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPrice")
|
||||
{}
|
||||
|
||||
QueryPriceRequest::~QueryPriceRequest()
|
||||
{}
|
||||
|
||||
std::string QueryPriceRequest::getParamStr()const
|
||||
{
|
||||
return paramStr_;
|
||||
}
|
||||
|
||||
void QueryPriceRequest::setParamStr(const std::string& paramStr)
|
||||
{
|
||||
paramStr_ = paramStr;
|
||||
setCoreParameter("ParamStr", paramStr);
|
||||
}
|
||||
|
||||
80
bssopenapi/src/model/QueryPriceResult.cc
Normal file
80
bssopenapi/src/model/QueryPriceResult.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/bssopenapi/model/QueryPriceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryPriceResult::QueryPriceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPriceResult::QueryPriceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPriceResult::~QueryPriceResult()
|
||||
{}
|
||||
|
||||
void QueryPriceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["ErrCode"].isNull())
|
||||
errCode_ = value["ErrCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryPriceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string QueryPriceResult::getErrCode()const
|
||||
{
|
||||
return errCode_;
|
||||
}
|
||||
|
||||
71
bssopenapi/src/model/QueryUserAlarmThresholdRequest.cc
Normal file
71
bssopenapi/src/model/QueryUserAlarmThresholdRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/QueryUserAlarmThresholdRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryUserAlarmThresholdRequest;
|
||||
|
||||
QueryUserAlarmThresholdRequest::QueryUserAlarmThresholdRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryUserAlarmThreshold")
|
||||
{}
|
||||
|
||||
QueryUserAlarmThresholdRequest::~QueryUserAlarmThresholdRequest()
|
||||
{}
|
||||
|
||||
long QueryUserAlarmThresholdRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdRequest::getAlarmType()const
|
||||
{
|
||||
return alarmType_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
|
||||
{
|
||||
alarmType_ = alarmType;
|
||||
setCoreParameter("AlarmType", alarmType);
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdRequest::getAlarmThresholds()const
|
||||
{
|
||||
return alarmThresholds_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
|
||||
{
|
||||
alarmThresholds_ = alarmThresholds;
|
||||
setCoreParameter("AlarmThresholds", alarmThresholds);
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void QueryUserAlarmThresholdRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
92
bssopenapi/src/model/QueryUserAlarmThresholdResult.cc
Normal file
92
bssopenapi/src/model/QueryUserAlarmThresholdResult.cc
Normal file
@@ -0,0 +1,92 @@
|
||||
/*
|
||||
* 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/QueryUserAlarmThresholdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryUserAlarmThresholdResult::QueryUserAlarmThresholdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryUserAlarmThresholdResult::~QueryUserAlarmThresholdResult()
|
||||
{}
|
||||
|
||||
void QueryUserAlarmThresholdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatas = value["Datas"]["Data"];
|
||||
for (auto value : allDatas)
|
||||
{
|
||||
Data datasObject;
|
||||
if(!value["ThresholdAmount"].isNull())
|
||||
datasObject.thresholdAmount = value["ThresholdAmount"].asString();
|
||||
if(!value["Numerator"].isNull())
|
||||
datasObject.numerator = std::stoi(value["Numerator"].asString());
|
||||
if(!value["Denominator"].isNull())
|
||||
datasObject.denominator = std::stoi(value["Denominator"].asString());
|
||||
if(!value["ThresholdType"].isNull())
|
||||
datasObject.thresholdType = std::stoi(value["ThresholdType"].asString());
|
||||
datas_.push_back(datasObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stoi(value["Count"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<QueryUserAlarmThresholdResult::Data> QueryUserAlarmThresholdResult::getDatas()const
|
||||
{
|
||||
return datas_;
|
||||
}
|
||||
|
||||
int QueryUserAlarmThresholdResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::string QueryUserAlarmThresholdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryUserAlarmThresholdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
bssopenapi/src/model/SetEnduserStatusRequest.cc
Normal file
71
bssopenapi/src/model/SetEnduserStatusRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/SetEnduserStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetEnduserStatusRequest;
|
||||
|
||||
SetEnduserStatusRequest::SetEnduserStatusRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetEnduserStatus")
|
||||
{}
|
||||
|
||||
SetEnduserStatusRequest::~SetEnduserStatusRequest()
|
||||
{}
|
||||
|
||||
long SetEnduserStatusRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusRequest::getPrimaryAccount()const
|
||||
{
|
||||
return primaryAccount_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setPrimaryAccount(const std::string& primaryAccount)
|
||||
{
|
||||
primaryAccount_ = primaryAccount;
|
||||
setCoreParameter("PrimaryAccount", primaryAccount);
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusRequest::getBusinessType()const
|
||||
{
|
||||
return businessType_;
|
||||
}
|
||||
|
||||
void SetEnduserStatusRequest::setBusinessType(const std::string& businessType)
|
||||
{
|
||||
businessType_ = businessType;
|
||||
setCoreParameter("BusinessType", businessType);
|
||||
}
|
||||
|
||||
73
bssopenapi/src/model/SetEnduserStatusResult.cc
Normal file
73
bssopenapi/src/model/SetEnduserStatusResult.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/bssopenapi/model/SetEnduserStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SetEnduserStatusResult::SetEnduserStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetEnduserStatusResult::SetEnduserStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetEnduserStatusResult::~SetEnduserStatusResult()
|
||||
{}
|
||||
|
||||
void SetEnduserStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetEnduserStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetEnduserStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetEnduserStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
71
bssopenapi/src/model/SetUserAlarmThresholdRequest.cc
Normal file
71
bssopenapi/src/model/SetUserAlarmThresholdRequest.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* 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/SetUserAlarmThresholdRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetUserAlarmThresholdRequest;
|
||||
|
||||
SetUserAlarmThresholdRequest::SetUserAlarmThresholdRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserAlarmThreshold")
|
||||
{}
|
||||
|
||||
SetUserAlarmThresholdRequest::~SetUserAlarmThresholdRequest()
|
||||
{}
|
||||
|
||||
long SetUserAlarmThresholdRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdRequest::getAlarmType()const
|
||||
{
|
||||
return alarmType_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setAlarmType(const std::string& alarmType)
|
||||
{
|
||||
alarmType_ = alarmType;
|
||||
setCoreParameter("AlarmType", alarmType);
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdRequest::getAlarmThresholds()const
|
||||
{
|
||||
return alarmThresholds_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setAlarmThresholds(const std::string& alarmThresholds)
|
||||
{
|
||||
alarmThresholds_ = alarmThresholds;
|
||||
setCoreParameter("AlarmThresholds", alarmThresholds);
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void SetUserAlarmThresholdRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
73
bssopenapi/src/model/SetUserAlarmThresholdResult.cc
Normal file
73
bssopenapi/src/model/SetUserAlarmThresholdResult.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/bssopenapi/model/SetUserAlarmThresholdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetUserAlarmThresholdResult::SetUserAlarmThresholdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetUserAlarmThresholdResult::~SetUserAlarmThresholdResult()
|
||||
{}
|
||||
|
||||
void SetUserAlarmThresholdResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetUserAlarmThresholdResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetUserAlarmThresholdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetUserAlarmThresholdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
82
bssopenapi/src/model/SetUserQuotaRequest.cc
Normal file
82
bssopenapi/src/model/SetUserQuotaRequest.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/bssopenapi/model/SetUserQuotaRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SetUserQuotaRequest;
|
||||
|
||||
SetUserQuotaRequest::SetUserQuotaRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SetUserQuota")
|
||||
{}
|
||||
|
||||
SetUserQuotaRequest::~SetUserQuotaRequest()
|
||||
{}
|
||||
|
||||
long SetUserQuotaRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setUid(long uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setCoreParameter("Uid", std::to_string(uid));
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getAmount()const
|
||||
{
|
||||
return amount_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setAmount(const std::string& amount)
|
||||
{
|
||||
amount_ = amount;
|
||||
setCoreParameter("Amount", amount);
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getOutBizId()const
|
||||
{
|
||||
return outBizId_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setOutBizId(const std::string& outBizId)
|
||||
{
|
||||
outBizId_ = outBizId;
|
||||
setCoreParameter("OutBizId", outBizId);
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getCurrency()const
|
||||
{
|
||||
return currency_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setCurrency(const std::string& currency)
|
||||
{
|
||||
currency_ = currency;
|
||||
setCoreParameter("Currency", currency);
|
||||
}
|
||||
|
||||
std::string SetUserQuotaRequest::getBid()const
|
||||
{
|
||||
return bid_;
|
||||
}
|
||||
|
||||
void SetUserQuotaRequest::setBid(const std::string& bid)
|
||||
{
|
||||
bid_ = bid;
|
||||
setCoreParameter("Bid", bid);
|
||||
}
|
||||
|
||||
73
bssopenapi/src/model/SetUserQuotaResult.cc
Normal file
73
bssopenapi/src/model/SetUserQuotaResult.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/bssopenapi/model/SetUserQuotaResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SetUserQuotaResult::SetUserQuotaResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetUserQuotaResult::SetUserQuotaResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetUserQuotaResult::~SetUserQuotaResult()
|
||||
{}
|
||||
|
||||
void SetUserQuotaResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string SetUserQuotaResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool SetUserQuotaResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SetUserQuotaResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SetUserQuotaResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
61
bssopenapi/src/model/SubscribeDetailRequest.cc
Normal file
61
bssopenapi/src/model/SubscribeDetailRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SubscribeDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SubscribeDetailRequest;
|
||||
|
||||
SubscribeDetailRequest::SubscribeDetailRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeDetail")
|
||||
{}
|
||||
|
||||
SubscribeDetailRequest::~SubscribeDetailRequest()
|
||||
{}
|
||||
|
||||
long SubscribeDetailRequest::getBucketOwnerId()const
|
||||
{
|
||||
return bucketOwnerId_;
|
||||
}
|
||||
|
||||
void SubscribeDetailRequest::setBucketOwnerId(long bucketOwnerId)
|
||||
{
|
||||
bucketOwnerId_ = bucketOwnerId;
|
||||
setCoreParameter("BucketOwnerId", std::to_string(bucketOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubscribeDetailRequest::getSubscribeType()const
|
||||
{
|
||||
return subscribeType_;
|
||||
}
|
||||
|
||||
void SubscribeDetailRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
|
||||
{
|
||||
subscribeType_ = subscribeType;
|
||||
for(int i = 0; i!= subscribeType.size(); i++)
|
||||
setCoreParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
|
||||
}
|
||||
|
||||
std::string SubscribeDetailRequest::getSubscribeBucket()const
|
||||
{
|
||||
return subscribeBucket_;
|
||||
}
|
||||
|
||||
void SubscribeDetailRequest::setSubscribeBucket(const std::string& subscribeBucket)
|
||||
{
|
||||
subscribeBucket_ = subscribeBucket;
|
||||
setCoreParameter("SubscribeBucket", subscribeBucket);
|
||||
}
|
||||
|
||||
66
bssopenapi/src/model/SubscribeDetailResult.cc
Normal file
66
bssopenapi/src/model/SubscribeDetailResult.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/bssopenapi/model/SubscribeDetailResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SubscribeDetailResult::SubscribeDetailResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubscribeDetailResult::SubscribeDetailResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubscribeDetailResult::~SubscribeDetailResult()
|
||||
{}
|
||||
|
||||
void SubscribeDetailResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubscribeDetailResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SubscribeDetailResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubscribeDetailResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
61
bssopenapi/src/model/SubscribeExportToOSSRequest.cc
Normal file
61
bssopenapi/src/model/SubscribeExportToOSSRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/SubscribeExportToOSSRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::SubscribeExportToOSSRequest;
|
||||
|
||||
SubscribeExportToOSSRequest::SubscribeExportToOSSRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "SubscribeExportToOSS")
|
||||
{}
|
||||
|
||||
SubscribeExportToOSSRequest::~SubscribeExportToOSSRequest()
|
||||
{}
|
||||
|
||||
long SubscribeExportToOSSRequest::getBucketOwnerId()const
|
||||
{
|
||||
return bucketOwnerId_;
|
||||
}
|
||||
|
||||
void SubscribeExportToOSSRequest::setBucketOwnerId(long bucketOwnerId)
|
||||
{
|
||||
bucketOwnerId_ = bucketOwnerId;
|
||||
setCoreParameter("BucketOwnerId", std::to_string(bucketOwnerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> SubscribeExportToOSSRequest::getSubscribeType()const
|
||||
{
|
||||
return subscribeType_;
|
||||
}
|
||||
|
||||
void SubscribeExportToOSSRequest::setSubscribeType(const std::vector<std::string>& subscribeType)
|
||||
{
|
||||
subscribeType_ = subscribeType;
|
||||
for(int i = 0; i!= subscribeType.size(); i++)
|
||||
setCoreParameter("SubscribeType."+ std::to_string(i), subscribeType.at(i));
|
||||
}
|
||||
|
||||
std::string SubscribeExportToOSSRequest::getSubscribeBucket()const
|
||||
{
|
||||
return subscribeBucket_;
|
||||
}
|
||||
|
||||
void SubscribeExportToOSSRequest::setSubscribeBucket(const std::string& subscribeBucket)
|
||||
{
|
||||
subscribeBucket_ = subscribeBucket;
|
||||
setCoreParameter("SubscribeBucket", subscribeBucket);
|
||||
}
|
||||
|
||||
66
bssopenapi/src/model/SubscribeExportToOSSResult.cc
Normal file
66
bssopenapi/src/model/SubscribeExportToOSSResult.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/bssopenapi/model/SubscribeExportToOSSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
SubscribeExportToOSSResult::SubscribeExportToOSSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubscribeExportToOSSResult::SubscribeExportToOSSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubscribeExportToOSSResult::~SubscribeExportToOSSResult()
|
||||
{}
|
||||
|
||||
void SubscribeExportToOSSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubscribeExportToOSSResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string SubscribeExportToOSSResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubscribeExportToOSSResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
27
bssopenapi/src/model/UnsubscribeExportToOSSRequest.cc
Normal file
27
bssopenapi/src/model/UnsubscribeExportToOSSRequest.cc
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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/UnsubscribeExportToOSSRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::UnsubscribeExportToOSSRequest;
|
||||
|
||||
UnsubscribeExportToOSSRequest::UnsubscribeExportToOSSRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "UnsubscribeExportToOSS")
|
||||
{}
|
||||
|
||||
UnsubscribeExportToOSSRequest::~UnsubscribeExportToOSSRequest()
|
||||
{}
|
||||
|
||||
66
bssopenapi/src/model/UnsubscribeExportToOSSResult.cc
Normal file
66
bssopenapi/src/model/UnsubscribeExportToOSSResult.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/bssopenapi/model/UnsubscribeExportToOSSResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UnsubscribeExportToOSSResult::UnsubscribeExportToOSSResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UnsubscribeExportToOSSResult::~UnsubscribeExportToOSSResult()
|
||||
{}
|
||||
|
||||
void UnsubscribeExportToOSSResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string UnsubscribeExportToOSSResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string UnsubscribeExportToOSSResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UnsubscribeExportToOSSResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,130 +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.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(cloudauth_public_header
|
||||
include/alibabacloud/cloudauth/CloudauthClient.h
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesRequest.h
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifySDKResult.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusResult.h )
|
||||
|
||||
include/alibabacloud/cloudauth/CloudauthExport.h )
|
||||
|
||||
set(cloudauth_public_header_model )
|
||||
|
||||
set(cloudauth_src
|
||||
src/CloudauthClient.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
src/model/DescribeDeviceInfoResult.cc
|
||||
src/model/GetMaterialsRequest.cc
|
||||
src/model/GetMaterialsResult.cc
|
||||
src/model/GetVerifyTokenRequest.cc
|
||||
src/model/GetVerifyTokenResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/CompareFacesRequest.cc
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/SubmitMaterialsRequest.cc
|
||||
src/model/SubmitMaterialsResult.cc
|
||||
src/model/SubmitVerificationRequest.cc
|
||||
src/model/SubmitVerificationResult.cc
|
||||
src/model/CreateVerifySDKRequest.cc
|
||||
src/model/CreateVerifySDKResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/DescribeVerifySDKRequest.cc
|
||||
src/model/DescribeVerifySDKResult.cc
|
||||
src/model/GetStatusRequest.cc
|
||||
src/model/GetStatusResult.cc )
|
||||
|
||||
add_library(cloudauth ${LIB_TYPE}
|
||||
${cloudauth_public_header}
|
||||
${cloudauth_public_header_model}
|
||||
${cloudauth_src})
|
||||
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cloudauth
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cloudauth
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cloudauth
|
||||
jsoncpp)
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cloudauth
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cloudauth
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cloudauth_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth)
|
||||
install(FILES ${cloudauth_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model)
|
||||
install(TARGETS cloudauth
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
src/CloudauthClient.cc )
|
||||
|
||||
add_library(cloudauth ${LIB_TYPE}
|
||||
${cloudauth_public_header}
|
||||
${cloudauth_public_header_model}
|
||||
${cloudauth_src})
|
||||
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}cloudauth
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(cloudauth
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(cloudauth
|
||||
jsoncpp)
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(cloudauth
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(cloudauth
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(cloudauth
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(cloudauth
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${cloudauth_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth)
|
||||
install(FILES ${cloudauth_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/cloudauth/model)
|
||||
install(TARGETS cloudauth
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
@@ -1,27 +1,27 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "CloudauthExport.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
#include "model/DescribeDeviceInfoResult.h"
|
||||
#include "model/GetMaterialsRequest.h"
|
||||
@@ -46,97 +46,97 @@
|
||||
#include "model/DescribeVerifySDKResult.h"
|
||||
#include "model/GetStatusRequest.h"
|
||||
#include "model/GetStatusResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CloudauthClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::DescribeDeviceInfoResult> DescribeDeviceInfoOutcome;
|
||||
typedef std::future<DescribeDeviceInfoOutcome> DescribeDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeDeviceInfoRequest&, const DescribeDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
|
||||
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
|
||||
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetVerifyTokenRequest&, const GetVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVerifyTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CompareFacesResult> CompareFacesOutcome;
|
||||
typedef std::future<CompareFacesOutcome> CompareFacesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CompareFacesRequest&, const CompareFacesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CompareFacesAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitMaterialsRequest&, const SubmitMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
|
||||
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
|
||||
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
|
||||
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitVerificationRequest&, const SubmitVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitVerificationAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
|
||||
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
|
||||
typedef Outcome<Error, Model::CreateVerifySDKResult> CreateVerifySDKOutcome;
|
||||
typedef std::future<CreateVerifySDKOutcome> CreateVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateVerifySDKRequest&, const CreateVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
|
||||
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
|
||||
typedef Outcome<Error, Model::DescribeVerifySDKResult> DescribeVerifySDKOutcome;
|
||||
typedef std::future<DescribeVerifySDKOutcome> DescribeVerifySDKOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeVerifySDKRequest&, const DescribeVerifySDKOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeVerifySDKAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetStatusRequest&, const GetStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatusAsyncHandler;
|
||||
|
||||
CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
||||
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
|
||||
CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
CloudauthClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~CloudauthClient();
|
||||
DescribeDeviceInfoOutcome describeDeviceInfo(const Model::DescribeDeviceInfoRequest &request)const;
|
||||
void describeDeviceInfoAsync(const Model::DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeDeviceInfoOutcomeCallable describeDeviceInfoCallable(const Model::DescribeDeviceInfoRequest& request) const;
|
||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
|
||||
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
|
||||
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& request) const;
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcome compareFaces(const Model::CompareFacesRequest &request)const;
|
||||
void compareFacesAsync(const Model::CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CompareFacesOutcomeCallable compareFacesCallable(const Model::CompareFacesRequest& request) const;
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const;
|
||||
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
|
||||
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
|
||||
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitVerificationOutcomeCallable submitVerificationCallable(const Model::SubmitVerificationRequest& request) const;
|
||||
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
|
||||
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySDKOutcome createVerifySDK(const Model::CreateVerifySDKRequest &request)const;
|
||||
void createVerifySDKAsync(const Model::CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVerifySDKOutcomeCallable createVerifySDKCallable(const Model::CreateVerifySDKRequest& request) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
|
||||
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySDKOutcome describeVerifySDK(const Model::DescribeVerifySDKRequest &request)const;
|
||||
void describeVerifySDKAsync(const Model::DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeVerifySDKOutcomeCallable describeVerifySDKCallable(const Model::DescribeVerifySDKRequest& request) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHCLIENT_H_
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_CLOUDAUTH_LIBRARY)
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_CLOUDAUTH_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_CLOUDAUTHEXPORT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFacesRequest();
|
||||
~CompareFacesRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CompareFacesRequest();
|
||||
~CompareFacesRequest();
|
||||
|
||||
std::string getSourceImageType()const;
|
||||
void setSourceImageType(const std::string& sourceImageType);
|
||||
long getResourceOwnerId()const;
|
||||
@@ -47,17 +47,17 @@ namespace AlibabaCloud
|
||||
void setSourceImageValue(const std::string& sourceImageValue);
|
||||
std::string getTargetImageValue()const;
|
||||
void setTargetImageValue(const std::string& targetImageValue);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string sourceImageType_;
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
std::string targetImageType_;
|
||||
std::string sourceImageValue_;
|
||||
std::string targetImageValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESREQUEST_H_
|
||||
@@ -1,62 +1,62 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CompareFacesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string confidenceThresholds;
|
||||
float similarityScore;
|
||||
};
|
||||
|
||||
|
||||
CompareFacesResult();
|
||||
explicit CompareFacesResult(const std::string &payload);
|
||||
~CompareFacesResult();
|
||||
|
||||
|
||||
CompareFacesResult();
|
||||
explicit CompareFacesResult(const std::string &payload);
|
||||
~CompareFacesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_COMPAREFACESRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAuthKeyRequest();
|
||||
~CreateAuthKeyRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateAuthKeyRequest();
|
||||
~CreateAuthKeyRequest();
|
||||
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getUserDeviceId()const;
|
||||
@@ -47,17 +47,17 @@ namespace AlibabaCloud
|
||||
void setAuthYears(int authYears);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
std::string sourceIp_;
|
||||
bool test_;
|
||||
int authYears_;
|
||||
std::string lang_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYREQUEST_H_
|
||||
@@ -1,51 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAuthKeyResult();
|
||||
explicit CreateAuthKeyResult(const std::string &payload);
|
||||
~CreateAuthKeyResult();
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateAuthKeyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateAuthKeyResult();
|
||||
explicit CreateAuthKeyResult(const std::string &payload);
|
||||
~CreateAuthKeyResult();
|
||||
std::string getAuthKey()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string authKey_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEAUTHKEYRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVerifySDKRequest();
|
||||
~CreateVerifySDKRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVerifySDKRequest();
|
||||
~CreateVerifySDKRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getAppUrl()const;
|
||||
@@ -43,15 +43,15 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string appUrl_;
|
||||
std::string lang_;
|
||||
std::string platform_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKREQUEST_H_
|
||||
@@ -1,51 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVerifySDKResult();
|
||||
explicit CreateVerifySDKResult(const std::string &payload);
|
||||
~CreateVerifySDKResult();
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVerifySDKResult();
|
||||
explicit CreateVerifySDKResult(const std::string &payload);
|
||||
~CreateVerifySDKResult();
|
||||
std::string getTaskId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEVERIFYSDKRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDeviceInfoRequest();
|
||||
~DescribeDeviceInfoRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeDeviceInfoRequest();
|
||||
~DescribeDeviceInfoRequest();
|
||||
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getUserDeviceId()const;
|
||||
@@ -55,8 +55,8 @@ namespace AlibabaCloud
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
std::string getExpiredStartDay()const;
|
||||
void setExpiredStartDay(const std::string& expiredStartDay);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
int totalCount_;
|
||||
@@ -67,9 +67,9 @@ namespace AlibabaCloud
|
||||
std::string expiredEndDay_;
|
||||
std::string deviceId_;
|
||||
std::string expiredStartDay_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFOREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DeviceInfo
|
||||
{
|
||||
std::string expiredDay;
|
||||
@@ -40,26 +40,26 @@ namespace AlibabaCloud
|
||||
std::string bizType;
|
||||
std::string userDeviceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeDeviceInfoResult();
|
||||
explicit DescribeDeviceInfoResult(const std::string &payload);
|
||||
~DescribeDeviceInfoResult();
|
||||
|
||||
|
||||
DescribeDeviceInfoResult();
|
||||
explicit DescribeDeviceInfoResult(const std::string &payload);
|
||||
~DescribeDeviceInfoResult();
|
||||
std::vector<DeviceInfo> getDeviceInfoList()const;
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<DeviceInfo> deviceInfoList_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEDEVICEINFORESULT_H_
|
||||
@@ -1,54 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifySDKRequest();
|
||||
~DescribeVerifySDKRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeVerifySDKRequest();
|
||||
~DescribeVerifySDKRequest();
|
||||
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getTaskId()const;
|
||||
void setTaskId(const std::string& taskId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string taskId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKREQUEST_H_
|
||||
@@ -1,51 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifySDKResult();
|
||||
explicit DescribeVerifySDKResult(const std::string &payload);
|
||||
~DescribeVerifySDKResult();
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeVerifySDKResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DescribeVerifySDKResult();
|
||||
explicit DescribeVerifySDKResult(const std::string &payload);
|
||||
~DescribeVerifySDKResult();
|
||||
std::string getSdkUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string sdkUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEVERIFYSDKRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectFaceAttributesRequest();
|
||||
~DetectFaceAttributesRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DetectFaceAttributesRequest();
|
||||
~DetectFaceAttributesRequest();
|
||||
|
||||
int getMaxNumPhotosPerCategory()const;
|
||||
void setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory);
|
||||
int getMaxFaceNum()const;
|
||||
@@ -51,8 +51,8 @@ namespace AlibabaCloud
|
||||
void setDontSaveDB(bool dontSaveDB);
|
||||
std::string getClientTag()const;
|
||||
void setClientTag(const std::string& clientTag);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
int maxNumPhotosPerCategory_;
|
||||
int maxFaceNum_;
|
||||
long resourceOwnerId_;
|
||||
@@ -61,9 +61,9 @@ namespace AlibabaCloud
|
||||
std::string materialValue_;
|
||||
bool dontSaveDB_;
|
||||
std::string clientTag_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DetectFaceAttributesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FaceAttributesDetectInfo
|
||||
@@ -77,26 +77,26 @@ namespace AlibabaCloud
|
||||
int imgHeight;
|
||||
std::vector<FaceAttributesDetectInfo> faceInfos;
|
||||
};
|
||||
|
||||
|
||||
DetectFaceAttributesResult();
|
||||
explicit DetectFaceAttributesResult(const std::string &payload);
|
||||
~DetectFaceAttributesResult();
|
||||
|
||||
|
||||
DetectFaceAttributesResult();
|
||||
explicit DetectFaceAttributesResult(const std::string &payload);
|
||||
~DetectFaceAttributesResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DETECTFACEATTRIBUTESRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMaterialsRequest();
|
||||
~GetMaterialsRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMaterialsRequest();
|
||||
~GetMaterialsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
@@ -43,15 +43,15 @@ namespace AlibabaCloud
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string facePic;
|
||||
@@ -40,32 +40,33 @@ namespace AlibabaCloud
|
||||
std::string address;
|
||||
std::string idCardFrontPic;
|
||||
std::string ethnicGroup;
|
||||
std::string authority;
|
||||
std::string sex;
|
||||
std::string idCardExpiry;
|
||||
std::string idCardType;
|
||||
std::string idCardBackPic;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetMaterialsResult();
|
||||
explicit GetMaterialsResult(const std::string &payload);
|
||||
~GetMaterialsResult();
|
||||
|
||||
|
||||
GetMaterialsResult();
|
||||
explicit GetMaterialsResult(const std::string &payload);
|
||||
~GetMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatusRequest();
|
||||
~GetStatusRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatusRequest();
|
||||
~GetStatusRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
@@ -43,15 +43,15 @@ namespace AlibabaCloud
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string auditConclusions;
|
||||
@@ -40,26 +40,26 @@ namespace AlibabaCloud
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
|
||||
|
||||
GetStatusResult();
|
||||
explicit GetStatusResult(const std::string &payload);
|
||||
~GetStatusResult();
|
||||
|
||||
|
||||
GetStatusResult();
|
||||
explicit GetStatusResult(const std::string &payload);
|
||||
~GetStatusResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetVerifyTokenRequest();
|
||||
~GetVerifyTokenRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetVerifyTokenRequest();
|
||||
~GetVerifyTokenRequest();
|
||||
|
||||
std::string getUserData()const;
|
||||
void setUserData(const std::string& userData);
|
||||
long getResourceOwnerId()const;
|
||||
@@ -49,8 +49,8 @@ namespace AlibabaCloud
|
||||
void setVerifyConfigs(const std::string& verifyConfigs);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string userData_;
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
@@ -58,9 +58,9 @@ namespace AlibabaCloud
|
||||
std::string binding_;
|
||||
std::string verifyConfigs_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyToken
|
||||
@@ -53,26 +53,26 @@ namespace AlibabaCloud
|
||||
std::string cloudauthPageUrl;
|
||||
VerifyToken verifyToken;
|
||||
};
|
||||
|
||||
|
||||
GetVerifyTokenResult();
|
||||
explicit GetVerifyTokenResult(const std::string &payload);
|
||||
~GetVerifyTokenResult();
|
||||
|
||||
|
||||
GetVerifyTokenResult();
|
||||
explicit GetVerifyTokenResult(const std::string &payload);
|
||||
~GetVerifyTokenResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
@@ -1,40 +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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDeviceInfoRequest();
|
||||
~ModifyDeviceInfoRequest();
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyDeviceInfoRequest();
|
||||
~ModifyDeviceInfoRequest();
|
||||
|
||||
std::string getUserDeviceId()const;
|
||||
void setUserDeviceId(const std::string& userDeviceId);
|
||||
std::string getBizType()const;
|
||||
@@ -49,8 +49,8 @@ namespace AlibabaCloud
|
||||
void setLang(const std::string& lang);
|
||||
std::string getDeviceId()const;
|
||||
void setDeviceId(const std::string& deviceId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
std::string userDeviceId_;
|
||||
std::string bizType_;
|
||||
std::string duration_;
|
||||
@@ -58,9 +58,9 @@ namespace AlibabaCloud
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
std::string deviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFOREQUEST_H_
|
||||
@@ -1,59 +1,59 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDeviceInfoResult();
|
||||
explicit ModifyDeviceInfoResult(const std::string &payload);
|
||||
~ModifyDeviceInfoResult();
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ModifyDeviceInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyDeviceInfoResult();
|
||||
explicit ModifyDeviceInfoResult(const std::string &payload);
|
||||
~ModifyDeviceInfoResult();
|
||||
std::string getExpiredDay()const;
|
||||
std::string getBeginDay()const;
|
||||
std::string getDeviceId()const;
|
||||
std::string getBizType()const;
|
||||
std::string getUserDeviceId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string expiredDay_;
|
||||
std::string beginDay_;
|
||||
std::string deviceId_;
|
||||
std::string bizType_;
|
||||
std::string userDeviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_MODIFYDEVICEINFORESULT_H_
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitMaterialsRequest();
|
||||
~SubmitMaterialsRequest();
|
||||
|
||||
|
||||
public:
|
||||
SubmitMaterialsRequest();
|
||||
~SubmitMaterialsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getSourceIp()const;
|
||||
@@ -48,15 +48,15 @@ namespace AlibabaCloud
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getVerifyToken()const;
|
||||
void setVerifyToken(const std::string& verifyToken);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string verifyToken_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
@@ -44,26 +44,26 @@ namespace AlibabaCloud
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitMaterialsResult();
|
||||
explicit SubmitMaterialsResult(const std::string &payload);
|
||||
~SubmitMaterialsResult();
|
||||
|
||||
|
||||
SubmitMaterialsResult();
|
||||
explicit SubmitMaterialsResult(const std::string &payload);
|
||||
~SubmitMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationRequest : public RpcServiceRequest
|
||||
{
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationRequest : public RpcServiceRequest
|
||||
{
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitVerificationRequest();
|
||||
~SubmitVerificationRequest();
|
||||
|
||||
|
||||
public:
|
||||
SubmitVerificationRequest();
|
||||
~SubmitVerificationRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
@@ -50,16 +50,16 @@ namespace AlibabaCloud
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
@@ -1,37 +1,37 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
@@ -44,26 +44,26 @@ namespace AlibabaCloud
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitVerificationResult();
|
||||
explicit SubmitVerificationResult(const std::string &payload);
|
||||
~SubmitVerificationResult();
|
||||
|
||||
|
||||
SubmitVerificationResult();
|
||||
explicit SubmitVerificationResult(const std::string &payload);
|
||||
~SubmitVerificationResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
@@ -1,485 +1,485 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/CloudauthClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cloudauth";
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
|
||||
else
|
||||
return GetMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
#include <alibabacloud/cloudauth/CloudauthClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
|
||||
else
|
||||
return GetVerifyTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getVerifyToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getVerifyToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(DetectFaceAttributesResult(outcome.result()));
|
||||
else
|
||||
return DetectFaceAttributesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::detectFaceAttributesAsync(const DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectFaceAttributes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFaceAttributesCallable(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectFaceAttributesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectFaceAttributes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "Cloudauth";
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFacesOutcome(CompareFacesResult(outcome.result()));
|
||||
else
|
||||
return CompareFacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateAuthKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuthKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuthKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuthKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
|
||||
else
|
||||
return SubmitVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::~CloudauthClient()
|
||||
{}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return CreateVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
CloudauthClient::DescribeDeviceInfoOutcome CloudauthClient::describeDeviceInfo(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
if (outcome.isSuccess())
|
||||
return DescribeDeviceInfoOutcome(DescribeDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return DescribeDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatusOutcome(GetStatusResult(outcome.result()));
|
||||
else
|
||||
return GetStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
void CloudauthClient::describeDeviceInfoAsync(const DescribeDeviceInfoRequest& request, const DescribeDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeDeviceInfoOutcomeCallable CloudauthClient::describeDeviceInfoCallable(const DescribeDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
|
||||
else
|
||||
return GetMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
|
||||
else
|
||||
return GetVerifyTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getVerifyToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getVerifyToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DetectFaceAttributesOutcome(DetectFaceAttributesResult(outcome.result()));
|
||||
else
|
||||
return DetectFaceAttributesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::detectFaceAttributesAsync(const DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, detectFaceAttributes(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFaceAttributesCallable(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DetectFaceAttributesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->detectFaceAttributes(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcome CloudauthClient::compareFaces(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CompareFacesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CompareFacesOutcome(CompareFacesResult(outcome.result()));
|
||||
else
|
||||
return CompareFacesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::compareFacesAsync(const CompareFacesRequest& request, const CompareFacesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, compareFaces(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CompareFacesOutcomeCallable CloudauthClient::compareFacesCallable(const CompareFacesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CompareFacesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->compareFaces(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateAuthKeyOutcome(CreateAuthKeyResult(outcome.result()));
|
||||
else
|
||||
return CreateAuthKeyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createAuthKeyAsync(const CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createAuthKey(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcomeCallable CloudauthClient::createAuthKeyCallable(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateAuthKeyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createAuthKey(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
|
||||
else
|
||||
return SubmitVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcome CloudauthClient::createVerifySDK(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVerifySDKOutcome(CreateVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return CreateVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createVerifySDKAsync(const CreateVerifySDKRequest& request, const CreateVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateVerifySDKOutcomeCallable CloudauthClient::createVerifySDKCallable(const CreateVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcome CloudauthClient::modifyDeviceInfo(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyDeviceInfoOutcome(ModifyDeviceInfoResult(outcome.result()));
|
||||
else
|
||||
return ModifyDeviceInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::modifyDeviceInfoAsync(const ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyDeviceInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceInfoCallable(const ModifyDeviceInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyDeviceInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyDeviceInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcome CloudauthClient::describeVerifySDK(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeVerifySDKOutcome(DescribeVerifySDKResult(outcome.result()));
|
||||
else
|
||||
return DescribeVerifySDKOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeVerifySDKAsync(const DescribeVerifySDKRequest& request, const DescribeVerifySDKAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeVerifySDK(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeVerifySDKOutcomeCallable CloudauthClient::describeVerifySDKCallable(const DescribeVerifySDKRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeVerifySDKOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeVerifySDK(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatusOutcome(GetStatusResult(outcome.result()));
|
||||
else
|
||||
return GetStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,30 +1,30 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
|
||||
{}
|
||||
|
||||
CompareFacesRequest::~CompareFacesRequest()
|
||||
{}
|
||||
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
|
||||
{}
|
||||
|
||||
CompareFacesRequest::~CompareFacesRequest()
|
||||
{}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageType()const
|
||||
{
|
||||
return sourceImageType_;
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFacesResult::CompareFacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFacesResult::CompareFacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFacesResult::~CompareFacesResult()
|
||||
{}
|
||||
|
||||
void CompareFacesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CompareFacesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
CompareFacesResult::CompareFacesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CompareFacesResult::CompareFacesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CompareFacesResult::~CompareFacesResult()
|
||||
{}
|
||||
|
||||
void CompareFacesResult::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["SimilarityScore"].isNull())
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
@@ -51,9 +51,9 @@ void CompareFacesResult::parse(const std::string &payload)
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
std::string CompareFacesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user