Add DescribeInstanceBill.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2021-03-25 Version: 1.36.654
|
||||
- Add DescribeInstanceBill.
|
||||
- Update QuerySettleBill to support RecordID filter.
|
||||
|
||||
2021-03-25 Version: 1.36.653
|
||||
- Release autoscaling apis for timer features.
|
||||
|
||||
|
||||
@@ -43,10 +43,14 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeInstanceBillResult.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/DescribeSplitItemBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeSplitItemBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationRequest.h
|
||||
include/alibabacloud/bssopenapi/model/EnableBillGenerationResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetCustomerAccountInfoRequest.h
|
||||
@@ -91,8 +95,12 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinancialAccountInfoResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceByTagRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceByTagResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInvoicingCustomerListRequest.h
|
||||
@@ -103,6 +111,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryMonthlyInstanceConsumptionResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryOrdersRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryOrdersResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPermissionListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPermissionListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPrepaidCardsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryPrepaidCardsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryProductListRequest.h
|
||||
@@ -111,6 +121,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryRIUtilizationDetailResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRedeemRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRedeemResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRelationListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryRelationListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResellerAvailableQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryResourcePackageInstancesRequest.h
|
||||
@@ -145,8 +157,12 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/SetResellerUserStatusResult.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeBillToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/SubscribeBillToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/TagResourcesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/TagResourcesResult.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UnsubscribeBillToOSSResult.h
|
||||
include/alibabacloud/bssopenapi/model/UntagResourcesRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UntagResourcesResult.h
|
||||
include/alibabacloud/bssopenapi/model/UpgradeResourcePackageRequest.h
|
||||
include/alibabacloud/bssopenapi/model/UpgradeResourcePackageResult.h )
|
||||
|
||||
@@ -174,10 +190,14 @@ set(bssopenapi_src
|
||||
src/model/CreateResourcePackageResult.cc
|
||||
src/model/DeleteCostUnitRequest.cc
|
||||
src/model/DeleteCostUnitResult.cc
|
||||
src/model/DescribeInstanceBillRequest.cc
|
||||
src/model/DescribeInstanceBillResult.cc
|
||||
src/model/DescribePricingModuleRequest.cc
|
||||
src/model/DescribePricingModuleResult.cc
|
||||
src/model/DescribeResourcePackageProductRequest.cc
|
||||
src/model/DescribeResourcePackageProductResult.cc
|
||||
src/model/DescribeSplitItemBillRequest.cc
|
||||
src/model/DescribeSplitItemBillResult.cc
|
||||
src/model/EnableBillGenerationRequest.cc
|
||||
src/model/EnableBillGenerationResult.cc
|
||||
src/model/GetCustomerAccountInfoRequest.cc
|
||||
@@ -222,8 +242,12 @@ set(bssopenapi_src
|
||||
src/model/QueryCustomerAddressListResult.cc
|
||||
src/model/QueryEvaluateListRequest.cc
|
||||
src/model/QueryEvaluateListResult.cc
|
||||
src/model/QueryFinancialAccountInfoRequest.cc
|
||||
src/model/QueryFinancialAccountInfoResult.cc
|
||||
src/model/QueryInstanceBillRequest.cc
|
||||
src/model/QueryInstanceBillResult.cc
|
||||
src/model/QueryInstanceByTagRequest.cc
|
||||
src/model/QueryInstanceByTagResult.cc
|
||||
src/model/QueryInstanceGaapCostRequest.cc
|
||||
src/model/QueryInstanceGaapCostResult.cc
|
||||
src/model/QueryInvoicingCustomerListRequest.cc
|
||||
@@ -234,6 +258,8 @@ set(bssopenapi_src
|
||||
src/model/QueryMonthlyInstanceConsumptionResult.cc
|
||||
src/model/QueryOrdersRequest.cc
|
||||
src/model/QueryOrdersResult.cc
|
||||
src/model/QueryPermissionListRequest.cc
|
||||
src/model/QueryPermissionListResult.cc
|
||||
src/model/QueryPrepaidCardsRequest.cc
|
||||
src/model/QueryPrepaidCardsResult.cc
|
||||
src/model/QueryProductListRequest.cc
|
||||
@@ -242,6 +268,8 @@ set(bssopenapi_src
|
||||
src/model/QueryRIUtilizationDetailResult.cc
|
||||
src/model/QueryRedeemRequest.cc
|
||||
src/model/QueryRedeemResult.cc
|
||||
src/model/QueryRelationListRequest.cc
|
||||
src/model/QueryRelationListResult.cc
|
||||
src/model/QueryResellerAvailableQuotaRequest.cc
|
||||
src/model/QueryResellerAvailableQuotaResult.cc
|
||||
src/model/QueryResourcePackageInstancesRequest.cc
|
||||
@@ -276,8 +304,12 @@ set(bssopenapi_src
|
||||
src/model/SetResellerUserStatusResult.cc
|
||||
src/model/SubscribeBillToOSSRequest.cc
|
||||
src/model/SubscribeBillToOSSResult.cc
|
||||
src/model/TagResourcesRequest.cc
|
||||
src/model/TagResourcesResult.cc
|
||||
src/model/UnsubscribeBillToOSSRequest.cc
|
||||
src/model/UnsubscribeBillToOSSResult.cc
|
||||
src/model/UntagResourcesRequest.cc
|
||||
src/model/UntagResourcesResult.cc
|
||||
src/model/UpgradeResourcePackageRequest.cc
|
||||
src/model/UpgradeResourcePackageResult.cc )
|
||||
|
||||
|
||||
@@ -44,10 +44,14 @@
|
||||
#include "model/CreateResourcePackageResult.h"
|
||||
#include "model/DeleteCostUnitRequest.h"
|
||||
#include "model/DeleteCostUnitResult.h"
|
||||
#include "model/DescribeInstanceBillRequest.h"
|
||||
#include "model/DescribeInstanceBillResult.h"
|
||||
#include "model/DescribePricingModuleRequest.h"
|
||||
#include "model/DescribePricingModuleResult.h"
|
||||
#include "model/DescribeResourcePackageProductRequest.h"
|
||||
#include "model/DescribeResourcePackageProductResult.h"
|
||||
#include "model/DescribeSplitItemBillRequest.h"
|
||||
#include "model/DescribeSplitItemBillResult.h"
|
||||
#include "model/EnableBillGenerationRequest.h"
|
||||
#include "model/EnableBillGenerationResult.h"
|
||||
#include "model/GetCustomerAccountInfoRequest.h"
|
||||
@@ -92,8 +96,12 @@
|
||||
#include "model/QueryCustomerAddressListResult.h"
|
||||
#include "model/QueryEvaluateListRequest.h"
|
||||
#include "model/QueryEvaluateListResult.h"
|
||||
#include "model/QueryFinancialAccountInfoRequest.h"
|
||||
#include "model/QueryFinancialAccountInfoResult.h"
|
||||
#include "model/QueryInstanceBillRequest.h"
|
||||
#include "model/QueryInstanceBillResult.h"
|
||||
#include "model/QueryInstanceByTagRequest.h"
|
||||
#include "model/QueryInstanceByTagResult.h"
|
||||
#include "model/QueryInstanceGaapCostRequest.h"
|
||||
#include "model/QueryInstanceGaapCostResult.h"
|
||||
#include "model/QueryInvoicingCustomerListRequest.h"
|
||||
@@ -104,6 +112,8 @@
|
||||
#include "model/QueryMonthlyInstanceConsumptionResult.h"
|
||||
#include "model/QueryOrdersRequest.h"
|
||||
#include "model/QueryOrdersResult.h"
|
||||
#include "model/QueryPermissionListRequest.h"
|
||||
#include "model/QueryPermissionListResult.h"
|
||||
#include "model/QueryPrepaidCardsRequest.h"
|
||||
#include "model/QueryPrepaidCardsResult.h"
|
||||
#include "model/QueryProductListRequest.h"
|
||||
@@ -112,6 +122,8 @@
|
||||
#include "model/QueryRIUtilizationDetailResult.h"
|
||||
#include "model/QueryRedeemRequest.h"
|
||||
#include "model/QueryRedeemResult.h"
|
||||
#include "model/QueryRelationListRequest.h"
|
||||
#include "model/QueryRelationListResult.h"
|
||||
#include "model/QueryResellerAvailableQuotaRequest.h"
|
||||
#include "model/QueryResellerAvailableQuotaResult.h"
|
||||
#include "model/QueryResourcePackageInstancesRequest.h"
|
||||
@@ -146,8 +158,12 @@
|
||||
#include "model/SetResellerUserStatusResult.h"
|
||||
#include "model/SubscribeBillToOSSRequest.h"
|
||||
#include "model/SubscribeBillToOSSResult.h"
|
||||
#include "model/TagResourcesRequest.h"
|
||||
#include "model/TagResourcesResult.h"
|
||||
#include "model/UnsubscribeBillToOSSRequest.h"
|
||||
#include "model/UnsubscribeBillToOSSResult.h"
|
||||
#include "model/UntagResourcesRequest.h"
|
||||
#include "model/UntagResourcesResult.h"
|
||||
#include "model/UpgradeResourcePackageRequest.h"
|
||||
#include "model/UpgradeResourcePackageResult.h"
|
||||
|
||||
@@ -192,12 +208,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteCostUnitResult> DeleteCostUnitOutcome;
|
||||
typedef std::future<DeleteCostUnitOutcome> DeleteCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DeleteCostUnitRequest&, const DeleteCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeInstanceBillResult> DescribeInstanceBillOutcome;
|
||||
typedef std::future<DescribeInstanceBillOutcome> DescribeInstanceBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribeInstanceBillRequest&, const DescribeInstanceBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeInstanceBillAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribePricingModuleResult> DescribePricingModuleOutcome;
|
||||
typedef std::future<DescribePricingModuleOutcome> DescribePricingModuleOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribePricingModuleRequest&, const DescribePricingModuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribePricingModuleAsyncHandler;
|
||||
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::DescribeSplitItemBillResult> DescribeSplitItemBillOutcome;
|
||||
typedef std::future<DescribeSplitItemBillOutcome> DescribeSplitItemBillOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DescribeSplitItemBillRequest&, const DescribeSplitItemBillOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSplitItemBillAsyncHandler;
|
||||
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;
|
||||
@@ -264,9 +286,15 @@ namespace AlibabaCloud
|
||||
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;
|
||||
typedef Outcome<Error, Model::QueryFinancialAccountInfoResult> QueryFinancialAccountInfoOutcome;
|
||||
typedef std::future<QueryFinancialAccountInfoOutcome> QueryFinancialAccountInfoOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryFinancialAccountInfoRequest&, const QueryFinancialAccountInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryFinancialAccountInfoAsyncHandler;
|
||||
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::QueryInstanceByTagResult> QueryInstanceByTagOutcome;
|
||||
typedef std::future<QueryInstanceByTagOutcome> QueryInstanceByTagOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryInstanceByTagRequest&, const QueryInstanceByTagOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryInstanceByTagAsyncHandler;
|
||||
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;
|
||||
@@ -282,6 +310,9 @@ namespace AlibabaCloud
|
||||
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::QueryPermissionListResult> QueryPermissionListOutcome;
|
||||
typedef std::future<QueryPermissionListOutcome> QueryPermissionListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPermissionListRequest&, const QueryPermissionListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPermissionListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryPrepaidCardsResult> QueryPrepaidCardsOutcome;
|
||||
typedef std::future<QueryPrepaidCardsOutcome> QueryPrepaidCardsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryPrepaidCardsRequest&, const QueryPrepaidCardsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryPrepaidCardsAsyncHandler;
|
||||
@@ -294,6 +325,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
typedef Outcome<Error, Model::QueryRelationListResult> QueryRelationListOutcome;
|
||||
typedef std::future<QueryRelationListOutcome> QueryRelationListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryRelationListRequest&, const QueryRelationListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryRelationListAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryResellerAvailableQuotaResult> QueryResellerAvailableQuotaOutcome;
|
||||
typedef std::future<QueryResellerAvailableQuotaOutcome> QueryResellerAvailableQuotaOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryResellerAvailableQuotaRequest&, const QueryResellerAvailableQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryResellerAvailableQuotaAsyncHandler;
|
||||
@@ -345,9 +379,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SubscribeBillToOSSResult> SubscribeBillToOSSOutcome;
|
||||
typedef std::future<SubscribeBillToOSSOutcome> SubscribeBillToOSSOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::SubscribeBillToOSSRequest&, const SubscribeBillToOSSOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubscribeBillToOSSAsyncHandler;
|
||||
typedef Outcome<Error, Model::TagResourcesResult> TagResourcesOutcome;
|
||||
typedef std::future<TagResourcesOutcome> TagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::TagResourcesRequest&, const TagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> TagResourcesAsyncHandler;
|
||||
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::UntagResourcesResult> UntagResourcesOutcome;
|
||||
typedef std::future<UntagResourcesOutcome> UntagResourcesOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::UntagResourcesRequest&, const UntagResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UntagResourcesAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpgradeResourcePackageResult> UpgradeResourcePackageOutcome;
|
||||
typedef std::future<UpgradeResourcePackageOutcome> UpgradeResourcePackageOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::UpgradeResourcePackageRequest&, const UpgradeResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpgradeResourcePackageAsyncHandler;
|
||||
@@ -389,12 +429,18 @@ namespace AlibabaCloud
|
||||
DeleteCostUnitOutcome deleteCostUnit(const Model::DeleteCostUnitRequest &request)const;
|
||||
void deleteCostUnitAsync(const Model::DeleteCostUnitRequest& request, const DeleteCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCostUnitOutcomeCallable deleteCostUnitCallable(const Model::DeleteCostUnitRequest& request) const;
|
||||
DescribeInstanceBillOutcome describeInstanceBill(const Model::DescribeInstanceBillRequest &request)const;
|
||||
void describeInstanceBillAsync(const Model::DescribeInstanceBillRequest& request, const DescribeInstanceBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeInstanceBillOutcomeCallable describeInstanceBillCallable(const Model::DescribeInstanceBillRequest& request) const;
|
||||
DescribePricingModuleOutcome describePricingModule(const Model::DescribePricingModuleRequest &request)const;
|
||||
void describePricingModuleAsync(const Model::DescribePricingModuleRequest& request, const DescribePricingModuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribePricingModuleOutcomeCallable describePricingModuleCallable(const Model::DescribePricingModuleRequest& request) const;
|
||||
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;
|
||||
DescribeSplitItemBillOutcome describeSplitItemBill(const Model::DescribeSplitItemBillRequest &request)const;
|
||||
void describeSplitItemBillAsync(const Model::DescribeSplitItemBillRequest& request, const DescribeSplitItemBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSplitItemBillOutcomeCallable describeSplitItemBillCallable(const Model::DescribeSplitItemBillRequest& 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;
|
||||
@@ -461,9 +507,15 @@ namespace AlibabaCloud
|
||||
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;
|
||||
QueryFinancialAccountInfoOutcome queryFinancialAccountInfo(const Model::QueryFinancialAccountInfoRequest &request)const;
|
||||
void queryFinancialAccountInfoAsync(const Model::QueryFinancialAccountInfoRequest& request, const QueryFinancialAccountInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryFinancialAccountInfoOutcomeCallable queryFinancialAccountInfoCallable(const Model::QueryFinancialAccountInfoRequest& 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;
|
||||
QueryInstanceByTagOutcome queryInstanceByTag(const Model::QueryInstanceByTagRequest &request)const;
|
||||
void queryInstanceByTagAsync(const Model::QueryInstanceByTagRequest& request, const QueryInstanceByTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryInstanceByTagOutcomeCallable queryInstanceByTagCallable(const Model::QueryInstanceByTagRequest& 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;
|
||||
@@ -479,6 +531,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
QueryPermissionListOutcome queryPermissionList(const Model::QueryPermissionListRequest &request)const;
|
||||
void queryPermissionListAsync(const Model::QueryPermissionListRequest& request, const QueryPermissionListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPermissionListOutcomeCallable queryPermissionListCallable(const Model::QueryPermissionListRequest& request) const;
|
||||
QueryPrepaidCardsOutcome queryPrepaidCards(const Model::QueryPrepaidCardsRequest &request)const;
|
||||
void queryPrepaidCardsAsync(const Model::QueryPrepaidCardsRequest& request, const QueryPrepaidCardsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryPrepaidCardsOutcomeCallable queryPrepaidCardsCallable(const Model::QueryPrepaidCardsRequest& request) const;
|
||||
@@ -491,6 +546,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
QueryRelationListOutcome queryRelationList(const Model::QueryRelationListRequest &request)const;
|
||||
void queryRelationListAsync(const Model::QueryRelationListRequest& request, const QueryRelationListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryRelationListOutcomeCallable queryRelationListCallable(const Model::QueryRelationListRequest& request) const;
|
||||
QueryResellerAvailableQuotaOutcome queryResellerAvailableQuota(const Model::QueryResellerAvailableQuotaRequest &request)const;
|
||||
void queryResellerAvailableQuotaAsync(const Model::QueryResellerAvailableQuotaRequest& request, const QueryResellerAvailableQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryResellerAvailableQuotaOutcomeCallable queryResellerAvailableQuotaCallable(const Model::QueryResellerAvailableQuotaRequest& request) const;
|
||||
@@ -542,9 +600,15 @@ namespace AlibabaCloud
|
||||
SubscribeBillToOSSOutcome subscribeBillToOSS(const Model::SubscribeBillToOSSRequest &request)const;
|
||||
void subscribeBillToOSSAsync(const Model::SubscribeBillToOSSRequest& request, const SubscribeBillToOSSAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubscribeBillToOSSOutcomeCallable subscribeBillToOSSCallable(const Model::SubscribeBillToOSSRequest& request) const;
|
||||
TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const;
|
||||
void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const;
|
||||
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;
|
||||
UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const;
|
||||
void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const;
|
||||
UpgradeResourcePackageOutcome upgradeResourcePackage(const Model::UpgradeResourcePackageRequest &request)const;
|
||||
void upgradeResourcePackageAsync(const Model::UpgradeResourcePackageRequest& request, const UpgradeResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpgradeResourcePackageOutcomeCallable upgradeResourcePackageCallable(const Model::UpgradeResourcePackageRequest& request) const;
|
||||
|
||||
@@ -49,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getSubscriptionType()const;
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
std::string getLogistics()const;
|
||||
void setLogistics(const std::string& logistics);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getProductType()const;
|
||||
@@ -65,6 +67,7 @@ namespace AlibabaCloud
|
||||
int period_;
|
||||
std::string clientToken_;
|
||||
std::string subscriptionType_;
|
||||
std::string logistics_;
|
||||
long ownerId_;
|
||||
std::string productType_;
|
||||
int renewPeriod_;
|
||||
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_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 DescribeInstanceBillRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeInstanceBillRequest();
|
||||
~DescribeInstanceBillRequest();
|
||||
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
bool getIsHideZeroCharge()const;
|
||||
void setIsHideZeroCharge(bool isHideZeroCharge);
|
||||
std::string getSubscriptionType()const;
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
std::string getBillingCycle()const;
|
||||
void setBillingCycle(const std::string& billingCycle);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getBillingDate()const;
|
||||
void setBillingDate(const std::string& billingDate);
|
||||
bool getIsBillingItem()const;
|
||||
void setIsBillingItem(bool isBillingItem);
|
||||
std::string getInstanceID()const;
|
||||
void setInstanceID(const std::string& instanceID);
|
||||
std::string getGranularity()const;
|
||||
void setGranularity(const std::string& granularity);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
bool isHideZeroCharge_;
|
||||
std::string subscriptionType_;
|
||||
long billOwnerId_;
|
||||
std::string productType_;
|
||||
std::string nextToken_;
|
||||
std::string billingCycle_;
|
||||
long ownerId_;
|
||||
std::string billingDate_;
|
||||
bool isBillingItem_;
|
||||
std::string instanceID_;
|
||||
std::string granularity_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLREQUEST_H_
|
||||
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_DESCRIBEINSTANCEBILLRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBEINSTANCEBILLRESULT_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 DescribeInstanceBillResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
std::string instanceSpec;
|
||||
std::string productName;
|
||||
std::string instanceID;
|
||||
float deductedByCashCoupons;
|
||||
std::string listPriceUnit;
|
||||
std::string billingDate;
|
||||
std::string listPrice;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
float invoiceDiscount;
|
||||
std::string subscriptionType;
|
||||
std::string item;
|
||||
float pretaxGrossAmount;
|
||||
std::string instanceConfig;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string costUnit;
|
||||
std::string resourceGroup;
|
||||
std::string billingType;
|
||||
std::string usage;
|
||||
float deductedByCoupons;
|
||||
std::string productDetail;
|
||||
std::string productCode;
|
||||
std::string zone;
|
||||
std::string productType;
|
||||
float outstandingAmount;
|
||||
std::string billingItem;
|
||||
std::string nickName;
|
||||
std::string intranetIP;
|
||||
std::string pipCode;
|
||||
std::string servicePeriodUnit;
|
||||
std::string servicePeriod;
|
||||
std::string deductedByResourcePackage;
|
||||
std::string usageUnit;
|
||||
std::string ownerID;
|
||||
float pretaxAmount;
|
||||
std::string internetIP;
|
||||
std::string region;
|
||||
std::string tag;
|
||||
};
|
||||
std::string billingCycle;
|
||||
int totalCount;
|
||||
std::string accountID;
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<Item> items;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
DescribeInstanceBillResult();
|
||||
explicit DescribeInstanceBillResult(const std::string &payload);
|
||||
~DescribeInstanceBillResult();
|
||||
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_DESCRIBEINSTANCEBILLRESULT_H_
|
||||
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_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 DescribeSplitItemBillRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct TagFilter
|
||||
{
|
||||
std::vector<std::string> tagValues;
|
||||
std::string tagKey;
|
||||
};
|
||||
|
||||
public:
|
||||
DescribeSplitItemBillRequest();
|
||||
~DescribeSplitItemBillRequest();
|
||||
|
||||
std::string getSplitItemID()const;
|
||||
void setSplitItemID(const std::string& splitItemID);
|
||||
std::string getProductCode()const;
|
||||
void setProductCode(const std::string& productCode);
|
||||
std::string getSubscriptionType()const;
|
||||
void setSubscriptionType(const std::string& subscriptionType);
|
||||
std::string getBillingCycle()const;
|
||||
void setBillingCycle(const std::string& billingCycle);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
long getBillOwnerId()const;
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::vector<TagFilter> getTagFilter()const;
|
||||
void setTagFilter(const std::vector<TagFilter>& tagFilter);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getInstanceID()const;
|
||||
void setInstanceID(const std::string& instanceID);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
void setMaxResults(int maxResults);
|
||||
|
||||
private:
|
||||
std::string splitItemID_;
|
||||
std::string productCode_;
|
||||
std::string subscriptionType_;
|
||||
std::string billingCycle_;
|
||||
long ownerId_;
|
||||
long billOwnerId_;
|
||||
std::vector<TagFilter> tagFilter_;
|
||||
std::string productType_;
|
||||
std::string instanceID_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLREQUEST_H_
|
||||
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DESCRIBESPLITITEMBILLRESULT_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 DescribeSplitItemBillResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct Item
|
||||
{
|
||||
std::string instanceSpec;
|
||||
std::string productName;
|
||||
std::string instanceID;
|
||||
std::string splitCommodityCode;
|
||||
float deductedByCashCoupons;
|
||||
std::string listPriceUnit;
|
||||
std::string billingDate;
|
||||
std::string listPrice;
|
||||
float paymentAmount;
|
||||
float deductedByPrepaidCard;
|
||||
float invoiceDiscount;
|
||||
std::string splitItemName;
|
||||
std::string splitProductDetail;
|
||||
std::string subscriptionType;
|
||||
std::string item;
|
||||
float pretaxGrossAmount;
|
||||
std::string instanceConfig;
|
||||
std::string currency;
|
||||
std::string commodityCode;
|
||||
std::string costUnit;
|
||||
std::string resourceGroup;
|
||||
std::string billingType;
|
||||
std::string splitAccountName;
|
||||
std::string usage;
|
||||
float deductedByCoupons;
|
||||
std::string splitAccountID;
|
||||
std::string productDetail;
|
||||
std::string productCode;
|
||||
std::string zone;
|
||||
std::string productType;
|
||||
float outstandingAmount;
|
||||
std::string billingItem;
|
||||
std::string nickName;
|
||||
std::string intranetIP;
|
||||
std::string pipCode;
|
||||
std::string servicePeriodUnit;
|
||||
std::string servicePeriod;
|
||||
std::string splitItemID;
|
||||
std::string deductedByResourcePackage;
|
||||
std::string splitBillingCycle;
|
||||
std::string usageUnit;
|
||||
std::string ownerID;
|
||||
float pretaxAmount;
|
||||
std::string internetIP;
|
||||
std::string region;
|
||||
std::string tag;
|
||||
};
|
||||
std::string billingCycle;
|
||||
int totalCount;
|
||||
std::string accountID;
|
||||
std::string nextToken;
|
||||
int maxResults;
|
||||
std::vector<Item> items;
|
||||
std::string accountName;
|
||||
};
|
||||
|
||||
|
||||
DescribeSplitItemBillResult();
|
||||
explicit DescribeSplitItemBillResult(const std::string &payload);
|
||||
~DescribeSplitItemBillResult();
|
||||
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_DESCRIBESPLITITEMBILLRESULT_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_QUERYFINANCIALACCOUNTINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_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 QueryFinancialAccountInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryFinancialAccountInfoRequest();
|
||||
~QueryFinancialAccountInfoRequest();
|
||||
|
||||
long getUserId()const;
|
||||
void setUserId(long userId);
|
||||
|
||||
private:
|
||||
long userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFOREQUEST_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_QUERYFINANCIALACCOUNTINFORESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCIALACCOUNTINFORESULT_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 QueryFinancialAccountInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string userName;
|
||||
bool isFinancialAccount;
|
||||
std::string memberNickName;
|
||||
std::string memberGroupName;
|
||||
long memberGroupId;
|
||||
std::string accountType;
|
||||
};
|
||||
|
||||
|
||||
QueryFinancialAccountInfoResult();
|
||||
explicit QueryFinancialAccountInfoResult(const std::string &payload);
|
||||
~QueryFinancialAccountInfoResult();
|
||||
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_QUERYFINANCIALACCOUNTINFORESULT_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_QUERYINSTANCEBYTAGREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_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 QueryInstanceByTagRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
QueryInstanceByTagRequest();
|
||||
~QueryInstanceByTagRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string resourceType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGREQUEST_H_
|
||||
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGRESULT_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 QueryInstanceByTagResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct TagResourceItem
|
||||
{
|
||||
struct TagKeyValue
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string resourceId;
|
||||
std::string resourceType;
|
||||
std::vector<TagResourceItem::TagKeyValue> tag;
|
||||
};
|
||||
|
||||
|
||||
QueryInstanceByTagResult();
|
||||
explicit QueryInstanceByTagResult(const std::string &payload);
|
||||
~QueryInstanceByTagResult();
|
||||
std::string getMessage()const;
|
||||
std::string getNextToken()const;
|
||||
std::vector<TagResourceItem> getTagResource()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string nextToken_;
|
||||
std::vector<TagResourceItem> tagResource_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYINSTANCEBYTAGRESULT_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_QUERYPERMISSIONLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_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 QueryPermissionListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryPermissionListRequest();
|
||||
~QueryPermissionListRequest();
|
||||
|
||||
long getRelationId()const;
|
||||
void setRelationId(long relationId);
|
||||
|
||||
private:
|
||||
long relationId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTREQUEST_H_
|
||||
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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_QUERYPERMISSIONLISTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYPERMISSIONLISTRESULT_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 QueryPermissionListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct PermissionListItem
|
||||
{
|
||||
std::string endTime;
|
||||
std::string permissionName;
|
||||
std::string startTime;
|
||||
std::string permissionCode;
|
||||
};
|
||||
long memberId;
|
||||
std::string endTime;
|
||||
std::vector<PermissionListItem> permissionList;
|
||||
std::string state;
|
||||
std::string relationType;
|
||||
std::string setupTime;
|
||||
std::string startTime;
|
||||
long masterId;
|
||||
};
|
||||
|
||||
|
||||
QueryPermissionListResult();
|
||||
explicit QueryPermissionListResult(const std::string &payload);
|
||||
~QueryPermissionListResult();
|
||||
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_QUERYPERMISSIONLISTRESULT_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_QUERYRELATIONLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_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 QueryRelationListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryRelationListRequest();
|
||||
~QueryRelationListRequest();
|
||||
|
||||
std::vector<std::string> getStatusList()const;
|
||||
void setStatusList(const std::vector<std::string>& statusList);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
long getUserId()const;
|
||||
void setUserId(long userId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::vector<std::string> statusList_;
|
||||
int pageNum_;
|
||||
long userId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTREQUEST_H_
|
||||
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYRELATIONLISTRESULT_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 QueryRelationListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinancialRelationInfoListItem
|
||||
{
|
||||
long accountId;
|
||||
std::string endTime;
|
||||
std::string state;
|
||||
std::string relationType;
|
||||
long relationId;
|
||||
std::string setupTime;
|
||||
std::string startTime;
|
||||
std::string accountType;
|
||||
std::string accountNickName;
|
||||
std::string accountName;
|
||||
};
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<FinancialRelationInfoListItem> financialRelationInfoList;
|
||||
};
|
||||
|
||||
|
||||
QueryRelationListResult();
|
||||
explicit QueryRelationListResult(const std::string &payload);
|
||||
~QueryRelationListResult();
|
||||
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_QUERYRELATIONLISTRESULT_H_
|
||||
@@ -45,8 +45,6 @@ namespace AlibabaCloud
|
||||
void setPageNum(int pageNum);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getInstanceType()const;
|
||||
@@ -58,7 +56,6 @@ namespace AlibabaCloud
|
||||
std::string locale_;
|
||||
int pageNum_;
|
||||
std::string instanceId_;
|
||||
std::string requestId_;
|
||||
int pageSize_;
|
||||
std::string instanceType_;
|
||||
|
||||
|
||||
@@ -45,8 +45,6 @@ namespace AlibabaCloud
|
||||
void setPageNum(int pageNum);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getRequestId()const;
|
||||
void setRequestId(const std::string& requestId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
@@ -56,7 +54,6 @@ namespace AlibabaCloud
|
||||
std::string locale_;
|
||||
int pageNum_;
|
||||
std::string instanceId_;
|
||||
std::string requestId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
|
||||
@@ -53,6 +53,8 @@ namespace AlibabaCloud
|
||||
void setBillOwnerId(long billOwnerId);
|
||||
std::string getProductType()const;
|
||||
void setProductType(const std::string& productType);
|
||||
std::string getRecordID()const;
|
||||
void setRecordID(const std::string& recordID);
|
||||
std::string getNextToken()const;
|
||||
void setNextToken(const std::string& nextToken);
|
||||
int getMaxResults()const;
|
||||
@@ -68,6 +70,7 @@ namespace AlibabaCloud
|
||||
long ownerId_;
|
||||
long billOwnerId_;
|
||||
std::string productType_;
|
||||
std::string recordID_;
|
||||
std::string nextToken_;
|
||||
int maxResults_;
|
||||
|
||||
|
||||
@@ -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_TAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_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 TagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
TagResourcesRequest();
|
||||
~TagResourcesRequest();
|
||||
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
|
||||
private:
|
||||
std::vector<std::string> resourceId_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string resourceType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESREQUEST_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_TAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_TAGRESOURCESRESULT_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 TagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
TagResourcesResult();
|
||||
explicit TagResourcesResult(const std::string &payload);
|
||||
~TagResourcesResult();
|
||||
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_TAGRESOURCESRESULT_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_UNTAGRESOURCESREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_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 UntagResourcesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UntagResourcesRequest();
|
||||
~UntagResourcesRequest();
|
||||
|
||||
bool getAll()const;
|
||||
void setAll(bool all);
|
||||
std::vector<std::string> getResourceId()const;
|
||||
void setResourceId(const std::vector<std::string>& resourceId);
|
||||
std::vector<std::string> getTagKey()const;
|
||||
void setTagKey(const std::vector<std::string>& tagKey);
|
||||
std::string getResourceType()const;
|
||||
void setResourceType(const std::string& resourceType);
|
||||
|
||||
private:
|
||||
bool all_;
|
||||
std::vector<std::string> resourceId_;
|
||||
std::vector<std::string> tagKey_;
|
||||
std::string resourceType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESREQUEST_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_UNTAGRESOURCESRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_UNTAGRESOURCESRESULT_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 UntagResourcesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UntagResourcesResult();
|
||||
explicit UntagResourcesResult(const std::string &payload);
|
||||
~UntagResourcesResult();
|
||||
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_UNTAGRESOURCESRESULT_H_
|
||||
@@ -447,6 +447,42 @@ BssOpenApiClient::DeleteCostUnitOutcomeCallable BssOpenApiClient::deleteCostUnit
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeInstanceBillOutcome BssOpenApiClient::describeInstanceBill(const DescribeInstanceBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeInstanceBillOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeInstanceBillOutcome(DescribeInstanceBillResult(outcome.result()));
|
||||
else
|
||||
return DescribeInstanceBillOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::describeInstanceBillAsync(const DescribeInstanceBillRequest& request, const DescribeInstanceBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeInstanceBill(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeInstanceBillOutcomeCallable BssOpenApiClient::describeInstanceBillCallable(const DescribeInstanceBillRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeInstanceBillOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeInstanceBill(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribePricingModuleOutcome BssOpenApiClient::describePricingModule(const DescribePricingModuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -519,6 +555,42 @@ BssOpenApiClient::DescribeResourcePackageProductOutcomeCallable BssOpenApiClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeSplitItemBillOutcome BssOpenApiClient::describeSplitItemBill(const DescribeSplitItemBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSplitItemBillOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSplitItemBillOutcome(DescribeSplitItemBillResult(outcome.result()));
|
||||
else
|
||||
return DescribeSplitItemBillOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::describeSplitItemBillAsync(const DescribeSplitItemBillRequest& request, const DescribeSplitItemBillAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSplitItemBill(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::DescribeSplitItemBillOutcomeCallable BssOpenApiClient::describeSplitItemBillCallable(const DescribeSplitItemBillRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSplitItemBillOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSplitItemBill(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::EnableBillGenerationOutcome BssOpenApiClient::enableBillGeneration(const EnableBillGenerationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1311,6 +1383,42 @@ BssOpenApiClient::QueryEvaluateListOutcomeCallable BssOpenApiClient::queryEvalua
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinancialAccountInfoOutcome BssOpenApiClient::queryFinancialAccountInfo(const QueryFinancialAccountInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryFinancialAccountInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryFinancialAccountInfoOutcome(QueryFinancialAccountInfoResult(outcome.result()));
|
||||
else
|
||||
return QueryFinancialAccountInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryFinancialAccountInfoAsync(const QueryFinancialAccountInfoRequest& request, const QueryFinancialAccountInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryFinancialAccountInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinancialAccountInfoOutcomeCallable BssOpenApiClient::queryFinancialAccountInfoCallable(const QueryFinancialAccountInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryFinancialAccountInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryFinancialAccountInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceBillOutcome BssOpenApiClient::queryInstanceBill(const QueryInstanceBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1455,42 @@ BssOpenApiClient::QueryInstanceBillOutcomeCallable BssOpenApiClient::queryInstan
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceByTagOutcome BssOpenApiClient::queryInstanceByTag(const QueryInstanceByTagRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryInstanceByTagOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryInstanceByTagOutcome(QueryInstanceByTagResult(outcome.result()));
|
||||
else
|
||||
return QueryInstanceByTagOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryInstanceByTagAsync(const QueryInstanceByTagRequest& request, const QueryInstanceByTagAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryInstanceByTag(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceByTagOutcomeCallable BssOpenApiClient::queryInstanceByTagCallable(const QueryInstanceByTagRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryInstanceByTagOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryInstanceByTag(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceGaapCostOutcome BssOpenApiClient::queryInstanceGaapCost(const QueryInstanceGaapCostRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,6 +1671,42 @@ BssOpenApiClient::QueryOrdersOutcomeCallable BssOpenApiClient::queryOrdersCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPermissionListOutcome BssOpenApiClient::queryPermissionList(const QueryPermissionListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryPermissionListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryPermissionListOutcome(QueryPermissionListResult(outcome.result()));
|
||||
else
|
||||
return QueryPermissionListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryPermissionListAsync(const QueryPermissionListRequest& request, const QueryPermissionListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryPermissionList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPermissionListOutcomeCallable BssOpenApiClient::queryPermissionListCallable(const QueryPermissionListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryPermissionListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryPermissionList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryPrepaidCardsOutcome BssOpenApiClient::queryPrepaidCards(const QueryPrepaidCardsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1671,6 +1851,42 @@ BssOpenApiClient::QueryRedeemOutcomeCallable BssOpenApiClient::queryRedeemCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryRelationListOutcome BssOpenApiClient::queryRelationList(const QueryRelationListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryRelationListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryRelationListOutcome(QueryRelationListResult(outcome.result()));
|
||||
else
|
||||
return QueryRelationListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryRelationListAsync(const QueryRelationListRequest& request, const QueryRelationListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryRelationList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryRelationListOutcomeCallable BssOpenApiClient::queryRelationListCallable(const QueryRelationListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryRelationListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryRelationList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryResellerAvailableQuotaOutcome BssOpenApiClient::queryResellerAvailableQuota(const QueryResellerAvailableQuotaRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2283,6 +2499,42 @@ BssOpenApiClient::SubscribeBillToOSSOutcomeCallable BssOpenApiClient::subscribeB
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::TagResourcesOutcome BssOpenApiClient::tagResources(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return TagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return TagResourcesOutcome(TagResourcesResult(outcome.result()));
|
||||
else
|
||||
return TagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, tagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::TagResourcesOutcomeCallable BssOpenApiClient::tagResourcesCallable(const TagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<TagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->tagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::UnsubscribeBillToOSSOutcome BssOpenApiClient::unsubscribeBillToOSS(const UnsubscribeBillToOSSRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2319,6 +2571,42 @@ BssOpenApiClient::UnsubscribeBillToOSSOutcomeCallable BssOpenApiClient::unsubscr
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::UntagResourcesOutcome BssOpenApiClient::untagResources(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UntagResourcesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UntagResourcesOutcome(UntagResourcesResult(outcome.result()));
|
||||
else
|
||||
return UntagResourcesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, untagResources(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::UntagResourcesOutcomeCallable BssOpenApiClient::untagResourcesCallable(const UntagResourcesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UntagResourcesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->untagResources(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::UpgradeResourcePackageOutcome BssOpenApiClient::upgradeResourcePackage(const UpgradeResourcePackageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -71,6 +71,17 @@ void CreateInstanceRequest::setSubscriptionType(const std::string& subscriptionT
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string CreateInstanceRequest::getLogistics()const
|
||||
{
|
||||
return logistics_;
|
||||
}
|
||||
|
||||
void CreateInstanceRequest::setLogistics(const std::string& logistics)
|
||||
{
|
||||
logistics_ = logistics;
|
||||
setParameter("Logistics", logistics);
|
||||
}
|
||||
|
||||
long CreateInstanceRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
|
||||
172
bssopenapi/src/model/DescribeInstanceBillRequest.cc
Normal file
172
bssopenapi/src/model/DescribeInstanceBillRequest.cc
Normal file
@@ -0,0 +1,172 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeInstanceBillRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::DescribeInstanceBillRequest;
|
||||
|
||||
DescribeInstanceBillRequest::DescribeInstanceBillRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeInstanceBill")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeInstanceBillRequest::~DescribeInstanceBillRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
bool DescribeInstanceBillRequest::getIsHideZeroCharge()const
|
||||
{
|
||||
return isHideZeroCharge_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setIsHideZeroCharge(bool isHideZeroCharge)
|
||||
{
|
||||
isHideZeroCharge_ = isHideZeroCharge;
|
||||
setParameter("IsHideZeroCharge", isHideZeroCharge ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
long DescribeInstanceBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
long DescribeInstanceBillRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getBillingDate()const
|
||||
{
|
||||
return billingDate_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setBillingDate(const std::string& billingDate)
|
||||
{
|
||||
billingDate_ = billingDate;
|
||||
setParameter("BillingDate", billingDate);
|
||||
}
|
||||
|
||||
bool DescribeInstanceBillRequest::getIsBillingItem()const
|
||||
{
|
||||
return isBillingItem_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setIsBillingItem(bool isBillingItem)
|
||||
{
|
||||
isBillingItem_ = isBillingItem;
|
||||
setParameter("IsBillingItem", isBillingItem ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getInstanceID()const
|
||||
{
|
||||
return instanceID_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setInstanceID(const std::string& instanceID)
|
||||
{
|
||||
instanceID_ = instanceID;
|
||||
setParameter("InstanceID", instanceID);
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillRequest::getGranularity()const
|
||||
{
|
||||
return granularity_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setGranularity(const std::string& granularity)
|
||||
{
|
||||
granularity_ = granularity;
|
||||
setParameter("Granularity", granularity);
|
||||
}
|
||||
|
||||
int DescribeInstanceBillRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeInstanceBillRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
167
bssopenapi/src/model/DescribeInstanceBillResult.cc
Normal file
167
bssopenapi/src/model/DescribeInstanceBillResult.cc
Normal file
@@ -0,0 +1,167 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeInstanceBillResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
DescribeInstanceBillResult::DescribeInstanceBillResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeInstanceBillResult::DescribeInstanceBillResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeInstanceBillResult::~DescribeInstanceBillResult()
|
||||
{}
|
||||
|
||||
void DescribeInstanceBillResult::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["BillingCycle"].isNull())
|
||||
data_.billingCycle = dataNode["BillingCycle"].asString();
|
||||
if(!dataNode["AccountID"].isNull())
|
||||
data_.accountID = dataNode["AccountID"].asString();
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
auto allItemsNode = dataNode["Items"]["Item"];
|
||||
for (auto dataNodeItemsItem : allItemsNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeItemsItem["InstanceID"].isNull())
|
||||
itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString();
|
||||
if(!dataNodeItemsItem["BillingType"].isNull())
|
||||
itemObject.billingType = dataNodeItemsItem["BillingType"].asString();
|
||||
if(!dataNodeItemsItem["CostUnit"].isNull())
|
||||
itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString();
|
||||
if(!dataNodeItemsItem["ProductCode"].isNull())
|
||||
itemObject.productCode = dataNodeItemsItem["ProductCode"].asString();
|
||||
if(!dataNodeItemsItem["ProductType"].isNull())
|
||||
itemObject.productType = dataNodeItemsItem["ProductType"].asString();
|
||||
if(!dataNodeItemsItem["SubscriptionType"].isNull())
|
||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||
if(!dataNodeItemsItem["ProductName"].isNull())
|
||||
itemObject.productName = dataNodeItemsItem["ProductName"].asString();
|
||||
if(!dataNodeItemsItem["ProductDetail"].isNull())
|
||||
itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["OwnerID"].isNull())
|
||||
itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString();
|
||||
if(!dataNodeItemsItem["BillingItem"].isNull())
|
||||
itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString();
|
||||
if(!dataNodeItemsItem["ListPrice"].isNull())
|
||||
itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString();
|
||||
if(!dataNodeItemsItem["ListPriceUnit"].isNull())
|
||||
itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString();
|
||||
if(!dataNodeItemsItem["Usage"].isNull())
|
||||
itemObject.usage = dataNodeItemsItem["Usage"].asString();
|
||||
if(!dataNodeItemsItem["UsageUnit"].isNull())
|
||||
itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString();
|
||||
if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull())
|
||||
itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString();
|
||||
if(!dataNodeItemsItem["PretaxGrossAmount"].isNull())
|
||||
itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString());
|
||||
if(!dataNodeItemsItem["InvoiceDiscount"].isNull())
|
||||
itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByCoupons"].isNull())
|
||||
itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString());
|
||||
if(!dataNodeItemsItem["PretaxAmount"].isNull())
|
||||
itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull())
|
||||
itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull())
|
||||
itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString());
|
||||
if(!dataNodeItemsItem["PaymentAmount"].isNull())
|
||||
itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString());
|
||||
if(!dataNodeItemsItem["OutstandingAmount"].isNull())
|
||||
itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString());
|
||||
if(!dataNodeItemsItem["Currency"].isNull())
|
||||
itemObject.currency = dataNodeItemsItem["Currency"].asString();
|
||||
if(!dataNodeItemsItem["NickName"].isNull())
|
||||
itemObject.nickName = dataNodeItemsItem["NickName"].asString();
|
||||
if(!dataNodeItemsItem["ResourceGroup"].isNull())
|
||||
itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString();
|
||||
if(!dataNodeItemsItem["Tag"].isNull())
|
||||
itemObject.tag = dataNodeItemsItem["Tag"].asString();
|
||||
if(!dataNodeItemsItem["InstanceConfig"].isNull())
|
||||
itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString();
|
||||
if(!dataNodeItemsItem["InstanceSpec"].isNull())
|
||||
itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString();
|
||||
if(!dataNodeItemsItem["InternetIP"].isNull())
|
||||
itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString();
|
||||
if(!dataNodeItemsItem["IntranetIP"].isNull())
|
||||
itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString();
|
||||
if(!dataNodeItemsItem["Region"].isNull())
|
||||
itemObject.region = dataNodeItemsItem["Region"].asString();
|
||||
if(!dataNodeItemsItem["Zone"].isNull())
|
||||
itemObject.zone = dataNodeItemsItem["Zone"].asString();
|
||||
if(!dataNodeItemsItem["Item"].isNull())
|
||||
itemObject.item = dataNodeItemsItem["Item"].asString();
|
||||
if(!dataNodeItemsItem["ServicePeriod"].isNull())
|
||||
itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString();
|
||||
if(!dataNodeItemsItem["BillingDate"].isNull())
|
||||
itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString();
|
||||
if(!dataNodeItemsItem["ServicePeriodUnit"].isNull())
|
||||
itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
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 DescribeInstanceBillResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeInstanceBillResult::Data DescribeInstanceBillResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeInstanceBillResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeInstanceBillResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
157
bssopenapi/src/model/DescribeSplitItemBillRequest.cc
Normal file
157
bssopenapi/src/model/DescribeSplitItemBillRequest.cc
Normal file
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeSplitItemBillRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::DescribeSplitItemBillRequest;
|
||||
|
||||
DescribeSplitItemBillRequest::DescribeSplitItemBillRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DescribeSplitItemBill")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSplitItemBillRequest::~DescribeSplitItemBillRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getSplitItemID()const
|
||||
{
|
||||
return splitItemID_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setSplitItemID(const std::string& splitItemID)
|
||||
{
|
||||
splitItemID_ = splitItemID;
|
||||
setParameter("SplitItemID", splitItemID);
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getProductCode()const
|
||||
{
|
||||
return productCode_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setProductCode(const std::string& productCode)
|
||||
{
|
||||
productCode_ = productCode;
|
||||
setParameter("ProductCode", productCode);
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getSubscriptionType()const
|
||||
{
|
||||
return subscriptionType_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setSubscriptionType(const std::string& subscriptionType)
|
||||
{
|
||||
subscriptionType_ = subscriptionType;
|
||||
setParameter("SubscriptionType", subscriptionType);
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getBillingCycle()const
|
||||
{
|
||||
return billingCycle_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setBillingCycle(const std::string& billingCycle)
|
||||
{
|
||||
billingCycle_ = billingCycle;
|
||||
setParameter("BillingCycle", billingCycle);
|
||||
}
|
||||
|
||||
long DescribeSplitItemBillRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
long DescribeSplitItemBillRequest::getBillOwnerId()const
|
||||
{
|
||||
return billOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setBillOwnerId(long billOwnerId)
|
||||
{
|
||||
billOwnerId_ = billOwnerId;
|
||||
setParameter("BillOwnerId", std::to_string(billOwnerId));
|
||||
}
|
||||
|
||||
std::vector<DescribeSplitItemBillRequest::TagFilter> DescribeSplitItemBillRequest::getTagFilter()const
|
||||
{
|
||||
return tagFilter_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setTagFilter(const std::vector<TagFilter>& tagFilter)
|
||||
{
|
||||
tagFilter_ = tagFilter;
|
||||
for(int dep1 = 0; dep1!= tagFilter.size(); dep1++) {
|
||||
auto tagFilterObj = tagFilter.at(dep1);
|
||||
std::string tagFilterObjStr = "TagFilter." + std::to_string(dep1 + 1);
|
||||
for(int dep2 = 0; dep2!= tagFilterObj.tagValues.size(); dep2++) {
|
||||
setParameter(tagFilterObjStr + ".TagValues."+ std::to_string(dep2), tagFilterObj.tagValues.at(dep2));
|
||||
}
|
||||
setParameter(tagFilterObjStr + ".TagKey", tagFilterObj.tagKey);
|
||||
}
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getProductType()const
|
||||
{
|
||||
return productType_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setProductType(const std::string& productType)
|
||||
{
|
||||
productType_ = productType;
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getInstanceID()const
|
||||
{
|
||||
return instanceID_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setInstanceID(const std::string& instanceID)
|
||||
{
|
||||
instanceID_ = instanceID;
|
||||
setParameter("InstanceID", instanceID);
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setNextToken(const std::string& nextToken)
|
||||
{
|
||||
nextToken_ = nextToken;
|
||||
setParameter("NextToken", nextToken);
|
||||
}
|
||||
|
||||
int DescribeSplitItemBillRequest::getMaxResults()const
|
||||
{
|
||||
return maxResults_;
|
||||
}
|
||||
|
||||
void DescribeSplitItemBillRequest::setMaxResults(int maxResults)
|
||||
{
|
||||
maxResults_ = maxResults;
|
||||
setParameter("MaxResults", std::to_string(maxResults));
|
||||
}
|
||||
|
||||
181
bssopenapi/src/model/DescribeSplitItemBillResult.cc
Normal file
181
bssopenapi/src/model/DescribeSplitItemBillResult.cc
Normal file
@@ -0,0 +1,181 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/DescribeSplitItemBillResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
DescribeSplitItemBillResult::DescribeSplitItemBillResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSplitItemBillResult::DescribeSplitItemBillResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSplitItemBillResult::~DescribeSplitItemBillResult()
|
||||
{}
|
||||
|
||||
void DescribeSplitItemBillResult::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["BillingCycle"].isNull())
|
||||
data_.billingCycle = dataNode["BillingCycle"].asString();
|
||||
if(!dataNode["AccountID"].isNull())
|
||||
data_.accountID = dataNode["AccountID"].asString();
|
||||
if(!dataNode["AccountName"].isNull())
|
||||
data_.accountName = dataNode["AccountName"].asString();
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
if(!dataNode["NextToken"].isNull())
|
||||
data_.nextToken = dataNode["NextToken"].asString();
|
||||
if(!dataNode["MaxResults"].isNull())
|
||||
data_.maxResults = std::stoi(dataNode["MaxResults"].asString());
|
||||
auto allItemsNode = dataNode["Items"]["Item"];
|
||||
for (auto dataNodeItemsItem : allItemsNode)
|
||||
{
|
||||
Data::Item itemObject;
|
||||
if(!dataNodeItemsItem["InstanceID"].isNull())
|
||||
itemObject.instanceID = dataNodeItemsItem["InstanceID"].asString();
|
||||
if(!dataNodeItemsItem["BillingType"].isNull())
|
||||
itemObject.billingType = dataNodeItemsItem["BillingType"].asString();
|
||||
if(!dataNodeItemsItem["CostUnit"].isNull())
|
||||
itemObject.costUnit = dataNodeItemsItem["CostUnit"].asString();
|
||||
if(!dataNodeItemsItem["ProductCode"].isNull())
|
||||
itemObject.productCode = dataNodeItemsItem["ProductCode"].asString();
|
||||
if(!dataNodeItemsItem["ProductType"].isNull())
|
||||
itemObject.productType = dataNodeItemsItem["ProductType"].asString();
|
||||
if(!dataNodeItemsItem["SubscriptionType"].isNull())
|
||||
itemObject.subscriptionType = dataNodeItemsItem["SubscriptionType"].asString();
|
||||
if(!dataNodeItemsItem["ProductName"].isNull())
|
||||
itemObject.productName = dataNodeItemsItem["ProductName"].asString();
|
||||
if(!dataNodeItemsItem["ProductDetail"].isNull())
|
||||
itemObject.productDetail = dataNodeItemsItem["ProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["OwnerID"].isNull())
|
||||
itemObject.ownerID = dataNodeItemsItem["OwnerID"].asString();
|
||||
if(!dataNodeItemsItem["BillingItem"].isNull())
|
||||
itemObject.billingItem = dataNodeItemsItem["BillingItem"].asString();
|
||||
if(!dataNodeItemsItem["ListPrice"].isNull())
|
||||
itemObject.listPrice = dataNodeItemsItem["ListPrice"].asString();
|
||||
if(!dataNodeItemsItem["ListPriceUnit"].isNull())
|
||||
itemObject.listPriceUnit = dataNodeItemsItem["ListPriceUnit"].asString();
|
||||
if(!dataNodeItemsItem["Usage"].isNull())
|
||||
itemObject.usage = dataNodeItemsItem["Usage"].asString();
|
||||
if(!dataNodeItemsItem["UsageUnit"].isNull())
|
||||
itemObject.usageUnit = dataNodeItemsItem["UsageUnit"].asString();
|
||||
if(!dataNodeItemsItem["DeductedByResourcePackage"].isNull())
|
||||
itemObject.deductedByResourcePackage = dataNodeItemsItem["DeductedByResourcePackage"].asString();
|
||||
if(!dataNodeItemsItem["PretaxGrossAmount"].isNull())
|
||||
itemObject.pretaxGrossAmount = std::stof(dataNodeItemsItem["PretaxGrossAmount"].asString());
|
||||
if(!dataNodeItemsItem["InvoiceDiscount"].isNull())
|
||||
itemObject.invoiceDiscount = std::stof(dataNodeItemsItem["InvoiceDiscount"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByCoupons"].isNull())
|
||||
itemObject.deductedByCoupons = std::stof(dataNodeItemsItem["DeductedByCoupons"].asString());
|
||||
if(!dataNodeItemsItem["PretaxAmount"].isNull())
|
||||
itemObject.pretaxAmount = std::stof(dataNodeItemsItem["PretaxAmount"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByCashCoupons"].isNull())
|
||||
itemObject.deductedByCashCoupons = std::stof(dataNodeItemsItem["DeductedByCashCoupons"].asString());
|
||||
if(!dataNodeItemsItem["DeductedByPrepaidCard"].isNull())
|
||||
itemObject.deductedByPrepaidCard = std::stof(dataNodeItemsItem["DeductedByPrepaidCard"].asString());
|
||||
if(!dataNodeItemsItem["PaymentAmount"].isNull())
|
||||
itemObject.paymentAmount = std::stof(dataNodeItemsItem["PaymentAmount"].asString());
|
||||
if(!dataNodeItemsItem["OutstandingAmount"].isNull())
|
||||
itemObject.outstandingAmount = std::stof(dataNodeItemsItem["OutstandingAmount"].asString());
|
||||
if(!dataNodeItemsItem["Currency"].isNull())
|
||||
itemObject.currency = dataNodeItemsItem["Currency"].asString();
|
||||
if(!dataNodeItemsItem["NickName"].isNull())
|
||||
itemObject.nickName = dataNodeItemsItem["NickName"].asString();
|
||||
if(!dataNodeItemsItem["ResourceGroup"].isNull())
|
||||
itemObject.resourceGroup = dataNodeItemsItem["ResourceGroup"].asString();
|
||||
if(!dataNodeItemsItem["Tag"].isNull())
|
||||
itemObject.tag = dataNodeItemsItem["Tag"].asString();
|
||||
if(!dataNodeItemsItem["InstanceConfig"].isNull())
|
||||
itemObject.instanceConfig = dataNodeItemsItem["InstanceConfig"].asString();
|
||||
if(!dataNodeItemsItem["InstanceSpec"].isNull())
|
||||
itemObject.instanceSpec = dataNodeItemsItem["InstanceSpec"].asString();
|
||||
if(!dataNodeItemsItem["InternetIP"].isNull())
|
||||
itemObject.internetIP = dataNodeItemsItem["InternetIP"].asString();
|
||||
if(!dataNodeItemsItem["IntranetIP"].isNull())
|
||||
itemObject.intranetIP = dataNodeItemsItem["IntranetIP"].asString();
|
||||
if(!dataNodeItemsItem["Region"].isNull())
|
||||
itemObject.region = dataNodeItemsItem["Region"].asString();
|
||||
if(!dataNodeItemsItem["Zone"].isNull())
|
||||
itemObject.zone = dataNodeItemsItem["Zone"].asString();
|
||||
if(!dataNodeItemsItem["Item"].isNull())
|
||||
itemObject.item = dataNodeItemsItem["Item"].asString();
|
||||
if(!dataNodeItemsItem["ServicePeriod"].isNull())
|
||||
itemObject.servicePeriod = dataNodeItemsItem["ServicePeriod"].asString();
|
||||
if(!dataNodeItemsItem["BillingDate"].isNull())
|
||||
itemObject.billingDate = dataNodeItemsItem["BillingDate"].asString();
|
||||
if(!dataNodeItemsItem["SplitItemID"].isNull())
|
||||
itemObject.splitItemID = dataNodeItemsItem["SplitItemID"].asString();
|
||||
if(!dataNodeItemsItem["SplitItemName"].isNull())
|
||||
itemObject.splitItemName = dataNodeItemsItem["SplitItemName"].asString();
|
||||
if(!dataNodeItemsItem["PipCode"].isNull())
|
||||
itemObject.pipCode = dataNodeItemsItem["PipCode"].asString();
|
||||
if(!dataNodeItemsItem["CommodityCode"].isNull())
|
||||
itemObject.commodityCode = dataNodeItemsItem["CommodityCode"].asString();
|
||||
if(!dataNodeItemsItem["ServicePeriodUnit"].isNull())
|
||||
itemObject.servicePeriodUnit = dataNodeItemsItem["ServicePeriodUnit"].asString();
|
||||
if(!dataNodeItemsItem["SplitCommodityCode"].isNull())
|
||||
itemObject.splitCommodityCode = dataNodeItemsItem["SplitCommodityCode"].asString();
|
||||
if(!dataNodeItemsItem["SplitProductDetail"].isNull())
|
||||
itemObject.splitProductDetail = dataNodeItemsItem["SplitProductDetail"].asString();
|
||||
if(!dataNodeItemsItem["SplitAccountID"].isNull())
|
||||
itemObject.splitAccountID = dataNodeItemsItem["SplitAccountID"].asString();
|
||||
if(!dataNodeItemsItem["SplitAccountName"].isNull())
|
||||
itemObject.splitAccountName = dataNodeItemsItem["SplitAccountName"].asString();
|
||||
if(!dataNodeItemsItem["SplitBillingCycle"].isNull())
|
||||
itemObject.splitBillingCycle = dataNodeItemsItem["SplitBillingCycle"].asString();
|
||||
data_.items.push_back(itemObject);
|
||||
}
|
||||
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 DescribeSplitItemBillResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DescribeSplitItemBillResult::Data DescribeSplitItemBillResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DescribeSplitItemBillResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeSplitItemBillResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
bssopenapi/src/model/QueryFinancialAccountInfoRequest.cc
Normal file
40
bssopenapi/src/model/QueryFinancialAccountInfoRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryFinancialAccountInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryFinancialAccountInfoRequest;
|
||||
|
||||
QueryFinancialAccountInfoRequest::QueryFinancialAccountInfoRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryFinancialAccountInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryFinancialAccountInfoRequest::~QueryFinancialAccountInfoRequest()
|
||||
{}
|
||||
|
||||
long QueryFinancialAccountInfoRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void QueryFinancialAccountInfoRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
83
bssopenapi/src/model/QueryFinancialAccountInfoResult.cc
Normal file
83
bssopenapi/src/model/QueryFinancialAccountInfoResult.cc
Normal file
@@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/QueryFinancialAccountInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryFinancialAccountInfoResult::QueryFinancialAccountInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryFinancialAccountInfoResult::QueryFinancialAccountInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryFinancialAccountInfoResult::~QueryFinancialAccountInfoResult()
|
||||
{}
|
||||
|
||||
void QueryFinancialAccountInfoResult::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["UserName"].isNull())
|
||||
data_.userName = dataNode["UserName"].asString();
|
||||
if(!dataNode["IsFinancialAccount"].isNull())
|
||||
data_.isFinancialAccount = dataNode["IsFinancialAccount"].asString() == "true";
|
||||
if(!dataNode["AccountType"].isNull())
|
||||
data_.accountType = dataNode["AccountType"].asString();
|
||||
if(!dataNode["MemberNickName"].isNull())
|
||||
data_.memberNickName = dataNode["MemberNickName"].asString();
|
||||
if(!dataNode["MemberGroupId"].isNull())
|
||||
data_.memberGroupId = std::stol(dataNode["MemberGroupId"].asString());
|
||||
if(!dataNode["MemberGroupName"].isNull())
|
||||
data_.memberGroupName = dataNode["MemberGroupName"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryFinancialAccountInfoResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryFinancialAccountInfoResult::Data QueryFinancialAccountInfoResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryFinancialAccountInfoResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryFinancialAccountInfoResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
69
bssopenapi/src/model/QueryInstanceByTagRequest.cc
Normal file
69
bssopenapi/src/model/QueryInstanceByTagRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryInstanceByTagRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryInstanceByTagRequest;
|
||||
|
||||
QueryInstanceByTagRequest::QueryInstanceByTagRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryInstanceByTag")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryInstanceByTagRequest::~QueryInstanceByTagRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> QueryInstanceByTagRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void QueryInstanceByTagRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<QueryInstanceByTagRequest::Tag> QueryInstanceByTagRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void QueryInstanceByTagRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryInstanceByTagRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void QueryInstanceByTagRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
97
bssopenapi/src/model/QueryInstanceByTagResult.cc
Normal file
97
bssopenapi/src/model/QueryInstanceByTagResult.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryInstanceByTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryInstanceByTagResult::QueryInstanceByTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryInstanceByTagResult::QueryInstanceByTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryInstanceByTagResult::~QueryInstanceByTagResult()
|
||||
{}
|
||||
|
||||
void QueryInstanceByTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTagResourceNode = value["TagResource"]["TagResourceItem"];
|
||||
for (auto valueTagResourceTagResourceItem : allTagResourceNode)
|
||||
{
|
||||
TagResourceItem tagResourceObject;
|
||||
if(!valueTagResourceTagResourceItem["ResourceId"].isNull())
|
||||
tagResourceObject.resourceId = valueTagResourceTagResourceItem["ResourceId"].asString();
|
||||
if(!valueTagResourceTagResourceItem["ResourceType"].isNull())
|
||||
tagResourceObject.resourceType = valueTagResourceTagResourceItem["ResourceType"].asString();
|
||||
auto allTagNode = valueTagResourceTagResourceItem["Tag"]["TagKeyValue"];
|
||||
for (auto valueTagResourceTagResourceItemTagTagKeyValue : allTagNode)
|
||||
{
|
||||
TagResourceItem::TagKeyValue tagObject;
|
||||
if(!valueTagResourceTagResourceItemTagTagKeyValue["Key"].isNull())
|
||||
tagObject.key = valueTagResourceTagResourceItemTagTagKeyValue["Key"].asString();
|
||||
if(!valueTagResourceTagResourceItemTagTagKeyValue["Value"].isNull())
|
||||
tagObject.value = valueTagResourceTagResourceItemTagTagKeyValue["Value"].asString();
|
||||
tagResourceObject.tag.push_back(tagObject);
|
||||
}
|
||||
tagResource_.push_back(tagResourceObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["NextToken"].isNull())
|
||||
nextToken_ = value["NextToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryInstanceByTagResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string QueryInstanceByTagResult::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
}
|
||||
|
||||
std::vector<QueryInstanceByTagResult::TagResourceItem> QueryInstanceByTagResult::getTagResource()const
|
||||
{
|
||||
return tagResource_;
|
||||
}
|
||||
|
||||
std::string QueryInstanceByTagResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryInstanceByTagResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
bssopenapi/src/model/QueryPermissionListRequest.cc
Normal file
40
bssopenapi/src/model/QueryPermissionListRequest.cc
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryPermissionListRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryPermissionListRequest;
|
||||
|
||||
QueryPermissionListRequest::QueryPermissionListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryPermissionList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryPermissionListRequest::~QueryPermissionListRequest()
|
||||
{}
|
||||
|
||||
long QueryPermissionListRequest::getRelationId()const
|
||||
{
|
||||
return relationId_;
|
||||
}
|
||||
|
||||
void QueryPermissionListRequest::setRelationId(long relationId)
|
||||
{
|
||||
relationId_ = relationId;
|
||||
setParameter("RelationId", std::to_string(relationId));
|
||||
}
|
||||
|
||||
99
bssopenapi/src/model/QueryPermissionListResult.cc
Normal file
99
bssopenapi/src/model/QueryPermissionListResult.cc
Normal file
@@ -0,0 +1,99 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryPermissionListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryPermissionListResult::QueryPermissionListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryPermissionListResult::QueryPermissionListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryPermissionListResult::~QueryPermissionListResult()
|
||||
{}
|
||||
|
||||
void QueryPermissionListResult::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["MasterId"].isNull())
|
||||
data_.masterId = std::stol(dataNode["MasterId"].asString());
|
||||
if(!dataNode["MemberId"].isNull())
|
||||
data_.memberId = std::stol(dataNode["MemberId"].asString());
|
||||
if(!dataNode["RelationType"].isNull())
|
||||
data_.relationType = dataNode["RelationType"].asString();
|
||||
if(!dataNode["State"].isNull())
|
||||
data_.state = dataNode["State"].asString();
|
||||
if(!dataNode["SetupTime"].isNull())
|
||||
data_.setupTime = dataNode["SetupTime"].asString();
|
||||
if(!dataNode["StartTime"].isNull())
|
||||
data_.startTime = dataNode["StartTime"].asString();
|
||||
if(!dataNode["EndTime"].isNull())
|
||||
data_.endTime = dataNode["EndTime"].asString();
|
||||
auto allPermissionListNode = dataNode["PermissionList"]["PermissionListItem"];
|
||||
for (auto dataNodePermissionListPermissionListItem : allPermissionListNode)
|
||||
{
|
||||
Data::PermissionListItem permissionListItemObject;
|
||||
if(!dataNodePermissionListPermissionListItem["PermissionCode"].isNull())
|
||||
permissionListItemObject.permissionCode = dataNodePermissionListPermissionListItem["PermissionCode"].asString();
|
||||
if(!dataNodePermissionListPermissionListItem["PermissionName"].isNull())
|
||||
permissionListItemObject.permissionName = dataNodePermissionListPermissionListItem["PermissionName"].asString();
|
||||
if(!dataNodePermissionListPermissionListItem["StartTime"].isNull())
|
||||
permissionListItemObject.startTime = dataNodePermissionListPermissionListItem["StartTime"].asString();
|
||||
if(!dataNodePermissionListPermissionListItem["EndTime"].isNull())
|
||||
permissionListItemObject.endTime = dataNodePermissionListPermissionListItem["EndTime"].asString();
|
||||
data_.permissionList.push_back(permissionListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryPermissionListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryPermissionListResult::Data QueryPermissionListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryPermissionListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryPermissionListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
75
bssopenapi/src/model/QueryRelationListRequest.cc
Normal file
75
bssopenapi/src/model/QueryRelationListRequest.cc
Normal file
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/QueryRelationListRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryRelationListRequest;
|
||||
|
||||
QueryRelationListRequest::QueryRelationListRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryRelationList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryRelationListRequest::~QueryRelationListRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> QueryRelationListRequest::getStatusList()const
|
||||
{
|
||||
return statusList_;
|
||||
}
|
||||
|
||||
void QueryRelationListRequest::setStatusList(const std::vector<std::string>& statusList)
|
||||
{
|
||||
statusList_ = statusList;
|
||||
for(int dep1 = 0; dep1!= statusList.size(); dep1++) {
|
||||
setParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryRelationListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryRelationListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
long QueryRelationListRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void QueryRelationListRequest::setUserId(long userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", std::to_string(userId));
|
||||
}
|
||||
|
||||
int QueryRelationListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryRelationListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
103
bssopenapi/src/model/QueryRelationListResult.cc
Normal file
103
bssopenapi/src/model/QueryRelationListResult.cc
Normal file
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/QueryRelationListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryRelationListResult::QueryRelationListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryRelationListResult::QueryRelationListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryRelationListResult::~QueryRelationListResult()
|
||||
{}
|
||||
|
||||
void QueryRelationListResult::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["PageNum"].isNull())
|
||||
data_.pageNum = std::stoi(dataNode["PageNum"].asString());
|
||||
if(!dataNode["PageSize"].isNull())
|
||||
data_.pageSize = std::stoi(dataNode["PageSize"].asString());
|
||||
if(!dataNode["TotalCount"].isNull())
|
||||
data_.totalCount = std::stoi(dataNode["TotalCount"].asString());
|
||||
auto allFinancialRelationInfoListNode = dataNode["FinancialRelationInfoList"]["FinancialRelationInfoListItem"];
|
||||
for (auto dataNodeFinancialRelationInfoListFinancialRelationInfoListItem : allFinancialRelationInfoListNode)
|
||||
{
|
||||
Data::FinancialRelationInfoListItem financialRelationInfoListItemObject;
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationId"].isNull())
|
||||
financialRelationInfoListItemObject.relationId = std::stol(dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationId"].asString());
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountType"].isNull())
|
||||
financialRelationInfoListItemObject.accountType = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountType"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountId"].isNull())
|
||||
financialRelationInfoListItemObject.accountId = std::stol(dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountId"].asString());
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountName"].isNull())
|
||||
financialRelationInfoListItemObject.accountName = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountName"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountNickName"].isNull())
|
||||
financialRelationInfoListItemObject.accountNickName = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["AccountNickName"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationType"].isNull())
|
||||
financialRelationInfoListItemObject.relationType = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["RelationType"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["State"].isNull())
|
||||
financialRelationInfoListItemObject.state = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["State"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["SetupTime"].isNull())
|
||||
financialRelationInfoListItemObject.setupTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["SetupTime"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["StartTime"].isNull())
|
||||
financialRelationInfoListItemObject.startTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["StartTime"].asString();
|
||||
if(!dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["EndTime"].isNull())
|
||||
financialRelationInfoListItemObject.endTime = dataNodeFinancialRelationInfoListFinancialRelationInfoListItem["EndTime"].asString();
|
||||
data_.financialRelationInfoList.push_back(financialRelationInfoListItemObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryRelationListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryRelationListResult::Data QueryRelationListResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryRelationListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryRelationListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -82,17 +82,6 @@ void QuerySavingsPlansDeductLogRequest::setInstanceId(const std::string& instanc
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansDeductLogRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansDeductLogRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int QuerySavingsPlansDeductLogRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -82,17 +82,6 @@ void QuerySavingsPlansInstanceRequest::setInstanceId(const std::string& instance
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string QuerySavingsPlansInstanceRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void QuerySavingsPlansInstanceRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
int QuerySavingsPlansInstanceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
|
||||
@@ -126,6 +126,17 @@ void QuerySettleBillRequest::setProductType(const std::string& productType)
|
||||
setParameter("ProductType", productType);
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getRecordID()const
|
||||
{
|
||||
return recordID_;
|
||||
}
|
||||
|
||||
void QuerySettleBillRequest::setRecordID(const std::string& recordID)
|
||||
{
|
||||
recordID_ = recordID;
|
||||
setParameter("RecordID", recordID);
|
||||
}
|
||||
|
||||
std::string QuerySettleBillRequest::getNextToken()const
|
||||
{
|
||||
return nextToken_;
|
||||
|
||||
69
bssopenapi/src/model/TagResourcesRequest.cc
Normal file
69
bssopenapi/src/model/TagResourcesRequest.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/TagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::TagResourcesRequest;
|
||||
|
||||
TagResourcesRequest::TagResourcesRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "TagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
TagResourcesRequest::~TagResourcesRequest()
|
||||
{}
|
||||
|
||||
std::vector<std::string> TagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<TagResourcesRequest::Tag> TagResourcesRequest::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setTag(const std::vector<Tag>& tag)
|
||||
{
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string TagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void TagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
72
bssopenapi/src/model/TagResourcesResult.cc
Normal file
72
bssopenapi/src/model/TagResourcesResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/TagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
TagResourcesResult::TagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TagResourcesResult::TagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TagResourcesResult::~TagResourcesResult()
|
||||
{}
|
||||
|
||||
void TagResourcesResult::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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string TagResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool TagResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string TagResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool TagResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
77
bssopenapi/src/model/UntagResourcesRequest.cc
Normal file
77
bssopenapi/src/model/UntagResourcesRequest.cc
Normal file
@@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/UntagResourcesRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::UntagResourcesRequest;
|
||||
|
||||
UntagResourcesRequest::UntagResourcesRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "UntagResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UntagResourcesRequest::~UntagResourcesRequest()
|
||||
{}
|
||||
|
||||
bool UntagResourcesRequest::getAll()const
|
||||
{
|
||||
return all_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setAll(bool all)
|
||||
{
|
||||
all_ = all;
|
||||
setParameter("All", all ? "true" : "false");
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getResourceId()const
|
||||
{
|
||||
return resourceId_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceId(const std::vector<std::string>& resourceId)
|
||||
{
|
||||
resourceId_ = resourceId;
|
||||
for(int dep1 = 0; dep1!= resourceId.size(); dep1++) {
|
||||
setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<std::string> UntagResourcesRequest::getTagKey()const
|
||||
{
|
||||
return tagKey_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setTagKey(const std::vector<std::string>& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
for(int dep1 = 0; dep1!= tagKey.size(); dep1++) {
|
||||
setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string UntagResourcesRequest::getResourceType()const
|
||||
{
|
||||
return resourceType_;
|
||||
}
|
||||
|
||||
void UntagResourcesRequest::setResourceType(const std::string& resourceType)
|
||||
{
|
||||
resourceType_ = resourceType;
|
||||
setParameter("ResourceType", resourceType);
|
||||
}
|
||||
|
||||
72
bssopenapi/src/model/UntagResourcesResult.cc
Normal file
72
bssopenapi/src/model/UntagResourcesResult.cc
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/UntagResourcesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UntagResourcesResult::UntagResourcesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UntagResourcesResult::~UntagResourcesResult()
|
||||
{}
|
||||
|
||||
void UntagResourcesResult::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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string UntagResourcesResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
bool UntagResourcesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string UntagResourcesResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool UntagResourcesResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user