Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c750a10f5 | ||
|
|
2f32d7f5fd | ||
|
|
2cf121437d | ||
|
|
dd14b71d04 | ||
|
|
85d11c3bba | ||
|
|
bba9532ea7 | ||
|
|
c9f3f1182e | ||
|
|
63f8b47b8d | ||
|
|
e3c9867b49 | ||
|
|
cef7d9d526 | ||
|
|
501fec720e | ||
|
|
031a93374f | ||
|
|
8fe6dfd981 | ||
|
|
0dc8a66e75 | ||
|
|
dcd246f4ed | ||
|
|
82ba7e55bb |
64
CHANGELOG
64
CHANGELOG
@@ -1,3 +1,67 @@
|
||||
2019-10-25 Version 1.36.159
|
||||
- Add DescribeDBClusterPerformance, DescribeDBNodePerformance for performance.
|
||||
|
||||
2019-10-24 Version 1.36.158
|
||||
- Generated 2017-12-14 for `BssOpenApi`.
|
||||
|
||||
2019-10-23 Version 1.36.157
|
||||
- Add a new api named SubmitDynamicImageJob capture a certain part of the video as a dynamic image.
|
||||
- Add a new api named SubmitWorkflowJob to initiate the VoD workflow processing for audio and video.
|
||||
- Add a new field AuditStatus in the structure ImageInfo to GetImageInfo api response, which is used to identify the audit status of the image.
|
||||
- Modify the data type of return field StorageLocation to String.
|
||||
- Add a new field named MediaType to SubmitAIMediaAuditJob api request.
|
||||
|
||||
2019-10-23 Version 1.36.156
|
||||
- Add a new api named SubmitDynamicImageJob capture a certain part of the video as a dynamic image.
|
||||
- Add a new api named SubmitWorkflowJob to initiate the VoD workflow processing for audio and video.
|
||||
- Add a new field AuditStatus in the structure ImageInfo to GetImageInfo api response, which is used to identify the audit status of the image.
|
||||
- Modify the data type of return field StorageLocation to String.
|
||||
- Add a new field named MediaType to SubmitAIMediaAuditJob api request.
|
||||
|
||||
2019-10-23 Version 1.36.155
|
||||
- Add a new api named SubmitDynamicImageJob capture a certain part of the video as a dynamic image.
|
||||
- Add a new api named SubmitWorkflowJob to initiate the VoD workflow processing for audio and video.
|
||||
- Add a new field AuditStatus in the structure ImageInfo to GetImageInfo api response, which is used to identify the audit status of the image.
|
||||
- Modify the data type of return field StorageLocation to String.
|
||||
- Add a new field named MediaType to SubmitAIMediaAuditJob api request.
|
||||
|
||||
2019-10-22 Version 1.36.154
|
||||
- RunInstances support AutoSnapshotPolicyId.
|
||||
|
||||
2019-10-22 Version 1.36.153
|
||||
- Supported ExternalId IMM.
|
||||
|
||||
2019-10-21 Version 1.36.152
|
||||
- Release first version.
|
||||
|
||||
2019-10-18 Version 1.36.151
|
||||
- Generated 2019-09-10 for `DnsKnocker`.
|
||||
|
||||
2019-10-16 Version 1.36.150
|
||||
- Add ListTagResources OpenApi.
|
||||
- Add TagResources OpenApi.
|
||||
- Add UntagResources OpenApi.
|
||||
- Add ModifyDBInstanceAutoUpgradeMinorVersion OpenApi.
|
||||
|
||||
2019-10-14 Version 1.36.149
|
||||
- Support continuous pushing.
|
||||
|
||||
2019-10-09 Version 1.36.148
|
||||
- Add VideoCancelScan Api.
|
||||
|
||||
2019-10-09 Version 1.36.147
|
||||
- Support API RecognizeImageColor.
|
||||
- Support API DetectImageElements.
|
||||
- Support API RecolorImage.
|
||||
- Support API SegmentImage.
|
||||
- Support API ChangeImageSize.
|
||||
- Support API ExtendImageStyle.
|
||||
- Support API RecognizeImageStyle.
|
||||
- Support API MakeSuperResolution.
|
||||
|
||||
2019-10-08 Version 1.36.146
|
||||
- Supported Grab Frame IMM.
|
||||
|
||||
2019-10-08 Version 1.36.145
|
||||
- Supported API MassPush for Push Message or Notice.
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ set(bssopenapi_public_header
|
||||
include/alibabacloud/bssopenapi/BssOpenApiExport.h )
|
||||
|
||||
set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/AllocateCostUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ApplyInvoiceResult.h
|
||||
include/alibabacloud/bssopenapi/model/CancelOrderRequest.h
|
||||
@@ -33,16 +33,16 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/ConvertChargeTypeResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateAgAccountRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateAgAccountResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResellerUserQuotaResult.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageRequest.h
|
||||
include/alibabacloud/bssopenapi/model/CreateResourcePackageResult.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DeleteCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribePricingModuleRequest.h
|
||||
include/alibabacloud/bssopenapi/model/DescribePricingModuleResult.h
|
||||
include/alibabacloud/bssopenapi/model/DescribeResourcePackageProductRequest.h
|
||||
@@ -61,8 +61,8 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/GetResourcePackagePriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/GetSubscriptionPriceResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/ModifyInstanceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryAccountBalanceRequest.h
|
||||
@@ -77,14 +77,14 @@ set(bssopenapi_public_header_model
|
||||
include/alibabacloud/bssopenapi/model/QueryBillOverviewResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCashCouponsResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryCustomerAddressListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryEvaluateListResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitResourceRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryFinanceUnitResourceResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillRequest.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceBillResult.h
|
||||
include/alibabacloud/bssopenapi/model/QueryInstanceGaapCostRequest.h
|
||||
@@ -132,8 +132,8 @@ set(bssopenapi_public_header_model
|
||||
|
||||
set(bssopenapi_src
|
||||
src/BssOpenApiClient.cc
|
||||
src/model/AllocateFinanceUnitResourceRequest.cc
|
||||
src/model/AllocateFinanceUnitResourceResult.cc
|
||||
src/model/AllocateCostUnitResourceRequest.cc
|
||||
src/model/AllocateCostUnitResourceResult.cc
|
||||
src/model/ApplyInvoiceRequest.cc
|
||||
src/model/ApplyInvoiceResult.cc
|
||||
src/model/CancelOrderRequest.cc
|
||||
@@ -144,16 +144,16 @@ set(bssopenapi_src
|
||||
src/model/ConvertChargeTypeResult.cc
|
||||
src/model/CreateAgAccountRequest.cc
|
||||
src/model/CreateAgAccountResult.cc
|
||||
src/model/CreateFinanceUnitRequest.cc
|
||||
src/model/CreateFinanceUnitResult.cc
|
||||
src/model/CreateCostUnitRequest.cc
|
||||
src/model/CreateCostUnitResult.cc
|
||||
src/model/CreateInstanceRequest.cc
|
||||
src/model/CreateInstanceResult.cc
|
||||
src/model/CreateResellerUserQuotaRequest.cc
|
||||
src/model/CreateResellerUserQuotaResult.cc
|
||||
src/model/CreateResourcePackageRequest.cc
|
||||
src/model/CreateResourcePackageResult.cc
|
||||
src/model/DeleteFinanceUnitRequest.cc
|
||||
src/model/DeleteFinanceUnitResult.cc
|
||||
src/model/DeleteCostUnitRequest.cc
|
||||
src/model/DeleteCostUnitResult.cc
|
||||
src/model/DescribePricingModuleRequest.cc
|
||||
src/model/DescribePricingModuleResult.cc
|
||||
src/model/DescribeResourcePackageProductRequest.cc
|
||||
@@ -172,8 +172,8 @@ set(bssopenapi_src
|
||||
src/model/GetResourcePackagePriceResult.cc
|
||||
src/model/GetSubscriptionPriceRequest.cc
|
||||
src/model/GetSubscriptionPriceResult.cc
|
||||
src/model/ModifyFinanceUnitRequest.cc
|
||||
src/model/ModifyFinanceUnitResult.cc
|
||||
src/model/ModifyCostUnitRequest.cc
|
||||
src/model/ModifyCostUnitResult.cc
|
||||
src/model/ModifyInstanceRequest.cc
|
||||
src/model/ModifyInstanceResult.cc
|
||||
src/model/QueryAccountBalanceRequest.cc
|
||||
@@ -188,14 +188,14 @@ set(bssopenapi_src
|
||||
src/model/QueryBillOverviewResult.cc
|
||||
src/model/QueryCashCouponsRequest.cc
|
||||
src/model/QueryCashCouponsResult.cc
|
||||
src/model/QueryCostUnitRequest.cc
|
||||
src/model/QueryCostUnitResult.cc
|
||||
src/model/QueryCostUnitResourceRequest.cc
|
||||
src/model/QueryCostUnitResourceResult.cc
|
||||
src/model/QueryCustomerAddressListRequest.cc
|
||||
src/model/QueryCustomerAddressListResult.cc
|
||||
src/model/QueryEvaluateListRequest.cc
|
||||
src/model/QueryEvaluateListResult.cc
|
||||
src/model/QueryFinanceUnitRequest.cc
|
||||
src/model/QueryFinanceUnitResult.cc
|
||||
src/model/QueryFinanceUnitResourceRequest.cc
|
||||
src/model/QueryFinanceUnitResourceResult.cc
|
||||
src/model/QueryInstanceBillRequest.cc
|
||||
src/model/QueryInstanceBillResult.cc
|
||||
src/model/QueryInstanceGaapCostRequest.cc
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "BssOpenApiExport.h"
|
||||
#include "model/AllocateFinanceUnitResourceRequest.h"
|
||||
#include "model/AllocateFinanceUnitResourceResult.h"
|
||||
#include "model/AllocateCostUnitResourceRequest.h"
|
||||
#include "model/AllocateCostUnitResourceResult.h"
|
||||
#include "model/ApplyInvoiceRequest.h"
|
||||
#include "model/ApplyInvoiceResult.h"
|
||||
#include "model/CancelOrderRequest.h"
|
||||
@@ -34,16 +34,16 @@
|
||||
#include "model/ConvertChargeTypeResult.h"
|
||||
#include "model/CreateAgAccountRequest.h"
|
||||
#include "model/CreateAgAccountResult.h"
|
||||
#include "model/CreateFinanceUnitRequest.h"
|
||||
#include "model/CreateFinanceUnitResult.h"
|
||||
#include "model/CreateCostUnitRequest.h"
|
||||
#include "model/CreateCostUnitResult.h"
|
||||
#include "model/CreateInstanceRequest.h"
|
||||
#include "model/CreateInstanceResult.h"
|
||||
#include "model/CreateResellerUserQuotaRequest.h"
|
||||
#include "model/CreateResellerUserQuotaResult.h"
|
||||
#include "model/CreateResourcePackageRequest.h"
|
||||
#include "model/CreateResourcePackageResult.h"
|
||||
#include "model/DeleteFinanceUnitRequest.h"
|
||||
#include "model/DeleteFinanceUnitResult.h"
|
||||
#include "model/DeleteCostUnitRequest.h"
|
||||
#include "model/DeleteCostUnitResult.h"
|
||||
#include "model/DescribePricingModuleRequest.h"
|
||||
#include "model/DescribePricingModuleResult.h"
|
||||
#include "model/DescribeResourcePackageProductRequest.h"
|
||||
@@ -62,8 +62,8 @@
|
||||
#include "model/GetResourcePackagePriceResult.h"
|
||||
#include "model/GetSubscriptionPriceRequest.h"
|
||||
#include "model/GetSubscriptionPriceResult.h"
|
||||
#include "model/ModifyFinanceUnitRequest.h"
|
||||
#include "model/ModifyFinanceUnitResult.h"
|
||||
#include "model/ModifyCostUnitRequest.h"
|
||||
#include "model/ModifyCostUnitResult.h"
|
||||
#include "model/ModifyInstanceRequest.h"
|
||||
#include "model/ModifyInstanceResult.h"
|
||||
#include "model/QueryAccountBalanceRequest.h"
|
||||
@@ -78,14 +78,14 @@
|
||||
#include "model/QueryBillOverviewResult.h"
|
||||
#include "model/QueryCashCouponsRequest.h"
|
||||
#include "model/QueryCashCouponsResult.h"
|
||||
#include "model/QueryCostUnitRequest.h"
|
||||
#include "model/QueryCostUnitResult.h"
|
||||
#include "model/QueryCostUnitResourceRequest.h"
|
||||
#include "model/QueryCostUnitResourceResult.h"
|
||||
#include "model/QueryCustomerAddressListRequest.h"
|
||||
#include "model/QueryCustomerAddressListResult.h"
|
||||
#include "model/QueryEvaluateListRequest.h"
|
||||
#include "model/QueryEvaluateListResult.h"
|
||||
#include "model/QueryFinanceUnitRequest.h"
|
||||
#include "model/QueryFinanceUnitResult.h"
|
||||
#include "model/QueryFinanceUnitResourceRequest.h"
|
||||
#include "model/QueryFinanceUnitResourceResult.h"
|
||||
#include "model/QueryInstanceBillRequest.h"
|
||||
#include "model/QueryInstanceBillResult.h"
|
||||
#include "model/QueryInstanceGaapCostRequest.h"
|
||||
@@ -139,9 +139,9 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT BssOpenApiClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::AllocateFinanceUnitResourceResult> AllocateFinanceUnitResourceOutcome;
|
||||
typedef std::future<AllocateFinanceUnitResourceOutcome> AllocateFinanceUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::AllocateFinanceUnitResourceRequest&, const AllocateFinanceUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateFinanceUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::AllocateCostUnitResourceResult> AllocateCostUnitResourceOutcome;
|
||||
typedef std::future<AllocateCostUnitResourceOutcome> AllocateCostUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::AllocateCostUnitResourceRequest&, const AllocateCostUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> AllocateCostUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ApplyInvoiceResult> ApplyInvoiceOutcome;
|
||||
typedef std::future<ApplyInvoiceOutcome> ApplyInvoiceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ApplyInvoiceRequest&, const ApplyInvoiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyInvoiceAsyncHandler;
|
||||
@@ -157,9 +157,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateAgAccountResult> CreateAgAccountOutcome;
|
||||
typedef std::future<CreateAgAccountOutcome> CreateAgAccountOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateAgAccountRequest&, const CreateAgAccountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAgAccountAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFinanceUnitResult> CreateFinanceUnitOutcome;
|
||||
typedef std::future<CreateFinanceUnitOutcome> CreateFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateFinanceUnitRequest&, const CreateFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCostUnitResult> CreateCostUnitOutcome;
|
||||
typedef std::future<CreateCostUnitOutcome> CreateCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateCostUnitRequest&, const CreateCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateInstanceResult> CreateInstanceOutcome;
|
||||
typedef std::future<CreateInstanceOutcome> CreateInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateInstanceRequest&, const CreateInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateInstanceAsyncHandler;
|
||||
@@ -169,9 +169,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateResourcePackageResult> CreateResourcePackageOutcome;
|
||||
typedef std::future<CreateResourcePackageOutcome> CreateResourcePackageOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::CreateResourcePackageRequest&, const CreateResourcePackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourcePackageAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFinanceUnitResult> DeleteFinanceUnitOutcome;
|
||||
typedef std::future<DeleteFinanceUnitOutcome> DeleteFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::DeleteFinanceUnitRequest&, const DeleteFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFinanceUnitAsyncHandler;
|
||||
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::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;
|
||||
@@ -199,9 +199,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::GetSubscriptionPriceResult> GetSubscriptionPriceOutcome;
|
||||
typedef std::future<GetSubscriptionPriceOutcome> GetSubscriptionPriceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::GetSubscriptionPriceRequest&, const GetSubscriptionPriceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetSubscriptionPriceAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyFinanceUnitResult> ModifyFinanceUnitOutcome;
|
||||
typedef std::future<ModifyFinanceUnitOutcome> ModifyFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyFinanceUnitRequest&, const ModifyFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyCostUnitResult> ModifyCostUnitOutcome;
|
||||
typedef std::future<ModifyCostUnitOutcome> ModifyCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyCostUnitRequest&, const ModifyCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyInstanceResult> ModifyInstanceOutcome;
|
||||
typedef std::future<ModifyInstanceOutcome> ModifyInstanceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::ModifyInstanceRequest&, const ModifyInstanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyInstanceAsyncHandler;
|
||||
@@ -223,18 +223,18 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryCashCouponsResult> QueryCashCouponsOutcome;
|
||||
typedef std::future<QueryCashCouponsOutcome> QueryCashCouponsOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCashCouponsRequest&, const QueryCashCouponsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCashCouponsAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCostUnitResult> QueryCostUnitOutcome;
|
||||
typedef std::future<QueryCostUnitOutcome> QueryCostUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCostUnitRequest&, const QueryCostUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCostUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCostUnitResourceResult> QueryCostUnitResourceOutcome;
|
||||
typedef std::future<QueryCostUnitResourceOutcome> QueryCostUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCostUnitResourceRequest&, const QueryCostUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCostUnitResourceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryCustomerAddressListResult> QueryCustomerAddressListOutcome;
|
||||
typedef std::future<QueryCustomerAddressListOutcome> QueryCustomerAddressListOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryCustomerAddressListRequest&, const QueryCustomerAddressListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomerAddressListAsyncHandler;
|
||||
typedef Outcome<Error, Model::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::QueryFinanceUnitResult> QueryFinanceUnitOutcome;
|
||||
typedef std::future<QueryFinanceUnitOutcome> QueryFinanceUnitOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryFinanceUnitRequest&, const QueryFinanceUnitOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryFinanceUnitAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryFinanceUnitResourceResult> QueryFinanceUnitResourceOutcome;
|
||||
typedef std::future<QueryFinanceUnitResourceOutcome> QueryFinanceUnitResourceOutcomeCallable;
|
||||
typedef std::function<void(const BssOpenApiClient*, const Model::QueryFinanceUnitResourceRequest&, const QueryFinanceUnitResourceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryFinanceUnitResourceAsyncHandler;
|
||||
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;
|
||||
@@ -306,9 +306,9 @@ namespace AlibabaCloud
|
||||
BssOpenApiClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
BssOpenApiClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~BssOpenApiClient();
|
||||
AllocateFinanceUnitResourceOutcome allocateFinanceUnitResource(const Model::AllocateFinanceUnitResourceRequest &request)const;
|
||||
void allocateFinanceUnitResourceAsync(const Model::AllocateFinanceUnitResourceRequest& request, const AllocateFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocateFinanceUnitResourceOutcomeCallable allocateFinanceUnitResourceCallable(const Model::AllocateFinanceUnitResourceRequest& request) const;
|
||||
AllocateCostUnitResourceOutcome allocateCostUnitResource(const Model::AllocateCostUnitResourceRequest &request)const;
|
||||
void allocateCostUnitResourceAsync(const Model::AllocateCostUnitResourceRequest& request, const AllocateCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
AllocateCostUnitResourceOutcomeCallable allocateCostUnitResourceCallable(const Model::AllocateCostUnitResourceRequest& request) const;
|
||||
ApplyInvoiceOutcome applyInvoice(const Model::ApplyInvoiceRequest &request)const;
|
||||
void applyInvoiceAsync(const Model::ApplyInvoiceRequest& request, const ApplyInvoiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyInvoiceOutcomeCallable applyInvoiceCallable(const Model::ApplyInvoiceRequest& request) const;
|
||||
@@ -324,9 +324,9 @@ namespace AlibabaCloud
|
||||
CreateAgAccountOutcome createAgAccount(const Model::CreateAgAccountRequest &request)const;
|
||||
void createAgAccountAsync(const Model::CreateAgAccountRequest& request, const CreateAgAccountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAgAccountOutcomeCallable createAgAccountCallable(const Model::CreateAgAccountRequest& request) const;
|
||||
CreateFinanceUnitOutcome createFinanceUnit(const Model::CreateFinanceUnitRequest &request)const;
|
||||
void createFinanceUnitAsync(const Model::CreateFinanceUnitRequest& request, const CreateFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFinanceUnitOutcomeCallable createFinanceUnitCallable(const Model::CreateFinanceUnitRequest& request) const;
|
||||
CreateCostUnitOutcome createCostUnit(const Model::CreateCostUnitRequest &request)const;
|
||||
void createCostUnitAsync(const Model::CreateCostUnitRequest& request, const CreateCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCostUnitOutcomeCallable createCostUnitCallable(const Model::CreateCostUnitRequest& request) const;
|
||||
CreateInstanceOutcome createInstance(const Model::CreateInstanceRequest &request)const;
|
||||
void createInstanceAsync(const Model::CreateInstanceRequest& request, const CreateInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateInstanceOutcomeCallable createInstanceCallable(const Model::CreateInstanceRequest& request) const;
|
||||
@@ -336,9 +336,9 @@ namespace AlibabaCloud
|
||||
CreateResourcePackageOutcome createResourcePackage(const Model::CreateResourcePackageRequest &request)const;
|
||||
void createResourcePackageAsync(const Model::CreateResourcePackageRequest& request, const CreateResourcePackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourcePackageOutcomeCallable createResourcePackageCallable(const Model::CreateResourcePackageRequest& request) const;
|
||||
DeleteFinanceUnitOutcome deleteFinanceUnit(const Model::DeleteFinanceUnitRequest &request)const;
|
||||
void deleteFinanceUnitAsync(const Model::DeleteFinanceUnitRequest& request, const DeleteFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFinanceUnitOutcomeCallable deleteFinanceUnitCallable(const Model::DeleteFinanceUnitRequest& request) const;
|
||||
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;
|
||||
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;
|
||||
@@ -366,9 +366,9 @@ namespace AlibabaCloud
|
||||
GetSubscriptionPriceOutcome getSubscriptionPrice(const Model::GetSubscriptionPriceRequest &request)const;
|
||||
void getSubscriptionPriceAsync(const Model::GetSubscriptionPriceRequest& request, const GetSubscriptionPriceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetSubscriptionPriceOutcomeCallable getSubscriptionPriceCallable(const Model::GetSubscriptionPriceRequest& request) const;
|
||||
ModifyFinanceUnitOutcome modifyFinanceUnit(const Model::ModifyFinanceUnitRequest &request)const;
|
||||
void modifyFinanceUnitAsync(const Model::ModifyFinanceUnitRequest& request, const ModifyFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyFinanceUnitOutcomeCallable modifyFinanceUnitCallable(const Model::ModifyFinanceUnitRequest& request) const;
|
||||
ModifyCostUnitOutcome modifyCostUnit(const Model::ModifyCostUnitRequest &request)const;
|
||||
void modifyCostUnitAsync(const Model::ModifyCostUnitRequest& request, const ModifyCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyCostUnitOutcomeCallable modifyCostUnitCallable(const Model::ModifyCostUnitRequest& request) const;
|
||||
ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const;
|
||||
void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const;
|
||||
@@ -390,18 +390,18 @@ namespace AlibabaCloud
|
||||
QueryCashCouponsOutcome queryCashCoupons(const Model::QueryCashCouponsRequest &request)const;
|
||||
void queryCashCouponsAsync(const Model::QueryCashCouponsRequest& request, const QueryCashCouponsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCashCouponsOutcomeCallable queryCashCouponsCallable(const Model::QueryCashCouponsRequest& request) const;
|
||||
QueryCostUnitOutcome queryCostUnit(const Model::QueryCostUnitRequest &request)const;
|
||||
void queryCostUnitAsync(const Model::QueryCostUnitRequest& request, const QueryCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCostUnitOutcomeCallable queryCostUnitCallable(const Model::QueryCostUnitRequest& request) const;
|
||||
QueryCostUnitResourceOutcome queryCostUnitResource(const Model::QueryCostUnitResourceRequest &request)const;
|
||||
void queryCostUnitResourceAsync(const Model::QueryCostUnitResourceRequest& request, const QueryCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCostUnitResourceOutcomeCallable queryCostUnitResourceCallable(const Model::QueryCostUnitResourceRequest& request) const;
|
||||
QueryCustomerAddressListOutcome queryCustomerAddressList(const Model::QueryCustomerAddressListRequest &request)const;
|
||||
void queryCustomerAddressListAsync(const Model::QueryCustomerAddressListRequest& request, const QueryCustomerAddressListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCustomerAddressListOutcomeCallable queryCustomerAddressListCallable(const Model::QueryCustomerAddressListRequest& request) const;
|
||||
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;
|
||||
QueryFinanceUnitOutcome queryFinanceUnit(const Model::QueryFinanceUnitRequest &request)const;
|
||||
void queryFinanceUnitAsync(const Model::QueryFinanceUnitRequest& request, const QueryFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryFinanceUnitOutcomeCallable queryFinanceUnitCallable(const Model::QueryFinanceUnitRequest& request) const;
|
||||
QueryFinanceUnitResourceOutcome queryFinanceUnitResource(const Model::QueryFinanceUnitResourceRequest &request)const;
|
||||
void queryFinanceUnitResourceAsync(const Model::QueryFinanceUnitResourceRequest& request, const QueryFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryFinanceUnitResourceOutcomeCallable queryFinanceUnitResourceCallable(const Model::QueryFinanceUnitResourceRequest& 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;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,39 +28,39 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateFinanceUnitResourceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateCostUnitResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
struct ResourceInstanceList
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
};
|
||||
struct ResourceInstanceList
|
||||
{
|
||||
std::string resourceId;
|
||||
std::string commodityCode;
|
||||
long resourceUserId;
|
||||
};
|
||||
|
||||
public:
|
||||
AllocateFinanceUnitResourceRequest();
|
||||
~AllocateFinanceUnitResourceRequest();
|
||||
AllocateCostUnitResourceRequest();
|
||||
~AllocateCostUnitResourceRequest();
|
||||
|
||||
std::vector<ResourceInstanceList> getResourceInstanceList()const;
|
||||
void setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList);
|
||||
long getFromUnitId()const;
|
||||
void setFromUnitId(long fromUnitId);
|
||||
long getToUnitId()const;
|
||||
void setToUnitId(long toUnitId);
|
||||
long getFromUnitUserId()const;
|
||||
void setFromUnitUserId(long fromUnitUserId);
|
||||
long getToUnitUserId()const;
|
||||
void setToUnitUserId(long toUnitUserId);
|
||||
std::vector<ResourceInstanceList> getResourceInstanceList()const;
|
||||
void setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList);
|
||||
long getFromUnitId()const;
|
||||
void setFromUnitId(long fromUnitId);
|
||||
long getToUnitId()const;
|
||||
void setToUnitId(long toUnitId);
|
||||
long getFromUnitUserId()const;
|
||||
void setFromUnitUserId(long fromUnitUserId);
|
||||
long getToUnitUserId()const;
|
||||
void setToUnitUserId(long toUnitUserId);
|
||||
|
||||
private:
|
||||
std::vector<ResourceInstanceList> resourceInstanceList_;
|
||||
long fromUnitId_;
|
||||
long toUnitId_;
|
||||
long fromUnitUserId_;
|
||||
long toUnitUserId_;
|
||||
std::vector<ResourceInstanceList> resourceInstanceList_;
|
||||
long fromUnitId_;
|
||||
long toUnitId_;
|
||||
long fromUnitUserId_;
|
||||
long toUnitUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateFinanceUnitResourceResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT AllocateCostUnitResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
@@ -40,9 +40,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
AllocateFinanceUnitResourceResult();
|
||||
explicit AllocateFinanceUnitResourceResult(const std::string &payload);
|
||||
~AllocateFinanceUnitResourceResult();
|
||||
AllocateCostUnitResourceResult();
|
||||
explicit AllocateCostUnitResourceResult(const std::string &payload);
|
||||
~AllocateCostUnitResourceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATEFINANCEUNITRESOURCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_ALLOCATECOSTUNITRESOURCERESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string unitName;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
};
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string unitName;
|
||||
long parentUnitId;
|
||||
long ownerUid;
|
||||
};
|
||||
|
||||
public:
|
||||
CreateFinanceUnitRequest();
|
||||
~CreateFinanceUnitRequest();
|
||||
CreateCostUnitRequest();
|
||||
~CreateCostUnitRequest();
|
||||
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
|
||||
private:
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,25 +29,25 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT CreateCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinanceUnitDtoListItem
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
std::string unitName;
|
||||
};
|
||||
std::vector<FinanceUnitDtoListItem> financeUnitDtoList;
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
};
|
||||
|
||||
|
||||
CreateFinanceUnitResult();
|
||||
explicit CreateFinanceUnitResult(const std::string &payload);
|
||||
~CreateFinanceUnitResult();
|
||||
CreateCostUnitResult();
|
||||
explicit CreateCostUnitResult(const std::string &payload);
|
||||
~CreateCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -65,4 +65,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATEFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_CREATECOSTUNITRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,24 +28,24 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteFinanceUnitRequest();
|
||||
~DeleteFinanceUnitRequest();
|
||||
DeleteCostUnitRequest();
|
||||
~DeleteCostUnitRequest();
|
||||
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
|
||||
private:
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT DeleteCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
@@ -40,9 +40,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
DeleteFinanceUnitResult();
|
||||
explicit DeleteFinanceUnitResult(const std::string &payload);
|
||||
~DeleteFinanceUnitResult();
|
||||
DeleteCostUnitResult();
|
||||
explicit DeleteCostUnitResult(const std::string &payload);
|
||||
~DeleteCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETEFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_DELETECOSTUNITRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string unitName;
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
};
|
||||
struct UnitEntityList
|
||||
{
|
||||
std::string newUnitName;
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
};
|
||||
|
||||
public:
|
||||
ModifyFinanceUnitRequest();
|
||||
~ModifyFinanceUnitRequest();
|
||||
ModifyCostUnitRequest();
|
||||
~ModifyCostUnitRequest();
|
||||
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
std::vector<UnitEntityList> getUnitEntityList()const;
|
||||
void setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList);
|
||||
|
||||
private:
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
std::vector<UnitEntityList> unitEntityList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,7 +29,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT ModifyCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct DataItem
|
||||
@@ -40,9 +40,9 @@ namespace AlibabaCloud
|
||||
};
|
||||
|
||||
|
||||
ModifyFinanceUnitResult();
|
||||
explicit ModifyFinanceUnitResult(const std::string &payload);
|
||||
~ModifyFinanceUnitResult();
|
||||
ModifyCostUnitResult();
|
||||
explicit ModifyCostUnitResult(const std::string &payload);
|
||||
~ModifyCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<DataItem> getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -60,4 +60,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_MODIFYCOSTUNITRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCEREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,30 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitResourceRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryFinanceUnitResourceRequest();
|
||||
~QueryFinanceUnitResourceRequest();
|
||||
QueryCostUnitRequest();
|
||||
~QueryCostUnitRequest();
|
||||
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
long getParentUnitId()const;
|
||||
void setParentUnitId(long parentUnitId);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
|
||||
private:
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
long parentUnitId_;
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long ownerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCEREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,30 +28,30 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResourceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
QueryFinanceUnitRequest();
|
||||
~QueryFinanceUnitRequest();
|
||||
QueryCostUnitResourceRequest();
|
||||
~QueryCostUnitResourceRequest();
|
||||
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
int getPageNum()const;
|
||||
void setPageNum(int pageNum);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getUnitId()const;
|
||||
void setUnitId(long unitId);
|
||||
long getOwnerUid()const;
|
||||
void setOwnerUid(long ownerUid);
|
||||
|
||||
private:
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
int pageNum_;
|
||||
int pageSize_;
|
||||
long unitId_;
|
||||
long ownerUid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCERESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCERESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,19 +29,19 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitResourceResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResourceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinanceUnit
|
||||
struct CostUnit
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
long parentUnitId;
|
||||
std::string unitName;
|
||||
};
|
||||
struct FinanceUnitStatisInfo
|
||||
struct CostUnitStatisInfo
|
||||
{
|
||||
long subUnitCount;
|
||||
long totalResourceCount;
|
||||
@@ -70,15 +70,15 @@ namespace AlibabaCloud
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
FinanceUnit financeUnit;
|
||||
FinanceUnitStatisInfo financeUnitStatisInfo;
|
||||
CostUnit costUnit;
|
||||
std::vector<ResourceInstanceList> resourceInstanceDtoList;
|
||||
CostUnitStatisInfo costUnitStatisInfo;
|
||||
};
|
||||
|
||||
|
||||
QueryFinanceUnitResourceResult();
|
||||
explicit QueryFinanceUnitResourceResult(const std::string &payload);
|
||||
~QueryFinanceUnitResourceResult();
|
||||
QueryCostUnitResourceResult();
|
||||
explicit QueryCostUnitResourceResult(const std::string &payload);
|
||||
~QueryCostUnitResourceResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -96,4 +96,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESOURCERESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESOURCERESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESULT_H_
|
||||
#ifndef ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESULT_H_
|
||||
#define ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,12 +29,12 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryFinanceUnitResult : public ServiceResult
|
||||
class ALIBABACLOUD_BSSOPENAPI_EXPORT QueryCostUnitResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct FinanceUnitDtoListItem
|
||||
struct CostUnitDtoListItem
|
||||
{
|
||||
long unitId;
|
||||
long ownerUid;
|
||||
@@ -44,13 +44,13 @@ namespace AlibabaCloud
|
||||
int totalCount;
|
||||
int pageNum;
|
||||
int pageSize;
|
||||
std::vector<FinanceUnitDtoListItem> financeUnitDtoList;
|
||||
std::vector<CostUnitDtoListItem> costUnitDtoList;
|
||||
};
|
||||
|
||||
|
||||
QueryFinanceUnitResult();
|
||||
explicit QueryFinanceUnitResult(const std::string &payload);
|
||||
~QueryFinanceUnitResult();
|
||||
QueryCostUnitResult();
|
||||
explicit QueryCostUnitResult(const std::string &payload);
|
||||
~QueryCostUnitResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
@@ -68,4 +68,4 @@ namespace AlibabaCloud
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYFINANCEUNITRESULT_H_
|
||||
#endif // !ALIBABACLOUD_BSSOPENAPI_MODEL_QUERYCOSTUNITRESULT_H_
|
||||
@@ -51,36 +51,36 @@ BssOpenApiClient::BssOpenApiClient(const std::string & accessKeyId, const std::s
|
||||
BssOpenApiClient::~BssOpenApiClient()
|
||||
{}
|
||||
|
||||
BssOpenApiClient::AllocateFinanceUnitResourceOutcome BssOpenApiClient::allocateFinanceUnitResource(const AllocateFinanceUnitResourceRequest &request) const
|
||||
BssOpenApiClient::AllocateCostUnitResourceOutcome BssOpenApiClient::allocateCostUnitResource(const AllocateCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return AllocateFinanceUnitResourceOutcome(endpointOutcome.error());
|
||||
return AllocateCostUnitResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return AllocateFinanceUnitResourceOutcome(AllocateFinanceUnitResourceResult(outcome.result()));
|
||||
return AllocateCostUnitResourceOutcome(AllocateCostUnitResourceResult(outcome.result()));
|
||||
else
|
||||
return AllocateFinanceUnitResourceOutcome(outcome.error());
|
||||
return AllocateCostUnitResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::allocateFinanceUnitResourceAsync(const AllocateFinanceUnitResourceRequest& request, const AllocateFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::allocateCostUnitResourceAsync(const AllocateCostUnitResourceRequest& request, const AllocateCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, allocateFinanceUnitResource(request), context);
|
||||
handler(this, request, allocateCostUnitResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::AllocateFinanceUnitResourceOutcomeCallable BssOpenApiClient::allocateFinanceUnitResourceCallable(const AllocateFinanceUnitResourceRequest &request) const
|
||||
BssOpenApiClient::AllocateCostUnitResourceOutcomeCallable BssOpenApiClient::allocateCostUnitResourceCallable(const AllocateCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<AllocateFinanceUnitResourceOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<AllocateCostUnitResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->allocateFinanceUnitResource(request);
|
||||
return this->allocateCostUnitResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -267,36 +267,36 @@ BssOpenApiClient::CreateAgAccountOutcomeCallable BssOpenApiClient::createAgAccou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateFinanceUnitOutcome BssOpenApiClient::createFinanceUnit(const CreateFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::CreateCostUnitOutcome BssOpenApiClient::createCostUnit(const CreateCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFinanceUnitOutcome(endpointOutcome.error());
|
||||
return CreateCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFinanceUnitOutcome(CreateFinanceUnitResult(outcome.result()));
|
||||
return CreateCostUnitOutcome(CreateCostUnitResult(outcome.result()));
|
||||
else
|
||||
return CreateFinanceUnitOutcome(outcome.error());
|
||||
return CreateCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::createFinanceUnitAsync(const CreateFinanceUnitRequest& request, const CreateFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::createCostUnitAsync(const CreateCostUnitRequest& request, const CreateCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFinanceUnit(request), context);
|
||||
handler(this, request, createCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::CreateFinanceUnitOutcomeCallable BssOpenApiClient::createFinanceUnitCallable(const CreateFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::CreateCostUnitOutcomeCallable BssOpenApiClient::createCostUnitCallable(const CreateCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFinanceUnitOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<CreateCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFinanceUnit(request);
|
||||
return this->createCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -411,36 +411,36 @@ BssOpenApiClient::CreateResourcePackageOutcomeCallable BssOpenApiClient::createR
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::DeleteFinanceUnitOutcome BssOpenApiClient::deleteFinanceUnit(const DeleteFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::DeleteCostUnitOutcome BssOpenApiClient::deleteCostUnit(const DeleteCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFinanceUnitOutcome(endpointOutcome.error());
|
||||
return DeleteCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFinanceUnitOutcome(DeleteFinanceUnitResult(outcome.result()));
|
||||
return DeleteCostUnitOutcome(DeleteCostUnitResult(outcome.result()));
|
||||
else
|
||||
return DeleteFinanceUnitOutcome(outcome.error());
|
||||
return DeleteCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::deleteFinanceUnitAsync(const DeleteFinanceUnitRequest& request, const DeleteFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::deleteCostUnitAsync(const DeleteCostUnitRequest& request, const DeleteCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFinanceUnit(request), context);
|
||||
handler(this, request, deleteCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::DeleteFinanceUnitOutcomeCallable BssOpenApiClient::deleteFinanceUnitCallable(const DeleteFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::DeleteCostUnitOutcomeCallable BssOpenApiClient::deleteCostUnitCallable(const DeleteCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFinanceUnitOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<DeleteCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFinanceUnit(request);
|
||||
return this->deleteCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -771,36 +771,36 @@ BssOpenApiClient::GetSubscriptionPriceOutcomeCallable BssOpenApiClient::getSubsc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::ModifyFinanceUnitOutcome BssOpenApiClient::modifyFinanceUnit(const ModifyFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::ModifyCostUnitOutcome BssOpenApiClient::modifyCostUnit(const ModifyCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyFinanceUnitOutcome(endpointOutcome.error());
|
||||
return ModifyCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyFinanceUnitOutcome(ModifyFinanceUnitResult(outcome.result()));
|
||||
return ModifyCostUnitOutcome(ModifyCostUnitResult(outcome.result()));
|
||||
else
|
||||
return ModifyFinanceUnitOutcome(outcome.error());
|
||||
return ModifyCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::modifyFinanceUnitAsync(const ModifyFinanceUnitRequest& request, const ModifyFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
void BssOpenApiClient::modifyCostUnitAsync(const ModifyCostUnitRequest& request, const ModifyCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyFinanceUnit(request), context);
|
||||
handler(this, request, modifyCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::ModifyFinanceUnitOutcomeCallable BssOpenApiClient::modifyFinanceUnitCallable(const ModifyFinanceUnitRequest &request) const
|
||||
BssOpenApiClient::ModifyCostUnitOutcomeCallable BssOpenApiClient::modifyCostUnitCallable(const ModifyCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyFinanceUnitOutcome()>>(
|
||||
auto task = std::make_shared<std::packaged_task<ModifyCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyFinanceUnit(request);
|
||||
return this->modifyCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
@@ -1059,6 +1059,78 @@ BssOpenApiClient::QueryCashCouponsOutcomeCallable BssOpenApiClient::queryCashCou
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitOutcome BssOpenApiClient::queryCostUnit(const QueryCostUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCostUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCostUnitOutcome(QueryCostUnitResult(outcome.result()));
|
||||
else
|
||||
return QueryCostUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryCostUnitAsync(const QueryCostUnitRequest& request, const QueryCostUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCostUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitOutcomeCallable BssOpenApiClient::queryCostUnitCallable(const QueryCostUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCostUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCostUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitResourceOutcome BssOpenApiClient::queryCostUnitResource(const QueryCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryCostUnitResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryCostUnitResourceOutcome(QueryCostUnitResourceResult(outcome.result()));
|
||||
else
|
||||
return QueryCostUnitResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryCostUnitResourceAsync(const QueryCostUnitResourceRequest& request, const QueryCostUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryCostUnitResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCostUnitResourceOutcomeCallable BssOpenApiClient::queryCostUnitResourceCallable(const QueryCostUnitResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryCostUnitResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryCostUnitResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryCustomerAddressListOutcome BssOpenApiClient::queryCustomerAddressList(const QueryCustomerAddressListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,78 +1203,6 @@ BssOpenApiClient::QueryEvaluateListOutcomeCallable BssOpenApiClient::queryEvalua
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitOutcome BssOpenApiClient::queryFinanceUnit(const QueryFinanceUnitRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryFinanceUnitOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryFinanceUnitOutcome(QueryFinanceUnitResult(outcome.result()));
|
||||
else
|
||||
return QueryFinanceUnitOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryFinanceUnitAsync(const QueryFinanceUnitRequest& request, const QueryFinanceUnitAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryFinanceUnit(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitOutcomeCallable BssOpenApiClient::queryFinanceUnitCallable(const QueryFinanceUnitRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryFinanceUnitOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryFinanceUnit(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitResourceOutcome BssOpenApiClient::queryFinanceUnitResource(const QueryFinanceUnitResourceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryFinanceUnitResourceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryFinanceUnitResourceOutcome(QueryFinanceUnitResourceResult(outcome.result()));
|
||||
else
|
||||
return QueryFinanceUnitResourceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void BssOpenApiClient::queryFinanceUnitResourceAsync(const QueryFinanceUnitResourceRequest& request, const QueryFinanceUnitResourceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryFinanceUnitResource(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryFinanceUnitResourceOutcomeCallable BssOpenApiClient::queryFinanceUnitResourceCallable(const QueryFinanceUnitResourceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryFinanceUnitResourceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryFinanceUnitResource(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
BssOpenApiClient::QueryInstanceBillOutcome BssOpenApiClient::queryInstanceBill(const QueryInstanceBillRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -14,76 +14,76 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/AllocateCostUnitResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::AllocateFinanceUnitResourceRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::AllocateCostUnitResourceRequest;
|
||||
|
||||
AllocateFinanceUnitResourceRequest::AllocateFinanceUnitResourceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "AllocateFinanceUnitResource")
|
||||
AllocateCostUnitResourceRequest::AllocateCostUnitResourceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "AllocateCostUnitResource")
|
||||
{}
|
||||
|
||||
AllocateFinanceUnitResourceRequest::~AllocateFinanceUnitResourceRequest()
|
||||
AllocateCostUnitResourceRequest::~AllocateCostUnitResourceRequest()
|
||||
{}
|
||||
|
||||
std::vector<AllocateFinanceUnitResourceRequest::ResourceInstanceList> AllocateFinanceUnitResourceRequest::getResourceInstanceList()const
|
||||
{
|
||||
return resourceInstanceList_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList)
|
||||
{
|
||||
resourceInstanceList_ = resourceInstanceList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= resourceInstanceList.size(); i++) {
|
||||
auto obj = resourceInstanceList.at(i);
|
||||
std::string str ="ResourceInstanceList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ResourceId", obj.resourceId);
|
||||
setCoreParameter(str + ".CommodityCode", obj.commodityCode);
|
||||
setCoreParameter(str + ".ResourceUserId", std::to_string(obj.resourceUserId));
|
||||
}
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getFromUnitId()const
|
||||
{
|
||||
return fromUnitId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setFromUnitId(long fromUnitId)
|
||||
{
|
||||
fromUnitId_ = fromUnitId;
|
||||
setCoreParameter("FromUnitId", std::to_string(fromUnitId));
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getToUnitId()const
|
||||
{
|
||||
return toUnitId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setToUnitId(long toUnitId)
|
||||
{
|
||||
toUnitId_ = toUnitId;
|
||||
setCoreParameter("ToUnitId", std::to_string(toUnitId));
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getFromUnitUserId()const
|
||||
{
|
||||
return fromUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setFromUnitUserId(long fromUnitUserId)
|
||||
{
|
||||
fromUnitUserId_ = fromUnitUserId;
|
||||
setCoreParameter("FromUnitUserId", std::to_string(fromUnitUserId));
|
||||
}
|
||||
|
||||
long AllocateFinanceUnitResourceRequest::getToUnitUserId()const
|
||||
{
|
||||
return toUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateFinanceUnitResourceRequest::setToUnitUserId(long toUnitUserId)
|
||||
{
|
||||
toUnitUserId_ = toUnitUserId;
|
||||
setCoreParameter("ToUnitUserId", std::to_string(toUnitUserId));
|
||||
}
|
||||
|
||||
std::vector<AllocateCostUnitResourceRequest::ResourceInstanceList> AllocateCostUnitResourceRequest::getResourceInstanceList()const
|
||||
{
|
||||
return resourceInstanceList_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setResourceInstanceList(const std::vector<ResourceInstanceList>& resourceInstanceList)
|
||||
{
|
||||
resourceInstanceList_ = resourceInstanceList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= resourceInstanceList.size(); i++) {
|
||||
auto obj = resourceInstanceList.at(i);
|
||||
std::string str ="ResourceInstanceList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".ResourceId", obj.resourceId);
|
||||
setCoreParameter(str + ".CommodityCode", obj.commodityCode);
|
||||
setCoreParameter(str + ".ResourceUserId", std::to_string(obj.resourceUserId));
|
||||
}
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getFromUnitId()const
|
||||
{
|
||||
return fromUnitId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setFromUnitId(long fromUnitId)
|
||||
{
|
||||
fromUnitId_ = fromUnitId;
|
||||
setCoreParameter("FromUnitId", std::to_string(fromUnitId));
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getToUnitId()const
|
||||
{
|
||||
return toUnitId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setToUnitId(long toUnitId)
|
||||
{
|
||||
toUnitId_ = toUnitId;
|
||||
setCoreParameter("ToUnitId", std::to_string(toUnitId));
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getFromUnitUserId()const
|
||||
{
|
||||
return fromUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setFromUnitUserId(long fromUnitUserId)
|
||||
{
|
||||
fromUnitUserId_ = fromUnitUserId;
|
||||
setCoreParameter("FromUnitUserId", std::to_string(fromUnitUserId));
|
||||
}
|
||||
|
||||
long AllocateCostUnitResourceRequest::getToUnitUserId()const
|
||||
{
|
||||
return toUnitUserId_;
|
||||
}
|
||||
|
||||
void AllocateCostUnitResourceRequest::setToUnitUserId(long toUnitUserId)
|
||||
{
|
||||
toUnitUserId_ = toUnitUserId;
|
||||
setCoreParameter("ToUnitUserId", std::to_string(toUnitUserId));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/AllocateFinanceUnitResourceResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/AllocateCostUnitResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
AllocateFinanceUnitResourceResult::AllocateFinanceUnitResourceResult() :
|
||||
AllocateCostUnitResourceResult::AllocateCostUnitResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AllocateFinanceUnitResourceResult::AllocateFinanceUnitResourceResult(const std::string &payload) :
|
||||
AllocateCostUnitResourceResult::AllocateCostUnitResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AllocateFinanceUnitResourceResult::~AllocateFinanceUnitResourceResult()
|
||||
AllocateCostUnitResourceResult::~AllocateCostUnitResourceResult()
|
||||
{}
|
||||
|
||||
void AllocateFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
void AllocateCostUnitResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -55,22 +55,22 @@ void AllocateFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string AllocateFinanceUnitResourceResult::getMessage()const
|
||||
std::string AllocateCostUnitResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
AllocateFinanceUnitResourceResult::Data AllocateFinanceUnitResourceResult::getData()const
|
||||
AllocateCostUnitResourceResult::Data AllocateCostUnitResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string AllocateFinanceUnitResourceResult::getCode()const
|
||||
std::string AllocateCostUnitResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool AllocateFinanceUnitResourceResult::getSuccess()const
|
||||
bool AllocateCostUnitResourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -14,32 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/CreateFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/CreateCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::CreateFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::CreateCostUnitRequest;
|
||||
|
||||
CreateFinanceUnitRequest::CreateFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateFinanceUnit")
|
||||
CreateCostUnitRequest::CreateCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "CreateCostUnit")
|
||||
{}
|
||||
|
||||
CreateFinanceUnitRequest::~CreateFinanceUnitRequest()
|
||||
CreateCostUnitRequest::~CreateCostUnitRequest()
|
||||
{}
|
||||
|
||||
std::vector<CreateFinanceUnitRequest::UnitEntityList> CreateFinanceUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
}
|
||||
|
||||
void CreateFinanceUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UnitName", obj.unitName);
|
||||
setCoreParameter(str + ".ParentUnitId", std::to_string(obj.parentUnitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<CreateCostUnitRequest::UnitEntityList> CreateCostUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
}
|
||||
|
||||
void CreateCostUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UnitName", obj.unitName);
|
||||
setCoreParameter(str + ".ParentUnitId", std::to_string(obj.parentUnitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
|
||||
85
bssopenapi/src/model/CreateCostUnitResult.cc
Normal file
85
bssopenapi/src/model/CreateCostUnitResult.cc
Normal file
@@ -0,0 +1,85 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/CreateCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
CreateCostUnitResult::CreateCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCostUnitResult::CreateCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCostUnitResult::~CreateCostUnitResult()
|
||||
{}
|
||||
|
||||
void CreateCostUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allCostUnitDtoListNode = dataNode["CostUnitDtoList"]["CostUnitDtoListItem"];
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateCostUnitResult::Data CreateCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/CreateFinanceUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
CreateFinanceUnitResult::CreateFinanceUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateFinanceUnitResult::CreateFinanceUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateFinanceUnitResult::~CreateFinanceUnitResult()
|
||||
{}
|
||||
|
||||
void CreateFinanceUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto allFinanceUnitDtoListNode = dataNode["FinanceUnitDtoList"]["FinanceUnitDtoListItem"];
|
||||
for (auto dataNodeFinanceUnitDtoListFinanceUnitDtoListItem : allFinanceUnitDtoListNode)
|
||||
{
|
||||
Data::FinanceUnitDtoListItem financeUnitDtoListItemObject;
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["OwnerUid"].isNull())
|
||||
financeUnitDtoListItemObject.ownerUid = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["ParentUnitId"].isNull())
|
||||
financeUnitDtoListItemObject.parentUnitId = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitId"].isNull())
|
||||
financeUnitDtoListItemObject.unitId = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitName"].isNull())
|
||||
financeUnitDtoListItemObject.unitName = dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitName"].asString();
|
||||
data_.financeUnitDtoList.push_back(financeUnitDtoListItemObject);
|
||||
}
|
||||
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 CreateFinanceUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
CreateFinanceUnitResult::Data CreateFinanceUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string CreateFinanceUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateFinanceUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -14,36 +14,36 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/DeleteFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/DeleteCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::DeleteFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::DeleteCostUnitRequest;
|
||||
|
||||
DeleteFinanceUnitRequest::DeleteFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DeleteFinanceUnit")
|
||||
DeleteCostUnitRequest::DeleteCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "DeleteCostUnit")
|
||||
{}
|
||||
|
||||
DeleteFinanceUnitRequest::~DeleteFinanceUnitRequest()
|
||||
DeleteCostUnitRequest::~DeleteCostUnitRequest()
|
||||
{}
|
||||
|
||||
long DeleteFinanceUnitRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void DeleteFinanceUnitRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long DeleteFinanceUnitRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void DeleteFinanceUnitRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
long DeleteCostUnitRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void DeleteCostUnitRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long DeleteCostUnitRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void DeleteCostUnitRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/DeleteFinanceUnitResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/DeleteCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
DeleteFinanceUnitResult::DeleteFinanceUnitResult() :
|
||||
DeleteCostUnitResult::DeleteCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFinanceUnitResult::DeleteFinanceUnitResult(const std::string &payload) :
|
||||
DeleteCostUnitResult::DeleteCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFinanceUnitResult::~DeleteFinanceUnitResult()
|
||||
DeleteCostUnitResult::~DeleteCostUnitResult()
|
||||
{}
|
||||
|
||||
void DeleteFinanceUnitResult::parse(const std::string &payload)
|
||||
void DeleteCostUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -55,22 +55,22 @@ void DeleteFinanceUnitResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteFinanceUnitResult::getMessage()const
|
||||
std::string DeleteCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
DeleteFinanceUnitResult::Data DeleteFinanceUnitResult::getData()const
|
||||
DeleteCostUnitResult::Data DeleteCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string DeleteFinanceUnitResult::getCode()const
|
||||
std::string DeleteCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteFinanceUnitResult::getSuccess()const
|
||||
bool DeleteCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -14,32 +14,32 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/ModifyFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/ModifyCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::ModifyFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::ModifyCostUnitRequest;
|
||||
|
||||
ModifyFinanceUnitRequest::ModifyFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyFinanceUnit")
|
||||
ModifyCostUnitRequest::ModifyCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "ModifyCostUnit")
|
||||
{}
|
||||
|
||||
ModifyFinanceUnitRequest::~ModifyFinanceUnitRequest()
|
||||
ModifyCostUnitRequest::~ModifyCostUnitRequest()
|
||||
{}
|
||||
|
||||
std::vector<ModifyFinanceUnitRequest::UnitEntityList> ModifyFinanceUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
}
|
||||
|
||||
void ModifyFinanceUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".UnitName", obj.unitName);
|
||||
setCoreParameter(str + ".UnitId", std::to_string(obj.unitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<ModifyCostUnitRequest::UnitEntityList> ModifyCostUnitRequest::getUnitEntityList()const
|
||||
{
|
||||
return unitEntityList_;
|
||||
}
|
||||
|
||||
void ModifyCostUnitRequest::setUnitEntityList(const std::vector<UnitEntityList>& unitEntityList)
|
||||
{
|
||||
unitEntityList_ = unitEntityList;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= unitEntityList.size(); i++) {
|
||||
auto obj = unitEntityList.at(i);
|
||||
std::string str ="UnitEntityList."+ std::to_string(i);
|
||||
setCoreParameter(str + ".NewUnitName", obj.newUnitName);
|
||||
setCoreParameter(str + ".UnitId", std::to_string(obj.unitId));
|
||||
setCoreParameter(str + ".OwnerUid", std::to_string(obj.ownerUid));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/ModifyFinanceUnitResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/ModifyCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
ModifyFinanceUnitResult::ModifyFinanceUnitResult() :
|
||||
ModifyCostUnitResult::ModifyCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyFinanceUnitResult::ModifyFinanceUnitResult(const std::string &payload) :
|
||||
ModifyCostUnitResult::ModifyCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyFinanceUnitResult::~ModifyFinanceUnitResult()
|
||||
ModifyCostUnitResult::~ModifyCostUnitResult()
|
||||
{}
|
||||
|
||||
void ModifyFinanceUnitResult::parse(const std::string &payload)
|
||||
void ModifyCostUnitResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -60,22 +60,22 @@ void ModifyFinanceUnitResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string ModifyFinanceUnitResult::getMessage()const
|
||||
std::string ModifyCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<ModifyFinanceUnitResult::DataItem> ModifyFinanceUnitResult::getData()const
|
||||
std::vector<ModifyCostUnitResult::DataItem> ModifyCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string ModifyFinanceUnitResult::getCode()const
|
||||
std::string ModifyCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ModifyFinanceUnitResult::getSuccess()const
|
||||
bool ModifyCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
@@ -14,58 +14,58 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryFinanceUnitResourceRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/QueryCostUnitRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryFinanceUnitResourceRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryCostUnitRequest;
|
||||
|
||||
QueryFinanceUnitResourceRequest::QueryFinanceUnitResourceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryFinanceUnitResource")
|
||||
QueryCostUnitRequest::QueryCostUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCostUnit")
|
||||
{}
|
||||
|
||||
QueryFinanceUnitResourceRequest::~QueryFinanceUnitResourceRequest()
|
||||
QueryCostUnitRequest::~QueryCostUnitRequest()
|
||||
{}
|
||||
|
||||
int QueryFinanceUnitResourceRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitResourceRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int QueryFinanceUnitResourceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitResourceRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryFinanceUnitResourceRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitResourceRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long QueryFinanceUnitResourceRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitResourceRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
long QueryCostUnitRequest::getParentUnitId()const
|
||||
{
|
||||
return parentUnitId_;
|
||||
}
|
||||
|
||||
void QueryCostUnitRequest::setParentUnitId(long parentUnitId)
|
||||
{
|
||||
parentUnitId_ = parentUnitId;
|
||||
setCoreParameter("ParentUnitId", std::to_string(parentUnitId));
|
||||
}
|
||||
|
||||
int QueryCostUnitRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryCostUnitRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int QueryCostUnitRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryCostUnitRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryCostUnitRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void QueryCostUnitRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
@@ -14,58 +14,58 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryFinanceUnitRequest.h>
|
||||
#include <alibabacloud/bssopenapi/model/QueryCostUnitResourceRequest.h>
|
||||
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryFinanceUnitRequest;
|
||||
using AlibabaCloud::BssOpenApi::Model::QueryCostUnitResourceRequest;
|
||||
|
||||
QueryFinanceUnitRequest::QueryFinanceUnitRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryFinanceUnit")
|
||||
QueryCostUnitResourceRequest::QueryCostUnitResourceRequest() :
|
||||
RpcServiceRequest("bssopenapi", "2017-12-14", "QueryCostUnitResource")
|
||||
{}
|
||||
|
||||
QueryFinanceUnitRequest::~QueryFinanceUnitRequest()
|
||||
QueryCostUnitResourceRequest::~QueryCostUnitResourceRequest()
|
||||
{}
|
||||
|
||||
int QueryFinanceUnitRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int QueryFinanceUnitRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryFinanceUnitRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long QueryFinanceUnitRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void QueryFinanceUnitRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
int QueryCostUnitResourceRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void QueryCostUnitResourceRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setCoreParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
int QueryCostUnitResourceRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void QueryCostUnitResourceRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long QueryCostUnitResourceRequest::getUnitId()const
|
||||
{
|
||||
return unitId_;
|
||||
}
|
||||
|
||||
void QueryCostUnitResourceRequest::setUnitId(long unitId)
|
||||
{
|
||||
unitId_ = unitId;
|
||||
setCoreParameter("UnitId", std::to_string(unitId));
|
||||
}
|
||||
|
||||
long QueryCostUnitResourceRequest::getOwnerUid()const
|
||||
{
|
||||
return ownerUid_;
|
||||
}
|
||||
|
||||
void QueryCostUnitResourceRequest::setOwnerUid(long ownerUid)
|
||||
{
|
||||
ownerUid_ = ownerUid;
|
||||
setCoreParameter("OwnerUid", std::to_string(ownerUid));
|
||||
}
|
||||
|
||||
@@ -14,26 +14,26 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryFinanceUnitResourceResult.h>
|
||||
#include <alibabacloud/bssopenapi/model/QueryCostUnitResourceResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryFinanceUnitResourceResult::QueryFinanceUnitResourceResult() :
|
||||
QueryCostUnitResourceResult::QueryCostUnitResourceResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryFinanceUnitResourceResult::QueryFinanceUnitResourceResult(const std::string &payload) :
|
||||
QueryCostUnitResourceResult::QueryCostUnitResourceResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryFinanceUnitResourceResult::~QueryFinanceUnitResourceResult()
|
||||
QueryCostUnitResourceResult::~QueryCostUnitResourceResult()
|
||||
{}
|
||||
|
||||
void QueryFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
void QueryCostUnitResourceResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
@@ -78,30 +78,30 @@ void QueryFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
resourceInstanceListObject.apportionName = dataNodeResourceInstanceDtoListResourceInstanceList["ApportionName"].asString();
|
||||
data_.resourceInstanceDtoList.push_back(resourceInstanceListObject);
|
||||
}
|
||||
auto financeUnitNode = dataNode["FinanceUnit"];
|
||||
if(!financeUnitNode["OwnerUid"].isNull())
|
||||
data_.financeUnit.ownerUid = std::stol(financeUnitNode["OwnerUid"].asString());
|
||||
if(!financeUnitNode["ParentUnitId"].isNull())
|
||||
data_.financeUnit.parentUnitId = std::stol(financeUnitNode["ParentUnitId"].asString());
|
||||
if(!financeUnitNode["UnitId"].isNull())
|
||||
data_.financeUnit.unitId = std::stol(financeUnitNode["UnitId"].asString());
|
||||
if(!financeUnitNode["UnitName"].isNull())
|
||||
data_.financeUnit.unitName = financeUnitNode["UnitName"].asString();
|
||||
auto financeUnitStatisInfoNode = dataNode["FinanceUnitStatisInfo"];
|
||||
if(!financeUnitStatisInfoNode["ResourceCount"].isNull())
|
||||
data_.financeUnitStatisInfo.resourceCount = std::stol(financeUnitStatisInfoNode["ResourceCount"].asString());
|
||||
if(!financeUnitStatisInfoNode["ResourceGroupCount"].isNull())
|
||||
data_.financeUnitStatisInfo.resourceGroupCount = std::stol(financeUnitStatisInfoNode["ResourceGroupCount"].asString());
|
||||
if(!financeUnitStatisInfoNode["SubUnitCount"].isNull())
|
||||
data_.financeUnitStatisInfo.subUnitCount = std::stol(financeUnitStatisInfoNode["SubUnitCount"].asString());
|
||||
if(!financeUnitStatisInfoNode["UserCount"].isNull())
|
||||
data_.financeUnitStatisInfo.userCount = std::stol(financeUnitStatisInfoNode["UserCount"].asString());
|
||||
if(!financeUnitStatisInfoNode["TotalResourceCount"].isNull())
|
||||
data_.financeUnitStatisInfo.totalResourceCount = std::stol(financeUnitStatisInfoNode["TotalResourceCount"].asString());
|
||||
if(!financeUnitStatisInfoNode["TotalUserCount"].isNull())
|
||||
data_.financeUnitStatisInfo.totalUserCount = std::stol(financeUnitStatisInfoNode["TotalUserCount"].asString());
|
||||
if(!financeUnitStatisInfoNode["TotalResourceGroupCount"].isNull())
|
||||
data_.financeUnitStatisInfo.totalResourceGroupCount = std::stol(financeUnitStatisInfoNode["TotalResourceGroupCount"].asString());
|
||||
auto costUnitNode = dataNode["CostUnit"];
|
||||
if(!costUnitNode["OwnerUid"].isNull())
|
||||
data_.costUnit.ownerUid = std::stol(costUnitNode["OwnerUid"].asString());
|
||||
if(!costUnitNode["ParentUnitId"].isNull())
|
||||
data_.costUnit.parentUnitId = std::stol(costUnitNode["ParentUnitId"].asString());
|
||||
if(!costUnitNode["UnitId"].isNull())
|
||||
data_.costUnit.unitId = std::stol(costUnitNode["UnitId"].asString());
|
||||
if(!costUnitNode["UnitName"].isNull())
|
||||
data_.costUnit.unitName = costUnitNode["UnitName"].asString();
|
||||
auto costUnitStatisInfoNode = dataNode["CostUnitStatisInfo"];
|
||||
if(!costUnitStatisInfoNode["ResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceCount = std::stol(costUnitStatisInfoNode["ResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["ResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.resourceGroupCount = std::stol(costUnitStatisInfoNode["ResourceGroupCount"].asString());
|
||||
if(!costUnitStatisInfoNode["SubUnitCount"].isNull())
|
||||
data_.costUnitStatisInfo.subUnitCount = std::stol(costUnitStatisInfoNode["SubUnitCount"].asString());
|
||||
if(!costUnitStatisInfoNode["UserCount"].isNull())
|
||||
data_.costUnitStatisInfo.userCount = std::stol(costUnitStatisInfoNode["UserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalResourceCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceCount = std::stol(costUnitStatisInfoNode["TotalResourceCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalUserCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalUserCount = std::stol(costUnitStatisInfoNode["TotalUserCount"].asString());
|
||||
if(!costUnitStatisInfoNode["TotalResourceGroupCount"].isNull())
|
||||
data_.costUnitStatisInfo.totalResourceGroupCount = std::stol(costUnitStatisInfoNode["TotalResourceGroupCount"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
@@ -111,22 +111,22 @@ void QueryFinanceUnitResourceResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::string QueryFinanceUnitResourceResult::getMessage()const
|
||||
std::string QueryCostUnitResourceResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryFinanceUnitResourceResult::Data QueryFinanceUnitResourceResult::getData()const
|
||||
QueryCostUnitResourceResult::Data QueryCostUnitResourceResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryFinanceUnitResourceResult::getCode()const
|
||||
std::string QueryCostUnitResourceResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryFinanceUnitResourceResult::getSuccess()const
|
||||
bool QueryCostUnitResourceResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
91
bssopenapi/src/model/QueryCostUnitResult.cc
Normal file
91
bssopenapi/src/model/QueryCostUnitResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/QueryCostUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryCostUnitResult::QueryCostUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryCostUnitResult::QueryCostUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryCostUnitResult::~QueryCostUnitResult()
|
||||
{}
|
||||
|
||||
void QueryCostUnitResult::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 allCostUnitDtoListNode = dataNode["CostUnitDtoList"]["CostUnitDtoListItem"];
|
||||
for (auto dataNodeCostUnitDtoListCostUnitDtoListItem : allCostUnitDtoListNode)
|
||||
{
|
||||
Data::CostUnitDtoListItem costUnitDtoListItemObject;
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].isNull())
|
||||
costUnitDtoListItemObject.ownerUid = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].isNull())
|
||||
costUnitDtoListItemObject.parentUnitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].isNull())
|
||||
costUnitDtoListItemObject.unitId = std::stol(dataNodeCostUnitDtoListCostUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].isNull())
|
||||
costUnitDtoListItemObject.unitName = dataNodeCostUnitDtoListCostUnitDtoListItem["UnitName"].asString();
|
||||
data_.costUnitDtoList.push_back(costUnitDtoListItemObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string QueryCostUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryCostUnitResult::Data QueryCostUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryCostUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryCostUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,91 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/bssopenapi/model/QueryFinanceUnitResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::BssOpenApi;
|
||||
using namespace AlibabaCloud::BssOpenApi::Model;
|
||||
|
||||
QueryFinanceUnitResult::QueryFinanceUnitResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryFinanceUnitResult::QueryFinanceUnitResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryFinanceUnitResult::~QueryFinanceUnitResult()
|
||||
{}
|
||||
|
||||
void QueryFinanceUnitResult::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 allFinanceUnitDtoListNode = dataNode["FinanceUnitDtoList"]["FinanceUnitDtoListItem"];
|
||||
for (auto dataNodeFinanceUnitDtoListFinanceUnitDtoListItem : allFinanceUnitDtoListNode)
|
||||
{
|
||||
Data::FinanceUnitDtoListItem financeUnitDtoListItemObject;
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["OwnerUid"].isNull())
|
||||
financeUnitDtoListItemObject.ownerUid = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["OwnerUid"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["ParentUnitId"].isNull())
|
||||
financeUnitDtoListItemObject.parentUnitId = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["ParentUnitId"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitId"].isNull())
|
||||
financeUnitDtoListItemObject.unitId = std::stol(dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitId"].asString());
|
||||
if(!dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitName"].isNull())
|
||||
financeUnitDtoListItemObject.unitName = dataNodeFinanceUnitDtoListFinanceUnitDtoListItem["UnitName"].asString();
|
||||
data_.financeUnitDtoList.push_back(financeUnitDtoListItemObject);
|
||||
}
|
||||
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 QueryFinanceUnitResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
QueryFinanceUnitResult::Data QueryFinanceUnitResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string QueryFinanceUnitResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool QueryFinanceUnitResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,7 @@ class ALIBABACLOUD_CORE_EXPORT RoaServiceRequest : public ServiceRequest {
|
||||
using ServiceRequest::setContent;
|
||||
using ServiceRequest::parameter;
|
||||
using ServiceRequest::setScheme;
|
||||
using ServiceRequest::setResourcePath;
|
||||
};
|
||||
} // namespace AlibabaCloud
|
||||
#endif // CORE_INCLUDE_ALIBABACLOUD_CORE_ROASERVICEREQUEST_H_
|
||||
|
||||
122
dnsknocker/CMakeLists.txt
Normal file
122
dnsknocker/CMakeLists.txt
Normal file
@@ -0,0 +1,122 @@
|
||||
#
|
||||
# Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include)
|
||||
|
||||
set(dnsknocker_public_header
|
||||
include/alibabacloud/dnsknocker/DnsKnockerClient.h
|
||||
include/alibabacloud/dnsknocker/DnsKnockerExport.h )
|
||||
|
||||
set(dnsknocker_public_header_model
|
||||
include/alibabacloud/dnsknocker/model/BatchCreateRrRequest.h
|
||||
include/alibabacloud/dnsknocker/model/BatchCreateRrResult.h
|
||||
include/alibabacloud/dnsknocker/model/BatchDeleteRrRequest.h
|
||||
include/alibabacloud/dnsknocker/model/BatchDeleteRrResult.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordRequest.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordResult.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordsRequest.h
|
||||
include/alibabacloud/dnsknocker/model/ChangeResourceRecordsResult.h
|
||||
include/alibabacloud/dnsknocker/model/CreateResourceRecordRequest.h
|
||||
include/alibabacloud/dnsknocker/model/CreateResourceRecordResult.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteDomainRequest.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteDomainResult.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordRequest.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordResult.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordsRequest.h
|
||||
include/alibabacloud/dnsknocker/model/DeleteResourceRecordsResult.h
|
||||
include/alibabacloud/dnsknocker/model/GetDomainRequest.h
|
||||
include/alibabacloud/dnsknocker/model/GetDomainResult.h
|
||||
include/alibabacloud/dnsknocker/model/GetResourceRecordsRequest.h
|
||||
include/alibabacloud/dnsknocker/model/GetResourceRecordsResult.h )
|
||||
|
||||
set(dnsknocker_src
|
||||
src/DnsKnockerClient.cc
|
||||
src/model/BatchCreateRrRequest.cc
|
||||
src/model/BatchCreateRrResult.cc
|
||||
src/model/BatchDeleteRrRequest.cc
|
||||
src/model/BatchDeleteRrResult.cc
|
||||
src/model/ChangeResourceRecordRequest.cc
|
||||
src/model/ChangeResourceRecordResult.cc
|
||||
src/model/ChangeResourceRecordsRequest.cc
|
||||
src/model/ChangeResourceRecordsResult.cc
|
||||
src/model/CreateResourceRecordRequest.cc
|
||||
src/model/CreateResourceRecordResult.cc
|
||||
src/model/DeleteDomainRequest.cc
|
||||
src/model/DeleteDomainResult.cc
|
||||
src/model/DeleteResourceRecordRequest.cc
|
||||
src/model/DeleteResourceRecordResult.cc
|
||||
src/model/DeleteResourceRecordsRequest.cc
|
||||
src/model/DeleteResourceRecordsResult.cc
|
||||
src/model/GetDomainRequest.cc
|
||||
src/model/GetDomainResult.cc
|
||||
src/model/GetResourceRecordsRequest.cc
|
||||
src/model/GetResourceRecordsResult.cc )
|
||||
|
||||
add_library(dnsknocker ${LIB_TYPE}
|
||||
${dnsknocker_public_header}
|
||||
${dnsknocker_public_header_model}
|
||||
${dnsknocker_src})
|
||||
|
||||
set_target_properties(dnsknocker
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE CXX
|
||||
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}dnsknocker
|
||||
)
|
||||
|
||||
if(${LIB_TYPE} STREQUAL "SHARED")
|
||||
set_target_properties(dnsknocker
|
||||
PROPERTIES
|
||||
DEFINE_SYMBOL ALIBABACLOUD_DNSKNOCKER_LIBRARY)
|
||||
endif()
|
||||
|
||||
target_include_directories(dnsknocker
|
||||
PRIVATE include
|
||||
${CMAKE_SOURCE_DIR}/core/include
|
||||
)
|
||||
target_link_libraries(dnsknocker
|
||||
core)
|
||||
|
||||
if(CMAKE_HOST_WIN32)
|
||||
ExternalProject_Get_Property(jsoncpp INSTALL_DIR)
|
||||
set(jsoncpp_install_dir ${INSTALL_DIR})
|
||||
add_dependencies(dnsknocker
|
||||
jsoncpp)
|
||||
target_include_directories(dnsknocker
|
||||
PRIVATE ${jsoncpp_install_dir}/include)
|
||||
target_link_libraries(dnsknocker
|
||||
${jsoncpp_install_dir}/lib/jsoncpp.lib)
|
||||
set_target_properties(dnsknocker
|
||||
PROPERTIES
|
||||
COMPILE_OPTIONS "/bigobj")
|
||||
else()
|
||||
target_include_directories(dnsknocker
|
||||
PRIVATE /usr/include/jsoncpp)
|
||||
target_link_libraries(dnsknocker
|
||||
jsoncpp)
|
||||
endif()
|
||||
|
||||
install(FILES ${dnsknocker_public_header}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dnsknocker)
|
||||
install(FILES ${dnsknocker_public_header_model}
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/dnsknocker/model)
|
||||
install(TARGETS dnsknocker
|
||||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
)
|
||||
126
dnsknocker/include/alibabacloud/dnsknocker/DnsKnockerClient.h
Normal file
126
dnsknocker/include/alibabacloud/dnsknocker/DnsKnockerClient.h
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_DNSKNOCKERCLIENT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_DNSKNOCKERCLIENT_H_
|
||||
|
||||
#include <future>
|
||||
#include <alibabacloud/core/AsyncCallerContext.h>
|
||||
#include <alibabacloud/core/EndpointProvider.h>
|
||||
#include <alibabacloud/core/RpcServiceClient.h>
|
||||
#include "DnsKnockerExport.h"
|
||||
#include "model/BatchCreateRrRequest.h"
|
||||
#include "model/BatchCreateRrResult.h"
|
||||
#include "model/BatchDeleteRrRequest.h"
|
||||
#include "model/BatchDeleteRrResult.h"
|
||||
#include "model/ChangeResourceRecordRequest.h"
|
||||
#include "model/ChangeResourceRecordResult.h"
|
||||
#include "model/ChangeResourceRecordsRequest.h"
|
||||
#include "model/ChangeResourceRecordsResult.h"
|
||||
#include "model/CreateResourceRecordRequest.h"
|
||||
#include "model/CreateResourceRecordResult.h"
|
||||
#include "model/DeleteDomainRequest.h"
|
||||
#include "model/DeleteDomainResult.h"
|
||||
#include "model/DeleteResourceRecordRequest.h"
|
||||
#include "model/DeleteResourceRecordResult.h"
|
||||
#include "model/DeleteResourceRecordsRequest.h"
|
||||
#include "model/DeleteResourceRecordsResult.h"
|
||||
#include "model/GetDomainRequest.h"
|
||||
#include "model/GetDomainResult.h"
|
||||
#include "model/GetResourceRecordsRequest.h"
|
||||
#include "model/GetResourceRecordsResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DnsKnockerClient : public RpcServiceClient
|
||||
{
|
||||
public:
|
||||
typedef Outcome<Error, Model::BatchCreateRrResult> BatchCreateRrOutcome;
|
||||
typedef std::future<BatchCreateRrOutcome> BatchCreateRrOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::BatchCreateRrRequest&, const BatchCreateRrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchCreateRrAsyncHandler;
|
||||
typedef Outcome<Error, Model::BatchDeleteRrResult> BatchDeleteRrOutcome;
|
||||
typedef std::future<BatchDeleteRrOutcome> BatchDeleteRrOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::BatchDeleteRrRequest&, const BatchDeleteRrOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> BatchDeleteRrAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeResourceRecordResult> ChangeResourceRecordOutcome;
|
||||
typedef std::future<ChangeResourceRecordOutcome> ChangeResourceRecordOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::ChangeResourceRecordRequest&, const ChangeResourceRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::ChangeResourceRecordsResult> ChangeResourceRecordsOutcome;
|
||||
typedef std::future<ChangeResourceRecordsOutcome> ChangeResourceRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::ChangeResourceRecordsRequest&, const ChangeResourceRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ChangeResourceRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateResourceRecordResult> CreateResourceRecordOutcome;
|
||||
typedef std::future<CreateResourceRecordOutcome> CreateResourceRecordOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::CreateResourceRecordRequest&, const CreateResourceRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateResourceRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteDomainResult> DeleteDomainOutcome;
|
||||
typedef std::future<DeleteDomainOutcome> DeleteDomainOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::DeleteDomainRequest&, const DeleteDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteResourceRecordResult> DeleteResourceRecordOutcome;
|
||||
typedef std::future<DeleteResourceRecordOutcome> DeleteResourceRecordOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::DeleteResourceRecordRequest&, const DeleteResourceRecordOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteResourceRecordAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteResourceRecordsResult> DeleteResourceRecordsOutcome;
|
||||
typedef std::future<DeleteResourceRecordsOutcome> DeleteResourceRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::DeleteResourceRecordsRequest&, const DeleteResourceRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteResourceRecordsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetDomainResult> GetDomainOutcome;
|
||||
typedef std::future<GetDomainOutcome> GetDomainOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::GetDomainRequest&, const GetDomainOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetDomainAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetResourceRecordsResult> GetResourceRecordsOutcome;
|
||||
typedef std::future<GetResourceRecordsOutcome> GetResourceRecordsOutcomeCallable;
|
||||
typedef std::function<void(const DnsKnockerClient*, const Model::GetResourceRecordsRequest&, const GetResourceRecordsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetResourceRecordsAsyncHandler;
|
||||
|
||||
DnsKnockerClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
DnsKnockerClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
DnsKnockerClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration);
|
||||
~DnsKnockerClient();
|
||||
BatchCreateRrOutcome batchCreateRr(const Model::BatchCreateRrRequest &request)const;
|
||||
void batchCreateRrAsync(const Model::BatchCreateRrRequest& request, const BatchCreateRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchCreateRrOutcomeCallable batchCreateRrCallable(const Model::BatchCreateRrRequest& request) const;
|
||||
BatchDeleteRrOutcome batchDeleteRr(const Model::BatchDeleteRrRequest &request)const;
|
||||
void batchDeleteRrAsync(const Model::BatchDeleteRrRequest& request, const BatchDeleteRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
BatchDeleteRrOutcomeCallable batchDeleteRrCallable(const Model::BatchDeleteRrRequest& request) const;
|
||||
ChangeResourceRecordOutcome changeResourceRecord(const Model::ChangeResourceRecordRequest &request)const;
|
||||
void changeResourceRecordAsync(const Model::ChangeResourceRecordRequest& request, const ChangeResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeResourceRecordOutcomeCallable changeResourceRecordCallable(const Model::ChangeResourceRecordRequest& request) const;
|
||||
ChangeResourceRecordsOutcome changeResourceRecords(const Model::ChangeResourceRecordsRequest &request)const;
|
||||
void changeResourceRecordsAsync(const Model::ChangeResourceRecordsRequest& request, const ChangeResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ChangeResourceRecordsOutcomeCallable changeResourceRecordsCallable(const Model::ChangeResourceRecordsRequest& request) const;
|
||||
CreateResourceRecordOutcome createResourceRecord(const Model::CreateResourceRecordRequest &request)const;
|
||||
void createResourceRecordAsync(const Model::CreateResourceRecordRequest& request, const CreateResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateResourceRecordOutcomeCallable createResourceRecordCallable(const Model::CreateResourceRecordRequest& request) const;
|
||||
DeleteDomainOutcome deleteDomain(const Model::DeleteDomainRequest &request)const;
|
||||
void deleteDomainAsync(const Model::DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDomainOutcomeCallable deleteDomainCallable(const Model::DeleteDomainRequest& request) const;
|
||||
DeleteResourceRecordOutcome deleteResourceRecord(const Model::DeleteResourceRecordRequest &request)const;
|
||||
void deleteResourceRecordAsync(const Model::DeleteResourceRecordRequest& request, const DeleteResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteResourceRecordOutcomeCallable deleteResourceRecordCallable(const Model::DeleteResourceRecordRequest& request) const;
|
||||
DeleteResourceRecordsOutcome deleteResourceRecords(const Model::DeleteResourceRecordsRequest &request)const;
|
||||
void deleteResourceRecordsAsync(const Model::DeleteResourceRecordsRequest& request, const DeleteResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteResourceRecordsOutcomeCallable deleteResourceRecordsCallable(const Model::DeleteResourceRecordsRequest& request) const;
|
||||
GetDomainOutcome getDomain(const Model::GetDomainRequest &request)const;
|
||||
void getDomainAsync(const Model::GetDomainRequest& request, const GetDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetDomainOutcomeCallable getDomainCallable(const Model::GetDomainRequest& request) const;
|
||||
GetResourceRecordsOutcome getResourceRecords(const Model::GetResourceRecordsRequest &request)const;
|
||||
void getResourceRecordsAsync(const Model::GetResourceRecordsRequest& request, const GetResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetResourceRecordsOutcomeCallable getResourceRecordsCallable(const Model::GetResourceRecordsRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_DNSKNOCKERCLIENT_H_
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_DNSKNOCKEREXPORT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_DNSKNOCKEREXPORT_H_
|
||||
|
||||
#include <alibabacloud/core/Global.h>
|
||||
|
||||
#if defined(ALIBABACLOUD_SHARED)
|
||||
# if defined(ALIBABACLOUD_DNSKNOCKER_LIBRARY)
|
||||
# define ALIBABACLOUD_DNSKNOCKER_EXPORT ALIBABACLOUD_DECL_EXPORT
|
||||
# else
|
||||
# define ALIBABACLOUD_DNSKNOCKER_EXPORT ALIBABACLOUD_DECL_IMPORT
|
||||
# endif
|
||||
#else
|
||||
# define ALIBABACLOUD_DNSKNOCKER_EXPORT
|
||||
#endif
|
||||
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_DNSKNOCKEREXPORT_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_DNSKNOCKER_MODEL_BATCHCREATERRREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT BatchCreateRrRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BatchCreateRrRequest();
|
||||
~BatchCreateRrRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getResourceRecords()const;
|
||||
void setResourceRecords(const std::string& resourceRecords);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string resourceRecords_;
|
||||
std::string line_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRREQUEST_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_DNSKNOCKER_MODEL_BATCHCREATERRRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT BatchCreateRrResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BatchCreateRrResult();
|
||||
explicit BatchCreateRrResult(const std::string &payload);
|
||||
~BatchCreateRrResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHCREATERRRESULT_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_DNSKNOCKER_MODEL_BATCHDELETERRREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT BatchDeleteRrRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
BatchDeleteRrRequest();
|
||||
~BatchDeleteRrRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getResourceRecords()const;
|
||||
void setResourceRecords(const std::string& resourceRecords);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string resourceRecords_;
|
||||
std::string line_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRREQUEST_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_DNSKNOCKER_MODEL_BATCHDELETERRRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT BatchDeleteRrResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
BatchDeleteRrResult();
|
||||
explicit BatchDeleteRrResult(const std::string &payload);
|
||||
~BatchDeleteRrResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_BATCHDELETERRRESULT_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_DNSKNOCKER_MODEL_CHANGERESOURCERECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeResourceRecordRequest();
|
||||
~ChangeResourceRecordRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getNewRRInfo()const;
|
||||
void setNewRRInfo(const std::string& newRRInfo);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getOldRRInfo()const;
|
||||
void setOldRRInfo(const std::string& oldRRInfo);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string newRRInfo_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
std::string oldRRInfo_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDREQUEST_H_
|
||||
@@ -14,36 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT AbortDBClusterMigrationResult : public ServiceResult
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
AbortDBClusterMigrationResult();
|
||||
explicit AbortDBClusterMigrationResult(const std::string &payload);
|
||||
~AbortDBClusterMigrationResult();
|
||||
ChangeResourceRecordResult();
|
||||
explicit ChangeResourceRecordResult(const std::string &payload);
|
||||
~ChangeResourceRecordResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_ABORTDBCLUSTERMIGRATIONRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDRESULT_H_
|
||||
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ChangeResourceRecordsRequest();
|
||||
~ChangeResourceRecordsRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getTypes()const;
|
||||
void setTypes(const std::string& types);
|
||||
std::string getResourceRecords()const;
|
||||
void setResourceRecords(const std::string& resourceRecords);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string types_;
|
||||
std::string resourceRecords_;
|
||||
std::string line_;
|
||||
std::string domainName_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSREQUEST_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_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT ChangeResourceRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ChangeResourceRecordsResult();
|
||||
explicit ChangeResourceRecordsResult(const std::string &payload);
|
||||
~ChangeResourceRecordsResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CHANGERESOURCERECORDSRESULT_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_DNSKNOCKER_MODEL_CREATERESOURCERECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT CreateResourceRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateResourceRecordRequest();
|
||||
~CreateResourceRecordRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getRrTTL()const;
|
||||
void setRrTTL(const std::string& rrTTL);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getRrLine()const;
|
||||
void setRrLine(const std::string& rrLine);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getRrValue()const;
|
||||
void setRrValue(const std::string& rrValue);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getRrType()const;
|
||||
void setRrType(const std::string& rrType);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string rrTTL_;
|
||||
std::string accessSecret_;
|
||||
std::string rrLine_;
|
||||
std::string domainName_;
|
||||
std::string rrValue_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
std::string rrType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDREQUEST_H_
|
||||
@@ -14,36 +14,44 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_
|
||||
#define ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/polardb/PolardbExport.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Polardb
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_POLARDB_EXPORT UnlockDBClusterDeletionResult : public ServiceResult
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT CreateResourceRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UnlockDBClusterDeletionResult();
|
||||
explicit UnlockDBClusterDeletionResult(const std::string &payload);
|
||||
~UnlockDBClusterDeletionResult();
|
||||
CreateResourceRecordResult();
|
||||
explicit CreateResourceRecordResult(const std::string &payload);
|
||||
~CreateResourceRecordResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_POLARDB_MODEL_UNLOCKDBCLUSTERDELETIONRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_CREATERESOURCERECORDRESULT_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_DNSKNOCKER_MODEL_DELETEDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteDomainRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteDomainRequest();
|
||||
~DeleteDomainRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string line_;
|
||||
std::string domainName_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINREQUEST_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_DNSKNOCKER_MODEL_DELETEDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteDomainResult();
|
||||
explicit DeleteDomainResult(const std::string &payload);
|
||||
~DeleteDomainResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETEDOMAINRESULT_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_DNSKNOCKER_MODEL_DELETERESOURCERECORDREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteResourceRecordRequest();
|
||||
~DeleteResourceRecordRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getRRTTL()const;
|
||||
void setRRTTL(const std::string& rRTTL);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getRRLine()const;
|
||||
void setRRLine(const std::string& rRLine);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getRRValue()const;
|
||||
void setRRValue(const std::string& rRValue);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
std::string getRRType()const;
|
||||
void setRRType(const std::string& rRType);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string rRTTL_;
|
||||
std::string accessSecret_;
|
||||
std::string rRLine_;
|
||||
std::string domainName_;
|
||||
std::string rRValue_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
std::string rRType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDREQUEST_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_DNSKNOCKER_MODEL_DELETERESOURCERECORDRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteResourceRecordResult();
|
||||
explicit DeleteResourceRecordResult(const std::string &payload);
|
||||
~DeleteResourceRecordResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDRESULT_H_
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteResourceRecordsRequest();
|
||||
~DeleteResourceRecordsRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getTypeList()const;
|
||||
void setTypeList(const std::string& typeList);
|
||||
std::string getLine()const;
|
||||
void setLine(const std::string& line);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getZoneName()const;
|
||||
void setZoneName(const std::string& zoneName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string typeList_;
|
||||
std::string line_;
|
||||
std::string domainName_;
|
||||
std::string zoneName_;
|
||||
std::string transactionId_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSREQUEST_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_DNSKNOCKER_MODEL_DELETERESOURCERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT DeleteResourceRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteResourceRecordsResult();
|
||||
explicit DeleteResourceRecordsResult(const std::string &payload);
|
||||
~DeleteResourceRecordsResult();
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_DELETERESOURCERECORDSRESULT_H_
|
||||
@@ -14,41 +14,47 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYREQUEST_H_
|
||||
#define ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/vod/VodExport.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Vod
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_VOD_EXPORT ModifyVodDomainSchdmByPropertyRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetDomainRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyVodDomainSchdmByPropertyRequest();
|
||||
~ModifyVodDomainSchdmByPropertyRequest();
|
||||
GetDomainRequest();
|
||||
~GetDomainRequest();
|
||||
|
||||
std::string getProperty()const;
|
||||
void setProperty(const std::string& property);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getDomainLine()const;
|
||||
void setDomainLine(const std::string& domainLine);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string property_;
|
||||
std::string domainName_;
|
||||
long ownerId_;
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string domainName_;
|
||||
std::string domainLine_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_VOD_MODEL_MODIFYVODDOMAINSCHDMBYPROPERTYREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINREQUEST_H_
|
||||
@@ -14,49 +14,52 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_
|
||||
#ifndef ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsResult : public ServiceResult
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetDomainResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct GroupsItem
|
||||
struct Data
|
||||
{
|
||||
std::string groupName;
|
||||
std::string status;
|
||||
std::string modifyTime;
|
||||
std::string createTime;
|
||||
std::string count;
|
||||
std::string groupId;
|
||||
std::string message;
|
||||
std::string domainName;
|
||||
std::string exists;
|
||||
};
|
||||
|
||||
|
||||
ListFaceSearchGroupsResult();
|
||||
explicit ListFaceSearchGroupsResult(const std::string &payload);
|
||||
~ListFaceSearchGroupsResult();
|
||||
std::vector<GroupsItem> getGroups()const;
|
||||
std::string getNextMarker()const;
|
||||
GetDomainResult();
|
||||
explicit GetDomainResult(const std::string &payload);
|
||||
~GetDomainResult();
|
||||
std::vector<Data> getDomain()const;
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getTransactionId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<GroupsItem> groups_;
|
||||
std::string nextMarker_;
|
||||
std::vector<Data> domain_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
std::string success_;
|
||||
std::string transactionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETDOMAINRESULT_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_DNSKNOCKER_MODEL_GETRESOURCERECORDSREQUEST_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetResourceRecordsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetResourceRecordsRequest();
|
||||
~GetResourceRecordsRequest();
|
||||
|
||||
std::string getAccessID()const;
|
||||
void setAccessID(const std::string& accessID);
|
||||
std::string getAccessSecret()const;
|
||||
void setAccessSecret(const std::string& accessSecret);
|
||||
std::string getZone()const;
|
||||
void setZone(const std::string& zone);
|
||||
std::string getDomainName()const;
|
||||
void setDomainName(const std::string& domainName);
|
||||
std::string getTransactionId()const;
|
||||
void setTransactionId(const std::string& transactionId);
|
||||
std::string getDomainLine()const;
|
||||
void setDomainLine(const std::string& domainLine);
|
||||
std::string getGroup()const;
|
||||
void setGroup(const std::string& group);
|
||||
|
||||
private:
|
||||
std::string accessID_;
|
||||
std::string accessSecret_;
|
||||
std::string zone_;
|
||||
std::string domainName_;
|
||||
std::string transactionId_;
|
||||
std::string domainLine_;
|
||||
std::string group_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSREQUEST_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_DNSKNOCKER_MODEL_GETRESOURCERECORDSRESULT_H_
|
||||
#define ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/dnsknocker/DnsKnockerExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace DnsKnocker
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_DNSKNOCKER_EXPORT GetResourceRecordsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetResourceRecordsResult();
|
||||
explicit GetResourceRecordsResult(const std::string &payload);
|
||||
~GetResourceRecordsResult();
|
||||
std::vector<std::string> getResourceRecordSet()const;
|
||||
std::string getResultMessage()const;
|
||||
std::string getResultCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<std::string> resourceRecordSet_;
|
||||
std::string resultMessage_;
|
||||
std::string resultCode_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_DNSKNOCKER_MODEL_GETRESOURCERECORDSRESULT_H_
|
||||
413
dnsknocker/src/DnsKnockerClient.cc
Normal file
413
dnsknocker/src/DnsKnockerClient.cc
Normal file
@@ -0,0 +1,413 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/DnsKnockerClient.h>
|
||||
#include <alibabacloud/core/SimpleCredentialsProvider.h>
|
||||
|
||||
using namespace AlibabaCloud;
|
||||
using namespace AlibabaCloud::Location;
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string SERVICE_NAME = "DnsKnocker";
|
||||
}
|
||||
|
||||
DnsKnockerClient::DnsKnockerClient(const Credentials &credentials, const ClientConfiguration &configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dns_knocker");
|
||||
}
|
||||
|
||||
DnsKnockerClient::DnsKnockerClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dns_knocker");
|
||||
}
|
||||
|
||||
DnsKnockerClient::DnsKnockerClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "dns_knocker");
|
||||
}
|
||||
|
||||
DnsKnockerClient::~DnsKnockerClient()
|
||||
{}
|
||||
|
||||
DnsKnockerClient::BatchCreateRrOutcome DnsKnockerClient::batchCreateRr(const BatchCreateRrRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchCreateRrOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchCreateRrOutcome(BatchCreateRrResult(outcome.result()));
|
||||
else
|
||||
return BatchCreateRrOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::batchCreateRrAsync(const BatchCreateRrRequest& request, const BatchCreateRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchCreateRr(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::BatchCreateRrOutcomeCallable DnsKnockerClient::batchCreateRrCallable(const BatchCreateRrRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchCreateRrOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchCreateRr(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::BatchDeleteRrOutcome DnsKnockerClient::batchDeleteRr(const BatchDeleteRrRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return BatchDeleteRrOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return BatchDeleteRrOutcome(BatchDeleteRrResult(outcome.result()));
|
||||
else
|
||||
return BatchDeleteRrOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::batchDeleteRrAsync(const BatchDeleteRrRequest& request, const BatchDeleteRrAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, batchDeleteRr(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::BatchDeleteRrOutcomeCallable DnsKnockerClient::batchDeleteRrCallable(const BatchDeleteRrRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<BatchDeleteRrOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->batchDeleteRr(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordOutcome DnsKnockerClient::changeResourceRecord(const ChangeResourceRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeResourceRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeResourceRecordOutcome(ChangeResourceRecordResult(outcome.result()));
|
||||
else
|
||||
return ChangeResourceRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::changeResourceRecordAsync(const ChangeResourceRecordRequest& request, const ChangeResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeResourceRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordOutcomeCallable DnsKnockerClient::changeResourceRecordCallable(const ChangeResourceRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeResourceRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeResourceRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordsOutcome DnsKnockerClient::changeResourceRecords(const ChangeResourceRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ChangeResourceRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ChangeResourceRecordsOutcome(ChangeResourceRecordsResult(outcome.result()));
|
||||
else
|
||||
return ChangeResourceRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::changeResourceRecordsAsync(const ChangeResourceRecordsRequest& request, const ChangeResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, changeResourceRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::ChangeResourceRecordsOutcomeCallable DnsKnockerClient::changeResourceRecordsCallable(const ChangeResourceRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ChangeResourceRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->changeResourceRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::CreateResourceRecordOutcome DnsKnockerClient::createResourceRecord(const CreateResourceRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateResourceRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateResourceRecordOutcome(CreateResourceRecordResult(outcome.result()));
|
||||
else
|
||||
return CreateResourceRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::createResourceRecordAsync(const CreateResourceRecordRequest& request, const CreateResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createResourceRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::CreateResourceRecordOutcomeCallable DnsKnockerClient::createResourceRecordCallable(const CreateResourceRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateResourceRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createResourceRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteDomainOutcome DnsKnockerClient::deleteDomain(const DeleteDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteDomainOutcome(DeleteDomainResult(outcome.result()));
|
||||
else
|
||||
return DeleteDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::deleteDomainAsync(const DeleteDomainRequest& request, const DeleteDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteDomainOutcomeCallable DnsKnockerClient::deleteDomainCallable(const DeleteDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordOutcome DnsKnockerClient::deleteResourceRecord(const DeleteResourceRecordRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteResourceRecordOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteResourceRecordOutcome(DeleteResourceRecordResult(outcome.result()));
|
||||
else
|
||||
return DeleteResourceRecordOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::deleteResourceRecordAsync(const DeleteResourceRecordRequest& request, const DeleteResourceRecordAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteResourceRecord(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordOutcomeCallable DnsKnockerClient::deleteResourceRecordCallable(const DeleteResourceRecordRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteResourceRecordOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteResourceRecord(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordsOutcome DnsKnockerClient::deleteResourceRecords(const DeleteResourceRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteResourceRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteResourceRecordsOutcome(DeleteResourceRecordsResult(outcome.result()));
|
||||
else
|
||||
return DeleteResourceRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::deleteResourceRecordsAsync(const DeleteResourceRecordsRequest& request, const DeleteResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteResourceRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::DeleteResourceRecordsOutcomeCallable DnsKnockerClient::deleteResourceRecordsCallable(const DeleteResourceRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteResourceRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteResourceRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetDomainOutcome DnsKnockerClient::getDomain(const GetDomainRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetDomainOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetDomainOutcome(GetDomainResult(outcome.result()));
|
||||
else
|
||||
return GetDomainOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::getDomainAsync(const GetDomainRequest& request, const GetDomainAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getDomain(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetDomainOutcomeCallable DnsKnockerClient::getDomainCallable(const GetDomainRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetDomainOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getDomain(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetResourceRecordsOutcome DnsKnockerClient::getResourceRecords(const GetResourceRecordsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetResourceRecordsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetResourceRecordsOutcome(GetResourceRecordsResult(outcome.result()));
|
||||
else
|
||||
return GetResourceRecordsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void DnsKnockerClient::getResourceRecordsAsync(const GetResourceRecordsRequest& request, const GetResourceRecordsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getResourceRecords(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
DnsKnockerClient::GetResourceRecordsOutcomeCallable DnsKnockerClient::getResourceRecordsCallable(const GetResourceRecordsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetResourceRecordsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getResourceRecords(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/BatchCreateRrRequest.cc
Normal file
104
dnsknocker/src/model/BatchCreateRrRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/BatchCreateRrRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::BatchCreateRrRequest;
|
||||
|
||||
BatchCreateRrRequest::BatchCreateRrRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "BatchCreateRr")
|
||||
{}
|
||||
|
||||
BatchCreateRrRequest::~BatchCreateRrRequest()
|
||||
{}
|
||||
|
||||
std::string BatchCreateRrRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getResourceRecords()const
|
||||
{
|
||||
return resourceRecords_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setResourceRecords(const std::string& resourceRecords)
|
||||
{
|
||||
resourceRecords_ = resourceRecords;
|
||||
setCoreParameter("ResourceRecords", resourceRecords);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string BatchCreateRrRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void BatchCreateRrRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/BatchCreateRrResult.cc
Normal file
72
dnsknocker/src/model/BatchCreateRrResult.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/dnsknocker/model/BatchCreateRrResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
BatchCreateRrResult::BatchCreateRrResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchCreateRrResult::BatchCreateRrResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchCreateRrResult::~BatchCreateRrResult()
|
||||
{}
|
||||
|
||||
void BatchCreateRrResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchCreateRrResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string BatchCreateRrResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool BatchCreateRrResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string BatchCreateRrResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/BatchDeleteRrRequest.cc
Normal file
104
dnsknocker/src/model/BatchDeleteRrRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/BatchDeleteRrRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::BatchDeleteRrRequest;
|
||||
|
||||
BatchDeleteRrRequest::BatchDeleteRrRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "BatchDeleteRr")
|
||||
{}
|
||||
|
||||
BatchDeleteRrRequest::~BatchDeleteRrRequest()
|
||||
{}
|
||||
|
||||
std::string BatchDeleteRrRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getResourceRecords()const
|
||||
{
|
||||
return resourceRecords_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setResourceRecords(const std::string& resourceRecords)
|
||||
{
|
||||
resourceRecords_ = resourceRecords;
|
||||
setCoreParameter("ResourceRecords", resourceRecords);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void BatchDeleteRrRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/BatchDeleteRrResult.cc
Normal file
72
dnsknocker/src/model/BatchDeleteRrResult.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/dnsknocker/model/BatchDeleteRrResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
BatchDeleteRrResult::BatchDeleteRrResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
BatchDeleteRrResult::BatchDeleteRrResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
BatchDeleteRrResult::~BatchDeleteRrResult()
|
||||
{}
|
||||
|
||||
void BatchDeleteRrResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool BatchDeleteRrResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string BatchDeleteRrResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/ChangeResourceRecordRequest.cc
Normal file
104
dnsknocker/src/model/ChangeResourceRecordRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/ChangeResourceRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::ChangeResourceRecordRequest;
|
||||
|
||||
ChangeResourceRecordRequest::ChangeResourceRecordRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "ChangeResourceRecord")
|
||||
{}
|
||||
|
||||
ChangeResourceRecordRequest::~ChangeResourceRecordRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getNewRRInfo()const
|
||||
{
|
||||
return newRRInfo_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setNewRRInfo(const std::string& newRRInfo)
|
||||
{
|
||||
newRRInfo_ = newRRInfo;
|
||||
setCoreParameter("NewRRInfo", newRRInfo);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordRequest::getOldRRInfo()const
|
||||
{
|
||||
return oldRRInfo_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordRequest::setOldRRInfo(const std::string& oldRRInfo)
|
||||
{
|
||||
oldRRInfo_ = oldRRInfo;
|
||||
setCoreParameter("OldRRInfo", oldRRInfo);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/ChangeResourceRecordResult.cc
Normal file
72
dnsknocker/src/model/ChangeResourceRecordResult.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/dnsknocker/model/ChangeResourceRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
ChangeResourceRecordResult::ChangeResourceRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeResourceRecordResult::ChangeResourceRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeResourceRecordResult::~ChangeResourceRecordResult()
|
||||
{}
|
||||
|
||||
void ChangeResourceRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
126
dnsknocker/src/model/ChangeResourceRecordsRequest.cc
Normal file
126
dnsknocker/src/model/ChangeResourceRecordsRequest.cc
Normal file
@@ -0,0 +1,126 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/ChangeResourceRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::ChangeResourceRecordsRequest;
|
||||
|
||||
ChangeResourceRecordsRequest::ChangeResourceRecordsRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "ChangeResourceRecords")
|
||||
{}
|
||||
|
||||
ChangeResourceRecordsRequest::~ChangeResourceRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getTypes()const
|
||||
{
|
||||
return types_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setTypes(const std::string& types)
|
||||
{
|
||||
types_ = types;
|
||||
setCoreParameter("Types", types);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getResourceRecords()const
|
||||
{
|
||||
return resourceRecords_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setResourceRecords(const std::string& resourceRecords)
|
||||
{
|
||||
resourceRecords_ = resourceRecords;
|
||||
setCoreParameter("ResourceRecords", resourceRecords);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void ChangeResourceRecordsRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/ChangeResourceRecordsResult.cc
Normal file
72
dnsknocker/src/model/ChangeResourceRecordsResult.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/dnsknocker/model/ChangeResourceRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
ChangeResourceRecordsResult::ChangeResourceRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ChangeResourceRecordsResult::ChangeResourceRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ChangeResourceRecordsResult::~ChangeResourceRecordsResult()
|
||||
{}
|
||||
|
||||
void ChangeResourceRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool ChangeResourceRecordsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string ChangeResourceRecordsResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
137
dnsknocker/src/model/CreateResourceRecordRequest.cc
Normal file
137
dnsknocker/src/model/CreateResourceRecordRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/CreateResourceRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::CreateResourceRecordRequest;
|
||||
|
||||
CreateResourceRecordRequest::CreateResourceRecordRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "CreateResourceRecord")
|
||||
{}
|
||||
|
||||
CreateResourceRecordRequest::~CreateResourceRecordRequest()
|
||||
{}
|
||||
|
||||
std::string CreateResourceRecordRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrTTL()const
|
||||
{
|
||||
return rrTTL_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrTTL(const std::string& rrTTL)
|
||||
{
|
||||
rrTTL_ = rrTTL;
|
||||
setCoreParameter("RrTTL", rrTTL);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrLine()const
|
||||
{
|
||||
return rrLine_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrLine(const std::string& rrLine)
|
||||
{
|
||||
rrLine_ = rrLine;
|
||||
setCoreParameter("RrLine", rrLine);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrValue()const
|
||||
{
|
||||
return rrValue_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrValue(const std::string& rrValue)
|
||||
{
|
||||
rrValue_ = rrValue;
|
||||
setCoreParameter("RrValue", rrValue);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordRequest::getRrType()const
|
||||
{
|
||||
return rrType_;
|
||||
}
|
||||
|
||||
void CreateResourceRecordRequest::setRrType(const std::string& rrType)
|
||||
{
|
||||
rrType_ = rrType;
|
||||
setCoreParameter("RrType", rrType);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/CreateResourceRecordResult.cc
Normal file
72
dnsknocker/src/model/CreateResourceRecordResult.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/dnsknocker/model/CreateResourceRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
CreateResourceRecordResult::CreateResourceRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateResourceRecordResult::CreateResourceRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateResourceRecordResult::~CreateResourceRecordResult()
|
||||
{}
|
||||
|
||||
void CreateResourceRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateResourceRecordResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/DeleteDomainRequest.cc
Normal file
104
dnsknocker/src/model/DeleteDomainRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/DeleteDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::DeleteDomainRequest;
|
||||
|
||||
DeleteDomainRequest::DeleteDomainRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "DeleteDomain")
|
||||
{}
|
||||
|
||||
DeleteDomainRequest::~DeleteDomainRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteDomainRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string DeleteDomainRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteDomainRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/DeleteDomainResult.cc
Normal file
72
dnsknocker/src/model/DeleteDomainResult.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/dnsknocker/model/DeleteDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
DeleteDomainResult::DeleteDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteDomainResult::DeleteDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteDomainResult::~DeleteDomainResult()
|
||||
{}
|
||||
|
||||
void DeleteDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteDomainResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool DeleteDomainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteDomainResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
137
dnsknocker/src/model/DeleteResourceRecordRequest.cc
Normal file
137
dnsknocker/src/model/DeleteResourceRecordRequest.cc
Normal file
@@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/DeleteResourceRecordRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::DeleteResourceRecordRequest;
|
||||
|
||||
DeleteResourceRecordRequest::DeleteResourceRecordRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "DeleteResourceRecord")
|
||||
{}
|
||||
|
||||
DeleteResourceRecordRequest::~DeleteResourceRecordRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRTTL()const
|
||||
{
|
||||
return rRTTL_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRTTL(const std::string& rRTTL)
|
||||
{
|
||||
rRTTL_ = rRTTL;
|
||||
setCoreParameter("RRTTL", rRTTL);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRLine()const
|
||||
{
|
||||
return rRLine_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRLine(const std::string& rRLine)
|
||||
{
|
||||
rRLine_ = rRLine;
|
||||
setCoreParameter("RRLine", rRLine);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRValue()const
|
||||
{
|
||||
return rRValue_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRValue(const std::string& rRValue)
|
||||
{
|
||||
rRValue_ = rRValue;
|
||||
setCoreParameter("RRValue", rRValue);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordRequest::getRRType()const
|
||||
{
|
||||
return rRType_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordRequest::setRRType(const std::string& rRType)
|
||||
{
|
||||
rRType_ = rRType;
|
||||
setCoreParameter("RRType", rRType);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/DeleteResourceRecordResult.cc
Normal file
72
dnsknocker/src/model/DeleteResourceRecordResult.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/dnsknocker/model/DeleteResourceRecordResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
DeleteResourceRecordResult::DeleteResourceRecordResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceRecordResult::DeleteResourceRecordResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceRecordResult::~DeleteResourceRecordResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceRecordResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
115
dnsknocker/src/model/DeleteResourceRecordsRequest.cc
Normal file
115
dnsknocker/src/model/DeleteResourceRecordsRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/DeleteResourceRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::DeleteResourceRecordsRequest;
|
||||
|
||||
DeleteResourceRecordsRequest::DeleteResourceRecordsRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "DeleteResourceRecords")
|
||||
{}
|
||||
|
||||
DeleteResourceRecordsRequest::~DeleteResourceRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getTypeList()const
|
||||
{
|
||||
return typeList_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setTypeList(const std::string& typeList)
|
||||
{
|
||||
typeList_ = typeList;
|
||||
setCoreParameter("TypeList", typeList);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getLine()const
|
||||
{
|
||||
return line_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setLine(const std::string& line)
|
||||
{
|
||||
line_ = line;
|
||||
setCoreParameter("Line", line);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getZoneName()const
|
||||
{
|
||||
return zoneName_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setZoneName(const std::string& zoneName)
|
||||
{
|
||||
zoneName_ = zoneName;
|
||||
setCoreParameter("ZoneName", zoneName);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void DeleteResourceRecordsRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
72
dnsknocker/src/model/DeleteResourceRecordsResult.cc
Normal file
72
dnsknocker/src/model/DeleteResourceRecordsResult.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/dnsknocker/model/DeleteResourceRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
DeleteResourceRecordsResult::DeleteResourceRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteResourceRecordsResult::DeleteResourceRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteResourceRecordsResult::~DeleteResourceRecordsResult()
|
||||
{}
|
||||
|
||||
void DeleteResourceRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string DeleteResourceRecordsResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
82
dnsknocker/src/model/GetDomainRequest.cc
Normal file
82
dnsknocker/src/model/GetDomainRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/GetDomainRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::GetDomainRequest;
|
||||
|
||||
GetDomainRequest::GetDomainRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "GetDomain")
|
||||
{}
|
||||
|
||||
GetDomainRequest::~GetDomainRequest()
|
||||
{}
|
||||
|
||||
std::string GetDomainRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getDomainLine()const
|
||||
{
|
||||
return domainLine_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setDomainLine(const std::string& domainLine)
|
||||
{
|
||||
domainLine_ = domainLine;
|
||||
setCoreParameter("DomainLine", domainLine);
|
||||
}
|
||||
|
||||
std::string GetDomainRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetDomainRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
89
dnsknocker/src/model/GetDomainResult.cc
Normal file
89
dnsknocker/src/model/GetDomainResult.cc
Normal file
@@ -0,0 +1,89 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/GetDomainResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
GetDomainResult::GetDomainResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetDomainResult::GetDomainResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetDomainResult::~GetDomainResult()
|
||||
{}
|
||||
|
||||
void GetDomainResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainNode = value["Domain"]["Data"];
|
||||
for (auto valueDomainData : allDomainNode)
|
||||
{
|
||||
Data domainObject;
|
||||
if(!valueDomainData["DomainName"].isNull())
|
||||
domainObject.domainName = valueDomainData["DomainName"].asString();
|
||||
if(!valueDomainData["Exists"].isNull())
|
||||
domainObject.exists = valueDomainData["Exists"].asString();
|
||||
if(!valueDomainData["Message"].isNull())
|
||||
domainObject.message = valueDomainData["Message"].asString();
|
||||
domain_.push_back(domainObject);
|
||||
}
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["TransactionId"].isNull())
|
||||
transactionId_ = value["TransactionId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<GetDomainResult::Data> GetDomainResult::getDomain()const
|
||||
{
|
||||
return domain_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string GetDomainResult::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
104
dnsknocker/src/model/GetResourceRecordsRequest.cc
Normal file
104
dnsknocker/src/model/GetResourceRecordsRequest.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT 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/dnsknocker/model/GetResourceRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::DnsKnocker::Model::GetResourceRecordsRequest;
|
||||
|
||||
GetResourceRecordsRequest::GetResourceRecordsRequest() :
|
||||
RpcServiceRequest("dnsknocker", "2019-09-10", "GetResourceRecords")
|
||||
{}
|
||||
|
||||
GetResourceRecordsRequest::~GetResourceRecordsRequest()
|
||||
{}
|
||||
|
||||
std::string GetResourceRecordsRequest::getAccessID()const
|
||||
{
|
||||
return accessID_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setAccessID(const std::string& accessID)
|
||||
{
|
||||
accessID_ = accessID;
|
||||
setCoreParameter("AccessID", accessID);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getAccessSecret()const
|
||||
{
|
||||
return accessSecret_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setAccessSecret(const std::string& accessSecret)
|
||||
{
|
||||
accessSecret_ = accessSecret;
|
||||
setCoreParameter("AccessSecret", accessSecret);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getZone()const
|
||||
{
|
||||
return zone_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setZone(const std::string& zone)
|
||||
{
|
||||
zone_ = zone;
|
||||
setCoreParameter("Zone", zone);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setCoreParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getTransactionId()const
|
||||
{
|
||||
return transactionId_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setTransactionId(const std::string& transactionId)
|
||||
{
|
||||
transactionId_ = transactionId;
|
||||
setCoreParameter("TransactionId", transactionId);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getDomainLine()const
|
||||
{
|
||||
return domainLine_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setDomainLine(const std::string& domainLine)
|
||||
{
|
||||
domainLine_ = domainLine;
|
||||
setCoreParameter("DomainLine", domainLine);
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsRequest::getGroup()const
|
||||
{
|
||||
return group_;
|
||||
}
|
||||
|
||||
void GetResourceRecordsRequest::setGroup(const std::string& group)
|
||||
{
|
||||
group_ = group;
|
||||
setCoreParameter("Group", group);
|
||||
}
|
||||
|
||||
73
dnsknocker/src/model/GetResourceRecordsResult.cc
Normal file
73
dnsknocker/src/model/GetResourceRecordsResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dnsknocker/model/GetResourceRecordsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::DnsKnocker;
|
||||
using namespace AlibabaCloud::DnsKnocker::Model;
|
||||
|
||||
GetResourceRecordsResult::GetResourceRecordsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetResourceRecordsResult::GetResourceRecordsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetResourceRecordsResult::~GetResourceRecordsResult()
|
||||
{}
|
||||
|
||||
void GetResourceRecordsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResourceRecordSet = value["ResourceRecordSet"]["Data"];
|
||||
for (const auto &item : allResourceRecordSet)
|
||||
resourceRecordSet_.push_back(item.asString());
|
||||
if(!value["ResultCode"].isNull())
|
||||
resultCode_ = value["ResultCode"].asString();
|
||||
if(!value["ResultMessage"].isNull())
|
||||
resultMessage_ = value["ResultMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> GetResourceRecordsResult::getResourceRecordSet()const
|
||||
{
|
||||
return resourceRecordSet_;
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsResult::getResultMessage()const
|
||||
{
|
||||
return resultMessage_;
|
||||
}
|
||||
|
||||
std::string GetResourceRecordsResult::getResultCode()const
|
||||
{
|
||||
return resultCode_;
|
||||
}
|
||||
|
||||
bool GetResourceRecordsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -85,8 +85,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/CreateDeploymentSetResult.h
|
||||
include/alibabacloud/ecs/model/CreateDiskRequest.h
|
||||
include/alibabacloud/ecs/model/CreateDiskResult.h
|
||||
include/alibabacloud/ecs/model/CreateFleetRequest.h
|
||||
include/alibabacloud/ecs/model/CreateFleetResult.h
|
||||
include/alibabacloud/ecs/model/CreateForwardEntryRequest.h
|
||||
include/alibabacloud/ecs/model/CreateForwardEntryResult.h
|
||||
include/alibabacloud/ecs/model/CreateHaVipRequest.h
|
||||
@@ -143,8 +141,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DeleteDeploymentSetResult.h
|
||||
include/alibabacloud/ecs/model/DeleteDiskRequest.h
|
||||
include/alibabacloud/ecs/model/DeleteDiskResult.h
|
||||
include/alibabacloud/ecs/model/DeleteFleetRequest.h
|
||||
include/alibabacloud/ecs/model/DeleteFleetResult.h
|
||||
include/alibabacloud/ecs/model/DeleteForwardEntryRequest.h
|
||||
include/alibabacloud/ecs/model/DeleteForwardEntryResult.h
|
||||
include/alibabacloud/ecs/model/DeleteHaVipRequest.h
|
||||
@@ -235,12 +231,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/DescribeEipMonitorDataResult.h
|
||||
include/alibabacloud/ecs/model/DescribeEniMonitorDataRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeEniMonitorDataResult.h
|
||||
include/alibabacloud/ecs/model/DescribeFleetHistoryRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeFleetHistoryResult.h
|
||||
include/alibabacloud/ecs/model/DescribeFleetInstancesRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeFleetInstancesResult.h
|
||||
include/alibabacloud/ecs/model/DescribeFleetsRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeFleetsResult.h
|
||||
include/alibabacloud/ecs/model/DescribeForwardTableEntriesRequest.h
|
||||
include/alibabacloud/ecs/model/DescribeForwardTableEntriesResult.h
|
||||
include/alibabacloud/ecs/model/DescribeHaVipsRequest.h
|
||||
@@ -433,8 +423,6 @@ set(ecs_public_header_model
|
||||
include/alibabacloud/ecs/model/ModifyDiskSpecResult.h
|
||||
include/alibabacloud/ecs/model/ModifyEipAddressAttributeRequest.h
|
||||
include/alibabacloud/ecs/model/ModifyEipAddressAttributeResult.h
|
||||
include/alibabacloud/ecs/model/ModifyFleetRequest.h
|
||||
include/alibabacloud/ecs/model/ModifyFleetResult.h
|
||||
include/alibabacloud/ecs/model/ModifyForwardEntryRequest.h
|
||||
include/alibabacloud/ecs/model/ModifyForwardEntryResult.h
|
||||
include/alibabacloud/ecs/model/ModifyHaVipAttributeRequest.h
|
||||
@@ -634,8 +622,6 @@ set(ecs_src
|
||||
src/model/CreateDeploymentSetResult.cc
|
||||
src/model/CreateDiskRequest.cc
|
||||
src/model/CreateDiskResult.cc
|
||||
src/model/CreateFleetRequest.cc
|
||||
src/model/CreateFleetResult.cc
|
||||
src/model/CreateForwardEntryRequest.cc
|
||||
src/model/CreateForwardEntryResult.cc
|
||||
src/model/CreateHaVipRequest.cc
|
||||
@@ -692,8 +678,6 @@ set(ecs_src
|
||||
src/model/DeleteDeploymentSetResult.cc
|
||||
src/model/DeleteDiskRequest.cc
|
||||
src/model/DeleteDiskResult.cc
|
||||
src/model/DeleteFleetRequest.cc
|
||||
src/model/DeleteFleetResult.cc
|
||||
src/model/DeleteForwardEntryRequest.cc
|
||||
src/model/DeleteForwardEntryResult.cc
|
||||
src/model/DeleteHaVipRequest.cc
|
||||
@@ -784,12 +768,6 @@ set(ecs_src
|
||||
src/model/DescribeEipMonitorDataResult.cc
|
||||
src/model/DescribeEniMonitorDataRequest.cc
|
||||
src/model/DescribeEniMonitorDataResult.cc
|
||||
src/model/DescribeFleetHistoryRequest.cc
|
||||
src/model/DescribeFleetHistoryResult.cc
|
||||
src/model/DescribeFleetInstancesRequest.cc
|
||||
src/model/DescribeFleetInstancesResult.cc
|
||||
src/model/DescribeFleetsRequest.cc
|
||||
src/model/DescribeFleetsResult.cc
|
||||
src/model/DescribeForwardTableEntriesRequest.cc
|
||||
src/model/DescribeForwardTableEntriesResult.cc
|
||||
src/model/DescribeHaVipsRequest.cc
|
||||
@@ -982,8 +960,6 @@ set(ecs_src
|
||||
src/model/ModifyDiskSpecResult.cc
|
||||
src/model/ModifyEipAddressAttributeRequest.cc
|
||||
src/model/ModifyEipAddressAttributeResult.cc
|
||||
src/model/ModifyFleetRequest.cc
|
||||
src/model/ModifyFleetResult.cc
|
||||
src/model/ModifyForwardEntryRequest.cc
|
||||
src/model/ModifyForwardEntryResult.cc
|
||||
src/model/ModifyHaVipAttributeRequest.cc
|
||||
|
||||
@@ -86,8 +86,6 @@
|
||||
#include "model/CreateDeploymentSetResult.h"
|
||||
#include "model/CreateDiskRequest.h"
|
||||
#include "model/CreateDiskResult.h"
|
||||
#include "model/CreateFleetRequest.h"
|
||||
#include "model/CreateFleetResult.h"
|
||||
#include "model/CreateForwardEntryRequest.h"
|
||||
#include "model/CreateForwardEntryResult.h"
|
||||
#include "model/CreateHaVipRequest.h"
|
||||
@@ -144,8 +142,6 @@
|
||||
#include "model/DeleteDeploymentSetResult.h"
|
||||
#include "model/DeleteDiskRequest.h"
|
||||
#include "model/DeleteDiskResult.h"
|
||||
#include "model/DeleteFleetRequest.h"
|
||||
#include "model/DeleteFleetResult.h"
|
||||
#include "model/DeleteForwardEntryRequest.h"
|
||||
#include "model/DeleteForwardEntryResult.h"
|
||||
#include "model/DeleteHaVipRequest.h"
|
||||
@@ -236,12 +232,6 @@
|
||||
#include "model/DescribeEipMonitorDataResult.h"
|
||||
#include "model/DescribeEniMonitorDataRequest.h"
|
||||
#include "model/DescribeEniMonitorDataResult.h"
|
||||
#include "model/DescribeFleetHistoryRequest.h"
|
||||
#include "model/DescribeFleetHistoryResult.h"
|
||||
#include "model/DescribeFleetInstancesRequest.h"
|
||||
#include "model/DescribeFleetInstancesResult.h"
|
||||
#include "model/DescribeFleetsRequest.h"
|
||||
#include "model/DescribeFleetsResult.h"
|
||||
#include "model/DescribeForwardTableEntriesRequest.h"
|
||||
#include "model/DescribeForwardTableEntriesResult.h"
|
||||
#include "model/DescribeHaVipsRequest.h"
|
||||
@@ -434,8 +424,6 @@
|
||||
#include "model/ModifyDiskSpecResult.h"
|
||||
#include "model/ModifyEipAddressAttributeRequest.h"
|
||||
#include "model/ModifyEipAddressAttributeResult.h"
|
||||
#include "model/ModifyFleetRequest.h"
|
||||
#include "model/ModifyFleetResult.h"
|
||||
#include "model/ModifyForwardEntryRequest.h"
|
||||
#include "model/ModifyForwardEntryResult.h"
|
||||
#include "model/ModifyHaVipAttributeRequest.h"
|
||||
@@ -673,9 +661,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateDiskResult> CreateDiskOutcome;
|
||||
typedef std::future<CreateDiskOutcome> CreateDiskOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateDiskRequest&, const CreateDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDiskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateFleetResult> CreateFleetOutcome;
|
||||
typedef std::future<CreateFleetOutcome> CreateFleetOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateFleetRequest&, const CreateFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateFleetAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateForwardEntryResult> CreateForwardEntryOutcome;
|
||||
typedef std::future<CreateForwardEntryOutcome> CreateForwardEntryOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::CreateForwardEntryRequest&, const CreateForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateForwardEntryAsyncHandler;
|
||||
@@ -760,9 +745,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteDiskResult> DeleteDiskOutcome;
|
||||
typedef std::future<DeleteDiskOutcome> DeleteDiskOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteDiskRequest&, const DeleteDiskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteDiskAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteFleetResult> DeleteFleetOutcome;
|
||||
typedef std::future<DeleteFleetOutcome> DeleteFleetOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteFleetRequest&, const DeleteFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteFleetAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteForwardEntryResult> DeleteForwardEntryOutcome;
|
||||
typedef std::future<DeleteForwardEntryOutcome> DeleteForwardEntryOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DeleteForwardEntryRequest&, const DeleteForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteForwardEntryAsyncHandler;
|
||||
@@ -898,15 +880,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeEniMonitorDataResult> DescribeEniMonitorDataOutcome;
|
||||
typedef std::future<DescribeEniMonitorDataOutcome> DescribeEniMonitorDataOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeEniMonitorDataRequest&, const DescribeEniMonitorDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEniMonitorDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFleetHistoryResult> DescribeFleetHistoryOutcome;
|
||||
typedef std::future<DescribeFleetHistoryOutcome> DescribeFleetHistoryOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeFleetHistoryRequest&, const DescribeFleetHistoryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetHistoryAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFleetInstancesResult> DescribeFleetInstancesOutcome;
|
||||
typedef std::future<DescribeFleetInstancesOutcome> DescribeFleetInstancesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeFleetInstancesRequest&, const DescribeFleetInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFleetsResult> DescribeFleetsOutcome;
|
||||
typedef std::future<DescribeFleetsOutcome> DescribeFleetsOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeFleetsRequest&, const DescribeFleetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFleetsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeForwardTableEntriesResult> DescribeForwardTableEntriesOutcome;
|
||||
typedef std::future<DescribeForwardTableEntriesOutcome> DescribeForwardTableEntriesOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::DescribeForwardTableEntriesRequest&, const DescribeForwardTableEntriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeForwardTableEntriesAsyncHandler;
|
||||
@@ -1195,9 +1168,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyEipAddressAttributeResult> ModifyEipAddressAttributeOutcome;
|
||||
typedef std::future<ModifyEipAddressAttributeOutcome> ModifyEipAddressAttributeOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyEipAddressAttributeRequest&, const ModifyEipAddressAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyEipAddressAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyFleetResult> ModifyFleetOutcome;
|
||||
typedef std::future<ModifyFleetOutcome> ModifyFleetOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyFleetRequest&, const ModifyFleetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyFleetAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyForwardEntryResult> ModifyForwardEntryOutcome;
|
||||
typedef std::future<ModifyForwardEntryOutcome> ModifyForwardEntryOutcomeCallable;
|
||||
typedef std::function<void(const EcsClient*, const Model::ModifyForwardEntryRequest&, const ModifyForwardEntryOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyForwardEntryAsyncHandler;
|
||||
@@ -1497,9 +1467,6 @@ namespace AlibabaCloud
|
||||
CreateDiskOutcome createDisk(const Model::CreateDiskRequest &request)const;
|
||||
void createDiskAsync(const Model::CreateDiskRequest& request, const CreateDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDiskOutcomeCallable createDiskCallable(const Model::CreateDiskRequest& request) const;
|
||||
CreateFleetOutcome createFleet(const Model::CreateFleetRequest &request)const;
|
||||
void createFleetAsync(const Model::CreateFleetRequest& request, const CreateFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateFleetOutcomeCallable createFleetCallable(const Model::CreateFleetRequest& request) const;
|
||||
CreateForwardEntryOutcome createForwardEntry(const Model::CreateForwardEntryRequest &request)const;
|
||||
void createForwardEntryAsync(const Model::CreateForwardEntryRequest& request, const CreateForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateForwardEntryOutcomeCallable createForwardEntryCallable(const Model::CreateForwardEntryRequest& request) const;
|
||||
@@ -1584,9 +1551,6 @@ namespace AlibabaCloud
|
||||
DeleteDiskOutcome deleteDisk(const Model::DeleteDiskRequest &request)const;
|
||||
void deleteDiskAsync(const Model::DeleteDiskRequest& request, const DeleteDiskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteDiskOutcomeCallable deleteDiskCallable(const Model::DeleteDiskRequest& request) const;
|
||||
DeleteFleetOutcome deleteFleet(const Model::DeleteFleetRequest &request)const;
|
||||
void deleteFleetAsync(const Model::DeleteFleetRequest& request, const DeleteFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteFleetOutcomeCallable deleteFleetCallable(const Model::DeleteFleetRequest& request) const;
|
||||
DeleteForwardEntryOutcome deleteForwardEntry(const Model::DeleteForwardEntryRequest &request)const;
|
||||
void deleteForwardEntryAsync(const Model::DeleteForwardEntryRequest& request, const DeleteForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteForwardEntryOutcomeCallable deleteForwardEntryCallable(const Model::DeleteForwardEntryRequest& request) const;
|
||||
@@ -1722,15 +1686,6 @@ namespace AlibabaCloud
|
||||
DescribeEniMonitorDataOutcome describeEniMonitorData(const Model::DescribeEniMonitorDataRequest &request)const;
|
||||
void describeEniMonitorDataAsync(const Model::DescribeEniMonitorDataRequest& request, const DescribeEniMonitorDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEniMonitorDataOutcomeCallable describeEniMonitorDataCallable(const Model::DescribeEniMonitorDataRequest& request) const;
|
||||
DescribeFleetHistoryOutcome describeFleetHistory(const Model::DescribeFleetHistoryRequest &request)const;
|
||||
void describeFleetHistoryAsync(const Model::DescribeFleetHistoryRequest& request, const DescribeFleetHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFleetHistoryOutcomeCallable describeFleetHistoryCallable(const Model::DescribeFleetHistoryRequest& request) const;
|
||||
DescribeFleetInstancesOutcome describeFleetInstances(const Model::DescribeFleetInstancesRequest &request)const;
|
||||
void describeFleetInstancesAsync(const Model::DescribeFleetInstancesRequest& request, const DescribeFleetInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFleetInstancesOutcomeCallable describeFleetInstancesCallable(const Model::DescribeFleetInstancesRequest& request) const;
|
||||
DescribeFleetsOutcome describeFleets(const Model::DescribeFleetsRequest &request)const;
|
||||
void describeFleetsAsync(const Model::DescribeFleetsRequest& request, const DescribeFleetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFleetsOutcomeCallable describeFleetsCallable(const Model::DescribeFleetsRequest& request) const;
|
||||
DescribeForwardTableEntriesOutcome describeForwardTableEntries(const Model::DescribeForwardTableEntriesRequest &request)const;
|
||||
void describeForwardTableEntriesAsync(const Model::DescribeForwardTableEntriesRequest& request, const DescribeForwardTableEntriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeForwardTableEntriesOutcomeCallable describeForwardTableEntriesCallable(const Model::DescribeForwardTableEntriesRequest& request) const;
|
||||
@@ -2019,9 +1974,6 @@ namespace AlibabaCloud
|
||||
ModifyEipAddressAttributeOutcome modifyEipAddressAttribute(const Model::ModifyEipAddressAttributeRequest &request)const;
|
||||
void modifyEipAddressAttributeAsync(const Model::ModifyEipAddressAttributeRequest& request, const ModifyEipAddressAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyEipAddressAttributeOutcomeCallable modifyEipAddressAttributeCallable(const Model::ModifyEipAddressAttributeRequest& request) const;
|
||||
ModifyFleetOutcome modifyFleet(const Model::ModifyFleetRequest &request)const;
|
||||
void modifyFleetAsync(const Model::ModifyFleetRequest& request, const ModifyFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyFleetOutcomeCallable modifyFleetCallable(const Model::ModifyFleetRequest& request) const;
|
||||
ModifyForwardEntryOutcome modifyForwardEntry(const Model::ModifyForwardEntryRequest &request)const;
|
||||
void modifyForwardEntryAsync(const Model::ModifyForwardEntryRequest& request, const ModifyForwardEntryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyForwardEntryOutcomeCallable modifyForwardEntryCallable(const Model::ModifyForwardEntryRequest& request) const;
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT CreateFleetRequest : public RpcServiceRequest
|
||||
{
|
||||
struct LaunchTemplateConfig
|
||||
{
|
||||
std::string instanceType;
|
||||
double maxPrice;
|
||||
std::string vSwitchId;
|
||||
double weightedCapacity;
|
||||
int priority;
|
||||
};
|
||||
|
||||
public:
|
||||
CreateFleetRequest();
|
||||
~CreateFleetRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getFleetType()const;
|
||||
void setFleetType(const std::string& fleetType);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
bool getTerminateInstancesWithExpiration()const;
|
||||
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
|
||||
std::string getOnDemandTargetCapacity()const;
|
||||
void setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity);
|
||||
std::string getFleetName()const;
|
||||
void setFleetName(const std::string& fleetName);
|
||||
std::string getSpotAllocationStrategy()const;
|
||||
void setSpotAllocationStrategy(const std::string& spotAllocationStrategy);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
bool getTerminateInstances()const;
|
||||
void setTerminateInstances(bool terminateInstances);
|
||||
std::string getDefaultTargetCapacityType()const;
|
||||
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
|
||||
std::string getExcessCapacityTerminationPolicy()const;
|
||||
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
|
||||
std::vector<LaunchTemplateConfig> getLaunchTemplateConfig()const;
|
||||
void setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig);
|
||||
std::string getValidUntil()const;
|
||||
void setValidUntil(const std::string& validUntil);
|
||||
std::string getFillGapWithOnDemand()const;
|
||||
void setFillGapWithOnDemand(const std::string& fillGapWithOnDemand);
|
||||
std::string getSpotInstanceInterruptionBehavior()const;
|
||||
void setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior);
|
||||
std::string getLaunchTemplateId()const;
|
||||
void setLaunchTemplateId(const std::string& launchTemplateId);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
int getSpotInstancePoolsToUseCount()const;
|
||||
void setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getLaunchTemplateVersion()const;
|
||||
void setLaunchTemplateVersion(const std::string& launchTemplateVersion);
|
||||
std::string getTotalTargetCapacity()const;
|
||||
void setTotalTargetCapacity(const std::string& totalTargetCapacity);
|
||||
std::string getOnDemandAllocationStrategy()const;
|
||||
void setOnDemandAllocationStrategy(const std::string& onDemandAllocationStrategy);
|
||||
std::string getSpotTargetCapacity()const;
|
||||
void setSpotTargetCapacity(const std::string& spotTargetCapacity);
|
||||
std::string getValidFrom()const;
|
||||
void setValidFrom(const std::string& validFrom);
|
||||
float getMaxSpotPrice()const;
|
||||
void setMaxSpotPrice(float maxSpotPrice);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string fleetType_;
|
||||
std::string description_;
|
||||
bool terminateInstancesWithExpiration_;
|
||||
std::string onDemandTargetCapacity_;
|
||||
std::string fleetName_;
|
||||
std::string spotAllocationStrategy_;
|
||||
std::string regionId_;
|
||||
bool terminateInstances_;
|
||||
std::string defaultTargetCapacityType_;
|
||||
std::string excessCapacityTerminationPolicy_;
|
||||
std::vector<LaunchTemplateConfig> launchTemplateConfig_;
|
||||
std::string validUntil_;
|
||||
std::string fillGapWithOnDemand_;
|
||||
std::string spotInstanceInterruptionBehavior_;
|
||||
std::string launchTemplateId_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
int spotInstancePoolsToUseCount_;
|
||||
long ownerId_;
|
||||
std::string launchTemplateVersion_;
|
||||
std::string totalTargetCapacity_;
|
||||
std::string onDemandAllocationStrategy_;
|
||||
std::string spotTargetCapacity_;
|
||||
std::string validFrom_;
|
||||
float maxSpotPrice_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_CREATEFLEETREQUEST_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFleetInstancesRequest();
|
||||
~DescribeFleetInstancesRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getFleetId()const;
|
||||
void setFleetId(const std::string& fleetId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string fleetId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESREQUEST_H_
|
||||
@@ -1,73 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeFleetInstancesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Instance
|
||||
{
|
||||
std::string status;
|
||||
bool isSpot;
|
||||
bool ioOptimized;
|
||||
std::string instanceId;
|
||||
int memory;
|
||||
std::string zoneNo;
|
||||
int cores;
|
||||
std::string izNo;
|
||||
bool osType;
|
||||
bool networkType;
|
||||
std::string creationTime;
|
||||
std::string regionId;
|
||||
std::string instanceType;
|
||||
};
|
||||
|
||||
|
||||
DescribeFleetInstancesResult();
|
||||
explicit DescribeFleetInstancesResult(const std::string &payload);
|
||||
~DescribeFleetInstancesResult();
|
||||
std::vector<Instance> getInstances()const;
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Instance> instances_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETINSTANCESRESULT_H_
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeFleetsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFleetsRequest();
|
||||
~DescribeFleetsRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getFleetName()const;
|
||||
void setFleetName(const std::string& fleetName);
|
||||
std::vector<std::string> getFleetStatus()const;
|
||||
void setFleetStatus(const std::vector<std::string>& fleetStatus);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::vector<std::string> getFleetId()const;
|
||||
void setFleetId(const std::vector<std::string>& fleetId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
int pageNumber_;
|
||||
std::string fleetName_;
|
||||
std::vector<std::string> fleetStatus_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::vector<std::string> fleetId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSREQUEST_H_
|
||||
@@ -1,105 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT DescribeFleetsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Fleet
|
||||
{
|
||||
struct SpotOptions
|
||||
{
|
||||
std::string allocationStrategy;
|
||||
std::string instanceInterruptionBehavior;
|
||||
int instancePoolsToUseCount;
|
||||
};
|
||||
struct OnDemandOptions
|
||||
{
|
||||
std::string allocationStrategy;
|
||||
};
|
||||
struct TargetCapacitySpecification
|
||||
{
|
||||
std::string defaultTargetCapacityType;
|
||||
float totalTargetCapacity;
|
||||
float onDemandTargetCapacity;
|
||||
float spotTargetCapacity;
|
||||
bool fillGapWithOnDemand;
|
||||
};
|
||||
struct LaunchTemplateConfig
|
||||
{
|
||||
float weightedCapacity;
|
||||
float priority;
|
||||
std::string instanceType;
|
||||
float maxPrice;
|
||||
std::string vSWitchId;
|
||||
};
|
||||
std::string status;
|
||||
TargetCapacitySpecification targetCapacitySpecification;
|
||||
OnDemandOptions onDemandOptions;
|
||||
std::string excessCapacityTerminationPolicy;
|
||||
std::string fleetType;
|
||||
SpotOptions spotOptions;
|
||||
std::vector<Fleet::LaunchTemplateConfig> launchTemplateConfigs;
|
||||
std::string launchTemplateId;
|
||||
std::string validUntil;
|
||||
bool terminateInstancesWithExpiration;
|
||||
std::string fleetName;
|
||||
std::string state;
|
||||
std::string fleetId;
|
||||
std::string launchTemplateVersion;
|
||||
std::string creationTime;
|
||||
std::string validFrom;
|
||||
float maxSpotPrice;
|
||||
std::string regionId;
|
||||
bool terminateInstances;
|
||||
};
|
||||
|
||||
|
||||
DescribeFleetsResult();
|
||||
explicit DescribeFleetsResult(const std::string &payload);
|
||||
~DescribeFleetsResult();
|
||||
std::vector<Fleet> getFleets()const;
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Fleet> fleets_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBEFLEETSRESULT_H_
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getInvokeStatus()const;
|
||||
void setInvokeStatus(const std::string& invokeStatus);
|
||||
bool getIncludeOutput()const;
|
||||
void setIncludeOutput(bool includeOutput);
|
||||
std::string getCommandId()const;
|
||||
void setCommandId(const std::string& commandId);
|
||||
long getPageNumber()const;
|
||||
@@ -69,6 +71,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string invokeStatus_;
|
||||
bool includeOutput_;
|
||||
std::string commandId_;
|
||||
long pageNumber_;
|
||||
std::string regionId_;
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
std::string finishTime;
|
||||
std::string instanceId;
|
||||
std::string instanceInvokeStatus;
|
||||
std::string output;
|
||||
long exitCode;
|
||||
std::string creationTime;
|
||||
std::string startTime;
|
||||
};
|
||||
|
||||
@@ -69,6 +69,8 @@ namespace AlibabaCloud
|
||||
void setSystemDiskCategory(const std::string& systemDiskCategory);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
int getCapacity()const;
|
||||
void setCapacity(int capacity);
|
||||
std::string getSystemDiskPerformanceLevel()const;
|
||||
void setSystemDiskPerformanceLevel(const std::string& systemDiskPerformanceLevel);
|
||||
std::string getDataDisk4Category()const;
|
||||
@@ -122,6 +124,7 @@ namespace AlibabaCloud
|
||||
int internetMaxBandwidthOut_;
|
||||
std::string systemDiskCategory_;
|
||||
std::string platform_;
|
||||
int capacity_;
|
||||
std::string systemDiskPerformanceLevel_;
|
||||
std::string dataDisk4Category_;
|
||||
std::string dataDisk4PerformanceLevel_;
|
||||
|
||||
@@ -43,6 +43,8 @@ namespace AlibabaCloud
|
||||
void setDiskName(const std::string& diskName);
|
||||
bool getDeleteAutoSnapshot()const;
|
||||
void setDeleteAutoSnapshot(bool deleteAutoSnapshot);
|
||||
std::vector<std::string> getDiskIds()const;
|
||||
void setDiskIds(const std::vector<std::string>& diskIds);
|
||||
std::string getDiskId()const;
|
||||
void setDiskId(const std::string& diskId);
|
||||
bool getDeleteWithInstance()const;
|
||||
@@ -61,6 +63,7 @@ namespace AlibabaCloud
|
||||
std::string description_;
|
||||
std::string diskName_;
|
||||
bool deleteAutoSnapshot_;
|
||||
std::vector<std::string> diskIds_;
|
||||
std::string diskId_;
|
||||
bool deleteWithInstance_;
|
||||
bool enableAutoSnapshot_;
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_
|
||||
#define ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/ecs/EcsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Ecs
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ECS_EXPORT ModifyFleetRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyFleetRequest();
|
||||
~ModifyFleetRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
bool getTerminateInstancesWithExpiration()const;
|
||||
void setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration);
|
||||
std::string getOnDemandTargetCapacity()const;
|
||||
void setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getDefaultTargetCapacityType()const;
|
||||
void setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType);
|
||||
std::string getExcessCapacityTerminationPolicy()const;
|
||||
void setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy);
|
||||
std::string getResourceOwnerAccount()const;
|
||||
void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
|
||||
std::string getOwnerAccount()const;
|
||||
void setOwnerAccount(const std::string& ownerAccount);
|
||||
long getOwnerId()const;
|
||||
void setOwnerId(long ownerId);
|
||||
std::string getFleetId()const;
|
||||
void setFleetId(const std::string& fleetId);
|
||||
std::string getTotalTargetCapacity()const;
|
||||
void setTotalTargetCapacity(const std::string& totalTargetCapacity);
|
||||
std::string getSpotTargetCapacity()const;
|
||||
void setSpotTargetCapacity(const std::string& spotTargetCapacity);
|
||||
float getMaxSpotPrice()const;
|
||||
void setMaxSpotPrice(float maxSpotPrice);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
bool terminateInstancesWithExpiration_;
|
||||
std::string onDemandTargetCapacity_;
|
||||
std::string regionId_;
|
||||
std::string defaultTargetCapacityType_;
|
||||
std::string excessCapacityTerminationPolicy_;
|
||||
std::string resourceOwnerAccount_;
|
||||
std::string ownerAccount_;
|
||||
long ownerId_;
|
||||
std::string fleetId_;
|
||||
std::string totalTargetCapacity_;
|
||||
std::string spotTargetCapacity_;
|
||||
float maxSpotPrice_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ECS_MODEL_MODIFYFLEETREQUEST_H_
|
||||
@@ -41,6 +41,8 @@ namespace AlibabaCloud
|
||||
void setClientToken(const std::string& clientToken);
|
||||
std::string getDescription()const;
|
||||
void setDescription(const std::string& description);
|
||||
std::string getPlatform()const;
|
||||
void setPlatform(const std::string& platform);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
std::string getRegionId()const;
|
||||
@@ -72,6 +74,7 @@ namespace AlibabaCloud
|
||||
long resourceOwnerId_;
|
||||
std::string clientToken_;
|
||||
std::string description_;
|
||||
std::string platform_;
|
||||
std::string resourceGroupId_;
|
||||
std::string regionId_;
|
||||
std::string scope_;
|
||||
|
||||
@@ -55,6 +55,7 @@ namespace AlibabaCloud
|
||||
std::string device;
|
||||
bool deleteWithInstance;
|
||||
std::string performanceLevel;
|
||||
std::string autoSnapshotPolicyId;
|
||||
};
|
||||
|
||||
public:
|
||||
@@ -89,6 +90,8 @@ namespace AlibabaCloud
|
||||
void setStorageSetPartitionNumber(int storageSetPartitionNumber);
|
||||
std::vector<Tag> getTag()const;
|
||||
void setTag(const std::vector<Tag>& tag);
|
||||
std::string getSystemDiskAutoSnapshotPolicyId()const;
|
||||
void setSystemDiskAutoSnapshotPolicyId(const std::string& systemDiskAutoSnapshotPolicyId);
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
@@ -209,6 +212,7 @@ namespace AlibabaCloud
|
||||
std::string password_;
|
||||
int storageSetPartitionNumber_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string systemDiskAutoSnapshotPolicyId_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
bool dryRun_;
|
||||
|
||||
@@ -1203,42 +1203,6 @@ EcsClient::CreateDiskOutcomeCallable EcsClient::createDiskCallable(const CreateD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CreateFleetOutcome EcsClient::createFleet(const CreateFleetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateFleetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateFleetOutcome(CreateFleetResult(outcome.result()));
|
||||
else
|
||||
return CreateFleetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::createFleetAsync(const CreateFleetRequest& request, const CreateFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createFleet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::CreateFleetOutcomeCallable EcsClient::createFleetCallable(const CreateFleetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateFleetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createFleet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::CreateForwardEntryOutcome EcsClient::createForwardEntry(const CreateForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2247,42 +2211,6 @@ EcsClient::DeleteDiskOutcomeCallable EcsClient::deleteDiskCallable(const DeleteD
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeleteFleetOutcome EcsClient::deleteFleet(const DeleteFleetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteFleetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteFleetOutcome(DeleteFleetResult(outcome.result()));
|
||||
else
|
||||
return DeleteFleetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::deleteFleetAsync(const DeleteFleetRequest& request, const DeleteFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteFleet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DeleteFleetOutcomeCallable EcsClient::deleteFleetCallable(const DeleteFleetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteFleetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteFleet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DeleteForwardEntryOutcome EcsClient::deleteForwardEntry(const DeleteForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3903,114 +3831,6 @@ EcsClient::DescribeEniMonitorDataOutcomeCallable EcsClient::describeEniMonitorDa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeFleetHistoryOutcome EcsClient::describeFleetHistory(const DescribeFleetHistoryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFleetHistoryOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFleetHistoryOutcome(DescribeFleetHistoryResult(outcome.result()));
|
||||
else
|
||||
return DescribeFleetHistoryOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeFleetHistoryAsync(const DescribeFleetHistoryRequest& request, const DescribeFleetHistoryAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFleetHistory(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeFleetHistoryOutcomeCallable EcsClient::describeFleetHistoryCallable(const DescribeFleetHistoryRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFleetHistoryOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFleetHistory(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeFleetInstancesOutcome EcsClient::describeFleetInstances(const DescribeFleetInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFleetInstancesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFleetInstancesOutcome(DescribeFleetInstancesResult(outcome.result()));
|
||||
else
|
||||
return DescribeFleetInstancesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeFleetInstancesAsync(const DescribeFleetInstancesRequest& request, const DescribeFleetInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFleetInstances(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeFleetInstancesOutcomeCallable EcsClient::describeFleetInstancesCallable(const DescribeFleetInstancesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFleetInstancesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFleetInstances(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeFleetsOutcome EcsClient::describeFleets(const DescribeFleetsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFleetsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFleetsOutcome(DescribeFleetsResult(outcome.result()));
|
||||
else
|
||||
return DescribeFleetsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::describeFleetsAsync(const DescribeFleetsRequest& request, const DescribeFleetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFleets(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::DescribeFleetsOutcomeCallable EcsClient::describeFleetsCallable(const DescribeFleetsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFleetsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFleets(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::DescribeForwardTableEntriesOutcome EcsClient::describeForwardTableEntries(const DescribeForwardTableEntriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -7467,42 +7287,6 @@ EcsClient::ModifyEipAddressAttributeOutcomeCallable EcsClient::modifyEipAddressA
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyFleetOutcome EcsClient::modifyFleet(const ModifyFleetRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyFleetOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyFleetOutcome(ModifyFleetResult(outcome.result()));
|
||||
else
|
||||
return ModifyFleetOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void EcsClient::modifyFleetAsync(const ModifyFleetRequest& request, const ModifyFleetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyFleet(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
EcsClient::ModifyFleetOutcomeCallable EcsClient::modifyFleetCallable(const ModifyFleetRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyFleetOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyFleet(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
EcsClient::ModifyForwardEntryOutcome EcsClient::modifyForwardEntry(const ModifyForwardEntryRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,322 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/CreateFleetRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::CreateFleetRequest;
|
||||
|
||||
CreateFleetRequest::CreateFleetRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "CreateFleet")
|
||||
{}
|
||||
|
||||
CreateFleetRequest::~CreateFleetRequest()
|
||||
{}
|
||||
|
||||
long CreateFleetRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getFleetType()const
|
||||
{
|
||||
return fleetType_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setFleetType(const std::string& fleetType)
|
||||
{
|
||||
fleetType_ = fleetType;
|
||||
setCoreParameter("FleetType", fleetType);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
}
|
||||
|
||||
bool CreateFleetRequest::getTerminateInstancesWithExpiration()const
|
||||
{
|
||||
return terminateInstancesWithExpiration_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setTerminateInstancesWithExpiration(bool terminateInstancesWithExpiration)
|
||||
{
|
||||
terminateInstancesWithExpiration_ = terminateInstancesWithExpiration;
|
||||
setCoreParameter("TerminateInstancesWithExpiration", terminateInstancesWithExpiration ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getOnDemandTargetCapacity()const
|
||||
{
|
||||
return onDemandTargetCapacity_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setOnDemandTargetCapacity(const std::string& onDemandTargetCapacity)
|
||||
{
|
||||
onDemandTargetCapacity_ = onDemandTargetCapacity;
|
||||
setCoreParameter("OnDemandTargetCapacity", onDemandTargetCapacity);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getFleetName()const
|
||||
{
|
||||
return fleetName_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setFleetName(const std::string& fleetName)
|
||||
{
|
||||
fleetName_ = fleetName;
|
||||
setCoreParameter("FleetName", fleetName);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getSpotAllocationStrategy()const
|
||||
{
|
||||
return spotAllocationStrategy_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setSpotAllocationStrategy(const std::string& spotAllocationStrategy)
|
||||
{
|
||||
spotAllocationStrategy_ = spotAllocationStrategy;
|
||||
setCoreParameter("SpotAllocationStrategy", spotAllocationStrategy);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool CreateFleetRequest::getTerminateInstances()const
|
||||
{
|
||||
return terminateInstances_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setTerminateInstances(bool terminateInstances)
|
||||
{
|
||||
terminateInstances_ = terminateInstances;
|
||||
setCoreParameter("TerminateInstances", terminateInstances ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getDefaultTargetCapacityType()const
|
||||
{
|
||||
return defaultTargetCapacityType_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setDefaultTargetCapacityType(const std::string& defaultTargetCapacityType)
|
||||
{
|
||||
defaultTargetCapacityType_ = defaultTargetCapacityType;
|
||||
setCoreParameter("DefaultTargetCapacityType", defaultTargetCapacityType);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getExcessCapacityTerminationPolicy()const
|
||||
{
|
||||
return excessCapacityTerminationPolicy_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setExcessCapacityTerminationPolicy(const std::string& excessCapacityTerminationPolicy)
|
||||
{
|
||||
excessCapacityTerminationPolicy_ = excessCapacityTerminationPolicy;
|
||||
setCoreParameter("ExcessCapacityTerminationPolicy", excessCapacityTerminationPolicy);
|
||||
}
|
||||
|
||||
std::vector<CreateFleetRequest::LaunchTemplateConfig> CreateFleetRequest::getLaunchTemplateConfig()const
|
||||
{
|
||||
return launchTemplateConfig_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setLaunchTemplateConfig(const std::vector<LaunchTemplateConfig>& launchTemplateConfig)
|
||||
{
|
||||
launchTemplateConfig_ = launchTemplateConfig;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= launchTemplateConfig.size(); i++) {
|
||||
auto obj = launchTemplateConfig.at(i);
|
||||
std::string str ="LaunchTemplateConfig."+ std::to_string(i);
|
||||
setCoreParameter(str + ".InstanceType", obj.instanceType);
|
||||
setCoreParameter(str + ".MaxPrice", std::to_string(obj.maxPrice));
|
||||
setCoreParameter(str + ".VSwitchId", obj.vSwitchId);
|
||||
setCoreParameter(str + ".WeightedCapacity", std::to_string(obj.weightedCapacity));
|
||||
setCoreParameter(str + ".Priority", std::to_string(obj.priority));
|
||||
}
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getValidUntil()const
|
||||
{
|
||||
return validUntil_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setValidUntil(const std::string& validUntil)
|
||||
{
|
||||
validUntil_ = validUntil;
|
||||
setCoreParameter("ValidUntil", validUntil);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getFillGapWithOnDemand()const
|
||||
{
|
||||
return fillGapWithOnDemand_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setFillGapWithOnDemand(const std::string& fillGapWithOnDemand)
|
||||
{
|
||||
fillGapWithOnDemand_ = fillGapWithOnDemand;
|
||||
setCoreParameter("FillGapWithOnDemand", fillGapWithOnDemand);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getSpotInstanceInterruptionBehavior()const
|
||||
{
|
||||
return spotInstanceInterruptionBehavior_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setSpotInstanceInterruptionBehavior(const std::string& spotInstanceInterruptionBehavior)
|
||||
{
|
||||
spotInstanceInterruptionBehavior_ = spotInstanceInterruptionBehavior;
|
||||
setCoreParameter("SpotInstanceInterruptionBehavior", spotInstanceInterruptionBehavior);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getLaunchTemplateId()const
|
||||
{
|
||||
return launchTemplateId_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setLaunchTemplateId(const std::string& launchTemplateId)
|
||||
{
|
||||
launchTemplateId_ = launchTemplateId;
|
||||
setCoreParameter("LaunchTemplateId", launchTemplateId);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
int CreateFleetRequest::getSpotInstancePoolsToUseCount()const
|
||||
{
|
||||
return spotInstancePoolsToUseCount_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setSpotInstancePoolsToUseCount(int spotInstancePoolsToUseCount)
|
||||
{
|
||||
spotInstancePoolsToUseCount_ = spotInstancePoolsToUseCount;
|
||||
setCoreParameter("SpotInstancePoolsToUseCount", std::to_string(spotInstancePoolsToUseCount));
|
||||
}
|
||||
|
||||
long CreateFleetRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getLaunchTemplateVersion()const
|
||||
{
|
||||
return launchTemplateVersion_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setLaunchTemplateVersion(const std::string& launchTemplateVersion)
|
||||
{
|
||||
launchTemplateVersion_ = launchTemplateVersion;
|
||||
setCoreParameter("LaunchTemplateVersion", launchTemplateVersion);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getTotalTargetCapacity()const
|
||||
{
|
||||
return totalTargetCapacity_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setTotalTargetCapacity(const std::string& totalTargetCapacity)
|
||||
{
|
||||
totalTargetCapacity_ = totalTargetCapacity;
|
||||
setCoreParameter("TotalTargetCapacity", totalTargetCapacity);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getOnDemandAllocationStrategy()const
|
||||
{
|
||||
return onDemandAllocationStrategy_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setOnDemandAllocationStrategy(const std::string& onDemandAllocationStrategy)
|
||||
{
|
||||
onDemandAllocationStrategy_ = onDemandAllocationStrategy;
|
||||
setCoreParameter("OnDemandAllocationStrategy", onDemandAllocationStrategy);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getSpotTargetCapacity()const
|
||||
{
|
||||
return spotTargetCapacity_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setSpotTargetCapacity(const std::string& spotTargetCapacity)
|
||||
{
|
||||
spotTargetCapacity_ = spotTargetCapacity;
|
||||
setCoreParameter("SpotTargetCapacity", spotTargetCapacity);
|
||||
}
|
||||
|
||||
std::string CreateFleetRequest::getValidFrom()const
|
||||
{
|
||||
return validFrom_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setValidFrom(const std::string& validFrom)
|
||||
{
|
||||
validFrom_ = validFrom;
|
||||
setCoreParameter("ValidFrom", validFrom);
|
||||
}
|
||||
|
||||
float CreateFleetRequest::getMaxSpotPrice()const
|
||||
{
|
||||
return maxSpotPrice_;
|
||||
}
|
||||
|
||||
void CreateFleetRequest::setMaxSpotPrice(float maxSpotPrice)
|
||||
{
|
||||
maxSpotPrice_ = maxSpotPrice;
|
||||
setCoreParameter("MaxSpotPrice", std::to_string(maxSpotPrice));
|
||||
}
|
||||
|
||||
@@ -1,104 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DeleteFleetRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DeleteFleetRequest;
|
||||
|
||||
DeleteFleetRequest::DeleteFleetRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DeleteFleet")
|
||||
{}
|
||||
|
||||
DeleteFleetRequest::~DeleteFleetRequest()
|
||||
{}
|
||||
|
||||
long DeleteFleetRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DeleteFleetRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
bool DeleteFleetRequest::getTerminateInstances()const
|
||||
{
|
||||
return terminateInstances_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setTerminateInstances(bool terminateInstances)
|
||||
{
|
||||
terminateInstances_ = terminateInstances;
|
||||
setCoreParameter("TerminateInstances", terminateInstances ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteFleetRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DeleteFleetRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DeleteFleetRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteFleetRequest::getFleetId()const
|
||||
{
|
||||
return fleetId_;
|
||||
}
|
||||
|
||||
void DeleteFleetRequest::setFleetId(const std::string& fleetId)
|
||||
{
|
||||
fleetId_ = fleetId;
|
||||
setCoreParameter("FleetId", fleetId);
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeFleetHistoryRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeFleetHistoryRequest;
|
||||
|
||||
DescribeFleetHistoryRequest::DescribeFleetHistoryRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetHistory")
|
||||
{}
|
||||
|
||||
DescribeFleetHistoryRequest::~DescribeFleetHistoryRequest()
|
||||
{}
|
||||
|
||||
long DescribeFleetHistoryRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeFleetHistoryRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeFleetHistoryRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFleetHistoryRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeFleetHistoryRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFleetHistoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFleetHistoryRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFleetHistoryRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeFleetHistoryRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFleetHistoryRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeFleetHistoryRequest::getFleetId()const
|
||||
{
|
||||
return fleetId_;
|
||||
}
|
||||
|
||||
void DescribeFleetHistoryRequest::setFleetId(const std::string& fleetId)
|
||||
{
|
||||
fleetId_ = fleetId;
|
||||
setCoreParameter("FleetId", fleetId);
|
||||
}
|
||||
|
||||
@@ -1,94 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeFleetHistoryResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeFleetHistoryResult::DescribeFleetHistoryResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFleetHistoryResult::DescribeFleetHistoryResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFleetHistoryResult::~DescribeFleetHistoryResult()
|
||||
{}
|
||||
|
||||
void DescribeFleetHistoryResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFleetHistorysNode = value["FleetHistorys"]["FleetHistory"];
|
||||
for (auto valueFleetHistorysFleetHistory : allFleetHistorysNode)
|
||||
{
|
||||
FleetHistory fleetHistorysObject;
|
||||
if(!valueFleetHistorysFleetHistory["TaskId"].isNull())
|
||||
fleetHistorysObject.taskId = valueFleetHistorysFleetHistory["TaskId"].asString();
|
||||
if(!valueFleetHistorysFleetHistory["Status"].isNull())
|
||||
fleetHistorysObject.status = valueFleetHistorysFleetHistory["Status"].asString();
|
||||
if(!valueFleetHistorysFleetHistory["LastEventTime"].isNull())
|
||||
fleetHistorysObject.lastEventTime = valueFleetHistorysFleetHistory["LastEventTime"].asString();
|
||||
if(!valueFleetHistorysFleetHistory["StartTime"].isNull())
|
||||
fleetHistorysObject.startTime = valueFleetHistorysFleetHistory["StartTime"].asString();
|
||||
auto allActivityDetailsNode = allFleetHistorysNode["ActivityDetails"]["ActivityDetail"];
|
||||
for (auto allFleetHistorysNodeActivityDetailsActivityDetail : allActivityDetailsNode)
|
||||
{
|
||||
FleetHistory::ActivityDetail activityDetailsObject;
|
||||
if(!allFleetHistorysNodeActivityDetailsActivityDetail["Detail"].isNull())
|
||||
activityDetailsObject.detail = allFleetHistorysNodeActivityDetailsActivityDetail["Detail"].asString();
|
||||
if(!allFleetHistorysNodeActivityDetailsActivityDetail["Status"].isNull())
|
||||
activityDetailsObject.status = std::stof(allFleetHistorysNodeActivityDetailsActivityDetail["Status"].asString());
|
||||
fleetHistorysObject.activityDetails.push_back(activityDetailsObject);
|
||||
}
|
||||
fleetHistorys_.push_back(fleetHistorysObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeFleetHistoryResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeFleetHistoryResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeFleetHistoryResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeFleetHistoryResult::FleetHistory> DescribeFleetHistoryResult::getFleetHistorys()const
|
||||
{
|
||||
return fleetHistorys_;
|
||||
}
|
||||
|
||||
@@ -1,115 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeFleetInstancesRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeFleetInstancesRequest;
|
||||
|
||||
DescribeFleetInstancesRequest::DescribeFleetInstancesRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeFleetInstances")
|
||||
{}
|
||||
|
||||
DescribeFleetInstancesRequest::~DescribeFleetInstancesRequest()
|
||||
{}
|
||||
|
||||
long DescribeFleetInstancesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeFleetInstancesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeFleetInstancesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeFleetInstancesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFleetInstancesRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFleetInstancesRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeFleetInstancesRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeFleetInstancesRequest::getFleetId()const
|
||||
{
|
||||
return fleetId_;
|
||||
}
|
||||
|
||||
void DescribeFleetInstancesRequest::setFleetId(const std::string& fleetId)
|
||||
{
|
||||
fleetId_ = fleetId;
|
||||
setCoreParameter("FleetId", fleetId);
|
||||
}
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeFleetInstancesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeFleetInstancesResult::DescribeFleetInstancesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFleetInstancesResult::DescribeFleetInstancesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFleetInstancesResult::~DescribeFleetInstancesResult()
|
||||
{}
|
||||
|
||||
void DescribeFleetInstancesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allInstancesNode = value["Instances"]["Instance"];
|
||||
for (auto valueInstancesInstance : allInstancesNode)
|
||||
{
|
||||
Instance instancesObject;
|
||||
if(!valueInstancesInstance["InstanceId"].isNull())
|
||||
instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString();
|
||||
if(!valueInstancesInstance["Status"].isNull())
|
||||
instancesObject.status = valueInstancesInstance["Status"].asString();
|
||||
if(!valueInstancesInstance["RegionId"].isNull())
|
||||
instancesObject.regionId = valueInstancesInstance["RegionId"].asString();
|
||||
if(!valueInstancesInstance["IzNo"].isNull())
|
||||
instancesObject.izNo = valueInstancesInstance["IzNo"].asString();
|
||||
if(!valueInstancesInstance["ZoneNo"].isNull())
|
||||
instancesObject.zoneNo = valueInstancesInstance["ZoneNo"].asString();
|
||||
if(!valueInstancesInstance["Cores"].isNull())
|
||||
instancesObject.cores = std::stoi(valueInstancesInstance["Cores"].asString());
|
||||
if(!valueInstancesInstance["Memory"].isNull())
|
||||
instancesObject.memory = std::stoi(valueInstancesInstance["Memory"].asString());
|
||||
if(!valueInstancesInstance["InstanceType"].isNull())
|
||||
instancesObject.instanceType = valueInstancesInstance["InstanceType"].asString();
|
||||
if(!valueInstancesInstance["IsSpot"].isNull())
|
||||
instancesObject.isSpot = valueInstancesInstance["IsSpot"].asString() == "true";
|
||||
if(!valueInstancesInstance["IoOptimized"].isNull())
|
||||
instancesObject.ioOptimized = valueInstancesInstance["IoOptimized"].asString() == "true";
|
||||
if(!valueInstancesInstance["NetworkType"].isNull())
|
||||
instancesObject.networkType = valueInstancesInstance["NetworkType"].asString() == "true";
|
||||
if(!valueInstancesInstance["OsType"].isNull())
|
||||
instancesObject.osType = valueInstancesInstance["OsType"].asString() == "true";
|
||||
if(!valueInstancesInstance["CreationTime"].isNull())
|
||||
instancesObject.creationTime = valueInstancesInstance["CreationTime"].asString();
|
||||
instances_.push_back(instancesObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeFleetInstancesResult::Instance> DescribeFleetInstancesResult::getInstances()const
|
||||
{
|
||||
return instances_;
|
||||
}
|
||||
|
||||
int DescribeFleetInstancesResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeFleetInstancesResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeFleetInstancesResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeFleetsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ecs::Model::DescribeFleetsRequest;
|
||||
|
||||
DescribeFleetsRequest::DescribeFleetsRequest() :
|
||||
RpcServiceRequest("ecs", "2014-05-26", "DescribeFleets")
|
||||
{}
|
||||
|
||||
DescribeFleetsRequest::~DescribeFleetsRequest()
|
||||
{}
|
||||
|
||||
long DescribeFleetsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
int DescribeFleetsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeFleetsRequest::getFleetName()const
|
||||
{
|
||||
return fleetName_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setFleetName(const std::string& fleetName)
|
||||
{
|
||||
fleetName_ = fleetName;
|
||||
setCoreParameter("FleetName", fleetName);
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeFleetsRequest::getFleetStatus()const
|
||||
{
|
||||
return fleetStatus_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setFleetStatus(const std::vector<std::string>& fleetStatus)
|
||||
{
|
||||
fleetStatus_ = fleetStatus;
|
||||
for(int i = 0; i!= fleetStatus.size(); i++)
|
||||
setCoreParameter("FleetStatus."+ std::to_string(i), fleetStatus.at(i));
|
||||
}
|
||||
|
||||
std::string DescribeFleetsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int DescribeFleetsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeFleetsRequest::getResourceOwnerAccount()const
|
||||
{
|
||||
return resourceOwnerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
|
||||
{
|
||||
resourceOwnerAccount_ = resourceOwnerAccount;
|
||||
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
|
||||
}
|
||||
|
||||
std::string DescribeFleetsRequest::getOwnerAccount()const
|
||||
{
|
||||
return ownerAccount_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setOwnerAccount(const std::string& ownerAccount)
|
||||
{
|
||||
ownerAccount_ = ownerAccount;
|
||||
setCoreParameter("OwnerAccount", ownerAccount);
|
||||
}
|
||||
|
||||
long DescribeFleetsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setCoreParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeFleetsRequest::getFleetId()const
|
||||
{
|
||||
return fleetId_;
|
||||
}
|
||||
|
||||
void DescribeFleetsRequest::setFleetId(const std::vector<std::string>& fleetId)
|
||||
{
|
||||
fleetId_ = fleetId;
|
||||
for(int i = 0; i!= fleetId.size(); i++)
|
||||
setCoreParameter("FleetId."+ std::to_string(i), fleetId.at(i));
|
||||
}
|
||||
|
||||
@@ -1,143 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ecs/model/DescribeFleetsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ecs;
|
||||
using namespace AlibabaCloud::Ecs::Model;
|
||||
|
||||
DescribeFleetsResult::DescribeFleetsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFleetsResult::DescribeFleetsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFleetsResult::~DescribeFleetsResult()
|
||||
{}
|
||||
|
||||
void DescribeFleetsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFleetsNode = value["Fleets"]["Fleet"];
|
||||
for (auto valueFleetsFleet : allFleetsNode)
|
||||
{
|
||||
Fleet fleetsObject;
|
||||
if(!valueFleetsFleet["FleetId"].isNull())
|
||||
fleetsObject.fleetId = valueFleetsFleet["FleetId"].asString();
|
||||
if(!valueFleetsFleet["FleetName"].isNull())
|
||||
fleetsObject.fleetName = valueFleetsFleet["FleetName"].asString();
|
||||
if(!valueFleetsFleet["FleetType"].isNull())
|
||||
fleetsObject.fleetType = valueFleetsFleet["FleetType"].asString();
|
||||
if(!valueFleetsFleet["Status"].isNull())
|
||||
fleetsObject.status = valueFleetsFleet["Status"].asString();
|
||||
if(!valueFleetsFleet["State"].isNull())
|
||||
fleetsObject.state = valueFleetsFleet["State"].asString();
|
||||
if(!valueFleetsFleet["RegionId"].isNull())
|
||||
fleetsObject.regionId = valueFleetsFleet["RegionId"].asString();
|
||||
if(!valueFleetsFleet["ValidFrom"].isNull())
|
||||
fleetsObject.validFrom = valueFleetsFleet["ValidFrom"].asString();
|
||||
if(!valueFleetsFleet["ValidUntil"].isNull())
|
||||
fleetsObject.validUntil = valueFleetsFleet["ValidUntil"].asString();
|
||||
if(!valueFleetsFleet["ExcessCapacityTerminationPolicy"].isNull())
|
||||
fleetsObject.excessCapacityTerminationPolicy = valueFleetsFleet["ExcessCapacityTerminationPolicy"].asString();
|
||||
if(!valueFleetsFleet["MaxSpotPrice"].isNull())
|
||||
fleetsObject.maxSpotPrice = std::stof(valueFleetsFleet["MaxSpotPrice"].asString());
|
||||
if(!valueFleetsFleet["LaunchTemplateId"].isNull())
|
||||
fleetsObject.launchTemplateId = valueFleetsFleet["LaunchTemplateId"].asString();
|
||||
if(!valueFleetsFleet["LaunchTemplateVersion"].isNull())
|
||||
fleetsObject.launchTemplateVersion = valueFleetsFleet["LaunchTemplateVersion"].asString();
|
||||
if(!valueFleetsFleet["TerminateInstances"].isNull())
|
||||
fleetsObject.terminateInstances = valueFleetsFleet["TerminateInstances"].asString() == "true";
|
||||
if(!valueFleetsFleet["TerminateInstancesWithExpiration"].isNull())
|
||||
fleetsObject.terminateInstancesWithExpiration = valueFleetsFleet["TerminateInstancesWithExpiration"].asString() == "true";
|
||||
if(!valueFleetsFleet["CreationTime"].isNull())
|
||||
fleetsObject.creationTime = valueFleetsFleet["CreationTime"].asString();
|
||||
auto alllaunchTemplateConfigsNode = allFleetsNode["launchTemplateConfigs"]["LaunchTemplateConfig"];
|
||||
for (auto allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig : alllaunchTemplateConfigsNode)
|
||||
{
|
||||
Fleet::LaunchTemplateConfig launchTemplateConfigsObject;
|
||||
if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].isNull())
|
||||
launchTemplateConfigsObject.instanceType = allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["InstanceType"].asString();
|
||||
if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["MaxPrice"].isNull())
|
||||
launchTemplateConfigsObject.maxPrice = std::stof(allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["MaxPrice"].asString());
|
||||
if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["VSWitchId"].isNull())
|
||||
launchTemplateConfigsObject.vSWitchId = allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["VSWitchId"].asString();
|
||||
if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["WeightedCapacity"].isNull())
|
||||
launchTemplateConfigsObject.weightedCapacity = std::stof(allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["WeightedCapacity"].asString());
|
||||
if(!allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["Priority"].isNull())
|
||||
launchTemplateConfigsObject.priority = std::stof(allFleetsNodelaunchTemplateConfigsLaunchTemplateConfig["Priority"].asString());
|
||||
fleetsObject.launchTemplateConfigs.push_back(launchTemplateConfigsObject);
|
||||
}
|
||||
auto spotOptionsNode = value["SpotOptions"];
|
||||
if(!spotOptionsNode["AllocationStrategy"].isNull())
|
||||
fleetsObject.spotOptions.allocationStrategy = spotOptionsNode["AllocationStrategy"].asString();
|
||||
if(!spotOptionsNode["InstanceInterruptionBehavior"].isNull())
|
||||
fleetsObject.spotOptions.instanceInterruptionBehavior = spotOptionsNode["InstanceInterruptionBehavior"].asString();
|
||||
if(!spotOptionsNode["InstancePoolsToUseCount"].isNull())
|
||||
fleetsObject.spotOptions.instancePoolsToUseCount = std::stoi(spotOptionsNode["InstancePoolsToUseCount"].asString());
|
||||
auto onDemandOptionsNode = value["OnDemandOptions"];
|
||||
if(!onDemandOptionsNode["AllocationStrategy"].isNull())
|
||||
fleetsObject.onDemandOptions.allocationStrategy = onDemandOptionsNode["AllocationStrategy"].asString();
|
||||
auto targetCapacitySpecificationNode = value["TargetCapacitySpecification"];
|
||||
if(!targetCapacitySpecificationNode["TotalTargetCapacity"].isNull())
|
||||
fleetsObject.targetCapacitySpecification.totalTargetCapacity = std::stof(targetCapacitySpecificationNode["TotalTargetCapacity"].asString());
|
||||
if(!targetCapacitySpecificationNode["OnDemandTargetCapacity"].isNull())
|
||||
fleetsObject.targetCapacitySpecification.onDemandTargetCapacity = std::stof(targetCapacitySpecificationNode["OnDemandTargetCapacity"].asString());
|
||||
if(!targetCapacitySpecificationNode["SpotTargetCapacity"].isNull())
|
||||
fleetsObject.targetCapacitySpecification.spotTargetCapacity = std::stof(targetCapacitySpecificationNode["SpotTargetCapacity"].asString());
|
||||
if(!targetCapacitySpecificationNode["DefaultTargetCapacityType"].isNull())
|
||||
fleetsObject.targetCapacitySpecification.defaultTargetCapacityType = targetCapacitySpecificationNode["DefaultTargetCapacityType"].asString();
|
||||
if(!targetCapacitySpecificationNode["FillGapWithOnDemand"].isNull())
|
||||
fleetsObject.targetCapacitySpecification.fillGapWithOnDemand = targetCapacitySpecificationNode["FillGapWithOnDemand"].asString() == "true";
|
||||
fleets_.push_back(fleetsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeFleetsResult::Fleet> DescribeFleetsResult::getFleets()const
|
||||
{
|
||||
return fleets_;
|
||||
}
|
||||
|
||||
int DescribeFleetsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeFleetsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeFleetsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
@@ -47,6 +47,17 @@ void DescribeInvocationsRequest::setInvokeStatus(const std::string& invokeStatus
|
||||
setCoreParameter("InvokeStatus", invokeStatus);
|
||||
}
|
||||
|
||||
bool DescribeInvocationsRequest::getIncludeOutput()const
|
||||
{
|
||||
return includeOutput_;
|
||||
}
|
||||
|
||||
void DescribeInvocationsRequest::setIncludeOutput(bool includeOutput)
|
||||
{
|
||||
includeOutput_ = includeOutput;
|
||||
setCoreParameter("IncludeOutput", includeOutput ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeInvocationsRequest::getCommandId()const
|
||||
{
|
||||
return commandId_;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user