Add UsageMetric.
This commit is contained in:
@@ -25,8 +25,14 @@ set(quotas_public_header_model
|
|||||||
include/alibabacloud/quotas/model/CreateQuotaAlarmResult.h
|
include/alibabacloud/quotas/model/CreateQuotaAlarmResult.h
|
||||||
include/alibabacloud/quotas/model/CreateQuotaApplicationRequest.h
|
include/alibabacloud/quotas/model/CreateQuotaApplicationRequest.h
|
||||||
include/alibabacloud/quotas/model/CreateQuotaApplicationResult.h
|
include/alibabacloud/quotas/model/CreateQuotaApplicationResult.h
|
||||||
|
include/alibabacloud/quotas/model/CreateQuotaApplicationsForTemplateRequest.h
|
||||||
|
include/alibabacloud/quotas/model/CreateQuotaApplicationsForTemplateResult.h
|
||||||
|
include/alibabacloud/quotas/model/CreateTemplateQuotaItemRequest.h
|
||||||
|
include/alibabacloud/quotas/model/CreateTemplateQuotaItemResult.h
|
||||||
include/alibabacloud/quotas/model/DeleteQuotaAlarmRequest.h
|
include/alibabacloud/quotas/model/DeleteQuotaAlarmRequest.h
|
||||||
include/alibabacloud/quotas/model/DeleteQuotaAlarmResult.h
|
include/alibabacloud/quotas/model/DeleteQuotaAlarmResult.h
|
||||||
|
include/alibabacloud/quotas/model/DeleteTemplateQuotaItemRequest.h
|
||||||
|
include/alibabacloud/quotas/model/DeleteTemplateQuotaItemResult.h
|
||||||
include/alibabacloud/quotas/model/GetProductQuotaRequest.h
|
include/alibabacloud/quotas/model/GetProductQuotaRequest.h
|
||||||
include/alibabacloud/quotas/model/GetProductQuotaResult.h
|
include/alibabacloud/quotas/model/GetProductQuotaResult.h
|
||||||
include/alibabacloud/quotas/model/GetProductQuotaDimensionRequest.h
|
include/alibabacloud/quotas/model/GetProductQuotaDimensionRequest.h
|
||||||
@@ -35,6 +41,10 @@ set(quotas_public_header_model
|
|||||||
include/alibabacloud/quotas/model/GetQuotaAlarmResult.h
|
include/alibabacloud/quotas/model/GetQuotaAlarmResult.h
|
||||||
include/alibabacloud/quotas/model/GetQuotaApplicationRequest.h
|
include/alibabacloud/quotas/model/GetQuotaApplicationRequest.h
|
||||||
include/alibabacloud/quotas/model/GetQuotaApplicationResult.h
|
include/alibabacloud/quotas/model/GetQuotaApplicationResult.h
|
||||||
|
include/alibabacloud/quotas/model/GetQuotaApplicationApprovalRequest.h
|
||||||
|
include/alibabacloud/quotas/model/GetQuotaApplicationApprovalResult.h
|
||||||
|
include/alibabacloud/quotas/model/GetQuotaTemplateServiceStatusRequest.h
|
||||||
|
include/alibabacloud/quotas/model/GetQuotaTemplateServiceStatusResult.h
|
||||||
include/alibabacloud/quotas/model/ListAlarmHistoriesRequest.h
|
include/alibabacloud/quotas/model/ListAlarmHistoriesRequest.h
|
||||||
include/alibabacloud/quotas/model/ListAlarmHistoriesResult.h
|
include/alibabacloud/quotas/model/ListAlarmHistoriesResult.h
|
||||||
include/alibabacloud/quotas/model/ListDependentQuotasRequest.h
|
include/alibabacloud/quotas/model/ListDependentQuotasRequest.h
|
||||||
@@ -49,8 +59,20 @@ set(quotas_public_header_model
|
|||||||
include/alibabacloud/quotas/model/ListProductsResult.h
|
include/alibabacloud/quotas/model/ListProductsResult.h
|
||||||
include/alibabacloud/quotas/model/ListQuotaAlarmsRequest.h
|
include/alibabacloud/quotas/model/ListQuotaAlarmsRequest.h
|
||||||
include/alibabacloud/quotas/model/ListQuotaAlarmsResult.h
|
include/alibabacloud/quotas/model/ListQuotaAlarmsResult.h
|
||||||
|
include/alibabacloud/quotas/model/ListQuotaApplicationTemplatesRequest.h
|
||||||
|
include/alibabacloud/quotas/model/ListQuotaApplicationTemplatesResult.h
|
||||||
include/alibabacloud/quotas/model/ListQuotaApplicationsRequest.h
|
include/alibabacloud/quotas/model/ListQuotaApplicationsRequest.h
|
||||||
include/alibabacloud/quotas/model/ListQuotaApplicationsResult.h
|
include/alibabacloud/quotas/model/ListQuotaApplicationsResult.h
|
||||||
|
include/alibabacloud/quotas/model/ListQuotaApplicationsDetailForTemplateRequest.h
|
||||||
|
include/alibabacloud/quotas/model/ListQuotaApplicationsDetailForTemplateResult.h
|
||||||
|
include/alibabacloud/quotas/model/ListQuotaApplicationsForTemplateRequest.h
|
||||||
|
include/alibabacloud/quotas/model/ListQuotaApplicationsForTemplateResult.h
|
||||||
|
include/alibabacloud/quotas/model/ModifyQuotaTemplateServiceStatusRequest.h
|
||||||
|
include/alibabacloud/quotas/model/ModifyQuotaTemplateServiceStatusResult.h
|
||||||
|
include/alibabacloud/quotas/model/ModifyTemplateQuotaItemRequest.h
|
||||||
|
include/alibabacloud/quotas/model/ModifyTemplateQuotaItemResult.h
|
||||||
|
include/alibabacloud/quotas/model/RemindQuotaApplicationApprovalRequest.h
|
||||||
|
include/alibabacloud/quotas/model/RemindQuotaApplicationApprovalResult.h
|
||||||
include/alibabacloud/quotas/model/UpdateQuotaAlarmRequest.h
|
include/alibabacloud/quotas/model/UpdateQuotaAlarmRequest.h
|
||||||
include/alibabacloud/quotas/model/UpdateQuotaAlarmResult.h )
|
include/alibabacloud/quotas/model/UpdateQuotaAlarmResult.h )
|
||||||
|
|
||||||
@@ -60,8 +82,14 @@ set(quotas_src
|
|||||||
src/model/CreateQuotaAlarmResult.cc
|
src/model/CreateQuotaAlarmResult.cc
|
||||||
src/model/CreateQuotaApplicationRequest.cc
|
src/model/CreateQuotaApplicationRequest.cc
|
||||||
src/model/CreateQuotaApplicationResult.cc
|
src/model/CreateQuotaApplicationResult.cc
|
||||||
|
src/model/CreateQuotaApplicationsForTemplateRequest.cc
|
||||||
|
src/model/CreateQuotaApplicationsForTemplateResult.cc
|
||||||
|
src/model/CreateTemplateQuotaItemRequest.cc
|
||||||
|
src/model/CreateTemplateQuotaItemResult.cc
|
||||||
src/model/DeleteQuotaAlarmRequest.cc
|
src/model/DeleteQuotaAlarmRequest.cc
|
||||||
src/model/DeleteQuotaAlarmResult.cc
|
src/model/DeleteQuotaAlarmResult.cc
|
||||||
|
src/model/DeleteTemplateQuotaItemRequest.cc
|
||||||
|
src/model/DeleteTemplateQuotaItemResult.cc
|
||||||
src/model/GetProductQuotaRequest.cc
|
src/model/GetProductQuotaRequest.cc
|
||||||
src/model/GetProductQuotaResult.cc
|
src/model/GetProductQuotaResult.cc
|
||||||
src/model/GetProductQuotaDimensionRequest.cc
|
src/model/GetProductQuotaDimensionRequest.cc
|
||||||
@@ -70,6 +98,10 @@ set(quotas_src
|
|||||||
src/model/GetQuotaAlarmResult.cc
|
src/model/GetQuotaAlarmResult.cc
|
||||||
src/model/GetQuotaApplicationRequest.cc
|
src/model/GetQuotaApplicationRequest.cc
|
||||||
src/model/GetQuotaApplicationResult.cc
|
src/model/GetQuotaApplicationResult.cc
|
||||||
|
src/model/GetQuotaApplicationApprovalRequest.cc
|
||||||
|
src/model/GetQuotaApplicationApprovalResult.cc
|
||||||
|
src/model/GetQuotaTemplateServiceStatusRequest.cc
|
||||||
|
src/model/GetQuotaTemplateServiceStatusResult.cc
|
||||||
src/model/ListAlarmHistoriesRequest.cc
|
src/model/ListAlarmHistoriesRequest.cc
|
||||||
src/model/ListAlarmHistoriesResult.cc
|
src/model/ListAlarmHistoriesResult.cc
|
||||||
src/model/ListDependentQuotasRequest.cc
|
src/model/ListDependentQuotasRequest.cc
|
||||||
@@ -84,8 +116,20 @@ set(quotas_src
|
|||||||
src/model/ListProductsResult.cc
|
src/model/ListProductsResult.cc
|
||||||
src/model/ListQuotaAlarmsRequest.cc
|
src/model/ListQuotaAlarmsRequest.cc
|
||||||
src/model/ListQuotaAlarmsResult.cc
|
src/model/ListQuotaAlarmsResult.cc
|
||||||
|
src/model/ListQuotaApplicationTemplatesRequest.cc
|
||||||
|
src/model/ListQuotaApplicationTemplatesResult.cc
|
||||||
src/model/ListQuotaApplicationsRequest.cc
|
src/model/ListQuotaApplicationsRequest.cc
|
||||||
src/model/ListQuotaApplicationsResult.cc
|
src/model/ListQuotaApplicationsResult.cc
|
||||||
|
src/model/ListQuotaApplicationsDetailForTemplateRequest.cc
|
||||||
|
src/model/ListQuotaApplicationsDetailForTemplateResult.cc
|
||||||
|
src/model/ListQuotaApplicationsForTemplateRequest.cc
|
||||||
|
src/model/ListQuotaApplicationsForTemplateResult.cc
|
||||||
|
src/model/ModifyQuotaTemplateServiceStatusRequest.cc
|
||||||
|
src/model/ModifyQuotaTemplateServiceStatusResult.cc
|
||||||
|
src/model/ModifyTemplateQuotaItemRequest.cc
|
||||||
|
src/model/ModifyTemplateQuotaItemResult.cc
|
||||||
|
src/model/RemindQuotaApplicationApprovalRequest.cc
|
||||||
|
src/model/RemindQuotaApplicationApprovalResult.cc
|
||||||
src/model/UpdateQuotaAlarmRequest.cc
|
src/model/UpdateQuotaAlarmRequest.cc
|
||||||
src/model/UpdateQuotaAlarmResult.cc )
|
src/model/UpdateQuotaAlarmResult.cc )
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,14 @@
|
|||||||
#include "model/CreateQuotaAlarmResult.h"
|
#include "model/CreateQuotaAlarmResult.h"
|
||||||
#include "model/CreateQuotaApplicationRequest.h"
|
#include "model/CreateQuotaApplicationRequest.h"
|
||||||
#include "model/CreateQuotaApplicationResult.h"
|
#include "model/CreateQuotaApplicationResult.h"
|
||||||
|
#include "model/CreateQuotaApplicationsForTemplateRequest.h"
|
||||||
|
#include "model/CreateQuotaApplicationsForTemplateResult.h"
|
||||||
|
#include "model/CreateTemplateQuotaItemRequest.h"
|
||||||
|
#include "model/CreateTemplateQuotaItemResult.h"
|
||||||
#include "model/DeleteQuotaAlarmRequest.h"
|
#include "model/DeleteQuotaAlarmRequest.h"
|
||||||
#include "model/DeleteQuotaAlarmResult.h"
|
#include "model/DeleteQuotaAlarmResult.h"
|
||||||
|
#include "model/DeleteTemplateQuotaItemRequest.h"
|
||||||
|
#include "model/DeleteTemplateQuotaItemResult.h"
|
||||||
#include "model/GetProductQuotaRequest.h"
|
#include "model/GetProductQuotaRequest.h"
|
||||||
#include "model/GetProductQuotaResult.h"
|
#include "model/GetProductQuotaResult.h"
|
||||||
#include "model/GetProductQuotaDimensionRequest.h"
|
#include "model/GetProductQuotaDimensionRequest.h"
|
||||||
@@ -36,6 +42,10 @@
|
|||||||
#include "model/GetQuotaAlarmResult.h"
|
#include "model/GetQuotaAlarmResult.h"
|
||||||
#include "model/GetQuotaApplicationRequest.h"
|
#include "model/GetQuotaApplicationRequest.h"
|
||||||
#include "model/GetQuotaApplicationResult.h"
|
#include "model/GetQuotaApplicationResult.h"
|
||||||
|
#include "model/GetQuotaApplicationApprovalRequest.h"
|
||||||
|
#include "model/GetQuotaApplicationApprovalResult.h"
|
||||||
|
#include "model/GetQuotaTemplateServiceStatusRequest.h"
|
||||||
|
#include "model/GetQuotaTemplateServiceStatusResult.h"
|
||||||
#include "model/ListAlarmHistoriesRequest.h"
|
#include "model/ListAlarmHistoriesRequest.h"
|
||||||
#include "model/ListAlarmHistoriesResult.h"
|
#include "model/ListAlarmHistoriesResult.h"
|
||||||
#include "model/ListDependentQuotasRequest.h"
|
#include "model/ListDependentQuotasRequest.h"
|
||||||
@@ -50,8 +60,20 @@
|
|||||||
#include "model/ListProductsResult.h"
|
#include "model/ListProductsResult.h"
|
||||||
#include "model/ListQuotaAlarmsRequest.h"
|
#include "model/ListQuotaAlarmsRequest.h"
|
||||||
#include "model/ListQuotaAlarmsResult.h"
|
#include "model/ListQuotaAlarmsResult.h"
|
||||||
|
#include "model/ListQuotaApplicationTemplatesRequest.h"
|
||||||
|
#include "model/ListQuotaApplicationTemplatesResult.h"
|
||||||
#include "model/ListQuotaApplicationsRequest.h"
|
#include "model/ListQuotaApplicationsRequest.h"
|
||||||
#include "model/ListQuotaApplicationsResult.h"
|
#include "model/ListQuotaApplicationsResult.h"
|
||||||
|
#include "model/ListQuotaApplicationsDetailForTemplateRequest.h"
|
||||||
|
#include "model/ListQuotaApplicationsDetailForTemplateResult.h"
|
||||||
|
#include "model/ListQuotaApplicationsForTemplateRequest.h"
|
||||||
|
#include "model/ListQuotaApplicationsForTemplateResult.h"
|
||||||
|
#include "model/ModifyQuotaTemplateServiceStatusRequest.h"
|
||||||
|
#include "model/ModifyQuotaTemplateServiceStatusResult.h"
|
||||||
|
#include "model/ModifyTemplateQuotaItemRequest.h"
|
||||||
|
#include "model/ModifyTemplateQuotaItemResult.h"
|
||||||
|
#include "model/RemindQuotaApplicationApprovalRequest.h"
|
||||||
|
#include "model/RemindQuotaApplicationApprovalResult.h"
|
||||||
#include "model/UpdateQuotaAlarmRequest.h"
|
#include "model/UpdateQuotaAlarmRequest.h"
|
||||||
#include "model/UpdateQuotaAlarmResult.h"
|
#include "model/UpdateQuotaAlarmResult.h"
|
||||||
|
|
||||||
@@ -69,9 +91,18 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::CreateQuotaApplicationResult> CreateQuotaApplicationOutcome;
|
typedef Outcome<Error, Model::CreateQuotaApplicationResult> CreateQuotaApplicationOutcome;
|
||||||
typedef std::future<CreateQuotaApplicationOutcome> CreateQuotaApplicationOutcomeCallable;
|
typedef std::future<CreateQuotaApplicationOutcome> CreateQuotaApplicationOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::CreateQuotaApplicationRequest&, const CreateQuotaApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateQuotaApplicationAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::CreateQuotaApplicationRequest&, const CreateQuotaApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateQuotaApplicationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateQuotaApplicationsForTemplateResult> CreateQuotaApplicationsForTemplateOutcome;
|
||||||
|
typedef std::future<CreateQuotaApplicationsForTemplateOutcome> CreateQuotaApplicationsForTemplateOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::CreateQuotaApplicationsForTemplateRequest&, const CreateQuotaApplicationsForTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateQuotaApplicationsForTemplateAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::CreateTemplateQuotaItemResult> CreateTemplateQuotaItemOutcome;
|
||||||
|
typedef std::future<CreateTemplateQuotaItemOutcome> CreateTemplateQuotaItemOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::CreateTemplateQuotaItemRequest&, const CreateTemplateQuotaItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTemplateQuotaItemAsyncHandler;
|
||||||
typedef Outcome<Error, Model::DeleteQuotaAlarmResult> DeleteQuotaAlarmOutcome;
|
typedef Outcome<Error, Model::DeleteQuotaAlarmResult> DeleteQuotaAlarmOutcome;
|
||||||
typedef std::future<DeleteQuotaAlarmOutcome> DeleteQuotaAlarmOutcomeCallable;
|
typedef std::future<DeleteQuotaAlarmOutcome> DeleteQuotaAlarmOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::DeleteQuotaAlarmRequest&, const DeleteQuotaAlarmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQuotaAlarmAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::DeleteQuotaAlarmRequest&, const DeleteQuotaAlarmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteQuotaAlarmAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::DeleteTemplateQuotaItemResult> DeleteTemplateQuotaItemOutcome;
|
||||||
|
typedef std::future<DeleteTemplateQuotaItemOutcome> DeleteTemplateQuotaItemOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::DeleteTemplateQuotaItemRequest&, const DeleteTemplateQuotaItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteTemplateQuotaItemAsyncHandler;
|
||||||
typedef Outcome<Error, Model::GetProductQuotaResult> GetProductQuotaOutcome;
|
typedef Outcome<Error, Model::GetProductQuotaResult> GetProductQuotaOutcome;
|
||||||
typedef std::future<GetProductQuotaOutcome> GetProductQuotaOutcomeCallable;
|
typedef std::future<GetProductQuotaOutcome> GetProductQuotaOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::GetProductQuotaRequest&, const GetProductQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProductQuotaAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::GetProductQuotaRequest&, const GetProductQuotaOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetProductQuotaAsyncHandler;
|
||||||
@@ -84,6 +115,12 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::GetQuotaApplicationResult> GetQuotaApplicationOutcome;
|
typedef Outcome<Error, Model::GetQuotaApplicationResult> GetQuotaApplicationOutcome;
|
||||||
typedef std::future<GetQuotaApplicationOutcome> GetQuotaApplicationOutcomeCallable;
|
typedef std::future<GetQuotaApplicationOutcome> GetQuotaApplicationOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::GetQuotaApplicationRequest&, const GetQuotaApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuotaApplicationAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::GetQuotaApplicationRequest&, const GetQuotaApplicationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuotaApplicationAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetQuotaApplicationApprovalResult> GetQuotaApplicationApprovalOutcome;
|
||||||
|
typedef std::future<GetQuotaApplicationApprovalOutcome> GetQuotaApplicationApprovalOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::GetQuotaApplicationApprovalRequest&, const GetQuotaApplicationApprovalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuotaApplicationApprovalAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::GetQuotaTemplateServiceStatusResult> GetQuotaTemplateServiceStatusOutcome;
|
||||||
|
typedef std::future<GetQuotaTemplateServiceStatusOutcome> GetQuotaTemplateServiceStatusOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::GetQuotaTemplateServiceStatusRequest&, const GetQuotaTemplateServiceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetQuotaTemplateServiceStatusAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListAlarmHistoriesResult> ListAlarmHistoriesOutcome;
|
typedef Outcome<Error, Model::ListAlarmHistoriesResult> ListAlarmHistoriesOutcome;
|
||||||
typedef std::future<ListAlarmHistoriesOutcome> ListAlarmHistoriesOutcomeCallable;
|
typedef std::future<ListAlarmHistoriesOutcome> ListAlarmHistoriesOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::ListAlarmHistoriesRequest&, const ListAlarmHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlarmHistoriesAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::ListAlarmHistoriesRequest&, const ListAlarmHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListAlarmHistoriesAsyncHandler;
|
||||||
@@ -105,9 +142,27 @@ namespace AlibabaCloud
|
|||||||
typedef Outcome<Error, Model::ListQuotaAlarmsResult> ListQuotaAlarmsOutcome;
|
typedef Outcome<Error, Model::ListQuotaAlarmsResult> ListQuotaAlarmsOutcome;
|
||||||
typedef std::future<ListQuotaAlarmsOutcome> ListQuotaAlarmsOutcomeCallable;
|
typedef std::future<ListQuotaAlarmsOutcome> ListQuotaAlarmsOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::ListQuotaAlarmsRequest&, const ListQuotaAlarmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaAlarmsAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::ListQuotaAlarmsRequest&, const ListQuotaAlarmsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaAlarmsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListQuotaApplicationTemplatesResult> ListQuotaApplicationTemplatesOutcome;
|
||||||
|
typedef std::future<ListQuotaApplicationTemplatesOutcome> ListQuotaApplicationTemplatesOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::ListQuotaApplicationTemplatesRequest&, const ListQuotaApplicationTemplatesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaApplicationTemplatesAsyncHandler;
|
||||||
typedef Outcome<Error, Model::ListQuotaApplicationsResult> ListQuotaApplicationsOutcome;
|
typedef Outcome<Error, Model::ListQuotaApplicationsResult> ListQuotaApplicationsOutcome;
|
||||||
typedef std::future<ListQuotaApplicationsOutcome> ListQuotaApplicationsOutcomeCallable;
|
typedef std::future<ListQuotaApplicationsOutcome> ListQuotaApplicationsOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::ListQuotaApplicationsRequest&, const ListQuotaApplicationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaApplicationsAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::ListQuotaApplicationsRequest&, const ListQuotaApplicationsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaApplicationsAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListQuotaApplicationsDetailForTemplateResult> ListQuotaApplicationsDetailForTemplateOutcome;
|
||||||
|
typedef std::future<ListQuotaApplicationsDetailForTemplateOutcome> ListQuotaApplicationsDetailForTemplateOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::ListQuotaApplicationsDetailForTemplateRequest&, const ListQuotaApplicationsDetailForTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaApplicationsDetailForTemplateAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ListQuotaApplicationsForTemplateResult> ListQuotaApplicationsForTemplateOutcome;
|
||||||
|
typedef std::future<ListQuotaApplicationsForTemplateOutcome> ListQuotaApplicationsForTemplateOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::ListQuotaApplicationsForTemplateRequest&, const ListQuotaApplicationsForTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListQuotaApplicationsForTemplateAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ModifyQuotaTemplateServiceStatusResult> ModifyQuotaTemplateServiceStatusOutcome;
|
||||||
|
typedef std::future<ModifyQuotaTemplateServiceStatusOutcome> ModifyQuotaTemplateServiceStatusOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::ModifyQuotaTemplateServiceStatusRequest&, const ModifyQuotaTemplateServiceStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyQuotaTemplateServiceStatusAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::ModifyTemplateQuotaItemResult> ModifyTemplateQuotaItemOutcome;
|
||||||
|
typedef std::future<ModifyTemplateQuotaItemOutcome> ModifyTemplateQuotaItemOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::ModifyTemplateQuotaItemRequest&, const ModifyTemplateQuotaItemOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyTemplateQuotaItemAsyncHandler;
|
||||||
|
typedef Outcome<Error, Model::RemindQuotaApplicationApprovalResult> RemindQuotaApplicationApprovalOutcome;
|
||||||
|
typedef std::future<RemindQuotaApplicationApprovalOutcome> RemindQuotaApplicationApprovalOutcomeCallable;
|
||||||
|
typedef std::function<void(const QuotasClient*, const Model::RemindQuotaApplicationApprovalRequest&, const RemindQuotaApplicationApprovalOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> RemindQuotaApplicationApprovalAsyncHandler;
|
||||||
typedef Outcome<Error, Model::UpdateQuotaAlarmResult> UpdateQuotaAlarmOutcome;
|
typedef Outcome<Error, Model::UpdateQuotaAlarmResult> UpdateQuotaAlarmOutcome;
|
||||||
typedef std::future<UpdateQuotaAlarmOutcome> UpdateQuotaAlarmOutcomeCallable;
|
typedef std::future<UpdateQuotaAlarmOutcome> UpdateQuotaAlarmOutcomeCallable;
|
||||||
typedef std::function<void(const QuotasClient*, const Model::UpdateQuotaAlarmRequest&, const UpdateQuotaAlarmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateQuotaAlarmAsyncHandler;
|
typedef std::function<void(const QuotasClient*, const Model::UpdateQuotaAlarmRequest&, const UpdateQuotaAlarmOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateQuotaAlarmAsyncHandler;
|
||||||
@@ -122,9 +177,18 @@ namespace AlibabaCloud
|
|||||||
CreateQuotaApplicationOutcome createQuotaApplication(const Model::CreateQuotaApplicationRequest &request)const;
|
CreateQuotaApplicationOutcome createQuotaApplication(const Model::CreateQuotaApplicationRequest &request)const;
|
||||||
void createQuotaApplicationAsync(const Model::CreateQuotaApplicationRequest& request, const CreateQuotaApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void createQuotaApplicationAsync(const Model::CreateQuotaApplicationRequest& request, const CreateQuotaApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
CreateQuotaApplicationOutcomeCallable createQuotaApplicationCallable(const Model::CreateQuotaApplicationRequest& request) const;
|
CreateQuotaApplicationOutcomeCallable createQuotaApplicationCallable(const Model::CreateQuotaApplicationRequest& request) const;
|
||||||
|
CreateQuotaApplicationsForTemplateOutcome createQuotaApplicationsForTemplate(const Model::CreateQuotaApplicationsForTemplateRequest &request)const;
|
||||||
|
void createQuotaApplicationsForTemplateAsync(const Model::CreateQuotaApplicationsForTemplateRequest& request, const CreateQuotaApplicationsForTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateQuotaApplicationsForTemplateOutcomeCallable createQuotaApplicationsForTemplateCallable(const Model::CreateQuotaApplicationsForTemplateRequest& request) const;
|
||||||
|
CreateTemplateQuotaItemOutcome createTemplateQuotaItem(const Model::CreateTemplateQuotaItemRequest &request)const;
|
||||||
|
void createTemplateQuotaItemAsync(const Model::CreateTemplateQuotaItemRequest& request, const CreateTemplateQuotaItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
CreateTemplateQuotaItemOutcomeCallable createTemplateQuotaItemCallable(const Model::CreateTemplateQuotaItemRequest& request) const;
|
||||||
DeleteQuotaAlarmOutcome deleteQuotaAlarm(const Model::DeleteQuotaAlarmRequest &request)const;
|
DeleteQuotaAlarmOutcome deleteQuotaAlarm(const Model::DeleteQuotaAlarmRequest &request)const;
|
||||||
void deleteQuotaAlarmAsync(const Model::DeleteQuotaAlarmRequest& request, const DeleteQuotaAlarmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void deleteQuotaAlarmAsync(const Model::DeleteQuotaAlarmRequest& request, const DeleteQuotaAlarmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
DeleteQuotaAlarmOutcomeCallable deleteQuotaAlarmCallable(const Model::DeleteQuotaAlarmRequest& request) const;
|
DeleteQuotaAlarmOutcomeCallable deleteQuotaAlarmCallable(const Model::DeleteQuotaAlarmRequest& request) const;
|
||||||
|
DeleteTemplateQuotaItemOutcome deleteTemplateQuotaItem(const Model::DeleteTemplateQuotaItemRequest &request)const;
|
||||||
|
void deleteTemplateQuotaItemAsync(const Model::DeleteTemplateQuotaItemRequest& request, const DeleteTemplateQuotaItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
DeleteTemplateQuotaItemOutcomeCallable deleteTemplateQuotaItemCallable(const Model::DeleteTemplateQuotaItemRequest& request) const;
|
||||||
GetProductQuotaOutcome getProductQuota(const Model::GetProductQuotaRequest &request)const;
|
GetProductQuotaOutcome getProductQuota(const Model::GetProductQuotaRequest &request)const;
|
||||||
void getProductQuotaAsync(const Model::GetProductQuotaRequest& request, const GetProductQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getProductQuotaAsync(const Model::GetProductQuotaRequest& request, const GetProductQuotaAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetProductQuotaOutcomeCallable getProductQuotaCallable(const Model::GetProductQuotaRequest& request) const;
|
GetProductQuotaOutcomeCallable getProductQuotaCallable(const Model::GetProductQuotaRequest& request) const;
|
||||||
@@ -137,6 +201,12 @@ namespace AlibabaCloud
|
|||||||
GetQuotaApplicationOutcome getQuotaApplication(const Model::GetQuotaApplicationRequest &request)const;
|
GetQuotaApplicationOutcome getQuotaApplication(const Model::GetQuotaApplicationRequest &request)const;
|
||||||
void getQuotaApplicationAsync(const Model::GetQuotaApplicationRequest& request, const GetQuotaApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void getQuotaApplicationAsync(const Model::GetQuotaApplicationRequest& request, const GetQuotaApplicationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
GetQuotaApplicationOutcomeCallable getQuotaApplicationCallable(const Model::GetQuotaApplicationRequest& request) const;
|
GetQuotaApplicationOutcomeCallable getQuotaApplicationCallable(const Model::GetQuotaApplicationRequest& request) const;
|
||||||
|
GetQuotaApplicationApprovalOutcome getQuotaApplicationApproval(const Model::GetQuotaApplicationApprovalRequest &request)const;
|
||||||
|
void getQuotaApplicationApprovalAsync(const Model::GetQuotaApplicationApprovalRequest& request, const GetQuotaApplicationApprovalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetQuotaApplicationApprovalOutcomeCallable getQuotaApplicationApprovalCallable(const Model::GetQuotaApplicationApprovalRequest& request) const;
|
||||||
|
GetQuotaTemplateServiceStatusOutcome getQuotaTemplateServiceStatus(const Model::GetQuotaTemplateServiceStatusRequest &request)const;
|
||||||
|
void getQuotaTemplateServiceStatusAsync(const Model::GetQuotaTemplateServiceStatusRequest& request, const GetQuotaTemplateServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
GetQuotaTemplateServiceStatusOutcomeCallable getQuotaTemplateServiceStatusCallable(const Model::GetQuotaTemplateServiceStatusRequest& request) const;
|
||||||
ListAlarmHistoriesOutcome listAlarmHistories(const Model::ListAlarmHistoriesRequest &request)const;
|
ListAlarmHistoriesOutcome listAlarmHistories(const Model::ListAlarmHistoriesRequest &request)const;
|
||||||
void listAlarmHistoriesAsync(const Model::ListAlarmHistoriesRequest& request, const ListAlarmHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listAlarmHistoriesAsync(const Model::ListAlarmHistoriesRequest& request, const ListAlarmHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListAlarmHistoriesOutcomeCallable listAlarmHistoriesCallable(const Model::ListAlarmHistoriesRequest& request) const;
|
ListAlarmHistoriesOutcomeCallable listAlarmHistoriesCallable(const Model::ListAlarmHistoriesRequest& request) const;
|
||||||
@@ -158,9 +228,27 @@ namespace AlibabaCloud
|
|||||||
ListQuotaAlarmsOutcome listQuotaAlarms(const Model::ListQuotaAlarmsRequest &request)const;
|
ListQuotaAlarmsOutcome listQuotaAlarms(const Model::ListQuotaAlarmsRequest &request)const;
|
||||||
void listQuotaAlarmsAsync(const Model::ListQuotaAlarmsRequest& request, const ListQuotaAlarmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listQuotaAlarmsAsync(const Model::ListQuotaAlarmsRequest& request, const ListQuotaAlarmsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListQuotaAlarmsOutcomeCallable listQuotaAlarmsCallable(const Model::ListQuotaAlarmsRequest& request) const;
|
ListQuotaAlarmsOutcomeCallable listQuotaAlarmsCallable(const Model::ListQuotaAlarmsRequest& request) const;
|
||||||
|
ListQuotaApplicationTemplatesOutcome listQuotaApplicationTemplates(const Model::ListQuotaApplicationTemplatesRequest &request)const;
|
||||||
|
void listQuotaApplicationTemplatesAsync(const Model::ListQuotaApplicationTemplatesRequest& request, const ListQuotaApplicationTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListQuotaApplicationTemplatesOutcomeCallable listQuotaApplicationTemplatesCallable(const Model::ListQuotaApplicationTemplatesRequest& request) const;
|
||||||
ListQuotaApplicationsOutcome listQuotaApplications(const Model::ListQuotaApplicationsRequest &request)const;
|
ListQuotaApplicationsOutcome listQuotaApplications(const Model::ListQuotaApplicationsRequest &request)const;
|
||||||
void listQuotaApplicationsAsync(const Model::ListQuotaApplicationsRequest& request, const ListQuotaApplicationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void listQuotaApplicationsAsync(const Model::ListQuotaApplicationsRequest& request, const ListQuotaApplicationsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
ListQuotaApplicationsOutcomeCallable listQuotaApplicationsCallable(const Model::ListQuotaApplicationsRequest& request) const;
|
ListQuotaApplicationsOutcomeCallable listQuotaApplicationsCallable(const Model::ListQuotaApplicationsRequest& request) const;
|
||||||
|
ListQuotaApplicationsDetailForTemplateOutcome listQuotaApplicationsDetailForTemplate(const Model::ListQuotaApplicationsDetailForTemplateRequest &request)const;
|
||||||
|
void listQuotaApplicationsDetailForTemplateAsync(const Model::ListQuotaApplicationsDetailForTemplateRequest& request, const ListQuotaApplicationsDetailForTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListQuotaApplicationsDetailForTemplateOutcomeCallable listQuotaApplicationsDetailForTemplateCallable(const Model::ListQuotaApplicationsDetailForTemplateRequest& request) const;
|
||||||
|
ListQuotaApplicationsForTemplateOutcome listQuotaApplicationsForTemplate(const Model::ListQuotaApplicationsForTemplateRequest &request)const;
|
||||||
|
void listQuotaApplicationsForTemplateAsync(const Model::ListQuotaApplicationsForTemplateRequest& request, const ListQuotaApplicationsForTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ListQuotaApplicationsForTemplateOutcomeCallable listQuotaApplicationsForTemplateCallable(const Model::ListQuotaApplicationsForTemplateRequest& request) const;
|
||||||
|
ModifyQuotaTemplateServiceStatusOutcome modifyQuotaTemplateServiceStatus(const Model::ModifyQuotaTemplateServiceStatusRequest &request)const;
|
||||||
|
void modifyQuotaTemplateServiceStatusAsync(const Model::ModifyQuotaTemplateServiceStatusRequest& request, const ModifyQuotaTemplateServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ModifyQuotaTemplateServiceStatusOutcomeCallable modifyQuotaTemplateServiceStatusCallable(const Model::ModifyQuotaTemplateServiceStatusRequest& request) const;
|
||||||
|
ModifyTemplateQuotaItemOutcome modifyTemplateQuotaItem(const Model::ModifyTemplateQuotaItemRequest &request)const;
|
||||||
|
void modifyTemplateQuotaItemAsync(const Model::ModifyTemplateQuotaItemRequest& request, const ModifyTemplateQuotaItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
ModifyTemplateQuotaItemOutcomeCallable modifyTemplateQuotaItemCallable(const Model::ModifyTemplateQuotaItemRequest& request) const;
|
||||||
|
RemindQuotaApplicationApprovalOutcome remindQuotaApplicationApproval(const Model::RemindQuotaApplicationApprovalRequest &request)const;
|
||||||
|
void remindQuotaApplicationApprovalAsync(const Model::RemindQuotaApplicationApprovalRequest& request, const RemindQuotaApplicationApprovalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
|
RemindQuotaApplicationApprovalOutcomeCallable remindQuotaApplicationApprovalCallable(const Model::RemindQuotaApplicationApprovalRequest& request) const;
|
||||||
UpdateQuotaAlarmOutcome updateQuotaAlarm(const Model::UpdateQuotaAlarmRequest &request)const;
|
UpdateQuotaAlarmOutcome updateQuotaAlarm(const Model::UpdateQuotaAlarmRequest &request)const;
|
||||||
void updateQuotaAlarmAsync(const Model::UpdateQuotaAlarmRequest& request, const UpdateQuotaAlarmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
void updateQuotaAlarmAsync(const Model::UpdateQuotaAlarmRequest& request, const UpdateQuotaAlarmAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||||
UpdateQuotaAlarmOutcomeCallable updateQuotaAlarmCallable(const Model::UpdateQuotaAlarmRequest& request) const;
|
UpdateQuotaAlarmOutcomeCallable updateQuotaAlarmCallable(const Model::UpdateQuotaAlarmRequest& request) const;
|
||||||
|
|||||||
@@ -1,75 +1,70 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAALARMREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAALARMREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAALARMREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAALARMREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT CreateQuotaAlarmRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT CreateQuotaAlarmRequest : public RpcServiceRequest
|
struct QuotaDimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct QuotaDimensions
|
};
|
||||||
{
|
CreateQuotaAlarmRequest();
|
||||||
std::string key;
|
~CreateQuotaAlarmRequest();
|
||||||
std::string value;
|
std::string getProductCode() const;
|
||||||
};
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getWebHook() const;
|
||||||
public:
|
void setWebHook(const std::string &webHook);
|
||||||
CreateQuotaAlarmRequest();
|
float getThreshold() const;
|
||||||
~CreateQuotaAlarmRequest();
|
void setThreshold(float threshold);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
std::string getProductCode()const;
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getThresholdType() const;
|
||||||
std::string getWebHook()const;
|
void setThresholdType(const std::string &thresholdType);
|
||||||
void setWebHook(const std::string& webHook);
|
std::vector<QuotaDimensions> getQuotaDimensions() const;
|
||||||
float getThreshold()const;
|
void setQuotaDimensions(const std::vector<QuotaDimensions> "aDimensions);
|
||||||
void setThreshold(float threshold);
|
std::string getOriginalContext() const;
|
||||||
std::string getQuotaActionCode()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
float getThresholdPercent() const;
|
||||||
std::string getThresholdType()const;
|
void setThresholdPercent(float thresholdPercent);
|
||||||
void setThresholdType(const std::string& thresholdType);
|
std::string getAlarmName() const;
|
||||||
std::vector<QuotaDimensions> getQuotaDimensions()const;
|
void setAlarmName(const std::string &alarmName);
|
||||||
void setQuotaDimensions(const std::vector<QuotaDimensions>& quotaDimensions);
|
|
||||||
float getThresholdPercent()const;
|
private:
|
||||||
void setThresholdPercent(float thresholdPercent);
|
std::string productCode_;
|
||||||
std::string getAlarmName()const;
|
std::string webHook_;
|
||||||
void setAlarmName(const std::string& alarmName);
|
float threshold_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
private:
|
std::string thresholdType_;
|
||||||
std::string productCode_;
|
std::vector<QuotaDimensions> quotaDimensions_;
|
||||||
std::string webHook_;
|
std::string originalContext_;
|
||||||
float threshold_;
|
float thresholdPercent_;
|
||||||
std::string quotaActionCode_;
|
std::string alarmName_;
|
||||||
std::string thresholdType_;
|
};
|
||||||
std::vector<QuotaDimensions> quotaDimensions_;
|
} // namespace Model
|
||||||
float thresholdPercent_;
|
} // namespace Quotas
|
||||||
std::string alarmName_;
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAALARMREQUEST_H_
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAALARMREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,75 +1,79 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT CreateQuotaApplicationRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT CreateQuotaApplicationRequest : public RpcServiceRequest
|
struct Dimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct Dimensions
|
};
|
||||||
{
|
CreateQuotaApplicationRequest();
|
||||||
std::string key;
|
~CreateQuotaApplicationRequest();
|
||||||
std::string value;
|
std::string getReason() const;
|
||||||
};
|
void setReason(const std::string &reason);
|
||||||
|
std::string getProductCode() const;
|
||||||
public:
|
void setProductCode(const std::string &productCode);
|
||||||
CreateQuotaApplicationRequest();
|
std::string getQuotaActionCode() const;
|
||||||
~CreateQuotaApplicationRequest();
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
float getDesireValue() const;
|
||||||
std::string getReason()const;
|
void setDesireValue(float desireValue);
|
||||||
void setReason(const std::string& reason);
|
std::string getEffectiveTime() const;
|
||||||
std::string getProductCode()const;
|
void setEffectiveTime(const std::string &effectiveTime);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getQuotaCategory() const;
|
||||||
std::string getQuotaActionCode()const;
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
std::string getOriginalContext() const;
|
||||||
float getDesireValue()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setDesireValue(float desireValue);
|
std::string getExpireTime() const;
|
||||||
std::string getQuotaCategory()const;
|
void setExpireTime(const std::string &expireTime);
|
||||||
void setQuotaCategory(const std::string& quotaCategory);
|
std::string getEnvLanguage() const;
|
||||||
int getNoticeType()const;
|
void setEnvLanguage(const std::string &envLanguage);
|
||||||
void setNoticeType(int noticeType);
|
int getNoticeType() const;
|
||||||
std::string getAuditMode()const;
|
void setNoticeType(int noticeType);
|
||||||
void setAuditMode(const std::string& auditMode);
|
std::string getAuditMode() const;
|
||||||
std::vector<Dimensions> getDimensions()const;
|
void setAuditMode(const std::string &auditMode);
|
||||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
std::vector<Dimensions> getDimensions() const;
|
||||||
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
private:
|
|
||||||
std::string reason_;
|
private:
|
||||||
std::string productCode_;
|
std::string reason_;
|
||||||
std::string quotaActionCode_;
|
std::string productCode_;
|
||||||
float desireValue_;
|
std::string quotaActionCode_;
|
||||||
std::string quotaCategory_;
|
float desireValue_;
|
||||||
int noticeType_;
|
std::string effectiveTime_;
|
||||||
std::string auditMode_;
|
std::string quotaCategory_;
|
||||||
std::vector<Dimensions> dimensions_;
|
std::string originalContext_;
|
||||||
|
std::string expireTime_;
|
||||||
};
|
std::string envLanguage_;
|
||||||
}
|
int noticeType_;
|
||||||
}
|
std::string auditMode_;
|
||||||
}
|
std::vector<Dimensions> dimensions_;
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONREQUEST_H_
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONREQUEST_H_
|
||||||
|
|||||||
@@ -40,10 +40,10 @@ namespace AlibabaCloud
|
|||||||
std::string getStatus()const;
|
std::string getStatus()const;
|
||||||
std::string getApplyTime()const;
|
std::string getApplyTime()const;
|
||||||
std::string getQuotaDescription()const;
|
std::string getQuotaDescription()const;
|
||||||
std::string getEffectiveTime()const;
|
|
||||||
std::string getProductCode()const;
|
std::string getProductCode()const;
|
||||||
std::string getQuotaUnit()const;
|
std::string getEffectiveTime()const;
|
||||||
std::string getAuditReason()const;
|
std::string getAuditReason()const;
|
||||||
|
std::string getQuotaUnit()const;
|
||||||
std::string getDimension()const;
|
std::string getDimension()const;
|
||||||
float getApproveValue()const;
|
float getApproveValue()const;
|
||||||
std::string getReason()const;
|
std::string getReason()const;
|
||||||
@@ -51,9 +51,9 @@ namespace AlibabaCloud
|
|||||||
std::string getQuotaName()const;
|
std::string getQuotaName()const;
|
||||||
std::string getQuotaArn()const;
|
std::string getQuotaArn()const;
|
||||||
long getNoticeType()const;
|
long getNoticeType()const;
|
||||||
std::string getExpireTime()const;
|
|
||||||
std::string getApplicationId()const;
|
|
||||||
int getDesireValue()const;
|
int getDesireValue()const;
|
||||||
|
std::string getApplicationId()const;
|
||||||
|
std::string getExpireTime()const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void parse(const std::string &payload);
|
void parse(const std::string &payload);
|
||||||
@@ -61,10 +61,10 @@ namespace AlibabaCloud
|
|||||||
std::string status_;
|
std::string status_;
|
||||||
std::string applyTime_;
|
std::string applyTime_;
|
||||||
std::string quotaDescription_;
|
std::string quotaDescription_;
|
||||||
std::string effectiveTime_;
|
|
||||||
std::string productCode_;
|
std::string productCode_;
|
||||||
std::string quotaUnit_;
|
std::string effectiveTime_;
|
||||||
std::string auditReason_;
|
std::string auditReason_;
|
||||||
|
std::string quotaUnit_;
|
||||||
std::string dimension_;
|
std::string dimension_;
|
||||||
float approveValue_;
|
float approveValue_;
|
||||||
std::string reason_;
|
std::string reason_;
|
||||||
@@ -72,9 +72,9 @@ namespace AlibabaCloud
|
|||||||
std::string quotaName_;
|
std::string quotaName_;
|
||||||
std::string quotaArn_;
|
std::string quotaArn_;
|
||||||
long noticeType_;
|
long noticeType_;
|
||||||
std::string expireTime_;
|
|
||||||
std::string applicationId_;
|
|
||||||
int desireValue_;
|
int desireValue_;
|
||||||
|
std::string applicationId_;
|
||||||
|
std::string expireTime_;
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,79 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONSFORTEMPLATEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONSFORTEMPLATEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT CreateQuotaApplicationsForTemplateRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Dimensions {
|
||||||
|
std::string key;
|
||||||
|
std::string value;
|
||||||
|
};
|
||||||
|
CreateQuotaApplicationsForTemplateRequest();
|
||||||
|
~CreateQuotaApplicationsForTemplateRequest();
|
||||||
|
std::string getReason() const;
|
||||||
|
void setReason(const std::string &reason);
|
||||||
|
std::string getProductCode() const;
|
||||||
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
double getDesireValue() const;
|
||||||
|
void setDesireValue(double desireValue);
|
||||||
|
std::string getEffectiveTime() const;
|
||||||
|
void setEffectiveTime(const std::string &effectiveTime);
|
||||||
|
std::vector<std::string> getAliyunUids() const;
|
||||||
|
void setAliyunUids(const std::vector<std::string> &aliyunUids);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getExpireTime() const;
|
||||||
|
void setExpireTime(const std::string &expireTime);
|
||||||
|
std::string getEnvLanguage() const;
|
||||||
|
void setEnvLanguage(const std::string &envLanguage);
|
||||||
|
int getNoticeType() const;
|
||||||
|
void setNoticeType(int noticeType);
|
||||||
|
std::vector<Dimensions> getDimensions() const;
|
||||||
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string reason_;
|
||||||
|
std::string productCode_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
|
double desireValue_;
|
||||||
|
std::string effectiveTime_;
|
||||||
|
std::vector<std::string> aliyunUids_;
|
||||||
|
std::string quotaCategory_;
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string expireTime_;
|
||||||
|
std::string envLanguage_;
|
||||||
|
int noticeType_;
|
||||||
|
std::vector<Dimensions> dimensions_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONSFORTEMPLATEREQUEST_H_
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONSFORTEMPLATERESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONSFORTEMPLATERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT CreateQuotaApplicationsForTemplateResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct FailResultsItem
|
||||||
|
{
|
||||||
|
std::string aliyunUid;
|
||||||
|
std::string reason;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
CreateQuotaApplicationsForTemplateResult();
|
||||||
|
explicit CreateQuotaApplicationsForTemplateResult(const std::string &payload);
|
||||||
|
~CreateQuotaApplicationsForTemplateResult();
|
||||||
|
std::string getBatchQuotaApplicationId()const;
|
||||||
|
std::vector<std::string> getAliyunUids()const;
|
||||||
|
std::vector<FailResultsItem> getFailResults()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string batchQuotaApplicationId_;
|
||||||
|
std::vector<std::string> aliyunUids_;
|
||||||
|
std::vector<FailResultsItem> failResults_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATEQUOTAAPPLICATIONSFORTEMPLATERESULT_H_
|
||||||
@@ -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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATETEMPLATEQUOTAITEMREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_CREATETEMPLATEQUOTAITEMREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT CreateTemplateQuotaItemRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Dimensions {
|
||||||
|
std::string key;
|
||||||
|
std::string value;
|
||||||
|
};
|
||||||
|
CreateTemplateQuotaItemRequest();
|
||||||
|
~CreateTemplateQuotaItemRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
float getDesireValue() const;
|
||||||
|
void setDesireValue(float desireValue);
|
||||||
|
std::string getEffectiveTime() const;
|
||||||
|
void setEffectiveTime(const std::string &effectiveTime);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getExpireTime() const;
|
||||||
|
void setExpireTime(const std::string &expireTime);
|
||||||
|
std::string getEnvLanguage() const;
|
||||||
|
void setEnvLanguage(const std::string &envLanguage);
|
||||||
|
long getNoticeType() const;
|
||||||
|
void setNoticeType(long noticeType);
|
||||||
|
std::vector<Dimensions> getDimensions() const;
|
||||||
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
|
float desireValue_;
|
||||||
|
std::string effectiveTime_;
|
||||||
|
std::string quotaCategory_;
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string expireTime_;
|
||||||
|
std::string envLanguage_;
|
||||||
|
long noticeType_;
|
||||||
|
std::vector<Dimensions> dimensions_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATETEMPLATEQUOTAITEMREQUEST_H_
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_CREATETEMPLATEQUOTAITEMRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_CREATETEMPLATEQUOTAITEMRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT CreateTemplateQuotaItemResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
CreateTemplateQuotaItemResult();
|
||||||
|
explicit CreateTemplateQuotaItemResult(const std::string &payload);
|
||||||
|
~CreateTemplateQuotaItemResult();
|
||||||
|
std::string getId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string id_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_CREATETEMPLATEQUOTAITEMRESULT_H_
|
||||||
@@ -1,48 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_DELETEQUOTAALARMREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_DELETEQUOTAALARMREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_DELETEQUOTAALARMREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_DELETEQUOTAALARMREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT DeleteQuotaAlarmRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT DeleteQuotaAlarmRequest : public RpcServiceRequest
|
DeleteQuotaAlarmRequest();
|
||||||
{
|
~DeleteQuotaAlarmRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
public:
|
void setOriginalContext(const std::string &originalContext);
|
||||||
DeleteQuotaAlarmRequest();
|
std::string getAlarmId() const;
|
||||||
~DeleteQuotaAlarmRequest();
|
void setAlarmId(const std::string &alarmId);
|
||||||
|
|
||||||
std::string getAlarmId()const;
|
private:
|
||||||
void setAlarmId(const std::string& alarmId);
|
std::string originalContext_;
|
||||||
|
std::string alarmId_;
|
||||||
private:
|
};
|
||||||
std::string alarmId_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_DELETEQUOTAALARMREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_DELETEQUOTAALARMREQUEST_H_
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_DELETETEMPLATEQUOTAITEMREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_DELETETEMPLATEQUOTAITEMREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT DeleteTemplateQuotaItemRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
DeleteTemplateQuotaItemRequest();
|
||||||
|
~DeleteTemplateQuotaItemRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getId() const;
|
||||||
|
void setId(const std::string &id);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string id_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_DELETETEMPLATEQUOTAITEMREQUEST_H_
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_DELETETEMPLATEQUOTAITEMRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_DELETETEMPLATEQUOTAITEMRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT DeleteTemplateQuotaItemResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
DeleteTemplateQuotaItemResult();
|
||||||
|
explicit DeleteTemplateQuotaItemResult(const std::string &payload);
|
||||||
|
~DeleteTemplateQuotaItemResult();
|
||||||
|
std::string getId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string id_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_DELETETEMPLATEQUOTAITEMRESULT_H_
|
||||||
@@ -1,60 +1,55 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTADIMENSIONREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTADIMENSIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTADIMENSIONREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTADIMENSIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT GetProductQuotaDimensionRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT GetProductQuotaDimensionRequest : public RpcServiceRequest
|
struct DependentDimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct DependentDimensions
|
};
|
||||||
{
|
GetProductQuotaDimensionRequest();
|
||||||
std::string key;
|
~GetProductQuotaDimensionRequest();
|
||||||
std::string value;
|
std::string getOriginalContext() const;
|
||||||
};
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getProductCode() const;
|
||||||
public:
|
void setProductCode(const std::string &productCode);
|
||||||
GetProductQuotaDimensionRequest();
|
std::vector<DependentDimensions> getDependentDimensions() const;
|
||||||
~GetProductQuotaDimensionRequest();
|
void setDependentDimensions(const std::vector<DependentDimensions> &dependentDimensions);
|
||||||
|
std::string getDimensionKey() const;
|
||||||
std::string getProductCode()const;
|
void setDimensionKey(const std::string &dimensionKey);
|
||||||
void setProductCode(const std::string& productCode);
|
|
||||||
std::vector<DependentDimensions> getDependentDimensions()const;
|
private:
|
||||||
void setDependentDimensions(const std::vector<DependentDimensions>& dependentDimensions);
|
std::string originalContext_;
|
||||||
std::string getDimensionKey()const;
|
std::string productCode_;
|
||||||
void setDimensionKey(const std::string& dimensionKey);
|
std::vector<DependentDimensions> dependentDimensions_;
|
||||||
|
std::string dimensionKey_;
|
||||||
private:
|
};
|
||||||
std::string productCode_;
|
} // namespace Model
|
||||||
std::vector<DependentDimensions> dependentDimensions_;
|
} // namespace Quotas
|
||||||
std::string dimensionKey_;
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTADIMENSIONREQUEST_H_
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTADIMENSIONREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,60 +1,55 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTAREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTAREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTAREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTAREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT GetProductQuotaRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT GetProductQuotaRequest : public RpcServiceRequest
|
struct Dimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct Dimensions
|
};
|
||||||
{
|
GetProductQuotaRequest();
|
||||||
std::string key;
|
~GetProductQuotaRequest();
|
||||||
std::string value;
|
std::string getProductCode() const;
|
||||||
};
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
public:
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
GetProductQuotaRequest();
|
std::string getOriginalContext() const;
|
||||||
~GetProductQuotaRequest();
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::vector<Dimensions> getDimensions() const;
|
||||||
std::string getProductCode()const;
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
void setProductCode(const std::string& productCode);
|
|
||||||
std::string getQuotaActionCode()const;
|
private:
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
std::string productCode_;
|
||||||
std::vector<Dimensions> getDimensions()const;
|
std::string quotaActionCode_;
|
||||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
std::string originalContext_;
|
||||||
|
std::vector<Dimensions> dimensions_;
|
||||||
private:
|
};
|
||||||
std::string productCode_;
|
} // namespace Model
|
||||||
std::string quotaActionCode_;
|
} // namespace Quotas
|
||||||
std::vector<Dimensions> dimensions_;
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTAREQUEST_H_
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETPRODUCTQUOTAREQUEST_H_
|
|
||||||
|
|||||||
@@ -39,28 +39,41 @@ namespace AlibabaCloud
|
|||||||
int periodValue;
|
int periodValue;
|
||||||
std::string periodUnit;
|
std::string periodUnit;
|
||||||
};
|
};
|
||||||
|
struct UsageMetric
|
||||||
|
{
|
||||||
|
std::string metricName;
|
||||||
|
std::string metricDimensions;
|
||||||
|
std::string metricNamespace;
|
||||||
|
};
|
||||||
struct QuotaItemsItem
|
struct QuotaItemsItem
|
||||||
{
|
{
|
||||||
std::string usage;
|
|
||||||
std::string type;
|
std::string type;
|
||||||
|
std::string usage;
|
||||||
std::string quota;
|
std::string quota;
|
||||||
std::string quotaUnit;
|
std::string quotaUnit;
|
||||||
};
|
};
|
||||||
std::string quotaDescription;
|
std::string quotaDescription;
|
||||||
bool consumable;
|
|
||||||
std::string unadjustableDetail;
|
std::string unadjustableDetail;
|
||||||
std::string productCode;
|
bool consumable;
|
||||||
|
UsageMetric usageMetric;
|
||||||
float totalUsage;
|
float totalUsage;
|
||||||
|
std::string productCode;
|
||||||
|
std::string effectiveTime;
|
||||||
std::string quotaType;
|
std::string quotaType;
|
||||||
Period period;
|
Period period;
|
||||||
std::string dimensions;
|
|
||||||
std::string quotaUnit;
|
std::string quotaUnit;
|
||||||
|
std::string dimensions;
|
||||||
|
bool globalQuota;
|
||||||
bool adjustable;
|
bool adjustable;
|
||||||
std::string quotaActionCode;
|
std::string quotaActionCode;
|
||||||
std::vector<QuotaItemsItem> quotaItems;
|
std::vector<QuotaItemsItem> quotaItems;
|
||||||
std::string quotaName;
|
std::string quotaName;
|
||||||
std::string quotaArn;
|
std::string quotaArn;
|
||||||
float totalQuota;
|
float totalQuota;
|
||||||
|
std::string applyReasonTips;
|
||||||
|
std::string quotaCategory;
|
||||||
|
std::vector<std::string> supportedRange;
|
||||||
|
std::string expireTime;
|
||||||
std::string applicableType;
|
std::string applicableType;
|
||||||
std::vector<std::string> applicableRange;
|
std::vector<std::string> applicableRange;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,48 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAALARMREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAALARMREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAALARMREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAALARMREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaAlarmRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaAlarmRequest : public RpcServiceRequest
|
GetQuotaAlarmRequest();
|
||||||
{
|
~GetQuotaAlarmRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
public:
|
void setOriginalContext(const std::string &originalContext);
|
||||||
GetQuotaAlarmRequest();
|
std::string getAlarmId() const;
|
||||||
~GetQuotaAlarmRequest();
|
void setAlarmId(const std::string &alarmId);
|
||||||
|
|
||||||
std::string getAlarmId()const;
|
private:
|
||||||
void setAlarmId(const std::string& alarmId);
|
std::string originalContext_;
|
||||||
|
std::string alarmId_;
|
||||||
private:
|
};
|
||||||
std::string alarmId_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAALARMREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAALARMREQUEST_H_
|
|
||||||
|
|||||||
@@ -45,8 +45,9 @@ namespace AlibabaCloud
|
|||||||
std::string alarmName;
|
std::string alarmName;
|
||||||
std::string notifyTarget;
|
std::string notifyTarget;
|
||||||
std::string quotaDimension;
|
std::string quotaDimension;
|
||||||
float threshold;
|
std::string webhook;
|
||||||
std::string thresholdType;
|
std::string thresholdType;
|
||||||
|
float threshold;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONAPPROVALREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONAPPROVALREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaApplicationApprovalRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
GetQuotaApplicationApprovalRequest();
|
||||||
|
~GetQuotaApplicationApprovalRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getApplicationId() const;
|
||||||
|
void setApplicationId(const std::string &applicationId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string applicationId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONAPPROVALREQUEST_H_
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUOTAS_MODEL_GETQUOTAAPPLICATIONAPPROVALRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONAPPROVALRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaApplicationApprovalResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct Module
|
||||||
|
{
|
||||||
|
int reminderIntervalHours;
|
||||||
|
std::string unsupportReminderReason;
|
||||||
|
int approvalHours;
|
||||||
|
bool supportReminder;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalResult();
|
||||||
|
explicit GetQuotaApplicationApprovalResult(const std::string &payload);
|
||||||
|
~GetQuotaApplicationApprovalResult();
|
||||||
|
bool getAllowRetry()const;
|
||||||
|
std::vector<std::string> getErrorArgs()const;
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
std::string getErrorMsg()const;
|
||||||
|
std::string getDynamicCode()const;
|
||||||
|
std::string getDynamicMessage()const;
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
Module getModule()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
bool allowRetry_;
|
||||||
|
std::vector<std::string> errorArgs_;
|
||||||
|
int httpStatusCode_;
|
||||||
|
std::string errorMsg_;
|
||||||
|
std::string dynamicCode_;
|
||||||
|
std::string dynamicMessage_;
|
||||||
|
std::string errorCode_;
|
||||||
|
Module module_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONAPPROVALRESULT_H_
|
||||||
@@ -1,48 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaApplicationRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaApplicationRequest : public RpcServiceRequest
|
GetQuotaApplicationRequest();
|
||||||
{
|
~GetQuotaApplicationRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
public:
|
void setOriginalContext(const std::string &originalContext);
|
||||||
GetQuotaApplicationRequest();
|
std::string getApplicationId() const;
|
||||||
~GetQuotaApplicationRequest();
|
void setApplicationId(const std::string &applicationId);
|
||||||
|
|
||||||
std::string getApplicationId()const;
|
private:
|
||||||
void setApplicationId(const std::string& applicationId);
|
std::string originalContext_;
|
||||||
|
std::string applicationId_;
|
||||||
private:
|
};
|
||||||
std::string applicationId_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTAAPPLICATIONREQUEST_H_
|
|
||||||
|
|||||||
@@ -37,10 +37,10 @@ namespace AlibabaCloud
|
|||||||
std::string status;
|
std::string status;
|
||||||
std::string applyTime;
|
std::string applyTime;
|
||||||
std::string quotaDescription;
|
std::string quotaDescription;
|
||||||
std::string effectiveTime;
|
|
||||||
std::string productCode;
|
std::string productCode;
|
||||||
std::string quotaUnit;
|
std::string effectiveTime;
|
||||||
std::string auditReason;
|
std::string auditReason;
|
||||||
|
std::string quotaUnit;
|
||||||
std::string dimension;
|
std::string dimension;
|
||||||
float approveValue;
|
float approveValue;
|
||||||
std::string reason;
|
std::string reason;
|
||||||
@@ -48,9 +48,9 @@ namespace AlibabaCloud
|
|||||||
std::string quotaName;
|
std::string quotaName;
|
||||||
std::string quotaArn;
|
std::string quotaArn;
|
||||||
long noticeType;
|
long noticeType;
|
||||||
std::string expireTime;
|
|
||||||
std::string applicationId;
|
|
||||||
int desireValue;
|
int desireValue;
|
||||||
|
std::string applicationId;
|
||||||
|
std::string expireTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_GETQUOTATEMPLATESERVICESTATUSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTATEMPLATESERVICESTATUSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaTemplateServiceStatusRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
GetQuotaTemplateServiceStatusRequest();
|
||||||
|
~GetQuotaTemplateServiceStatusRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getResourceDirectoryId() const;
|
||||||
|
void setResourceDirectoryId(const std::string &resourceDirectoryId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string resourceDirectoryId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTATEMPLATESERVICESTATUSREQUEST_H_
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUOTAS_MODEL_GETQUOTATEMPLATESERVICESTATUSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_GETQUOTATEMPLATESERVICESTATUSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT GetQuotaTemplateServiceStatusResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct TemplateServiceStatus
|
||||||
|
{
|
||||||
|
std::string resourceDirectoryId;
|
||||||
|
int serviceStatus;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusResult();
|
||||||
|
explicit GetQuotaTemplateServiceStatusResult(const std::string &payload);
|
||||||
|
~GetQuotaTemplateServiceStatusResult();
|
||||||
|
TemplateServiceStatus getTemplateServiceStatus()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
TemplateServiceStatus templateServiceStatus_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_GETQUOTATEMPLATESERVICESTATUSRESULT_H_
|
||||||
@@ -1,63 +1,63 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTALARMHISTORIESREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTALARMHISTORIESREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTALARMHISTORIESREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTALARMHISTORIESREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListAlarmHistoriesRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListAlarmHistoriesRequest : public RpcServiceRequest
|
ListAlarmHistoriesRequest();
|
||||||
{
|
~ListAlarmHistoriesRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
public:
|
void setProductCode(const std::string &productCode);
|
||||||
ListAlarmHistoriesRequest();
|
long getStartTime() const;
|
||||||
~ListAlarmHistoriesRequest();
|
void setStartTime(long startTime);
|
||||||
|
std::string getNextToken() const;
|
||||||
std::string getProductCode()const;
|
void setNextToken(const std::string &nextToken);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getKeyword() const;
|
||||||
long getStartTime()const;
|
void setKeyword(const std::string &keyword);
|
||||||
void setStartTime(long startTime);
|
std::string getOriginalContext() const;
|
||||||
std::string getNextToken()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setNextToken(const std::string& nextToken);
|
long getEndTime() const;
|
||||||
std::string getKeyword()const;
|
void setEndTime(long endTime);
|
||||||
void setKeyword(const std::string& keyword);
|
std::string getAlarmId() const;
|
||||||
long getEndTime()const;
|
void setAlarmId(const std::string &alarmId);
|
||||||
void setEndTime(long endTime);
|
int getMaxResults() const;
|
||||||
int getMaxResults()const;
|
void setMaxResults(int maxResults);
|
||||||
void setMaxResults(int maxResults);
|
|
||||||
|
private:
|
||||||
private:
|
std::string productCode_;
|
||||||
std::string productCode_;
|
long startTime_;
|
||||||
long startTime_;
|
std::string nextToken_;
|
||||||
std::string nextToken_;
|
std::string keyword_;
|
||||||
std::string keyword_;
|
std::string originalContext_;
|
||||||
long endTime_;
|
long endTime_;
|
||||||
int maxResults_;
|
std::string alarmId_;
|
||||||
|
int maxResults_;
|
||||||
};
|
};
|
||||||
}
|
} // namespace Model
|
||||||
}
|
} // namespace Quotas
|
||||||
}
|
} // namespace AlibabaCloud
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTALARMHISTORIESREQUEST_H_
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTALARMHISTORIESREQUEST_H_
|
||||||
|
|||||||
@@ -38,8 +38,8 @@ namespace AlibabaCloud
|
|||||||
std::vector<std::string> notifyChannels;
|
std::vector<std::string> notifyChannels;
|
||||||
float thresholdPercent;
|
float thresholdPercent;
|
||||||
std::string alarmName;
|
std::string alarmName;
|
||||||
std::string productCode;
|
|
||||||
std::string notifyTarget;
|
std::string notifyTarget;
|
||||||
|
std::string productCode;
|
||||||
std::string createTime;
|
std::string createTime;
|
||||||
float quotaUsage;
|
float quotaUsage;
|
||||||
float threshold;
|
float threshold;
|
||||||
|
|||||||
@@ -1,51 +1,48 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTDEPENDENTQUOTASREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTDEPENDENTQUOTASREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTDEPENDENTQUOTASREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTDEPENDENTQUOTASREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListDependentQuotasRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListDependentQuotasRequest : public RpcServiceRequest
|
ListDependentQuotasRequest();
|
||||||
{
|
~ListDependentQuotasRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
public:
|
void setOriginalContext(const std::string &originalContext);
|
||||||
ListDependentQuotasRequest();
|
std::string getProductCode() const;
|
||||||
~ListDependentQuotasRequest();
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
std::string getProductCode()const;
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
void setProductCode(const std::string& productCode);
|
|
||||||
std::string getQuotaActionCode()const;
|
private:
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
std::string originalContext_;
|
||||||
|
std::string productCode_;
|
||||||
private:
|
std::string quotaActionCode_;
|
||||||
std::string productCode_;
|
};
|
||||||
std::string quotaActionCode_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTDEPENDENTQUOTASREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTDEPENDENTQUOTASREQUEST_H_
|
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ namespace AlibabaCloud
|
|||||||
struct DimensionsItem
|
struct DimensionsItem
|
||||||
{
|
{
|
||||||
std::string dimensionKey;
|
std::string dimensionKey;
|
||||||
std::vector<std::string> dimensionValues;
|
|
||||||
std::vector<std::string> dependentDimension;
|
std::vector<std::string> dependentDimension;
|
||||||
|
std::vector<std::string> dimensionValues;
|
||||||
};
|
};
|
||||||
std::string quotaActionCode;
|
std::string quotaActionCode;
|
||||||
std::string productCode;
|
std::string productCode;
|
||||||
|
|||||||
@@ -1,54 +1,51 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTDIMENSIONGROUPSREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTDIMENSIONGROUPSREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTDIMENSIONGROUPSREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTDIMENSIONGROUPSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListProductDimensionGroupsRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListProductDimensionGroupsRequest : public RpcServiceRequest
|
ListProductDimensionGroupsRequest();
|
||||||
{
|
~ListProductDimensionGroupsRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
public:
|
void setOriginalContext(const std::string &originalContext);
|
||||||
ListProductDimensionGroupsRequest();
|
std::string getProductCode() const;
|
||||||
~ListProductDimensionGroupsRequest();
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getNextToken() const;
|
||||||
std::string getProductCode()const;
|
void setNextToken(const std::string &nextToken);
|
||||||
void setProductCode(const std::string& productCode);
|
int getMaxResults() const;
|
||||||
std::string getNextToken()const;
|
void setMaxResults(int maxResults);
|
||||||
void setNextToken(const std::string& nextToken);
|
|
||||||
int getMaxResults()const;
|
private:
|
||||||
void setMaxResults(int maxResults);
|
std::string originalContext_;
|
||||||
|
std::string productCode_;
|
||||||
private:
|
std::string nextToken_;
|
||||||
std::string productCode_;
|
int maxResults_;
|
||||||
std::string nextToken_;
|
};
|
||||||
int maxResults_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTDIMENSIONGROUPSREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTDIMENSIONGROUPSREQUEST_H_
|
|
||||||
|
|||||||
@@ -1,57 +1,54 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTADIMENSIONSREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTADIMENSIONSREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTADIMENSIONSREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTADIMENSIONSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListProductQuotaDimensionsRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListProductQuotaDimensionsRequest : public RpcServiceRequest
|
ListProductQuotaDimensionsRequest();
|
||||||
{
|
~ListProductQuotaDimensionsRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
public:
|
void setProductCode(const std::string &productCode);
|
||||||
ListProductQuotaDimensionsRequest();
|
std::string getNextToken() const;
|
||||||
~ListProductQuotaDimensionsRequest();
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
std::string getProductCode()const;
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getOriginalContext() const;
|
||||||
std::string getNextToken()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setNextToken(const std::string& nextToken);
|
int getMaxResults() const;
|
||||||
int getMaxResults()const;
|
void setMaxResults(int maxResults);
|
||||||
void setMaxResults(int maxResults);
|
|
||||||
std::string getQuotaCategory()const;
|
private:
|
||||||
void setQuotaCategory(const std::string& quotaCategory);
|
std::string productCode_;
|
||||||
|
std::string nextToken_;
|
||||||
private:
|
std::string quotaCategory_;
|
||||||
std::string productCode_;
|
std::string originalContext_;
|
||||||
std::string nextToken_;
|
int maxResults_;
|
||||||
int maxResults_;
|
};
|
||||||
std::string quotaCategory_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTADIMENSIONSREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTADIMENSIONSREQUEST_H_
|
|
||||||
|
|||||||
@@ -36,14 +36,20 @@ namespace AlibabaCloud
|
|||||||
{
|
{
|
||||||
struct DimensionValueDetailItem
|
struct DimensionValueDetailItem
|
||||||
{
|
{
|
||||||
|
struct DependentDimension
|
||||||
|
{
|
||||||
|
std::string value;
|
||||||
|
std::string key;
|
||||||
|
};
|
||||||
std::string value;
|
std::string value;
|
||||||
|
std::vector<DimensionValueDetailItem::DependentDimension> dependentDimensions1;
|
||||||
std::string name;
|
std::string name;
|
||||||
};
|
};
|
||||||
std::string dimensionKey;
|
std::string dimensionKey;
|
||||||
std::vector<std::string> dimensionValues;
|
std::vector<std::string> dimensionValues;
|
||||||
std::vector<QuotaDimensionsItem::DimensionValueDetailItem> dimensionValueDetail;
|
std::vector<QuotaDimensionsItem::DimensionValueDetailItem> dimensionValueDetail;
|
||||||
std::string name;
|
|
||||||
bool requisite;
|
bool requisite;
|
||||||
|
std::string name;
|
||||||
std::vector<std::string> dependentDimensions;
|
std::vector<std::string> dependentDimensions;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,81 +1,76 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTASREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTASREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTASREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTASREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListProductQuotasRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListProductQuotasRequest : public RpcServiceRequest
|
struct Dimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct Dimensions
|
};
|
||||||
{
|
ListProductQuotasRequest();
|
||||||
std::string key;
|
~ListProductQuotasRequest();
|
||||||
std::string value;
|
std::string getProductCode() const;
|
||||||
};
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
public:
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
ListProductQuotasRequest();
|
std::string getGroupCode() const;
|
||||||
~ListProductQuotasRequest();
|
void setGroupCode(const std::string &groupCode);
|
||||||
|
std::string getNextToken() const;
|
||||||
std::string getProductCode()const;
|
void setNextToken(const std::string &nextToken);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getSortOrder() const;
|
||||||
std::string getQuotaActionCode()const;
|
void setSortOrder(const std::string &sortOrder);
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
std::string getKeyWord() const;
|
||||||
std::string getGroupCode()const;
|
void setKeyWord(const std::string &keyWord);
|
||||||
void setGroupCode(const std::string& groupCode);
|
std::string getQuotaCategory() const;
|
||||||
std::string getNextToken()const;
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
void setNextToken(const std::string& nextToken);
|
std::string getOriginalContext() const;
|
||||||
std::string getSortOrder()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setSortOrder(const std::string& sortOrder);
|
int getMaxResults() const;
|
||||||
std::string getKeyWord()const;
|
void setMaxResults(int maxResults);
|
||||||
void setKeyWord(const std::string& keyWord);
|
std::string getSortField() const;
|
||||||
std::string getQuotaCategory()const;
|
void setSortField(const std::string &sortField);
|
||||||
void setQuotaCategory(const std::string& quotaCategory);
|
std::vector<Dimensions> getDimensions() const;
|
||||||
int getMaxResults()const;
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
void setMaxResults(int maxResults);
|
|
||||||
std::string getSortField()const;
|
private:
|
||||||
void setSortField(const std::string& sortField);
|
std::string productCode_;
|
||||||
std::vector<Dimensions> getDimensions()const;
|
std::string quotaActionCode_;
|
||||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
std::string groupCode_;
|
||||||
|
std::string nextToken_;
|
||||||
private:
|
std::string sortOrder_;
|
||||||
std::string productCode_;
|
std::string keyWord_;
|
||||||
std::string quotaActionCode_;
|
std::string quotaCategory_;
|
||||||
std::string groupCode_;
|
std::string originalContext_;
|
||||||
std::string nextToken_;
|
int maxResults_;
|
||||||
std::string sortOrder_;
|
std::string sortField_;
|
||||||
std::string keyWord_;
|
std::vector<Dimensions> dimensions_;
|
||||||
std::string quotaCategory_;
|
};
|
||||||
int maxResults_;
|
} // namespace Model
|
||||||
std::string sortField_;
|
} // namespace Quotas
|
||||||
std::vector<Dimensions> dimensions_;
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTASREQUEST_H_
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTQUOTASREQUEST_H_
|
|
||||||
|
|||||||
@@ -39,28 +39,41 @@ namespace AlibabaCloud
|
|||||||
int periodValue;
|
int periodValue;
|
||||||
std::string periodUnit;
|
std::string periodUnit;
|
||||||
};
|
};
|
||||||
|
struct UsageMetric
|
||||||
|
{
|
||||||
|
std::string metricName;
|
||||||
|
std::string metricDimensions;
|
||||||
|
std::string metricNamespace;
|
||||||
|
};
|
||||||
struct QuotaItemsItem
|
struct QuotaItemsItem
|
||||||
{
|
{
|
||||||
std::string usage;
|
|
||||||
std::string type;
|
std::string type;
|
||||||
|
std::string usage;
|
||||||
std::string quota;
|
std::string quota;
|
||||||
std::string quotaUnit;
|
std::string quotaUnit;
|
||||||
};
|
};
|
||||||
std::string quotaDescription;
|
std::string quotaDescription;
|
||||||
bool consumable;
|
|
||||||
std::string unadjustableDetail;
|
std::string unadjustableDetail;
|
||||||
std::string productCode;
|
bool consumable;
|
||||||
|
UsageMetric usageMetric;
|
||||||
float totalUsage;
|
float totalUsage;
|
||||||
|
std::string productCode;
|
||||||
|
std::string effectiveTime;
|
||||||
std::string quotaType;
|
std::string quotaType;
|
||||||
Period period;
|
Period period;
|
||||||
std::string dimensions;
|
|
||||||
std::string quotaUnit;
|
std::string quotaUnit;
|
||||||
|
std::string dimensions;
|
||||||
|
bool globalQuota;
|
||||||
bool adjustable;
|
bool adjustable;
|
||||||
std::string quotaActionCode;
|
std::string quotaActionCode;
|
||||||
std::vector<QuotasItem::QuotaItemsItem> quotaItems;
|
std::vector<QuotasItem::QuotaItemsItem> quotaItems;
|
||||||
std::string quotaName;
|
std::string quotaName;
|
||||||
std::string quotaArn;
|
std::string quotaArn;
|
||||||
float totalQuota;
|
float totalQuota;
|
||||||
|
std::string applyReasonTips;
|
||||||
|
std::string quotaCategory;
|
||||||
|
std::vector<std::string> supportedRange;
|
||||||
|
std::string expireTime;
|
||||||
std::string applicableType;
|
std::string applicableType;
|
||||||
std::vector<std::string> applicableRange;
|
std::vector<std::string> applicableRange;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,51 +1,48 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTSREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTSREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTSREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListProductsRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListProductsRequest : public RpcServiceRequest
|
ListProductsRequest();
|
||||||
{
|
~ListProductsRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
public:
|
void setOriginalContext(const std::string &originalContext);
|
||||||
ListProductsRequest();
|
std::string getNextToken() const;
|
||||||
~ListProductsRequest();
|
void setNextToken(const std::string &nextToken);
|
||||||
|
int getMaxResults() const;
|
||||||
std::string getNextToken()const;
|
void setMaxResults(int maxResults);
|
||||||
void setNextToken(const std::string& nextToken);
|
|
||||||
int getMaxResults()const;
|
private:
|
||||||
void setMaxResults(int maxResults);
|
std::string originalContext_;
|
||||||
|
std::string nextToken_;
|
||||||
private:
|
int maxResults_;
|
||||||
std::string nextToken_;
|
};
|
||||||
int maxResults_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTSREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTPRODUCTSREQUEST_H_
|
|
||||||
|
|||||||
@@ -34,13 +34,14 @@ namespace AlibabaCloud
|
|||||||
public:
|
public:
|
||||||
struct ProductInfos
|
struct ProductInfos
|
||||||
{
|
{
|
||||||
std::string secondCategoryNameEn;
|
|
||||||
bool dynamic;
|
bool dynamic;
|
||||||
std::string commonQuotaSupport;
|
std::string secondCategoryNameEn;
|
||||||
std::string productName;
|
std::string productName;
|
||||||
std::string productCode;
|
std::string commonQuotaSupport;
|
||||||
std::string secondCategoryName;
|
std::string secondCategoryName;
|
||||||
|
std::string productCode;
|
||||||
std::string flowControlSupport;
|
std::string flowControlSupport;
|
||||||
|
std::string whiteListLabelQuotaSupport;
|
||||||
long secondCategoryId;
|
long secondCategoryId;
|
||||||
std::string productNameEn;
|
std::string productNameEn;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,69 +1,64 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAALARMSREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAALARMSREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAALARMSREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAALARMSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaAlarmsRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaAlarmsRequest : public RpcServiceRequest
|
struct QuotaDimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct QuotaDimensions
|
};
|
||||||
{
|
ListQuotaAlarmsRequest();
|
||||||
std::string key;
|
~ListQuotaAlarmsRequest();
|
||||||
std::string value;
|
std::string getProductCode() const;
|
||||||
};
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
public:
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
ListQuotaAlarmsRequest();
|
std::string getNextToken() const;
|
||||||
~ListQuotaAlarmsRequest();
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::vector<QuotaDimensions> getQuotaDimensions() const;
|
||||||
std::string getProductCode()const;
|
void setQuotaDimensions(const std::vector<QuotaDimensions> "aDimensions);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getOriginalContext() const;
|
||||||
std::string getQuotaActionCode()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
int getMaxResults() const;
|
||||||
std::string getNextToken()const;
|
void setMaxResults(int maxResults);
|
||||||
void setNextToken(const std::string& nextToken);
|
std::string getAlarmName() const;
|
||||||
std::vector<QuotaDimensions> getQuotaDimensions()const;
|
void setAlarmName(const std::string &alarmName);
|
||||||
void setQuotaDimensions(const std::vector<QuotaDimensions>& quotaDimensions);
|
|
||||||
int getMaxResults()const;
|
private:
|
||||||
void setMaxResults(int maxResults);
|
std::string productCode_;
|
||||||
std::string getAlarmName()const;
|
std::string quotaActionCode_;
|
||||||
void setAlarmName(const std::string& alarmName);
|
std::string nextToken_;
|
||||||
|
std::vector<QuotaDimensions> quotaDimensions_;
|
||||||
private:
|
std::string originalContext_;
|
||||||
std::string productCode_;
|
int maxResults_;
|
||||||
std::string quotaActionCode_;
|
std::string alarmName_;
|
||||||
std::string nextToken_;
|
};
|
||||||
std::vector<QuotaDimensions> quotaDimensions_;
|
} // namespace Model
|
||||||
int maxResults_;
|
} // namespace Quotas
|
||||||
std::string alarmName_;
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAALARMSREQUEST_H_
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAALARMSREQUEST_H_
|
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ namespace AlibabaCloud
|
|||||||
float quotaValue;
|
float quotaValue;
|
||||||
std::string alarmName;
|
std::string alarmName;
|
||||||
std::string notifyTarget;
|
std::string notifyTarget;
|
||||||
float threshold;
|
|
||||||
std::string thresholdType;
|
std::string thresholdType;
|
||||||
|
float threshold;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONTEMPLATESREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONTEMPLATESREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationTemplatesRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Dimensions {
|
||||||
|
std::string key;
|
||||||
|
std::string value;
|
||||||
|
};
|
||||||
|
ListQuotaApplicationTemplatesRequest();
|
||||||
|
~ListQuotaApplicationTemplatesRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::string getId() const;
|
||||||
|
void setId(const std::string &id);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
std::vector<Dimensions> getDimensions() const;
|
||||||
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::string id_;
|
||||||
|
std::string quotaCategory_;
|
||||||
|
std::string originalContext_;
|
||||||
|
int maxResults_;
|
||||||
|
std::vector<Dimensions> dimensions_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONTEMPLATESREQUEST_H_
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONTEMPLATESRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONTEMPLATESRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationTemplatesResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct QuotaApplicationTemplatesItem
|
||||||
|
{
|
||||||
|
struct Period
|
||||||
|
{
|
||||||
|
int periodValue;
|
||||||
|
std::string periodUnit;
|
||||||
|
};
|
||||||
|
std::string quotaDescription;
|
||||||
|
std::string productCode;
|
||||||
|
std::string effectiveTime;
|
||||||
|
Period period;
|
||||||
|
std::string dimensions;
|
||||||
|
std::string envLanguage;
|
||||||
|
std::string quotaActionCode;
|
||||||
|
std::string quotaName;
|
||||||
|
std::string quotaCategory;
|
||||||
|
int noticeType;
|
||||||
|
std::string id;
|
||||||
|
float desireValue;
|
||||||
|
std::string expireTime;
|
||||||
|
std::string applicableType;
|
||||||
|
std::vector<std::string> applicableRange;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListQuotaApplicationTemplatesResult();
|
||||||
|
explicit ListQuotaApplicationTemplatesResult(const std::string &payload);
|
||||||
|
~ListQuotaApplicationTemplatesResult();
|
||||||
|
int getTotalCount()const;
|
||||||
|
std::string getNextToken()const;
|
||||||
|
int getMaxResults()const;
|
||||||
|
std::vector<QuotaApplicationTemplatesItem> getQuotaApplicationTemplates()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int totalCount_;
|
||||||
|
std::string nextToken_;
|
||||||
|
int maxResults_;
|
||||||
|
std::vector<QuotaApplicationTemplatesItem> quotaApplicationTemplates_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONTEMPLATESRESULT_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_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSDETAILFORTEMPLATEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSDETAILFORTEMPLATEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationsDetailForTemplateRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListQuotaApplicationsDetailForTemplateRequest();
|
||||||
|
~ListQuotaApplicationsDetailForTemplateRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
std::string getBatchQuotaApplicationId() const;
|
||||||
|
void setBatchQuotaApplicationId(const std::string &batchQuotaApplicationId);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getAliyunUid() const;
|
||||||
|
void setAliyunUid(const std::string &aliyunUid);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
std::string getStatus() const;
|
||||||
|
void setStatus(const std::string &status);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
|
std::string batchQuotaApplicationId_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::string quotaCategory_;
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string aliyunUid_;
|
||||||
|
int maxResults_;
|
||||||
|
std::string status_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSDETAILFORTEMPLATEREQUEST_H_
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSDETAILFORTEMPLATERESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSDETAILFORTEMPLATERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationsDetailForTemplateResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct QuotaBatchApplicationDetailVos
|
||||||
|
{
|
||||||
|
struct Period
|
||||||
|
{
|
||||||
|
int periodValue;
|
||||||
|
std::string periodUnit;
|
||||||
|
};
|
||||||
|
std::string status;
|
||||||
|
std::string applyTime;
|
||||||
|
std::string quotaDescription;
|
||||||
|
std::string batchQuotaApplicationId;
|
||||||
|
std::string productCode;
|
||||||
|
std::string effectiveTime;
|
||||||
|
Period period;
|
||||||
|
std::string quotaUnit;
|
||||||
|
std::string auditReason;
|
||||||
|
double approveValue;
|
||||||
|
std::string reason;
|
||||||
|
std::string envLanguage;
|
||||||
|
std::string quotaActionCode;
|
||||||
|
std::string quotaName;
|
||||||
|
std::string quotaArn;
|
||||||
|
std::string aliyunUid;
|
||||||
|
std::string quotaCategory;
|
||||||
|
int noticeType;
|
||||||
|
std::string quotaDimension;
|
||||||
|
std::string applicationId;
|
||||||
|
double desireValue;
|
||||||
|
std::string expireTime;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListQuotaApplicationsDetailForTemplateResult();
|
||||||
|
explicit ListQuotaApplicationsDetailForTemplateResult(const std::string &payload);
|
||||||
|
~ListQuotaApplicationsDetailForTemplateResult();
|
||||||
|
std::vector<QuotaBatchApplicationDetailVos> getQuotaApplications()const;
|
||||||
|
int getTotalCount()const;
|
||||||
|
std::string getNextToken()const;
|
||||||
|
int getMaxResults()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::vector<QuotaBatchApplicationDetailVos> quotaApplications_;
|
||||||
|
int totalCount_;
|
||||||
|
std::string nextToken_;
|
||||||
|
int maxResults_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSDETAILFORTEMPLATERESULT_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_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSFORTEMPLATEREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSFORTEMPLATEREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationsForTemplateRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ListQuotaApplicationsForTemplateRequest();
|
||||||
|
~ListQuotaApplicationsForTemplateRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
std::string getBatchQuotaApplicationId() const;
|
||||||
|
void setBatchQuotaApplicationId(const std::string &batchQuotaApplicationId);
|
||||||
|
std::string getNextToken() const;
|
||||||
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getApplyStartTime() const;
|
||||||
|
void setApplyStartTime(const std::string &applyStartTime);
|
||||||
|
std::string getApplyEndTime() const;
|
||||||
|
void setApplyEndTime(const std::string &applyEndTime);
|
||||||
|
int getMaxResults() const;
|
||||||
|
void setMaxResults(int maxResults);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
|
std::string batchQuotaApplicationId_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::string quotaCategory_;
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string applyStartTime_;
|
||||||
|
std::string applyEndTime_;
|
||||||
|
int maxResults_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSFORTEMPLATEREQUEST_H_
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSFORTEMPLATERESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSFORTEMPLATERESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationsForTemplateResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct QuotaBatchApplicationsItem
|
||||||
|
{
|
||||||
|
struct AuditStatusVo
|
||||||
|
{
|
||||||
|
std::string status;
|
||||||
|
int count;
|
||||||
|
};
|
||||||
|
std::string quotaActionCode;
|
||||||
|
std::string applyTime;
|
||||||
|
std::vector<QuotaBatchApplicationsItem::AuditStatusVo> auditStatusVos;
|
||||||
|
std::string productCode;
|
||||||
|
std::string batchQuotaApplicationId;
|
||||||
|
std::string effectiveTime;
|
||||||
|
std::string quotaCategory;
|
||||||
|
std::vector<std::string> aliyunUids;
|
||||||
|
std::string dimensions;
|
||||||
|
std::string expireTime;
|
||||||
|
double desireValue;
|
||||||
|
std::string reason;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ListQuotaApplicationsForTemplateResult();
|
||||||
|
explicit ListQuotaApplicationsForTemplateResult(const std::string &payload);
|
||||||
|
~ListQuotaApplicationsForTemplateResult();
|
||||||
|
int getTotalCount()const;
|
||||||
|
std::string getNextToken()const;
|
||||||
|
std::vector<QuotaBatchApplicationsItem> getQuotaBatchApplications()const;
|
||||||
|
int getMaxResults()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
int totalCount_;
|
||||||
|
std::string nextToken_;
|
||||||
|
std::vector<QuotaBatchApplicationsItem> quotaBatchApplications_;
|
||||||
|
int maxResults_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSFORTEMPLATERESULT_H_
|
||||||
@@ -1,75 +1,70 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationsRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT ListQuotaApplicationsRequest : public RpcServiceRequest
|
struct Dimensions {
|
||||||
{
|
std::string key;
|
||||||
public:
|
std::string value;
|
||||||
struct Dimensions
|
};
|
||||||
{
|
ListQuotaApplicationsRequest();
|
||||||
std::string key;
|
~ListQuotaApplicationsRequest();
|
||||||
std::string value;
|
std::string getProductCode() const;
|
||||||
};
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
public:
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
ListQuotaApplicationsRequest();
|
std::string getNextToken() const;
|
||||||
~ListQuotaApplicationsRequest();
|
void setNextToken(const std::string &nextToken);
|
||||||
|
std::string getKeyWord() const;
|
||||||
std::string getProductCode()const;
|
void setKeyWord(const std::string &keyWord);
|
||||||
void setProductCode(const std::string& productCode);
|
std::string getQuotaCategory() const;
|
||||||
std::string getQuotaActionCode()const;
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
void setQuotaActionCode(const std::string& quotaActionCode);
|
std::string getOriginalContext() const;
|
||||||
std::string getNextToken()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setNextToken(const std::string& nextToken);
|
int getMaxResults() const;
|
||||||
std::string getKeyWord()const;
|
void setMaxResults(int maxResults);
|
||||||
void setKeyWord(const std::string& keyWord);
|
std::string getStatus() const;
|
||||||
std::string getQuotaCategory()const;
|
void setStatus(const std::string &status);
|
||||||
void setQuotaCategory(const std::string& quotaCategory);
|
std::vector<Dimensions> getDimensions() const;
|
||||||
int getMaxResults()const;
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
void setMaxResults(int maxResults);
|
|
||||||
std::string getStatus()const;
|
private:
|
||||||
void setStatus(const std::string& status);
|
std::string productCode_;
|
||||||
std::vector<Dimensions> getDimensions()const;
|
std::string quotaActionCode_;
|
||||||
void setDimensions(const std::vector<Dimensions>& dimensions);
|
std::string nextToken_;
|
||||||
|
std::string keyWord_;
|
||||||
private:
|
std::string quotaCategory_;
|
||||||
std::string productCode_;
|
std::string originalContext_;
|
||||||
std::string quotaActionCode_;
|
int maxResults_;
|
||||||
std::string nextToken_;
|
std::string status_;
|
||||||
std::string keyWord_;
|
std::vector<Dimensions> dimensions_;
|
||||||
std::string quotaCategory_;
|
};
|
||||||
int maxResults_;
|
} // namespace Model
|
||||||
std::string status_;
|
} // namespace Quotas
|
||||||
std::vector<Dimensions> dimensions_;
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSREQUEST_H_
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_LISTQUOTAAPPLICATIONSREQUEST_H_
|
|
||||||
|
|||||||
@@ -40,14 +40,14 @@ namespace AlibabaCloud
|
|||||||
std::string periodUnit;
|
std::string periodUnit;
|
||||||
};
|
};
|
||||||
std::string status;
|
std::string status;
|
||||||
std::string applyTime;
|
|
||||||
std::string comment;
|
std::string comment;
|
||||||
|
std::string applyTime;
|
||||||
std::string quotaDescription;
|
std::string quotaDescription;
|
||||||
std::string productCode;
|
|
||||||
std::string effectiveTime;
|
std::string effectiveTime;
|
||||||
|
std::string productCode;
|
||||||
Period period;
|
Period period;
|
||||||
std::string auditReason;
|
|
||||||
std::string quotaUnit;
|
std::string quotaUnit;
|
||||||
|
std::string auditReason;
|
||||||
std::string dimension;
|
std::string dimension;
|
||||||
float approveValue;
|
float approveValue;
|
||||||
std::string reason;
|
std::string reason;
|
||||||
@@ -55,9 +55,9 @@ namespace AlibabaCloud
|
|||||||
std::string quotaName;
|
std::string quotaName;
|
||||||
std::string quotaArn;
|
std::string quotaArn;
|
||||||
int noticeType;
|
int noticeType;
|
||||||
std::string applicationId;
|
|
||||||
float desireValue;
|
|
||||||
std::string expireTime;
|
std::string expireTime;
|
||||||
|
float desireValue;
|
||||||
|
std::string applicationId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_MODIFYQUOTATEMPLATESERVICESTATUSREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_MODIFYQUOTATEMPLATESERVICESTATUSREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ModifyQuotaTemplateServiceStatusRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
ModifyQuotaTemplateServiceStatusRequest();
|
||||||
|
~ModifyQuotaTemplateServiceStatusRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
int getServiceStatus() const;
|
||||||
|
void setServiceStatus(int serviceStatus);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string originalContext_;
|
||||||
|
int serviceStatus_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_MODIFYQUOTATEMPLATESERVICESTATUSREQUEST_H_
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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_QUOTAS_MODEL_MODIFYQUOTATEMPLATESERVICESTATUSRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_MODIFYQUOTATEMPLATESERVICESTATUSRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ModifyQuotaTemplateServiceStatusResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct TemplateServiceStatus
|
||||||
|
{
|
||||||
|
std::string resourceDirectoryId;
|
||||||
|
int serviceStatus;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusResult();
|
||||||
|
explicit ModifyQuotaTemplateServiceStatusResult(const std::string &payload);
|
||||||
|
~ModifyQuotaTemplateServiceStatusResult();
|
||||||
|
TemplateServiceStatus getTemplateServiceStatus()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
TemplateServiceStatus templateServiceStatus_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_MODIFYQUOTATEMPLATESERVICESTATUSRESULT_H_
|
||||||
@@ -0,0 +1,76 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_MODIFYTEMPLATEQUOTAITEMREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_MODIFYTEMPLATEQUOTAITEMREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ModifyTemplateQuotaItemRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
struct Dimensions {
|
||||||
|
std::string key;
|
||||||
|
std::string value;
|
||||||
|
};
|
||||||
|
ModifyTemplateQuotaItemRequest();
|
||||||
|
~ModifyTemplateQuotaItemRequest();
|
||||||
|
std::string getProductCode() const;
|
||||||
|
void setProductCode(const std::string &productCode);
|
||||||
|
std::string getQuotaActionCode() const;
|
||||||
|
void setQuotaActionCode(const std::string "aActionCode);
|
||||||
|
float getDesireValue() const;
|
||||||
|
void setDesireValue(float desireValue);
|
||||||
|
std::string getEffectiveTime() const;
|
||||||
|
void setEffectiveTime(const std::string &effectiveTime);
|
||||||
|
std::string getId() const;
|
||||||
|
void setId(const std::string &id);
|
||||||
|
std::string getQuotaCategory() const;
|
||||||
|
void setQuotaCategory(const std::string "aCategory);
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getExpireTime() const;
|
||||||
|
void setExpireTime(const std::string &expireTime);
|
||||||
|
std::string getEnvLanguage() const;
|
||||||
|
void setEnvLanguage(const std::string &envLanguage);
|
||||||
|
long getNoticeType() const;
|
||||||
|
void setNoticeType(long noticeType);
|
||||||
|
std::vector<Dimensions> getDimensions() const;
|
||||||
|
void setDimensions(const std::vector<Dimensions> &dimensions);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string productCode_;
|
||||||
|
std::string quotaActionCode_;
|
||||||
|
float desireValue_;
|
||||||
|
std::string effectiveTime_;
|
||||||
|
std::string id_;
|
||||||
|
std::string quotaCategory_;
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string expireTime_;
|
||||||
|
std::string envLanguage_;
|
||||||
|
long noticeType_;
|
||||||
|
std::vector<Dimensions> dimensions_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_MODIFYTEMPLATEQUOTAITEMREQUEST_H_
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_MODIFYTEMPLATEQUOTAITEMRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_MODIFYTEMPLATEQUOTAITEMRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT ModifyTemplateQuotaItemResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
ModifyTemplateQuotaItemResult();
|
||||||
|
explicit ModifyTemplateQuotaItemResult(const std::string &payload);
|
||||||
|
~ModifyTemplateQuotaItemResult();
|
||||||
|
std::string getId()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
std::string id_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_MODIFYTEMPLATEQUOTAITEMRESULT_H_
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_REMINDQUOTAAPPLICATIONAPPROVALREQUEST_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_REMINDQUOTAAPPLICATIONAPPROVALREQUEST_H_
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
namespace AlibabaCloud {
|
||||||
|
namespace Quotas {
|
||||||
|
namespace Model {
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT RemindQuotaApplicationApprovalRequest : public RpcServiceRequest {
|
||||||
|
public:
|
||||||
|
RemindQuotaApplicationApprovalRequest();
|
||||||
|
~RemindQuotaApplicationApprovalRequest();
|
||||||
|
std::string getOriginalContext() const;
|
||||||
|
void setOriginalContext(const std::string &originalContext);
|
||||||
|
std::string getApplicationId() const;
|
||||||
|
void setApplicationId(const std::string &applicationId);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::string originalContext_;
|
||||||
|
std::string applicationId_;
|
||||||
|
};
|
||||||
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
|
} // namespace AlibabaCloud
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_REMINDQUOTAAPPLICATIONAPPROVALREQUEST_H_
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_REMINDQUOTAAPPLICATIONAPPROVALRESULT_H_
|
||||||
|
#define ALIBABACLOUD_QUOTAS_MODEL_REMINDQUOTAAPPLICATIONAPPROVALRESULT_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
#include <utility>
|
||||||
|
#include <alibabacloud/core/ServiceResult.h>
|
||||||
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
|
|
||||||
|
namespace AlibabaCloud
|
||||||
|
{
|
||||||
|
namespace Quotas
|
||||||
|
{
|
||||||
|
namespace Model
|
||||||
|
{
|
||||||
|
class ALIBABACLOUD_QUOTAS_EXPORT RemindQuotaApplicationApprovalResult : public ServiceResult
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
|
||||||
|
|
||||||
|
RemindQuotaApplicationApprovalResult();
|
||||||
|
explicit RemindQuotaApplicationApprovalResult(const std::string &payload);
|
||||||
|
~RemindQuotaApplicationApprovalResult();
|
||||||
|
bool getAllowRetry()const;
|
||||||
|
std::vector<std::string> getErrorArgs()const;
|
||||||
|
int getHttpStatusCode()const;
|
||||||
|
std::string getErrorMsg()const;
|
||||||
|
std::string getDynamicCode()const;
|
||||||
|
std::string getDynamicMessage()const;
|
||||||
|
std::string getErrorCode()const;
|
||||||
|
std::string getModule()const;
|
||||||
|
bool getSuccess()const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void parse(const std::string &payload);
|
||||||
|
private:
|
||||||
|
bool allowRetry_;
|
||||||
|
std::vector<std::string> errorArgs_;
|
||||||
|
int httpStatusCode_;
|
||||||
|
std::string errorMsg_;
|
||||||
|
std::string dynamicCode_;
|
||||||
|
std::string dynamicMessage_;
|
||||||
|
std::string errorCode_;
|
||||||
|
std::string module_;
|
||||||
|
bool success_;
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_REMINDQUOTAAPPLICATIONAPPROVALRESULT_H_
|
||||||
@@ -1,63 +1,60 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef ALIBABACLOUD_QUOTAS_MODEL_UPDATEQUOTAALARMREQUEST_H_
|
#ifndef ALIBABACLOUD_QUOTAS_MODEL_UPDATEQUOTAALARMREQUEST_H_
|
||||||
#define ALIBABACLOUD_QUOTAS_MODEL_UPDATEQUOTAALARMREQUEST_H_
|
#define ALIBABACLOUD_QUOTAS_MODEL_UPDATEQUOTAALARMREQUEST_H_
|
||||||
|
|
||||||
#include <string>
|
#include <alibabacloud/quotas/QuotasExport.h>
|
||||||
#include <vector>
|
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
#include <string>
|
||||||
#include <alibabacloud/quotas/QuotasExport.h>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
namespace AlibabaCloud
|
|
||||||
{
|
namespace AlibabaCloud {
|
||||||
namespace Quotas
|
namespace Quotas {
|
||||||
{
|
namespace Model {
|
||||||
namespace Model
|
class ALIBABACLOUD_QUOTAS_EXPORT UpdateQuotaAlarmRequest : public RpcServiceRequest {
|
||||||
{
|
public:
|
||||||
class ALIBABACLOUD_QUOTAS_EXPORT UpdateQuotaAlarmRequest : public RpcServiceRequest
|
UpdateQuotaAlarmRequest();
|
||||||
{
|
~UpdateQuotaAlarmRequest();
|
||||||
|
std::string getWebHook() const;
|
||||||
public:
|
void setWebHook(const std::string &webHook);
|
||||||
UpdateQuotaAlarmRequest();
|
float getThreshold() const;
|
||||||
~UpdateQuotaAlarmRequest();
|
void setThreshold(float threshold);
|
||||||
|
std::string getThresholdType() const;
|
||||||
std::string getWebHook()const;
|
void setThresholdType(const std::string &thresholdType);
|
||||||
void setWebHook(const std::string& webHook);
|
std::string getOriginalContext() const;
|
||||||
float getThreshold()const;
|
void setOriginalContext(const std::string &originalContext);
|
||||||
void setThreshold(float threshold);
|
float getThresholdPercent() const;
|
||||||
std::string getThresholdType()const;
|
void setThresholdPercent(float thresholdPercent);
|
||||||
void setThresholdType(const std::string& thresholdType);
|
std::string getAlarmId() const;
|
||||||
float getThresholdPercent()const;
|
void setAlarmId(const std::string &alarmId);
|
||||||
void setThresholdPercent(float thresholdPercent);
|
std::string getAlarmName() const;
|
||||||
std::string getAlarmId()const;
|
void setAlarmName(const std::string &alarmName);
|
||||||
void setAlarmId(const std::string& alarmId);
|
|
||||||
std::string getAlarmName()const;
|
private:
|
||||||
void setAlarmName(const std::string& alarmName);
|
std::string webHook_;
|
||||||
|
float threshold_;
|
||||||
private:
|
std::string thresholdType_;
|
||||||
std::string webHook_;
|
std::string originalContext_;
|
||||||
float threshold_;
|
float thresholdPercent_;
|
||||||
std::string thresholdType_;
|
std::string alarmId_;
|
||||||
float thresholdPercent_;
|
std::string alarmName_;
|
||||||
std::string alarmId_;
|
};
|
||||||
std::string alarmName_;
|
} // namespace Model
|
||||||
|
} // namespace Quotas
|
||||||
};
|
} // namespace AlibabaCloud
|
||||||
}
|
#endif // !ALIBABACLOUD_QUOTAS_MODEL_UPDATEQUOTAALARMREQUEST_H_
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif // !ALIBABACLOUD_QUOTAS_MODEL_UPDATEQUOTAALARMREQUEST_H_
|
|
||||||
|
|||||||
@@ -123,6 +123,78 @@ QuotasClient::CreateQuotaApplicationOutcomeCallable QuotasClient::createQuotaApp
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QuotasClient::CreateQuotaApplicationsForTemplateOutcome QuotasClient::createQuotaApplicationsForTemplate(const CreateQuotaApplicationsForTemplateRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateQuotaApplicationsForTemplateOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateQuotaApplicationsForTemplateOutcome(CreateQuotaApplicationsForTemplateResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateQuotaApplicationsForTemplateOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::createQuotaApplicationsForTemplateAsync(const CreateQuotaApplicationsForTemplateRequest& request, const CreateQuotaApplicationsForTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createQuotaApplicationsForTemplate(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::CreateQuotaApplicationsForTemplateOutcomeCallable QuotasClient::createQuotaApplicationsForTemplateCallable(const CreateQuotaApplicationsForTemplateRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateQuotaApplicationsForTemplateOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createQuotaApplicationsForTemplate(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::CreateTemplateQuotaItemOutcome QuotasClient::createTemplateQuotaItem(const CreateTemplateQuotaItemRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return CreateTemplateQuotaItemOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return CreateTemplateQuotaItemOutcome(CreateTemplateQuotaItemResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return CreateTemplateQuotaItemOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::createTemplateQuotaItemAsync(const CreateTemplateQuotaItemRequest& request, const CreateTemplateQuotaItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, createTemplateQuotaItem(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::CreateTemplateQuotaItemOutcomeCallable QuotasClient::createTemplateQuotaItemCallable(const CreateTemplateQuotaItemRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<CreateTemplateQuotaItemOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->createTemplateQuotaItem(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
QuotasClient::DeleteQuotaAlarmOutcome QuotasClient::deleteQuotaAlarm(const DeleteQuotaAlarmRequest &request) const
|
QuotasClient::DeleteQuotaAlarmOutcome QuotasClient::deleteQuotaAlarm(const DeleteQuotaAlarmRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -159,6 +231,42 @@ QuotasClient::DeleteQuotaAlarmOutcomeCallable QuotasClient::deleteQuotaAlarmCall
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QuotasClient::DeleteTemplateQuotaItemOutcome QuotasClient::deleteTemplateQuotaItem(const DeleteTemplateQuotaItemRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return DeleteTemplateQuotaItemOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return DeleteTemplateQuotaItemOutcome(DeleteTemplateQuotaItemResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return DeleteTemplateQuotaItemOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::deleteTemplateQuotaItemAsync(const DeleteTemplateQuotaItemRequest& request, const DeleteTemplateQuotaItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, deleteTemplateQuotaItem(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::DeleteTemplateQuotaItemOutcomeCallable QuotasClient::deleteTemplateQuotaItemCallable(const DeleteTemplateQuotaItemRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<DeleteTemplateQuotaItemOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->deleteTemplateQuotaItem(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
QuotasClient::GetProductQuotaOutcome QuotasClient::getProductQuota(const GetProductQuotaRequest &request) const
|
QuotasClient::GetProductQuotaOutcome QuotasClient::getProductQuota(const GetProductQuotaRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -303,6 +411,78 @@ QuotasClient::GetQuotaApplicationOutcomeCallable QuotasClient::getQuotaApplicati
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QuotasClient::GetQuotaApplicationApprovalOutcome QuotasClient::getQuotaApplicationApproval(const GetQuotaApplicationApprovalRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetQuotaApplicationApprovalOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetQuotaApplicationApprovalOutcome(GetQuotaApplicationApprovalResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetQuotaApplicationApprovalOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::getQuotaApplicationApprovalAsync(const GetQuotaApplicationApprovalRequest& request, const GetQuotaApplicationApprovalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getQuotaApplicationApproval(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::GetQuotaApplicationApprovalOutcomeCallable QuotasClient::getQuotaApplicationApprovalCallable(const GetQuotaApplicationApprovalRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetQuotaApplicationApprovalOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getQuotaApplicationApproval(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::GetQuotaTemplateServiceStatusOutcome QuotasClient::getQuotaTemplateServiceStatus(const GetQuotaTemplateServiceStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return GetQuotaTemplateServiceStatusOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return GetQuotaTemplateServiceStatusOutcome(GetQuotaTemplateServiceStatusResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return GetQuotaTemplateServiceStatusOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::getQuotaTemplateServiceStatusAsync(const GetQuotaTemplateServiceStatusRequest& request, const GetQuotaTemplateServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, getQuotaTemplateServiceStatus(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::GetQuotaTemplateServiceStatusOutcomeCallable QuotasClient::getQuotaTemplateServiceStatusCallable(const GetQuotaTemplateServiceStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<GetQuotaTemplateServiceStatusOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->getQuotaTemplateServiceStatus(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
QuotasClient::ListAlarmHistoriesOutcome QuotasClient::listAlarmHistories(const ListAlarmHistoriesRequest &request) const
|
QuotasClient::ListAlarmHistoriesOutcome QuotasClient::listAlarmHistories(const ListAlarmHistoriesRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -555,6 +735,42 @@ QuotasClient::ListQuotaAlarmsOutcomeCallable QuotasClient::listQuotaAlarmsCallab
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QuotasClient::ListQuotaApplicationTemplatesOutcome QuotasClient::listQuotaApplicationTemplates(const ListQuotaApplicationTemplatesRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListQuotaApplicationTemplatesOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListQuotaApplicationTemplatesOutcome(ListQuotaApplicationTemplatesResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListQuotaApplicationTemplatesOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::listQuotaApplicationTemplatesAsync(const ListQuotaApplicationTemplatesRequest& request, const ListQuotaApplicationTemplatesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listQuotaApplicationTemplates(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ListQuotaApplicationTemplatesOutcomeCallable QuotasClient::listQuotaApplicationTemplatesCallable(const ListQuotaApplicationTemplatesRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListQuotaApplicationTemplatesOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listQuotaApplicationTemplates(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
QuotasClient::ListQuotaApplicationsOutcome QuotasClient::listQuotaApplications(const ListQuotaApplicationsRequest &request) const
|
QuotasClient::ListQuotaApplicationsOutcome QuotasClient::listQuotaApplications(const ListQuotaApplicationsRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
@@ -591,6 +807,186 @@ QuotasClient::ListQuotaApplicationsOutcomeCallable QuotasClient::listQuotaApplic
|
|||||||
return task->get_future();
|
return task->get_future();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QuotasClient::ListQuotaApplicationsDetailForTemplateOutcome QuotasClient::listQuotaApplicationsDetailForTemplate(const ListQuotaApplicationsDetailForTemplateRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListQuotaApplicationsDetailForTemplateOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListQuotaApplicationsDetailForTemplateOutcome(ListQuotaApplicationsDetailForTemplateResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListQuotaApplicationsDetailForTemplateOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::listQuotaApplicationsDetailForTemplateAsync(const ListQuotaApplicationsDetailForTemplateRequest& request, const ListQuotaApplicationsDetailForTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listQuotaApplicationsDetailForTemplate(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ListQuotaApplicationsDetailForTemplateOutcomeCallable QuotasClient::listQuotaApplicationsDetailForTemplateCallable(const ListQuotaApplicationsDetailForTemplateRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListQuotaApplicationsDetailForTemplateOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listQuotaApplicationsDetailForTemplate(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ListQuotaApplicationsForTemplateOutcome QuotasClient::listQuotaApplicationsForTemplate(const ListQuotaApplicationsForTemplateRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ListQuotaApplicationsForTemplateOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ListQuotaApplicationsForTemplateOutcome(ListQuotaApplicationsForTemplateResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ListQuotaApplicationsForTemplateOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::listQuotaApplicationsForTemplateAsync(const ListQuotaApplicationsForTemplateRequest& request, const ListQuotaApplicationsForTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, listQuotaApplicationsForTemplate(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ListQuotaApplicationsForTemplateOutcomeCallable QuotasClient::listQuotaApplicationsForTemplateCallable(const ListQuotaApplicationsForTemplateRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ListQuotaApplicationsForTemplateOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->listQuotaApplicationsForTemplate(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ModifyQuotaTemplateServiceStatusOutcome QuotasClient::modifyQuotaTemplateServiceStatus(const ModifyQuotaTemplateServiceStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ModifyQuotaTemplateServiceStatusOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ModifyQuotaTemplateServiceStatusOutcome(ModifyQuotaTemplateServiceStatusResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ModifyQuotaTemplateServiceStatusOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::modifyQuotaTemplateServiceStatusAsync(const ModifyQuotaTemplateServiceStatusRequest& request, const ModifyQuotaTemplateServiceStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, modifyQuotaTemplateServiceStatus(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ModifyQuotaTemplateServiceStatusOutcomeCallable QuotasClient::modifyQuotaTemplateServiceStatusCallable(const ModifyQuotaTemplateServiceStatusRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ModifyQuotaTemplateServiceStatusOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->modifyQuotaTemplateServiceStatus(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ModifyTemplateQuotaItemOutcome QuotasClient::modifyTemplateQuotaItem(const ModifyTemplateQuotaItemRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return ModifyTemplateQuotaItemOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return ModifyTemplateQuotaItemOutcome(ModifyTemplateQuotaItemResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return ModifyTemplateQuotaItemOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::modifyTemplateQuotaItemAsync(const ModifyTemplateQuotaItemRequest& request, const ModifyTemplateQuotaItemAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, modifyTemplateQuotaItem(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::ModifyTemplateQuotaItemOutcomeCallable QuotasClient::modifyTemplateQuotaItemCallable(const ModifyTemplateQuotaItemRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<ModifyTemplateQuotaItemOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->modifyTemplateQuotaItem(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::RemindQuotaApplicationApprovalOutcome QuotasClient::remindQuotaApplicationApproval(const RemindQuotaApplicationApprovalRequest &request) const
|
||||||
|
{
|
||||||
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
if (!endpointOutcome.isSuccess())
|
||||||
|
return RemindQuotaApplicationApprovalOutcome(endpointOutcome.error());
|
||||||
|
|
||||||
|
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||||
|
|
||||||
|
if (outcome.isSuccess())
|
||||||
|
return RemindQuotaApplicationApprovalOutcome(RemindQuotaApplicationApprovalResult(outcome.result()));
|
||||||
|
else
|
||||||
|
return RemindQuotaApplicationApprovalOutcome(outcome.error());
|
||||||
|
}
|
||||||
|
|
||||||
|
void QuotasClient::remindQuotaApplicationApprovalAsync(const RemindQuotaApplicationApprovalRequest& request, const RemindQuotaApplicationApprovalAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||||
|
{
|
||||||
|
auto fn = [this, request, handler, context]()
|
||||||
|
{
|
||||||
|
handler(this, request, remindQuotaApplicationApproval(request), context);
|
||||||
|
};
|
||||||
|
|
||||||
|
asyncExecute(new Runnable(fn));
|
||||||
|
}
|
||||||
|
|
||||||
|
QuotasClient::RemindQuotaApplicationApprovalOutcomeCallable QuotasClient::remindQuotaApplicationApprovalCallable(const RemindQuotaApplicationApprovalRequest &request) const
|
||||||
|
{
|
||||||
|
auto task = std::make_shared<std::packaged_task<RemindQuotaApplicationApprovalOutcome()>>(
|
||||||
|
[this, request]()
|
||||||
|
{
|
||||||
|
return this->remindQuotaApplicationApproval(request);
|
||||||
|
});
|
||||||
|
|
||||||
|
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||||
|
return task->get_future();
|
||||||
|
}
|
||||||
|
|
||||||
QuotasClient::UpdateQuotaAlarmOutcome QuotasClient::updateQuotaAlarm(const UpdateQuotaAlarmRequest &request) const
|
QuotasClient::UpdateQuotaAlarmOutcome QuotasClient::updateQuotaAlarm(const UpdateQuotaAlarmRequest &request) const
|
||||||
{
|
{
|
||||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||||
|
|||||||
@@ -1,122 +1,113 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/CreateQuotaAlarmRequest.h>
|
#include <alibabacloud/quotas/model/CreateQuotaAlarmRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::CreateQuotaAlarmRequest;
|
using AlibabaCloud::Quotas::Model::CreateQuotaAlarmRequest;
|
||||||
|
|
||||||
CreateQuotaAlarmRequest::CreateQuotaAlarmRequest() :
|
CreateQuotaAlarmRequest::CreateQuotaAlarmRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "CreateQuotaAlarm")
|
: RpcServiceRequest("quotas", "2020-05-10", "CreateQuotaAlarm") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateQuotaAlarmRequest::~CreateQuotaAlarmRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CreateQuotaAlarmRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setProductCode(const std::string& productCode)
|
CreateQuotaAlarmRequest::~CreateQuotaAlarmRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string CreateQuotaAlarmRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaAlarmRequest::getWebHook()const
|
void CreateQuotaAlarmRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return webHook_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setWebHook(const std::string& webHook)
|
std::string CreateQuotaAlarmRequest::getWebHook() const {
|
||||||
{
|
return webHook_;
|
||||||
webHook_ = webHook;
|
|
||||||
setBodyParameter("WebHook", webHook);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float CreateQuotaAlarmRequest::getThreshold()const
|
void CreateQuotaAlarmRequest::setWebHook(const std::string &webHook) {
|
||||||
{
|
webHook_ = webHook;
|
||||||
return threshold_;
|
setBodyParameter(std::string("WebHook"), webHook);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setThreshold(float threshold)
|
float CreateQuotaAlarmRequest::getThreshold() const {
|
||||||
{
|
return threshold_;
|
||||||
threshold_ = threshold;
|
|
||||||
setBodyParameter("Threshold", std::to_string(threshold));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaAlarmRequest::getQuotaActionCode()const
|
void CreateQuotaAlarmRequest::setThreshold(float threshold) {
|
||||||
{
|
threshold_ = threshold;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("Threshold"), std::to_string(threshold));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string CreateQuotaAlarmRequest::getQuotaActionCode() const {
|
||||||
{
|
return quotaActionCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaAlarmRequest::getThresholdType()const
|
void CreateQuotaAlarmRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
{
|
quotaActionCode_ = quotaActionCode;
|
||||||
return thresholdType_;
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setThresholdType(const std::string& thresholdType)
|
std::string CreateQuotaAlarmRequest::getThresholdType() const {
|
||||||
{
|
return thresholdType_;
|
||||||
thresholdType_ = thresholdType;
|
|
||||||
setBodyParameter("ThresholdType", thresholdType);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<CreateQuotaAlarmRequest::QuotaDimensions> CreateQuotaAlarmRequest::getQuotaDimensions()const
|
void CreateQuotaAlarmRequest::setThresholdType(const std::string &thresholdType) {
|
||||||
{
|
thresholdType_ = thresholdType;
|
||||||
return quotaDimensions_;
|
setBodyParameter(std::string("ThresholdType"), thresholdType);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setQuotaDimensions(const std::vector<QuotaDimensions>& quotaDimensions)
|
std::vector<CreateQuotaAlarmRequest::QuotaDimensions> CreateQuotaAlarmRequest::getQuotaDimensions() const {
|
||||||
{
|
return quotaDimensions_;
|
||||||
quotaDimensions_ = quotaDimensions;
|
|
||||||
for(int dep1 = 0; dep1!= quotaDimensions.size(); dep1++) {
|
|
||||||
auto quotaDimensionsObj = quotaDimensions.at(dep1);
|
|
||||||
std::string quotaDimensionsObjStr = "QuotaDimensions." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(quotaDimensionsObjStr + ".Key", quotaDimensionsObj.key);
|
|
||||||
setParameter(quotaDimensionsObjStr + ".Value", quotaDimensionsObj.value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float CreateQuotaAlarmRequest::getThresholdPercent()const
|
void CreateQuotaAlarmRequest::setQuotaDimensions(const std::vector<CreateQuotaAlarmRequest::QuotaDimensions> "aDimensions) {
|
||||||
{
|
quotaDimensions_ = quotaDimensions;
|
||||||
return thresholdPercent_;
|
for(int dep1 = 0; dep1 != quotaDimensions.size(); dep1++) {
|
||||||
|
auto quotaDimensionsObj = quotaDimensions.at(dep1);
|
||||||
|
std::string quotaDimensionsObjStr = std::string("QuotaDimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(quotaDimensionsObjStr + ".Key", quotaDimensionsObj.key);
|
||||||
|
setBodyParameter(quotaDimensionsObjStr + ".Value", quotaDimensionsObj.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setThresholdPercent(float thresholdPercent)
|
std::string CreateQuotaAlarmRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
thresholdPercent_ = thresholdPercent;
|
|
||||||
setBodyParameter("ThresholdPercent", std::to_string(thresholdPercent));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaAlarmRequest::getAlarmName()const
|
void CreateQuotaAlarmRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return alarmName_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaAlarmRequest::setAlarmName(const std::string& alarmName)
|
float CreateQuotaAlarmRequest::getThresholdPercent() const {
|
||||||
{
|
return thresholdPercent_;
|
||||||
alarmName_ = alarmName;
|
}
|
||||||
setBodyParameter("AlarmName", alarmName);
|
|
||||||
|
void CreateQuotaAlarmRequest::setThresholdPercent(float thresholdPercent) {
|
||||||
|
thresholdPercent_ = thresholdPercent;
|
||||||
|
setBodyParameter(std::string("ThresholdPercent"), std::to_string(thresholdPercent));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaAlarmRequest::getAlarmName() const {
|
||||||
|
return alarmName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaAlarmRequest::setAlarmName(const std::string &alarmName) {
|
||||||
|
alarmName_ = alarmName;
|
||||||
|
setBodyParameter(std::string("AlarmName"), alarmName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,122 +1,140 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/CreateQuotaApplicationRequest.h>
|
#include <alibabacloud/quotas/model/CreateQuotaApplicationRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::CreateQuotaApplicationRequest;
|
using AlibabaCloud::Quotas::Model::CreateQuotaApplicationRequest;
|
||||||
|
|
||||||
CreateQuotaApplicationRequest::CreateQuotaApplicationRequest() :
|
CreateQuotaApplicationRequest::CreateQuotaApplicationRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "CreateQuotaApplication")
|
: RpcServiceRequest("quotas", "2020-05-10", "CreateQuotaApplication") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
CreateQuotaApplicationRequest::~CreateQuotaApplicationRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string CreateQuotaApplicationRequest::getReason()const
|
|
||||||
{
|
|
||||||
return reason_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setReason(const std::string& reason)
|
CreateQuotaApplicationRequest::~CreateQuotaApplicationRequest() {}
|
||||||
{
|
|
||||||
reason_ = reason;
|
std::string CreateQuotaApplicationRequest::getReason() const {
|
||||||
setBodyParameter("Reason", reason);
|
return reason_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationRequest::getProductCode()const
|
void CreateQuotaApplicationRequest::setReason(const std::string &reason) {
|
||||||
{
|
reason_ = reason;
|
||||||
return productCode_;
|
setBodyParameter(std::string("Reason"), reason);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setProductCode(const std::string& productCode)
|
std::string CreateQuotaApplicationRequest::getProductCode() const {
|
||||||
{
|
return productCode_;
|
||||||
productCode_ = productCode;
|
|
||||||
setBodyParameter("ProductCode", productCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationRequest::getQuotaActionCode()const
|
void CreateQuotaApplicationRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string CreateQuotaApplicationRequest::getQuotaActionCode() const {
|
||||||
{
|
return quotaActionCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
float CreateQuotaApplicationRequest::getDesireValue()const
|
void CreateQuotaApplicationRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
{
|
quotaActionCode_ = quotaActionCode;
|
||||||
return desireValue_;
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setDesireValue(float desireValue)
|
float CreateQuotaApplicationRequest::getDesireValue() const {
|
||||||
{
|
return desireValue_;
|
||||||
desireValue_ = desireValue;
|
|
||||||
setBodyParameter("DesireValue", std::to_string(desireValue));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationRequest::getQuotaCategory()const
|
void CreateQuotaApplicationRequest::setDesireValue(float desireValue) {
|
||||||
{
|
desireValue_ = desireValue;
|
||||||
return quotaCategory_;
|
setBodyParameter(std::string("DesireValue"), std::to_string(desireValue));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setQuotaCategory(const std::string& quotaCategory)
|
std::string CreateQuotaApplicationRequest::getEffectiveTime() const {
|
||||||
{
|
return effectiveTime_;
|
||||||
quotaCategory_ = quotaCategory;
|
|
||||||
setBodyParameter("QuotaCategory", quotaCategory);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int CreateQuotaApplicationRequest::getNoticeType()const
|
void CreateQuotaApplicationRequest::setEffectiveTime(const std::string &effectiveTime) {
|
||||||
{
|
effectiveTime_ = effectiveTime;
|
||||||
return noticeType_;
|
setBodyParameter(std::string("EffectiveTime"), effectiveTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setNoticeType(int noticeType)
|
std::string CreateQuotaApplicationRequest::getQuotaCategory() const {
|
||||||
{
|
return quotaCategory_;
|
||||||
noticeType_ = noticeType;
|
|
||||||
setBodyParameter("NoticeType", std::to_string(noticeType));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationRequest::getAuditMode()const
|
void CreateQuotaApplicationRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
{
|
quotaCategory_ = quotaCategory;
|
||||||
return auditMode_;
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setAuditMode(const std::string& auditMode)
|
std::string CreateQuotaApplicationRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
auditMode_ = auditMode;
|
|
||||||
setBodyParameter("AuditMode", auditMode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<CreateQuotaApplicationRequest::Dimensions> CreateQuotaApplicationRequest::getDimensions()const
|
void CreateQuotaApplicationRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return dimensions_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CreateQuotaApplicationRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
std::string CreateQuotaApplicationRequest::getExpireTime() const {
|
||||||
{
|
return expireTime_;
|
||||||
dimensions_ = dimensions;
|
}
|
||||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
|
||||||
auto dimensionsObj = dimensions.at(dep1);
|
void CreateQuotaApplicationRequest::setExpireTime(const std::string &expireTime) {
|
||||||
std::string dimensionsObjStr = "Dimensions." + std::to_string(dep1 + 1);
|
expireTime_ = expireTime;
|
||||||
setParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
setBodyParameter(std::string("ExpireTime"), expireTime);
|
||||||
setParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
}
|
||||||
}
|
|
||||||
|
std::string CreateQuotaApplicationRequest::getEnvLanguage() const {
|
||||||
|
return envLanguage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationRequest::setEnvLanguage(const std::string &envLanguage) {
|
||||||
|
envLanguage_ = envLanguage;
|
||||||
|
setBodyParameter(std::string("EnvLanguage"), envLanguage);
|
||||||
|
}
|
||||||
|
|
||||||
|
int CreateQuotaApplicationRequest::getNoticeType() const {
|
||||||
|
return noticeType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationRequest::setNoticeType(int noticeType) {
|
||||||
|
noticeType_ = noticeType;
|
||||||
|
setBodyParameter(std::string("NoticeType"), std::to_string(noticeType));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationRequest::getAuditMode() const {
|
||||||
|
return auditMode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationRequest::setAuditMode(const std::string &auditMode) {
|
||||||
|
auditMode_ = auditMode;
|
||||||
|
setBodyParameter(std::string("AuditMode"), auditMode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<CreateQuotaApplicationRequest::Dimensions> CreateQuotaApplicationRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationRequest::setDimensions(const std::vector<CreateQuotaApplicationRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -41,38 +41,38 @@ void CreateQuotaApplicationResult::parse(const std::string &payload)
|
|||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
if(!value["Status"].isNull())
|
if(!value["Status"].isNull())
|
||||||
status_ = value["Status"].asString();
|
status_ = value["Status"].asString();
|
||||||
if(!value["ApplyTime"].isNull())
|
if(!value["DesireValue"].isNull())
|
||||||
applyTime_ = value["ApplyTime"].asString();
|
desireValue_ = std::stoi(value["DesireValue"].asString());
|
||||||
if(!value["QuotaDescription"].isNull())
|
|
||||||
quotaDescription_ = value["QuotaDescription"].asString();
|
|
||||||
if(!value["EffectiveTime"].isNull())
|
|
||||||
effectiveTime_ = value["EffectiveTime"].asString();
|
|
||||||
if(!value["ProductCode"].isNull())
|
|
||||||
productCode_ = value["ProductCode"].asString();
|
|
||||||
if(!value["QuotaUnit"].isNull())
|
|
||||||
quotaUnit_ = value["QuotaUnit"].asString();
|
|
||||||
if(!value["AuditReason"].isNull())
|
|
||||||
auditReason_ = value["AuditReason"].asString();
|
|
||||||
if(!value["Dimension"].isNull())
|
|
||||||
dimension_ = value["Dimension"].asString();
|
|
||||||
if(!value["ApproveValue"].isNull())
|
|
||||||
approveValue_ = std::stof(value["ApproveValue"].asString());
|
|
||||||
if(!value["Reason"].isNull())
|
|
||||||
reason_ = value["Reason"].asString();
|
|
||||||
if(!value["QuotaActionCode"].isNull())
|
if(!value["QuotaActionCode"].isNull())
|
||||||
quotaActionCode_ = value["QuotaActionCode"].asString();
|
quotaActionCode_ = value["QuotaActionCode"].asString();
|
||||||
if(!value["QuotaName"].isNull())
|
if(!value["QuotaName"].isNull())
|
||||||
quotaName_ = value["QuotaName"].asString();
|
quotaName_ = value["QuotaName"].asString();
|
||||||
if(!value["QuotaArn"].isNull())
|
|
||||||
quotaArn_ = value["QuotaArn"].asString();
|
|
||||||
if(!value["NoticeType"].isNull())
|
|
||||||
noticeType_ = std::stol(value["NoticeType"].asString());
|
|
||||||
if(!value["ExpireTime"].isNull())
|
|
||||||
expireTime_ = value["ExpireTime"].asString();
|
|
||||||
if(!value["ApplicationId"].isNull())
|
if(!value["ApplicationId"].isNull())
|
||||||
applicationId_ = value["ApplicationId"].asString();
|
applicationId_ = value["ApplicationId"].asString();
|
||||||
if(!value["DesireValue"].isNull())
|
if(!value["Reason"].isNull())
|
||||||
desireValue_ = std::stoi(value["DesireValue"].asString());
|
reason_ = value["Reason"].asString();
|
||||||
|
if(!value["AuditReason"].isNull())
|
||||||
|
auditReason_ = value["AuditReason"].asString();
|
||||||
|
if(!value["QuotaDescription"].isNull())
|
||||||
|
quotaDescription_ = value["QuotaDescription"].asString();
|
||||||
|
if(!value["ProductCode"].isNull())
|
||||||
|
productCode_ = value["ProductCode"].asString();
|
||||||
|
if(!value["QuotaArn"].isNull())
|
||||||
|
quotaArn_ = value["QuotaArn"].asString();
|
||||||
|
if(!value["ApplyTime"].isNull())
|
||||||
|
applyTime_ = value["ApplyTime"].asString();
|
||||||
|
if(!value["ApproveValue"].isNull())
|
||||||
|
approveValue_ = std::stof(value["ApproveValue"].asString());
|
||||||
|
if(!value["Dimension"].isNull())
|
||||||
|
dimension_ = value["Dimension"].asString();
|
||||||
|
if(!value["NoticeType"].isNull())
|
||||||
|
noticeType_ = std::stol(value["NoticeType"].asString());
|
||||||
|
if(!value["EffectiveTime"].isNull())
|
||||||
|
effectiveTime_ = value["EffectiveTime"].asString();
|
||||||
|
if(!value["ExpireTime"].isNull())
|
||||||
|
expireTime_ = value["ExpireTime"].asString();
|
||||||
|
if(!value["QuotaUnit"].isNull())
|
||||||
|
quotaUnit_ = value["QuotaUnit"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,19 +91,14 @@ std::string CreateQuotaApplicationResult::getQuotaDescription()const
|
|||||||
return quotaDescription_;
|
return quotaDescription_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getEffectiveTime()const
|
|
||||||
{
|
|
||||||
return effectiveTime_;
|
|
||||||
}
|
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getProductCode()const
|
std::string CreateQuotaApplicationResult::getProductCode()const
|
||||||
{
|
{
|
||||||
return productCode_;
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getQuotaUnit()const
|
std::string CreateQuotaApplicationResult::getEffectiveTime()const
|
||||||
{
|
{
|
||||||
return quotaUnit_;
|
return effectiveTime_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getAuditReason()const
|
std::string CreateQuotaApplicationResult::getAuditReason()const
|
||||||
@@ -111,6 +106,11 @@ std::string CreateQuotaApplicationResult::getAuditReason()const
|
|||||||
return auditReason_;
|
return auditReason_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationResult::getQuotaUnit()const
|
||||||
|
{
|
||||||
|
return quotaUnit_;
|
||||||
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getDimension()const
|
std::string CreateQuotaApplicationResult::getDimension()const
|
||||||
{
|
{
|
||||||
return dimension_;
|
return dimension_;
|
||||||
@@ -146,9 +146,9 @@ long CreateQuotaApplicationResult::getNoticeType()const
|
|||||||
return noticeType_;
|
return noticeType_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getExpireTime()const
|
int CreateQuotaApplicationResult::getDesireValue()const
|
||||||
{
|
{
|
||||||
return expireTime_;
|
return desireValue_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CreateQuotaApplicationResult::getApplicationId()const
|
std::string CreateQuotaApplicationResult::getApplicationId()const
|
||||||
@@ -156,8 +156,8 @@ std::string CreateQuotaApplicationResult::getApplicationId()const
|
|||||||
return applicationId_;
|
return applicationId_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CreateQuotaApplicationResult::getDesireValue()const
|
std::string CreateQuotaApplicationResult::getExpireTime()const
|
||||||
{
|
{
|
||||||
return desireValue_;
|
return expireTime_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
139
quotas/src/model/CreateQuotaApplicationsForTemplateRequest.cc
Normal file
139
quotas/src/model/CreateQuotaApplicationsForTemplateRequest.cc
Normal file
@@ -0,0 +1,139 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/quotas/model/CreateQuotaApplicationsForTemplateRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::CreateQuotaApplicationsForTemplateRequest;
|
||||||
|
|
||||||
|
CreateQuotaApplicationsForTemplateRequest::CreateQuotaApplicationsForTemplateRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "CreateQuotaApplicationsForTemplate") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateQuotaApplicationsForTemplateRequest::~CreateQuotaApplicationsForTemplateRequest() {}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getReason() const {
|
||||||
|
return reason_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setReason(const std::string &reason) {
|
||||||
|
reason_ = reason;
|
||||||
|
setBodyParameter(std::string("Reason"), reason);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getProductCode() const {
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
double CreateQuotaApplicationsForTemplateRequest::getDesireValue() const {
|
||||||
|
return desireValue_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setDesireValue(double desireValue) {
|
||||||
|
desireValue_ = desireValue;
|
||||||
|
setBodyParameter(std::string("DesireValue"), std::to_string(desireValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getEffectiveTime() const {
|
||||||
|
return effectiveTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setEffectiveTime(const std::string &effectiveTime) {
|
||||||
|
effectiveTime_ = effectiveTime;
|
||||||
|
setBodyParameter(std::string("EffectiveTime"), effectiveTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> CreateQuotaApplicationsForTemplateRequest::getAliyunUids() const {
|
||||||
|
return aliyunUids_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setAliyunUids(const std::vector<std::string> &aliyunUids) {
|
||||||
|
aliyunUids_ = aliyunUids;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getQuotaCategory() const {
|
||||||
|
return quotaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
|
quotaCategory_ = quotaCategory;
|
||||||
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getExpireTime() const {
|
||||||
|
return expireTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setExpireTime(const std::string &expireTime) {
|
||||||
|
expireTime_ = expireTime;
|
||||||
|
setBodyParameter(std::string("ExpireTime"), expireTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateRequest::getEnvLanguage() const {
|
||||||
|
return envLanguage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setEnvLanguage(const std::string &envLanguage) {
|
||||||
|
envLanguage_ = envLanguage;
|
||||||
|
setBodyParameter(std::string("EnvLanguage"), envLanguage);
|
||||||
|
}
|
||||||
|
|
||||||
|
int CreateQuotaApplicationsForTemplateRequest::getNoticeType() const {
|
||||||
|
return noticeType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setNoticeType(int noticeType) {
|
||||||
|
noticeType_ = noticeType;
|
||||||
|
setBodyParameter(std::string("NoticeType"), std::to_string(noticeType));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<CreateQuotaApplicationsForTemplateRequest::Dimensions> CreateQuotaApplicationsForTemplateRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateRequest::setDimensions(const std::vector<CreateQuotaApplicationsForTemplateRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
74
quotas/src/model/CreateQuotaApplicationsForTemplateResult.cc
Normal file
74
quotas/src/model/CreateQuotaApplicationsForTemplateResult.cc
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/quotas/model/CreateQuotaApplicationsForTemplateResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
CreateQuotaApplicationsForTemplateResult::CreateQuotaApplicationsForTemplateResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateQuotaApplicationsForTemplateResult::CreateQuotaApplicationsForTemplateResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateQuotaApplicationsForTemplateResult::~CreateQuotaApplicationsForTemplateResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateQuotaApplicationsForTemplateResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allFailResultsNode = value["FailResults"]["failResultsItem"];
|
||||||
|
for (auto valueFailResultsfailResultsItem : allFailResultsNode)
|
||||||
|
{
|
||||||
|
FailResultsItem failResultsObject;
|
||||||
|
if(!valueFailResultsfailResultsItem["AliyunUid"].isNull())
|
||||||
|
failResultsObject.aliyunUid = valueFailResultsfailResultsItem["AliyunUid"].asString();
|
||||||
|
if(!valueFailResultsfailResultsItem["Reason"].isNull())
|
||||||
|
failResultsObject.reason = valueFailResultsfailResultsItem["Reason"].asString();
|
||||||
|
failResults_.push_back(failResultsObject);
|
||||||
|
}
|
||||||
|
auto allAliyunUids = value["AliyunUids"]["aliyunUids"];
|
||||||
|
for (const auto &item : allAliyunUids)
|
||||||
|
aliyunUids_.push_back(item.asString());
|
||||||
|
if(!value["BatchQuotaApplicationId"].isNull())
|
||||||
|
batchQuotaApplicationId_ = value["BatchQuotaApplicationId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateQuotaApplicationsForTemplateResult::getBatchQuotaApplicationId()const
|
||||||
|
{
|
||||||
|
return batchQuotaApplicationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> CreateQuotaApplicationsForTemplateResult::getAliyunUids()const
|
||||||
|
{
|
||||||
|
return aliyunUids_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<CreateQuotaApplicationsForTemplateResult::FailResultsItem> CreateQuotaApplicationsForTemplateResult::getFailResults()const
|
||||||
|
{
|
||||||
|
return failResults_;
|
||||||
|
}
|
||||||
|
|
||||||
122
quotas/src/model/CreateTemplateQuotaItemRequest.cc
Normal file
122
quotas/src/model/CreateTemplateQuotaItemRequest.cc
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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/CreateTemplateQuotaItemRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::CreateTemplateQuotaItemRequest;
|
||||||
|
|
||||||
|
CreateTemplateQuotaItemRequest::CreateTemplateQuotaItemRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "CreateTemplateQuotaItem") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateTemplateQuotaItemRequest::~CreateTemplateQuotaItemRequest() {}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getProductCode() const {
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
float CreateTemplateQuotaItemRequest::getDesireValue() const {
|
||||||
|
return desireValue_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setDesireValue(float desireValue) {
|
||||||
|
desireValue_ = desireValue;
|
||||||
|
setBodyParameter(std::string("DesireValue"), std::to_string(desireValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getEffectiveTime() const {
|
||||||
|
return effectiveTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setEffectiveTime(const std::string &effectiveTime) {
|
||||||
|
effectiveTime_ = effectiveTime;
|
||||||
|
setBodyParameter(std::string("EffectiveTime"), effectiveTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getQuotaCategory() const {
|
||||||
|
return quotaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
|
quotaCategory_ = quotaCategory;
|
||||||
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getExpireTime() const {
|
||||||
|
return expireTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setExpireTime(const std::string &expireTime) {
|
||||||
|
expireTime_ = expireTime;
|
||||||
|
setBodyParameter(std::string("ExpireTime"), expireTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemRequest::getEnvLanguage() const {
|
||||||
|
return envLanguage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setEnvLanguage(const std::string &envLanguage) {
|
||||||
|
envLanguage_ = envLanguage;
|
||||||
|
setBodyParameter(std::string("EnvLanguage"), envLanguage);
|
||||||
|
}
|
||||||
|
|
||||||
|
long CreateTemplateQuotaItemRequest::getNoticeType() const {
|
||||||
|
return noticeType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setNoticeType(long noticeType) {
|
||||||
|
noticeType_ = noticeType;
|
||||||
|
setBodyParameter(std::string("NoticeType"), std::to_string(noticeType));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<CreateTemplateQuotaItemRequest::Dimensions> CreateTemplateQuotaItemRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemRequest::setDimensions(const std::vector<CreateTemplateQuotaItemRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
51
quotas/src/model/CreateTemplateQuotaItemResult.cc
Normal file
51
quotas/src/model/CreateTemplateQuotaItemResult.cc
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/CreateTemplateQuotaItemResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
CreateTemplateQuotaItemResult::CreateTemplateQuotaItemResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
CreateTemplateQuotaItemResult::CreateTemplateQuotaItemResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateTemplateQuotaItemResult::~CreateTemplateQuotaItemResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void CreateTemplateQuotaItemResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Id"].isNull())
|
||||||
|
id_ = value["Id"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string CreateTemplateQuotaItemResult::getId()const
|
||||||
|
{
|
||||||
|
return id_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,40 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/DeleteQuotaAlarmRequest.h>
|
#include <alibabacloud/quotas/model/DeleteQuotaAlarmRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::DeleteQuotaAlarmRequest;
|
using AlibabaCloud::Quotas::Model::DeleteQuotaAlarmRequest;
|
||||||
|
|
||||||
DeleteQuotaAlarmRequest::DeleteQuotaAlarmRequest() :
|
DeleteQuotaAlarmRequest::DeleteQuotaAlarmRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "DeleteQuotaAlarm")
|
: RpcServiceRequest("quotas", "2020-05-10", "DeleteQuotaAlarm") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
DeleteQuotaAlarmRequest::~DeleteQuotaAlarmRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string DeleteQuotaAlarmRequest::getAlarmId()const
|
|
||||||
{
|
|
||||||
return alarmId_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeleteQuotaAlarmRequest::setAlarmId(const std::string& alarmId)
|
DeleteQuotaAlarmRequest::~DeleteQuotaAlarmRequest() {}
|
||||||
{
|
|
||||||
alarmId_ = alarmId;
|
std::string DeleteQuotaAlarmRequest::getOriginalContext() const {
|
||||||
setBodyParameter("AlarmId", alarmId);
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteQuotaAlarmRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteQuotaAlarmRequest::getAlarmId() const {
|
||||||
|
return alarmId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteQuotaAlarmRequest::setAlarmId(const std::string &alarmId) {
|
||||||
|
alarmId_ = alarmId;
|
||||||
|
setBodyParameter(std::string("AlarmId"), alarmId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
45
quotas/src/model/DeleteTemplateQuotaItemRequest.cc
Normal file
45
quotas/src/model/DeleteTemplateQuotaItemRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/DeleteTemplateQuotaItemRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::DeleteTemplateQuotaItemRequest;
|
||||||
|
|
||||||
|
DeleteTemplateQuotaItemRequest::DeleteTemplateQuotaItemRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "DeleteTemplateQuotaItem") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteTemplateQuotaItemRequest::~DeleteTemplateQuotaItemRequest() {}
|
||||||
|
|
||||||
|
std::string DeleteTemplateQuotaItemRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteTemplateQuotaItemRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteTemplateQuotaItemRequest::getId() const {
|
||||||
|
return id_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeleteTemplateQuotaItemRequest::setId(const std::string &id) {
|
||||||
|
id_ = id;
|
||||||
|
setBodyParameter(std::string("Id"), id);
|
||||||
|
}
|
||||||
|
|
||||||
51
quotas/src/model/DeleteTemplateQuotaItemResult.cc
Normal file
51
quotas/src/model/DeleteTemplateQuotaItemResult.cc
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/DeleteTemplateQuotaItemResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
DeleteTemplateQuotaItemResult::DeleteTemplateQuotaItemResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
DeleteTemplateQuotaItemResult::DeleteTemplateQuotaItemResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteTemplateQuotaItemResult::~DeleteTemplateQuotaItemResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void DeleteTemplateQuotaItemResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
if(!value["Id"].isNull())
|
||||||
|
id_ = value["Id"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string DeleteTemplateQuotaItemResult::getId()const
|
||||||
|
{
|
||||||
|
return id_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,67 +1,68 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/GetProductQuotaDimensionRequest.h>
|
#include <alibabacloud/quotas/model/GetProductQuotaDimensionRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::GetProductQuotaDimensionRequest;
|
using AlibabaCloud::Quotas::Model::GetProductQuotaDimensionRequest;
|
||||||
|
|
||||||
GetProductQuotaDimensionRequest::GetProductQuotaDimensionRequest() :
|
GetProductQuotaDimensionRequest::GetProductQuotaDimensionRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "GetProductQuotaDimension")
|
: RpcServiceRequest("quotas", "2020-05-10", "GetProductQuotaDimension") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetProductQuotaDimensionRequest::~GetProductQuotaDimensionRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string GetProductQuotaDimensionRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetProductQuotaDimensionRequest::setProductCode(const std::string& productCode)
|
GetProductQuotaDimensionRequest::~GetProductQuotaDimensionRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string GetProductQuotaDimensionRequest::getOriginalContext() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return originalContext_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<GetProductQuotaDimensionRequest::DependentDimensions> GetProductQuotaDimensionRequest::getDependentDimensions()const
|
void GetProductQuotaDimensionRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return dependentDimensions_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetProductQuotaDimensionRequest::setDependentDimensions(const std::vector<DependentDimensions>& dependentDimensions)
|
std::string GetProductQuotaDimensionRequest::getProductCode() const {
|
||||||
{
|
return productCode_;
|
||||||
dependentDimensions_ = dependentDimensions;
|
|
||||||
for(int dep1 = 0; dep1!= dependentDimensions.size(); dep1++) {
|
|
||||||
auto dependentDimensionsObj = dependentDimensions.at(dep1);
|
|
||||||
std::string dependentDimensionsObjStr = "DependentDimensions." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(dependentDimensionsObjStr + ".Key", dependentDimensionsObj.key);
|
|
||||||
setParameter(dependentDimensionsObjStr + ".Value", dependentDimensionsObj.value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetProductQuotaDimensionRequest::getDimensionKey()const
|
void GetProductQuotaDimensionRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return dimensionKey_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetProductQuotaDimensionRequest::setDimensionKey(const std::string& dimensionKey)
|
std::vector<GetProductQuotaDimensionRequest::DependentDimensions> GetProductQuotaDimensionRequest::getDependentDimensions() const {
|
||||||
{
|
return dependentDimensions_;
|
||||||
dimensionKey_ = dimensionKey;
|
}
|
||||||
setBodyParameter("DimensionKey", dimensionKey);
|
|
||||||
|
void GetProductQuotaDimensionRequest::setDependentDimensions(const std::vector<GetProductQuotaDimensionRequest::DependentDimensions> &dependentDimensions) {
|
||||||
|
dependentDimensions_ = dependentDimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dependentDimensions.size(); dep1++) {
|
||||||
|
auto dependentDimensionsObj = dependentDimensions.at(dep1);
|
||||||
|
std::string dependentDimensionsObjStr = std::string("DependentDimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dependentDimensionsObjStr + ".Key", dependentDimensionsObj.key);
|
||||||
|
setBodyParameter(dependentDimensionsObjStr + ".Value", dependentDimensionsObj.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetProductQuotaDimensionRequest::getDimensionKey() const {
|
||||||
|
return dimensionKey_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetProductQuotaDimensionRequest::setDimensionKey(const std::string &dimensionKey) {
|
||||||
|
dimensionKey_ = dimensionKey;
|
||||||
|
setBodyParameter(std::string("DimensionKey"), dimensionKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -48,18 +48,18 @@ void GetProductQuotaDimensionResult::parse(const std::string &payload)
|
|||||||
for (auto quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem : allDimensionValueDetailNode)
|
for (auto quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem : allDimensionValueDetailNode)
|
||||||
{
|
{
|
||||||
QuotaDimension::DimensionValueDetailItem dimensionValueDetailItemObject;
|
QuotaDimension::DimensionValueDetailItem dimensionValueDetailItemObject;
|
||||||
if(!quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Value"].isNull())
|
|
||||||
dimensionValueDetailItemObject.value = quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Value"].asString();
|
|
||||||
if(!quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Name"].isNull())
|
if(!quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Name"].isNull())
|
||||||
dimensionValueDetailItemObject.name = quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Name"].asString();
|
dimensionValueDetailItemObject.name = quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Name"].asString();
|
||||||
|
if(!quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Value"].isNull())
|
||||||
|
dimensionValueDetailItemObject.value = quotaDimensionNodeDimensionValueDetailDimensionValueDetailItem["Value"].asString();
|
||||||
quotaDimension_.dimensionValueDetail.push_back(dimensionValueDetailItemObject);
|
quotaDimension_.dimensionValueDetail.push_back(dimensionValueDetailItemObject);
|
||||||
}
|
}
|
||||||
auto allDimensionValues = quotaDimensionNode["DimensionValues"]["DimensionValues"];
|
|
||||||
for (auto value : allDimensionValues)
|
|
||||||
quotaDimension_.dimensionValues.push_back(value.asString());
|
|
||||||
auto allDependentDimensions = quotaDimensionNode["DependentDimensions"]["DependentDimensions"];
|
auto allDependentDimensions = quotaDimensionNode["DependentDimensions"]["DependentDimensions"];
|
||||||
for (auto value : allDependentDimensions)
|
for (auto value : allDependentDimensions)
|
||||||
quotaDimension_.dependentDimensions.push_back(value.asString());
|
quotaDimension_.dependentDimensions.push_back(value.asString());
|
||||||
|
auto allDimensionValues = quotaDimensionNode["DimensionValues"]["DimensionValues"];
|
||||||
|
for (auto value : allDimensionValues)
|
||||||
|
quotaDimension_.dimensionValues.push_back(value.asString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,67 +1,68 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/GetProductQuotaRequest.h>
|
#include <alibabacloud/quotas/model/GetProductQuotaRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::GetProductQuotaRequest;
|
using AlibabaCloud::Quotas::Model::GetProductQuotaRequest;
|
||||||
|
|
||||||
GetProductQuotaRequest::GetProductQuotaRequest() :
|
GetProductQuotaRequest::GetProductQuotaRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "GetProductQuota")
|
: RpcServiceRequest("quotas", "2020-05-10", "GetProductQuota") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetProductQuotaRequest::~GetProductQuotaRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string GetProductQuotaRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetProductQuotaRequest::setProductCode(const std::string& productCode)
|
GetProductQuotaRequest::~GetProductQuotaRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string GetProductQuotaRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string GetProductQuotaRequest::getQuotaActionCode()const
|
void GetProductQuotaRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetProductQuotaRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string GetProductQuotaRequest::getQuotaActionCode() const {
|
||||||
{
|
return quotaActionCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<GetProductQuotaRequest::Dimensions> GetProductQuotaRequest::getDimensions()const
|
void GetProductQuotaRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
{
|
quotaActionCode_ = quotaActionCode;
|
||||||
return dimensions_;
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetProductQuotaRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
std::string GetProductQuotaRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
dimensions_ = dimensions;
|
}
|
||||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
|
||||||
auto dimensionsObj = dimensions.at(dep1);
|
void GetProductQuotaRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
std::string dimensionsObjStr = "Dimensions." + std::to_string(dep1 + 1);
|
originalContext_ = originalContext;
|
||||||
setParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
setParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
}
|
||||||
}
|
|
||||||
|
std::vector<GetProductQuotaRequest::Dimensions> GetProductQuotaRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetProductQuotaRequest::setDimensions(const std::vector<GetProductQuotaRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,46 +40,56 @@ void GetProductQuotaResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto quotaNode = value["Quota"];
|
auto quotaNode = value["Quota"];
|
||||||
if(!quotaNode["QuotaDescription"].isNull())
|
if(!quotaNode["QuotaUnit"].isNull())
|
||||||
quota_.quotaDescription = quotaNode["QuotaDescription"].asString();
|
quota_.quotaUnit = quotaNode["QuotaUnit"].asString();
|
||||||
if(!quotaNode["Consumable"].isNull())
|
if(!quotaNode["QuotaActionCode"].isNull())
|
||||||
quota_.consumable = quotaNode["Consumable"].asString() == "true";
|
quota_.quotaActionCode = quotaNode["QuotaActionCode"].asString();
|
||||||
if(!quotaNode["UnadjustableDetail"].isNull())
|
|
||||||
quota_.unadjustableDetail = quotaNode["UnadjustableDetail"].asString();
|
|
||||||
if(!quotaNode["ProductCode"].isNull())
|
|
||||||
quota_.productCode = quotaNode["ProductCode"].asString();
|
|
||||||
if(!quotaNode["TotalUsage"].isNull())
|
if(!quotaNode["TotalUsage"].isNull())
|
||||||
quota_.totalUsage = std::stof(quotaNode["TotalUsage"].asString());
|
quota_.totalUsage = std::stof(quotaNode["TotalUsage"].asString());
|
||||||
if(!quotaNode["QuotaType"].isNull())
|
if(!quotaNode["QuotaType"].isNull())
|
||||||
quota_.quotaType = quotaNode["QuotaType"].asString();
|
quota_.quotaType = quotaNode["QuotaType"].asString();
|
||||||
if(!quotaNode["Dimensions"].isNull())
|
if(!quotaNode["QuotaDescription"].isNull())
|
||||||
quota_.dimensions = quotaNode["Dimensions"].asString();
|
quota_.quotaDescription = quotaNode["QuotaDescription"].asString();
|
||||||
if(!quotaNode["QuotaUnit"].isNull())
|
|
||||||
quota_.quotaUnit = quotaNode["QuotaUnit"].asString();
|
|
||||||
if(!quotaNode["Adjustable"].isNull())
|
|
||||||
quota_.adjustable = quotaNode["Adjustable"].asString() == "true";
|
|
||||||
if(!quotaNode["QuotaActionCode"].isNull())
|
|
||||||
quota_.quotaActionCode = quotaNode["QuotaActionCode"].asString();
|
|
||||||
if(!quotaNode["QuotaName"].isNull())
|
|
||||||
quota_.quotaName = quotaNode["QuotaName"].asString();
|
|
||||||
if(!quotaNode["QuotaArn"].isNull())
|
if(!quotaNode["QuotaArn"].isNull())
|
||||||
quota_.quotaArn = quotaNode["QuotaArn"].asString();
|
quota_.quotaArn = quotaNode["QuotaArn"].asString();
|
||||||
if(!quotaNode["TotalQuota"].isNull())
|
|
||||||
quota_.totalQuota = std::stof(quotaNode["TotalQuota"].asString());
|
|
||||||
if(!quotaNode["ApplicableType"].isNull())
|
if(!quotaNode["ApplicableType"].isNull())
|
||||||
quota_.applicableType = quotaNode["ApplicableType"].asString();
|
quota_.applicableType = quotaNode["ApplicableType"].asString();
|
||||||
|
if(!quotaNode["Dimensions"].isNull())
|
||||||
|
quota_.dimensions = quotaNode["Dimensions"].asString();
|
||||||
|
if(!quotaNode["Adjustable"].isNull())
|
||||||
|
quota_.adjustable = quotaNode["Adjustable"].asString() == "true";
|
||||||
|
if(!quotaNode["QuotaName"].isNull())
|
||||||
|
quota_.quotaName = quotaNode["QuotaName"].asString();
|
||||||
|
if(!quotaNode["UnadjustableDetail"].isNull())
|
||||||
|
quota_.unadjustableDetail = quotaNode["UnadjustableDetail"].asString();
|
||||||
|
if(!quotaNode["Consumable"].isNull())
|
||||||
|
quota_.consumable = quotaNode["Consumable"].asString() == "true";
|
||||||
|
if(!quotaNode["TotalQuota"].isNull())
|
||||||
|
quota_.totalQuota = std::stof(quotaNode["TotalQuota"].asString());
|
||||||
|
if(!quotaNode["ProductCode"].isNull())
|
||||||
|
quota_.productCode = quotaNode["ProductCode"].asString();
|
||||||
|
if(!quotaNode["EffectiveTime"].isNull())
|
||||||
|
quota_.effectiveTime = quotaNode["EffectiveTime"].asString();
|
||||||
|
if(!quotaNode["ExpireTime"].isNull())
|
||||||
|
quota_.expireTime = quotaNode["ExpireTime"].asString();
|
||||||
|
if(!quotaNode["QuotaCategory"].isNull())
|
||||||
|
quota_.quotaCategory = quotaNode["QuotaCategory"].asString();
|
||||||
|
if(!quotaNode["ApplyReasonTips"].isNull())
|
||||||
|
quota_.applyReasonTips = quotaNode["ApplyReasonTips"].asString();
|
||||||
|
if(!quotaNode["GlobalQuota"].isNull())
|
||||||
|
quota_.globalQuota = quotaNode["GlobalQuota"].asString() == "true";
|
||||||
auto allQuotaItemsNode = quotaNode["QuotaItems"]["QuotaItemsItem"];
|
auto allQuotaItemsNode = quotaNode["QuotaItems"]["QuotaItemsItem"];
|
||||||
for (auto quotaNodeQuotaItemsQuotaItemsItem : allQuotaItemsNode)
|
for (auto quotaNodeQuotaItemsQuotaItemsItem : allQuotaItemsNode)
|
||||||
{
|
{
|
||||||
Quota::QuotaItemsItem quotaItemsItemObject;
|
Quota::QuotaItemsItem quotaItemsItemObject;
|
||||||
if(!quotaNodeQuotaItemsQuotaItemsItem["Usage"].isNull())
|
|
||||||
quotaItemsItemObject.usage = quotaNodeQuotaItemsQuotaItemsItem["Usage"].asString();
|
|
||||||
if(!quotaNodeQuotaItemsQuotaItemsItem["Type"].isNull())
|
if(!quotaNodeQuotaItemsQuotaItemsItem["Type"].isNull())
|
||||||
quotaItemsItemObject.type = quotaNodeQuotaItemsQuotaItemsItem["Type"].asString();
|
quotaItemsItemObject.type = quotaNodeQuotaItemsQuotaItemsItem["Type"].asString();
|
||||||
if(!quotaNodeQuotaItemsQuotaItemsItem["Quota"].isNull())
|
if(!quotaNodeQuotaItemsQuotaItemsItem["Quota"].isNull())
|
||||||
quotaItemsItemObject.quota = quotaNodeQuotaItemsQuotaItemsItem["Quota"].asString();
|
quotaItemsItemObject.quota = quotaNodeQuotaItemsQuotaItemsItem["Quota"].asString();
|
||||||
if(!quotaNodeQuotaItemsQuotaItemsItem["QuotaUnit"].isNull())
|
if(!quotaNodeQuotaItemsQuotaItemsItem["QuotaUnit"].isNull())
|
||||||
quotaItemsItemObject.quotaUnit = quotaNodeQuotaItemsQuotaItemsItem["QuotaUnit"].asString();
|
quotaItemsItemObject.quotaUnit = quotaNodeQuotaItemsQuotaItemsItem["QuotaUnit"].asString();
|
||||||
|
if(!quotaNodeQuotaItemsQuotaItemsItem["Usage"].isNull())
|
||||||
|
quotaItemsItemObject.usage = quotaNodeQuotaItemsQuotaItemsItem["Usage"].asString();
|
||||||
quota_.quotaItems.push_back(quotaItemsItemObject);
|
quota_.quotaItems.push_back(quotaItemsItemObject);
|
||||||
}
|
}
|
||||||
auto periodNode = quotaNode["Period"];
|
auto periodNode = quotaNode["Period"];
|
||||||
@@ -87,9 +97,19 @@ void GetProductQuotaResult::parse(const std::string &payload)
|
|||||||
quota_.period.periodValue = std::stoi(periodNode["PeriodValue"].asString());
|
quota_.period.periodValue = std::stoi(periodNode["PeriodValue"].asString());
|
||||||
if(!periodNode["PeriodUnit"].isNull())
|
if(!periodNode["PeriodUnit"].isNull())
|
||||||
quota_.period.periodUnit = periodNode["PeriodUnit"].asString();
|
quota_.period.periodUnit = periodNode["PeriodUnit"].asString();
|
||||||
|
auto usageMetricNode = quotaNode["UsageMetric"];
|
||||||
|
if(!usageMetricNode["MetricNamespace"].isNull())
|
||||||
|
quota_.usageMetric.metricNamespace = usageMetricNode["MetricNamespace"].asString();
|
||||||
|
if(!usageMetricNode["MetricName"].isNull())
|
||||||
|
quota_.usageMetric.metricName = usageMetricNode["MetricName"].asString();
|
||||||
|
if(!usageMetricNode["MetricDimensions"].isNull())
|
||||||
|
quota_.usageMetric.metricDimensions = usageMetricNode["MetricDimensions"].asString();
|
||||||
auto allApplicableRange = quotaNode["ApplicableRange"]["ApplicableRange"];
|
auto allApplicableRange = quotaNode["ApplicableRange"]["ApplicableRange"];
|
||||||
for (auto value : allApplicableRange)
|
for (auto value : allApplicableRange)
|
||||||
quota_.applicableRange.push_back(value.asString());
|
quota_.applicableRange.push_back(value.asString());
|
||||||
|
auto allSupportedRange = quotaNode["SupportedRange"]["SupportedRange"];
|
||||||
|
for (auto value : allSupportedRange)
|
||||||
|
quota_.supportedRange.push_back(value.asString());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,40 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/GetQuotaAlarmRequest.h>
|
#include <alibabacloud/quotas/model/GetQuotaAlarmRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::GetQuotaAlarmRequest;
|
using AlibabaCloud::Quotas::Model::GetQuotaAlarmRequest;
|
||||||
|
|
||||||
GetQuotaAlarmRequest::GetQuotaAlarmRequest() :
|
GetQuotaAlarmRequest::GetQuotaAlarmRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "GetQuotaAlarm")
|
: RpcServiceRequest("quotas", "2020-05-10", "GetQuotaAlarm") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetQuotaAlarmRequest::~GetQuotaAlarmRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string GetQuotaAlarmRequest::getAlarmId()const
|
|
||||||
{
|
|
||||||
return alarmId_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetQuotaAlarmRequest::setAlarmId(const std::string& alarmId)
|
GetQuotaAlarmRequest::~GetQuotaAlarmRequest() {}
|
||||||
{
|
|
||||||
alarmId_ = alarmId;
|
std::string GetQuotaAlarmRequest::getOriginalContext() const {
|
||||||
setBodyParameter("AlarmId", alarmId);
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaAlarmRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaAlarmRequest::getAlarmId() const {
|
||||||
|
return alarmId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaAlarmRequest::setAlarmId(const std::string &alarmId) {
|
||||||
|
alarmId_ = alarmId;
|
||||||
|
setBodyParameter(std::string("AlarmId"), alarmId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,30 +40,32 @@ void GetQuotaAlarmResult::parse(const std::string &payload)
|
|||||||
reader.parse(payload, value);
|
reader.parse(payload, value);
|
||||||
setRequestId(value["RequestId"].asString());
|
setRequestId(value["RequestId"].asString());
|
||||||
auto quotaAlarmNode = value["QuotaAlarm"];
|
auto quotaAlarmNode = value["QuotaAlarm"];
|
||||||
if(!quotaAlarmNode["AlarmId"].isNull())
|
|
||||||
quotaAlarm_.alarmId = quotaAlarmNode["AlarmId"].asString();
|
|
||||||
if(!quotaAlarmNode["QuotaActionCode"].isNull())
|
|
||||||
quotaAlarm_.quotaActionCode = quotaAlarmNode["QuotaActionCode"].asString();
|
|
||||||
if(!quotaAlarmNode["QuotaValue"].isNull())
|
|
||||||
quotaAlarm_.quotaValue = std::stof(quotaAlarmNode["QuotaValue"].asString());
|
|
||||||
if(!quotaAlarmNode["ThresholdPercent"].isNull())
|
if(!quotaAlarmNode["ThresholdPercent"].isNull())
|
||||||
quotaAlarm_.thresholdPercent = std::stof(quotaAlarmNode["ThresholdPercent"].asString());
|
quotaAlarm_.thresholdPercent = std::stof(quotaAlarmNode["ThresholdPercent"].asString());
|
||||||
if(!quotaAlarmNode["AlarmName"].isNull())
|
|
||||||
quotaAlarm_.alarmName = quotaAlarmNode["AlarmName"].asString();
|
|
||||||
if(!quotaAlarmNode["ProductCode"].isNull())
|
|
||||||
quotaAlarm_.productCode = quotaAlarmNode["ProductCode"].asString();
|
|
||||||
if(!quotaAlarmNode["NotifyTarget"].isNull())
|
|
||||||
quotaAlarm_.notifyTarget = quotaAlarmNode["NotifyTarget"].asString();
|
|
||||||
if(!quotaAlarmNode["CreateTime"].isNull())
|
|
||||||
quotaAlarm_.createTime = quotaAlarmNode["CreateTime"].asString();
|
|
||||||
if(!quotaAlarmNode["QuotaDimension"].isNull())
|
|
||||||
quotaAlarm_.quotaDimension = quotaAlarmNode["QuotaDimension"].asString();
|
|
||||||
if(!quotaAlarmNode["QuotaUsage"].isNull())
|
|
||||||
quotaAlarm_.quotaUsage = std::stof(quotaAlarmNode["QuotaUsage"].asString());
|
|
||||||
if(!quotaAlarmNode["Threshold"].isNull())
|
|
||||||
quotaAlarm_.threshold = std::stof(quotaAlarmNode["Threshold"].asString());
|
|
||||||
if(!quotaAlarmNode["ThresholdType"].isNull())
|
if(!quotaAlarmNode["ThresholdType"].isNull())
|
||||||
quotaAlarm_.thresholdType = quotaAlarmNode["ThresholdType"].asString();
|
quotaAlarm_.thresholdType = quotaAlarmNode["ThresholdType"].asString();
|
||||||
|
if(!quotaAlarmNode["QuotaDimension"].isNull())
|
||||||
|
quotaAlarm_.quotaDimension = quotaAlarmNode["QuotaDimension"].asString();
|
||||||
|
if(!quotaAlarmNode["CreateTime"].isNull())
|
||||||
|
quotaAlarm_.createTime = quotaAlarmNode["CreateTime"].asString();
|
||||||
|
if(!quotaAlarmNode["QuotaActionCode"].isNull())
|
||||||
|
quotaAlarm_.quotaActionCode = quotaAlarmNode["QuotaActionCode"].asString();
|
||||||
|
if(!quotaAlarmNode["AlarmName"].isNull())
|
||||||
|
quotaAlarm_.alarmName = quotaAlarmNode["AlarmName"].asString();
|
||||||
|
if(!quotaAlarmNode["NotifyTarget"].isNull())
|
||||||
|
quotaAlarm_.notifyTarget = quotaAlarmNode["NotifyTarget"].asString();
|
||||||
|
if(!quotaAlarmNode["QuotaUsage"].isNull())
|
||||||
|
quotaAlarm_.quotaUsage = std::stof(quotaAlarmNode["QuotaUsage"].asString());
|
||||||
|
if(!quotaAlarmNode["QuotaValue"].isNull())
|
||||||
|
quotaAlarm_.quotaValue = std::stof(quotaAlarmNode["QuotaValue"].asString());
|
||||||
|
if(!quotaAlarmNode["AlarmId"].isNull())
|
||||||
|
quotaAlarm_.alarmId = quotaAlarmNode["AlarmId"].asString();
|
||||||
|
if(!quotaAlarmNode["Threshold"].isNull())
|
||||||
|
quotaAlarm_.threshold = std::stof(quotaAlarmNode["Threshold"].asString());
|
||||||
|
if(!quotaAlarmNode["ProductCode"].isNull())
|
||||||
|
quotaAlarm_.productCode = quotaAlarmNode["ProductCode"].asString();
|
||||||
|
if(!quotaAlarmNode["Webhook"].isNull())
|
||||||
|
quotaAlarm_.webhook = quotaAlarmNode["Webhook"].asString();
|
||||||
auto allNotifyChannels = quotaAlarmNode["NotifyChannels"]["NotifyChannels"];
|
auto allNotifyChannels = quotaAlarmNode["NotifyChannels"]["NotifyChannels"];
|
||||||
for (auto value : allNotifyChannels)
|
for (auto value : allNotifyChannels)
|
||||||
quotaAlarm_.notifyChannels.push_back(value.asString());
|
quotaAlarm_.notifyChannels.push_back(value.asString());
|
||||||
|
|||||||
45
quotas/src/model/GetQuotaApplicationApprovalRequest.cc
Normal file
45
quotas/src/model/GetQuotaApplicationApprovalRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/GetQuotaApplicationApprovalRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::GetQuotaApplicationApprovalRequest;
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalRequest::GetQuotaApplicationApprovalRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "GetQuotaApplicationApproval") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalRequest::~GetQuotaApplicationApprovalRequest() {}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationApprovalRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaApplicationApprovalRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationApprovalRequest::getApplicationId() const {
|
||||||
|
return applicationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaApplicationApprovalRequest::setApplicationId(const std::string &applicationId) {
|
||||||
|
applicationId_ = applicationId;
|
||||||
|
setBodyParameter(std::string("ApplicationId"), applicationId);
|
||||||
|
}
|
||||||
|
|
||||||
115
quotas/src/model/GetQuotaApplicationApprovalResult.cc
Normal file
115
quotas/src/model/GetQuotaApplicationApprovalResult.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/quotas/model/GetQuotaApplicationApprovalResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalResult::GetQuotaApplicationApprovalResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalResult::GetQuotaApplicationApprovalResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalResult::~GetQuotaApplicationApprovalResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetQuotaApplicationApprovalResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto moduleNode = value["Module"];
|
||||||
|
if(!moduleNode["ApprovalHours"].isNull())
|
||||||
|
module_.approvalHours = std::stoi(moduleNode["ApprovalHours"].asString());
|
||||||
|
if(!moduleNode["SupportReminder"].isNull())
|
||||||
|
module_.supportReminder = moduleNode["SupportReminder"].asString() == "true";
|
||||||
|
if(!moduleNode["UnsupportReminderReason"].isNull())
|
||||||
|
module_.unsupportReminderReason = moduleNode["UnsupportReminderReason"].asString();
|
||||||
|
if(!moduleNode["ReminderIntervalHours"].isNull())
|
||||||
|
module_.reminderIntervalHours = std::stoi(moduleNode["ReminderIntervalHours"].asString());
|
||||||
|
auto allErrorArgs = value["ErrorArgs"]["ErrorArg"];
|
||||||
|
for (const auto &item : allErrorArgs)
|
||||||
|
errorArgs_.push_back(item.asString());
|
||||||
|
if(!value["HttpStatusCode"].isNull())
|
||||||
|
httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString());
|
||||||
|
if(!value["DynamicCode"].isNull())
|
||||||
|
dynamicCode_ = value["DynamicCode"].asString();
|
||||||
|
if(!value["DynamicMessage"].isNull())
|
||||||
|
dynamicMessage_ = value["DynamicMessage"].asString();
|
||||||
|
if(!value["ErrorMsg"].isNull())
|
||||||
|
errorMsg_ = value["ErrorMsg"].asString();
|
||||||
|
if(!value["ErrorCode"].isNull())
|
||||||
|
errorCode_ = value["ErrorCode"].asString();
|
||||||
|
if(!value["Success"].isNull())
|
||||||
|
success_ = value["Success"].asString() == "true";
|
||||||
|
if(!value["AllowRetry"].isNull())
|
||||||
|
allowRetry_ = value["AllowRetry"].asString() == "true";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetQuotaApplicationApprovalResult::getAllowRetry()const
|
||||||
|
{
|
||||||
|
return allowRetry_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<std::string> GetQuotaApplicationApprovalResult::getErrorArgs()const
|
||||||
|
{
|
||||||
|
return errorArgs_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int GetQuotaApplicationApprovalResult::getHttpStatusCode()const
|
||||||
|
{
|
||||||
|
return httpStatusCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationApprovalResult::getErrorMsg()const
|
||||||
|
{
|
||||||
|
return errorMsg_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationApprovalResult::getDynamicCode()const
|
||||||
|
{
|
||||||
|
return dynamicCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationApprovalResult::getDynamicMessage()const
|
||||||
|
{
|
||||||
|
return dynamicMessage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationApprovalResult::getErrorCode()const
|
||||||
|
{
|
||||||
|
return errorCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
GetQuotaApplicationApprovalResult::Module GetQuotaApplicationApprovalResult::getModule()const
|
||||||
|
{
|
||||||
|
return module_;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool GetQuotaApplicationApprovalResult::getSuccess()const
|
||||||
|
{
|
||||||
|
return success_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,40 +1,45 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/GetQuotaApplicationRequest.h>
|
#include <alibabacloud/quotas/model/GetQuotaApplicationRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::GetQuotaApplicationRequest;
|
using AlibabaCloud::Quotas::Model::GetQuotaApplicationRequest;
|
||||||
|
|
||||||
GetQuotaApplicationRequest::GetQuotaApplicationRequest() :
|
GetQuotaApplicationRequest::GetQuotaApplicationRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "GetQuotaApplication")
|
: RpcServiceRequest("quotas", "2020-05-10", "GetQuotaApplication") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
GetQuotaApplicationRequest::~GetQuotaApplicationRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string GetQuotaApplicationRequest::getApplicationId()const
|
|
||||||
{
|
|
||||||
return applicationId_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GetQuotaApplicationRequest::setApplicationId(const std::string& applicationId)
|
GetQuotaApplicationRequest::~GetQuotaApplicationRequest() {}
|
||||||
{
|
|
||||||
applicationId_ = applicationId;
|
std::string GetQuotaApplicationRequest::getOriginalContext() const {
|
||||||
setBodyParameter("ApplicationId", applicationId);
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaApplicationRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaApplicationRequest::getApplicationId() const {
|
||||||
|
return applicationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaApplicationRequest::setApplicationId(const std::string &applicationId) {
|
||||||
|
applicationId_ = applicationId;
|
||||||
|
setBodyParameter(std::string("ApplicationId"), applicationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -42,38 +42,38 @@ void GetQuotaApplicationResult::parse(const std::string &payload)
|
|||||||
auto quotaApplicationNode = value["QuotaApplication"];
|
auto quotaApplicationNode = value["QuotaApplication"];
|
||||||
if(!quotaApplicationNode["Status"].isNull())
|
if(!quotaApplicationNode["Status"].isNull())
|
||||||
quotaApplication_.status = quotaApplicationNode["Status"].asString();
|
quotaApplication_.status = quotaApplicationNode["Status"].asString();
|
||||||
if(!quotaApplicationNode["ApplyTime"].isNull())
|
if(!quotaApplicationNode["DesireValue"].isNull())
|
||||||
quotaApplication_.applyTime = quotaApplicationNode["ApplyTime"].asString();
|
quotaApplication_.desireValue = std::stoi(quotaApplicationNode["DesireValue"].asString());
|
||||||
if(!quotaApplicationNode["QuotaDescription"].isNull())
|
|
||||||
quotaApplication_.quotaDescription = quotaApplicationNode["QuotaDescription"].asString();
|
|
||||||
if(!quotaApplicationNode["EffectiveTime"].isNull())
|
|
||||||
quotaApplication_.effectiveTime = quotaApplicationNode["EffectiveTime"].asString();
|
|
||||||
if(!quotaApplicationNode["ProductCode"].isNull())
|
|
||||||
quotaApplication_.productCode = quotaApplicationNode["ProductCode"].asString();
|
|
||||||
if(!quotaApplicationNode["QuotaUnit"].isNull())
|
|
||||||
quotaApplication_.quotaUnit = quotaApplicationNode["QuotaUnit"].asString();
|
|
||||||
if(!quotaApplicationNode["AuditReason"].isNull())
|
|
||||||
quotaApplication_.auditReason = quotaApplicationNode["AuditReason"].asString();
|
|
||||||
if(!quotaApplicationNode["Dimension"].isNull())
|
|
||||||
quotaApplication_.dimension = quotaApplicationNode["Dimension"].asString();
|
|
||||||
if(!quotaApplicationNode["ApproveValue"].isNull())
|
|
||||||
quotaApplication_.approveValue = std::stof(quotaApplicationNode["ApproveValue"].asString());
|
|
||||||
if(!quotaApplicationNode["Reason"].isNull())
|
|
||||||
quotaApplication_.reason = quotaApplicationNode["Reason"].asString();
|
|
||||||
if(!quotaApplicationNode["QuotaActionCode"].isNull())
|
if(!quotaApplicationNode["QuotaActionCode"].isNull())
|
||||||
quotaApplication_.quotaActionCode = quotaApplicationNode["QuotaActionCode"].asString();
|
quotaApplication_.quotaActionCode = quotaApplicationNode["QuotaActionCode"].asString();
|
||||||
if(!quotaApplicationNode["QuotaName"].isNull())
|
if(!quotaApplicationNode["QuotaName"].isNull())
|
||||||
quotaApplication_.quotaName = quotaApplicationNode["QuotaName"].asString();
|
quotaApplication_.quotaName = quotaApplicationNode["QuotaName"].asString();
|
||||||
if(!quotaApplicationNode["QuotaArn"].isNull())
|
|
||||||
quotaApplication_.quotaArn = quotaApplicationNode["QuotaArn"].asString();
|
|
||||||
if(!quotaApplicationNode["NoticeType"].isNull())
|
|
||||||
quotaApplication_.noticeType = std::stol(quotaApplicationNode["NoticeType"].asString());
|
|
||||||
if(!quotaApplicationNode["ExpireTime"].isNull())
|
|
||||||
quotaApplication_.expireTime = quotaApplicationNode["ExpireTime"].asString();
|
|
||||||
if(!quotaApplicationNode["ApplicationId"].isNull())
|
if(!quotaApplicationNode["ApplicationId"].isNull())
|
||||||
quotaApplication_.applicationId = quotaApplicationNode["ApplicationId"].asString();
|
quotaApplication_.applicationId = quotaApplicationNode["ApplicationId"].asString();
|
||||||
if(!quotaApplicationNode["DesireValue"].isNull())
|
if(!quotaApplicationNode["Reason"].isNull())
|
||||||
quotaApplication_.desireValue = std::stoi(quotaApplicationNode["DesireValue"].asString());
|
quotaApplication_.reason = quotaApplicationNode["Reason"].asString();
|
||||||
|
if(!quotaApplicationNode["AuditReason"].isNull())
|
||||||
|
quotaApplication_.auditReason = quotaApplicationNode["AuditReason"].asString();
|
||||||
|
if(!quotaApplicationNode["QuotaDescription"].isNull())
|
||||||
|
quotaApplication_.quotaDescription = quotaApplicationNode["QuotaDescription"].asString();
|
||||||
|
if(!quotaApplicationNode["ProductCode"].isNull())
|
||||||
|
quotaApplication_.productCode = quotaApplicationNode["ProductCode"].asString();
|
||||||
|
if(!quotaApplicationNode["QuotaArn"].isNull())
|
||||||
|
quotaApplication_.quotaArn = quotaApplicationNode["QuotaArn"].asString();
|
||||||
|
if(!quotaApplicationNode["ApplyTime"].isNull())
|
||||||
|
quotaApplication_.applyTime = quotaApplicationNode["ApplyTime"].asString();
|
||||||
|
if(!quotaApplicationNode["ApproveValue"].isNull())
|
||||||
|
quotaApplication_.approveValue = std::stof(quotaApplicationNode["ApproveValue"].asString());
|
||||||
|
if(!quotaApplicationNode["Dimension"].isNull())
|
||||||
|
quotaApplication_.dimension = quotaApplicationNode["Dimension"].asString();
|
||||||
|
if(!quotaApplicationNode["NoticeType"].isNull())
|
||||||
|
quotaApplication_.noticeType = std::stol(quotaApplicationNode["NoticeType"].asString());
|
||||||
|
if(!quotaApplicationNode["EffectiveTime"].isNull())
|
||||||
|
quotaApplication_.effectiveTime = quotaApplicationNode["EffectiveTime"].asString();
|
||||||
|
if(!quotaApplicationNode["ExpireTime"].isNull())
|
||||||
|
quotaApplication_.expireTime = quotaApplicationNode["ExpireTime"].asString();
|
||||||
|
if(!quotaApplicationNode["QuotaUnit"].isNull())
|
||||||
|
quotaApplication_.quotaUnit = quotaApplicationNode["QuotaUnit"].asString();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
45
quotas/src/model/GetQuotaTemplateServiceStatusRequest.cc
Normal file
45
quotas/src/model/GetQuotaTemplateServiceStatusRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/GetQuotaTemplateServiceStatusRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::GetQuotaTemplateServiceStatusRequest;
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusRequest::GetQuotaTemplateServiceStatusRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "GetQuotaTemplateServiceStatus") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusRequest::~GetQuotaTemplateServiceStatusRequest() {}
|
||||||
|
|
||||||
|
std::string GetQuotaTemplateServiceStatusRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaTemplateServiceStatusRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string GetQuotaTemplateServiceStatusRequest::getResourceDirectoryId() const {
|
||||||
|
return resourceDirectoryId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GetQuotaTemplateServiceStatusRequest::setResourceDirectoryId(const std::string &resourceDirectoryId) {
|
||||||
|
resourceDirectoryId_ = resourceDirectoryId;
|
||||||
|
setBodyParameter(std::string("ResourceDirectoryId"), resourceDirectoryId);
|
||||||
|
}
|
||||||
|
|
||||||
54
quotas/src/model/GetQuotaTemplateServiceStatusResult.cc
Normal file
54
quotas/src/model/GetQuotaTemplateServiceStatusResult.cc
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/GetQuotaTemplateServiceStatusResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusResult::GetQuotaTemplateServiceStatusResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusResult::GetQuotaTemplateServiceStatusResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusResult::~GetQuotaTemplateServiceStatusResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void GetQuotaTemplateServiceStatusResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto templateServiceStatusNode = value["TemplateServiceStatus"];
|
||||||
|
if(!templateServiceStatusNode["ServiceStatus"].isNull())
|
||||||
|
templateServiceStatus_.serviceStatus = std::stoi(templateServiceStatusNode["ServiceStatus"].asString());
|
||||||
|
if(!templateServiceStatusNode["ResourceDirectoryId"].isNull())
|
||||||
|
templateServiceStatus_.resourceDirectoryId = templateServiceStatusNode["ResourceDirectoryId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
GetQuotaTemplateServiceStatusResult::TemplateServiceStatus GetQuotaTemplateServiceStatusResult::getTemplateServiceStatus()const
|
||||||
|
{
|
||||||
|
return templateServiceStatus_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,95 +1,99 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListAlarmHistoriesRequest.h>
|
#include <alibabacloud/quotas/model/ListAlarmHistoriesRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListAlarmHistoriesRequest;
|
using AlibabaCloud::Quotas::Model::ListAlarmHistoriesRequest;
|
||||||
|
|
||||||
ListAlarmHistoriesRequest::ListAlarmHistoriesRequest() :
|
ListAlarmHistoriesRequest::ListAlarmHistoriesRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListAlarmHistories")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListAlarmHistories") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListAlarmHistoriesRequest::~ListAlarmHistoriesRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListAlarmHistoriesRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListAlarmHistoriesRequest::setProductCode(const std::string& productCode)
|
ListAlarmHistoriesRequest::~ListAlarmHistoriesRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListAlarmHistoriesRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
long ListAlarmHistoriesRequest::getStartTime()const
|
void ListAlarmHistoriesRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return startTime_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListAlarmHistoriesRequest::setStartTime(long startTime)
|
long ListAlarmHistoriesRequest::getStartTime() const {
|
||||||
{
|
return startTime_;
|
||||||
startTime_ = startTime;
|
|
||||||
setBodyParameter("StartTime", std::to_string(startTime));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListAlarmHistoriesRequest::getNextToken()const
|
void ListAlarmHistoriesRequest::setStartTime(long startTime) {
|
||||||
{
|
startTime_ = startTime;
|
||||||
return nextToken_;
|
setBodyParameter(std::string("StartTime"), std::to_string(startTime));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListAlarmHistoriesRequest::setNextToken(const std::string& nextToken)
|
std::string ListAlarmHistoriesRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
nextToken_ = nextToken;
|
|
||||||
setBodyParameter("NextToken", nextToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListAlarmHistoriesRequest::getKeyword()const
|
void ListAlarmHistoriesRequest::setNextToken(const std::string &nextToken) {
|
||||||
{
|
nextToken_ = nextToken;
|
||||||
return keyword_;
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListAlarmHistoriesRequest::setKeyword(const std::string& keyword)
|
std::string ListAlarmHistoriesRequest::getKeyword() const {
|
||||||
{
|
return keyword_;
|
||||||
keyword_ = keyword;
|
|
||||||
setBodyParameter("Keyword", keyword);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
long ListAlarmHistoriesRequest::getEndTime()const
|
void ListAlarmHistoriesRequest::setKeyword(const std::string &keyword) {
|
||||||
{
|
keyword_ = keyword;
|
||||||
return endTime_;
|
setBodyParameter(std::string("Keyword"), keyword);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListAlarmHistoriesRequest::setEndTime(long endTime)
|
std::string ListAlarmHistoriesRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
endTime_ = endTime;
|
|
||||||
setBodyParameter("EndTime", std::to_string(endTime));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListAlarmHistoriesRequest::getMaxResults()const
|
void ListAlarmHistoriesRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return maxResults_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListAlarmHistoriesRequest::setMaxResults(int maxResults)
|
long ListAlarmHistoriesRequest::getEndTime() const {
|
||||||
{
|
return endTime_;
|
||||||
maxResults_ = maxResults;
|
}
|
||||||
setBodyParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
|
void ListAlarmHistoriesRequest::setEndTime(long endTime) {
|
||||||
|
endTime_ = endTime;
|
||||||
|
setBodyParameter(std::string("EndTime"), std::to_string(endTime));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListAlarmHistoriesRequest::getAlarmId() const {
|
||||||
|
return alarmId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAlarmHistoriesRequest::setAlarmId(const std::string &alarmId) {
|
||||||
|
alarmId_ = alarmId;
|
||||||
|
setBodyParameter(std::string("AlarmId"), alarmId);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListAlarmHistoriesRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListAlarmHistoriesRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,33 +43,33 @@ void ListAlarmHistoriesResult::parse(const std::string &payload)
|
|||||||
for (auto valueAlarmHistoriesAlarmHistory : allAlarmHistoriesNode)
|
for (auto valueAlarmHistoriesAlarmHistory : allAlarmHistoriesNode)
|
||||||
{
|
{
|
||||||
AlarmHistory alarmHistoriesObject;
|
AlarmHistory alarmHistoriesObject;
|
||||||
if(!valueAlarmHistoriesAlarmHistory["AlarmName"].isNull())
|
|
||||||
alarmHistoriesObject.alarmName = valueAlarmHistoriesAlarmHistory["AlarmName"].asString();
|
|
||||||
if(!valueAlarmHistoriesAlarmHistory["QuotaUsage"].isNull())
|
if(!valueAlarmHistoriesAlarmHistory["QuotaUsage"].isNull())
|
||||||
alarmHistoriesObject.quotaUsage = std::stof(valueAlarmHistoriesAlarmHistory["QuotaUsage"].asString());
|
alarmHistoriesObject.quotaUsage = std::stof(valueAlarmHistoriesAlarmHistory["QuotaUsage"].asString());
|
||||||
if(!valueAlarmHistoriesAlarmHistory["ProductCode"].isNull())
|
if(!valueAlarmHistoriesAlarmHistory["ThresholdPercent"].isNull())
|
||||||
alarmHistoriesObject.productCode = valueAlarmHistoriesAlarmHistory["ProductCode"].asString();
|
alarmHistoriesObject.thresholdPercent = std::stof(valueAlarmHistoriesAlarmHistory["ThresholdPercent"].asString());
|
||||||
if(!valueAlarmHistoriesAlarmHistory["CreateTime"].isNull())
|
if(!valueAlarmHistoriesAlarmHistory["CreateTime"].isNull())
|
||||||
alarmHistoriesObject.createTime = valueAlarmHistoriesAlarmHistory["CreateTime"].asString();
|
alarmHistoriesObject.createTime = valueAlarmHistoriesAlarmHistory["CreateTime"].asString();
|
||||||
|
if(!valueAlarmHistoriesAlarmHistory["QuotaActionCode"].isNull())
|
||||||
|
alarmHistoriesObject.quotaActionCode = valueAlarmHistoriesAlarmHistory["QuotaActionCode"].asString();
|
||||||
|
if(!valueAlarmHistoriesAlarmHistory["AlarmName"].isNull())
|
||||||
|
alarmHistoriesObject.alarmName = valueAlarmHistoriesAlarmHistory["AlarmName"].asString();
|
||||||
if(!valueAlarmHistoriesAlarmHistory["NotifyTarget"].isNull())
|
if(!valueAlarmHistoriesAlarmHistory["NotifyTarget"].isNull())
|
||||||
alarmHistoriesObject.notifyTarget = valueAlarmHistoriesAlarmHistory["NotifyTarget"].asString();
|
alarmHistoriesObject.notifyTarget = valueAlarmHistoriesAlarmHistory["NotifyTarget"].asString();
|
||||||
if(!valueAlarmHistoriesAlarmHistory["Threshold"].isNull())
|
if(!valueAlarmHistoriesAlarmHistory["Threshold"].isNull())
|
||||||
alarmHistoriesObject.threshold = std::stof(valueAlarmHistoriesAlarmHistory["Threshold"].asString());
|
alarmHistoriesObject.threshold = std::stof(valueAlarmHistoriesAlarmHistory["Threshold"].asString());
|
||||||
if(!valueAlarmHistoriesAlarmHistory["ThresholdPercent"].isNull())
|
if(!valueAlarmHistoriesAlarmHistory["ProductCode"].isNull())
|
||||||
alarmHistoriesObject.thresholdPercent = std::stof(valueAlarmHistoriesAlarmHistory["ThresholdPercent"].asString());
|
alarmHistoriesObject.productCode = valueAlarmHistoriesAlarmHistory["ProductCode"].asString();
|
||||||
if(!valueAlarmHistoriesAlarmHistory["QuotaActionCode"].isNull())
|
|
||||||
alarmHistoriesObject.quotaActionCode = valueAlarmHistoriesAlarmHistory["QuotaActionCode"].asString();
|
|
||||||
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannels"];
|
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannels"];
|
||||||
for (auto value : allNotifyChannels)
|
for (auto value : allNotifyChannels)
|
||||||
alarmHistoriesObject.notifyChannels.push_back(value.asString());
|
alarmHistoriesObject.notifyChannels.push_back(value.asString());
|
||||||
alarmHistories_.push_back(alarmHistoriesObject);
|
alarmHistories_.push_back(alarmHistoriesObject);
|
||||||
}
|
}
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
if(!value["NextToken"].isNull())
|
if(!value["NextToken"].isNull())
|
||||||
nextToken_ = value["NextToken"].asString();
|
nextToken_ = value["NextToken"].asString();
|
||||||
if(!value["MaxResults"].isNull())
|
if(!value["MaxResults"].isNull())
|
||||||
maxResults_ = std::stoi(value["MaxResults"].asString());
|
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||||
if(!value["TotalCount"].isNull())
|
|
||||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,51 +1,54 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListDependentQuotasRequest.h>
|
#include <alibabacloud/quotas/model/ListDependentQuotasRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListDependentQuotasRequest;
|
using AlibabaCloud::Quotas::Model::ListDependentQuotasRequest;
|
||||||
|
|
||||||
ListDependentQuotasRequest::ListDependentQuotasRequest() :
|
ListDependentQuotasRequest::ListDependentQuotasRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListDependentQuotas")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListDependentQuotas") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListDependentQuotasRequest::~ListDependentQuotasRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListDependentQuotasRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListDependentQuotasRequest::setProductCode(const std::string& productCode)
|
ListDependentQuotasRequest::~ListDependentQuotasRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListDependentQuotasRequest::getOriginalContext() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return originalContext_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListDependentQuotasRequest::getQuotaActionCode()const
|
void ListDependentQuotasRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListDependentQuotasRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string ListDependentQuotasRequest::getProductCode() const {
|
||||||
{
|
return productCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
}
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
|
void ListDependentQuotasRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListDependentQuotasRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListDependentQuotasRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,12 +55,12 @@ void ListDependentQuotasResult::parse(const std::string &payload)
|
|||||||
QuotasItem::DimensionsItem dimensionsObject;
|
QuotasItem::DimensionsItem dimensionsObject;
|
||||||
if(!valueQuotasQuotasItemDimensionsDimensionsItem["DimensionKey"].isNull())
|
if(!valueQuotasQuotasItemDimensionsDimensionsItem["DimensionKey"].isNull())
|
||||||
dimensionsObject.dimensionKey = valueQuotasQuotasItemDimensionsDimensionsItem["DimensionKey"].asString();
|
dimensionsObject.dimensionKey = valueQuotasQuotasItemDimensionsDimensionsItem["DimensionKey"].asString();
|
||||||
auto allDimensionValues = value["DimensionValues"]["DimensionValues"];
|
|
||||||
for (auto value : allDimensionValues)
|
|
||||||
dimensionsObject.dimensionValues.push_back(value.asString());
|
|
||||||
auto allDependentDimension = value["DependentDimension"]["DependentDimension"];
|
auto allDependentDimension = value["DependentDimension"]["DependentDimension"];
|
||||||
for (auto value : allDependentDimension)
|
for (auto value : allDependentDimension)
|
||||||
dimensionsObject.dependentDimension.push_back(value.asString());
|
dimensionsObject.dependentDimension.push_back(value.asString());
|
||||||
|
auto allDimensionValues = value["DimensionValues"]["DimensionValues"];
|
||||||
|
for (auto value : allDimensionValues)
|
||||||
|
dimensionsObject.dimensionValues.push_back(value.asString());
|
||||||
quotasObject.dimensions.push_back(dimensionsObject);
|
quotasObject.dimensions.push_back(dimensionsObject);
|
||||||
}
|
}
|
||||||
quotas_.push_back(quotasObject);
|
quotas_.push_back(quotasObject);
|
||||||
|
|||||||
@@ -1,62 +1,63 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListProductDimensionGroupsRequest.h>
|
#include <alibabacloud/quotas/model/ListProductDimensionGroupsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListProductDimensionGroupsRequest;
|
using AlibabaCloud::Quotas::Model::ListProductDimensionGroupsRequest;
|
||||||
|
|
||||||
ListProductDimensionGroupsRequest::ListProductDimensionGroupsRequest() :
|
ListProductDimensionGroupsRequest::ListProductDimensionGroupsRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListProductDimensionGroups")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListProductDimensionGroups") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Get);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListProductDimensionGroupsRequest::~ListProductDimensionGroupsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListProductDimensionGroupsRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductDimensionGroupsRequest::setProductCode(const std::string& productCode)
|
ListProductDimensionGroupsRequest::~ListProductDimensionGroupsRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListProductDimensionGroupsRequest::getOriginalContext() const {
|
||||||
setParameter("ProductCode", productCode);
|
return originalContext_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductDimensionGroupsRequest::getNextToken()const
|
void ListProductDimensionGroupsRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return nextToken_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductDimensionGroupsRequest::setNextToken(const std::string& nextToken)
|
std::string ListProductDimensionGroupsRequest::getProductCode() const {
|
||||||
{
|
return productCode_;
|
||||||
nextToken_ = nextToken;
|
|
||||||
setParameter("NextToken", nextToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListProductDimensionGroupsRequest::getMaxResults()const
|
void ListProductDimensionGroupsRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return maxResults_;
|
setParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductDimensionGroupsRequest::setMaxResults(int maxResults)
|
std::string ListProductDimensionGroupsRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
maxResults_ = maxResults;
|
}
|
||||||
setParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
|
void ListProductDimensionGroupsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListProductDimensionGroupsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListProductDimensionGroupsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,12 +43,12 @@ void ListProductDimensionGroupsResult::parse(const std::string &payload)
|
|||||||
for (auto valueDimensionGroupsDimensionGroupsItem : allDimensionGroupsNode)
|
for (auto valueDimensionGroupsDimensionGroupsItem : allDimensionGroupsNode)
|
||||||
{
|
{
|
||||||
DimensionGroupsItem dimensionGroupsObject;
|
DimensionGroupsItem dimensionGroupsObject;
|
||||||
if(!valueDimensionGroupsDimensionGroupsItem["GroupName"].isNull())
|
|
||||||
dimensionGroupsObject.groupName = valueDimensionGroupsDimensionGroupsItem["GroupName"].asString();
|
|
||||||
if(!valueDimensionGroupsDimensionGroupsItem["ProductCode"].isNull())
|
if(!valueDimensionGroupsDimensionGroupsItem["ProductCode"].isNull())
|
||||||
dimensionGroupsObject.productCode = valueDimensionGroupsDimensionGroupsItem["ProductCode"].asString();
|
dimensionGroupsObject.productCode = valueDimensionGroupsDimensionGroupsItem["ProductCode"].asString();
|
||||||
if(!valueDimensionGroupsDimensionGroupsItem["GroupCode"].isNull())
|
if(!valueDimensionGroupsDimensionGroupsItem["GroupCode"].isNull())
|
||||||
dimensionGroupsObject.groupCode = valueDimensionGroupsDimensionGroupsItem["GroupCode"].asString();
|
dimensionGroupsObject.groupCode = valueDimensionGroupsDimensionGroupsItem["GroupCode"].asString();
|
||||||
|
if(!valueDimensionGroupsDimensionGroupsItem["GroupName"].isNull())
|
||||||
|
dimensionGroupsObject.groupName = valueDimensionGroupsDimensionGroupsItem["GroupName"].asString();
|
||||||
auto allDimensionKeys = value["DimensionKeys"]["DimensionKeys"];
|
auto allDimensionKeys = value["DimensionKeys"]["DimensionKeys"];
|
||||||
for (auto value : allDimensionKeys)
|
for (auto value : allDimensionKeys)
|
||||||
dimensionGroupsObject.dimensionKeys.push_back(value.asString());
|
dimensionGroupsObject.dimensionKeys.push_back(value.asString());
|
||||||
|
|||||||
@@ -1,73 +1,72 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListProductQuotaDimensionsRequest.h>
|
#include <alibabacloud/quotas/model/ListProductQuotaDimensionsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListProductQuotaDimensionsRequest;
|
using AlibabaCloud::Quotas::Model::ListProductQuotaDimensionsRequest;
|
||||||
|
|
||||||
ListProductQuotaDimensionsRequest::ListProductQuotaDimensionsRequest() :
|
ListProductQuotaDimensionsRequest::ListProductQuotaDimensionsRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListProductQuotaDimensions")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListProductQuotaDimensions") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListProductQuotaDimensionsRequest::~ListProductQuotaDimensionsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListProductQuotaDimensionsRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotaDimensionsRequest::setProductCode(const std::string& productCode)
|
ListProductQuotaDimensionsRequest::~ListProductQuotaDimensionsRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListProductQuotaDimensionsRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotaDimensionsRequest::getNextToken()const
|
void ListProductQuotaDimensionsRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return nextToken_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotaDimensionsRequest::setNextToken(const std::string& nextToken)
|
std::string ListProductQuotaDimensionsRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
nextToken_ = nextToken;
|
|
||||||
setBodyParameter("NextToken", nextToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListProductQuotaDimensionsRequest::getMaxResults()const
|
void ListProductQuotaDimensionsRequest::setNextToken(const std::string &nextToken) {
|
||||||
{
|
nextToken_ = nextToken;
|
||||||
return maxResults_;
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotaDimensionsRequest::setMaxResults(int maxResults)
|
std::string ListProductQuotaDimensionsRequest::getQuotaCategory() const {
|
||||||
{
|
return quotaCategory_;
|
||||||
maxResults_ = maxResults;
|
|
||||||
setBodyParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotaDimensionsRequest::getQuotaCategory()const
|
void ListProductQuotaDimensionsRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
{
|
quotaCategory_ = quotaCategory;
|
||||||
return quotaCategory_;
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotaDimensionsRequest::setQuotaCategory(const std::string& quotaCategory)
|
std::string ListProductQuotaDimensionsRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
quotaCategory_ = quotaCategory;
|
}
|
||||||
setBodyParameter("QuotaCategory", quotaCategory);
|
|
||||||
|
void ListProductQuotaDimensionsRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListProductQuotaDimensionsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListProductQuotaDimensionsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,28 +43,38 @@ void ListProductQuotaDimensionsResult::parse(const std::string &payload)
|
|||||||
for (auto valueQuotaDimensionsQuotaDimensionsItem : allQuotaDimensionsNode)
|
for (auto valueQuotaDimensionsQuotaDimensionsItem : allQuotaDimensionsNode)
|
||||||
{
|
{
|
||||||
QuotaDimensionsItem quotaDimensionsObject;
|
QuotaDimensionsItem quotaDimensionsObject;
|
||||||
|
if(!valueQuotaDimensionsQuotaDimensionsItem["Requisite"].isNull())
|
||||||
|
quotaDimensionsObject.requisite = valueQuotaDimensionsQuotaDimensionsItem["Requisite"].asString() == "true";
|
||||||
if(!valueQuotaDimensionsQuotaDimensionsItem["DimensionKey"].isNull())
|
if(!valueQuotaDimensionsQuotaDimensionsItem["DimensionKey"].isNull())
|
||||||
quotaDimensionsObject.dimensionKey = valueQuotaDimensionsQuotaDimensionsItem["DimensionKey"].asString();
|
quotaDimensionsObject.dimensionKey = valueQuotaDimensionsQuotaDimensionsItem["DimensionKey"].asString();
|
||||||
if(!valueQuotaDimensionsQuotaDimensionsItem["Name"].isNull())
|
if(!valueQuotaDimensionsQuotaDimensionsItem["Name"].isNull())
|
||||||
quotaDimensionsObject.name = valueQuotaDimensionsQuotaDimensionsItem["Name"].asString();
|
quotaDimensionsObject.name = valueQuotaDimensionsQuotaDimensionsItem["Name"].asString();
|
||||||
if(!valueQuotaDimensionsQuotaDimensionsItem["Requisite"].isNull())
|
|
||||||
quotaDimensionsObject.requisite = valueQuotaDimensionsQuotaDimensionsItem["Requisite"].asString() == "true";
|
|
||||||
auto allDimensionValueDetailNode = valueQuotaDimensionsQuotaDimensionsItem["DimensionValueDetail"]["DimensionValueDetailItem"];
|
auto allDimensionValueDetailNode = valueQuotaDimensionsQuotaDimensionsItem["DimensionValueDetail"]["DimensionValueDetailItem"];
|
||||||
for (auto valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem : allDimensionValueDetailNode)
|
for (auto valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem : allDimensionValueDetailNode)
|
||||||
{
|
{
|
||||||
QuotaDimensionsItem::DimensionValueDetailItem dimensionValueDetailObject;
|
QuotaDimensionsItem::DimensionValueDetailItem dimensionValueDetailObject;
|
||||||
if(!valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Value"].isNull())
|
|
||||||
dimensionValueDetailObject.value = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Value"].asString();
|
|
||||||
if(!valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Name"].isNull())
|
if(!valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Name"].isNull())
|
||||||
dimensionValueDetailObject.name = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Name"].asString();
|
dimensionValueDetailObject.name = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Name"].asString();
|
||||||
|
if(!valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Value"].isNull())
|
||||||
|
dimensionValueDetailObject.value = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["Value"].asString();
|
||||||
|
auto allDependentDimensions1Node = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItem["DependentDimensions"]["DependentDimension"];
|
||||||
|
for (auto valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItemDependentDimensionsDependentDimension : allDependentDimensions1Node)
|
||||||
|
{
|
||||||
|
QuotaDimensionsItem::DimensionValueDetailItem::DependentDimension dependentDimensions1Object;
|
||||||
|
if(!valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItemDependentDimensionsDependentDimension["Key"].isNull())
|
||||||
|
dependentDimensions1Object.key = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItemDependentDimensionsDependentDimension["Key"].asString();
|
||||||
|
if(!valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItemDependentDimensionsDependentDimension["Value"].isNull())
|
||||||
|
dependentDimensions1Object.value = valueQuotaDimensionsQuotaDimensionsItemDimensionValueDetailDimensionValueDetailItemDependentDimensionsDependentDimension["Value"].asString();
|
||||||
|
dimensionValueDetailObject.dependentDimensions1.push_back(dependentDimensions1Object);
|
||||||
|
}
|
||||||
quotaDimensionsObject.dimensionValueDetail.push_back(dimensionValueDetailObject);
|
quotaDimensionsObject.dimensionValueDetail.push_back(dimensionValueDetailObject);
|
||||||
}
|
}
|
||||||
auto allDimensionValues = value["DimensionValues"]["DimensionValues"];
|
|
||||||
for (auto value : allDimensionValues)
|
|
||||||
quotaDimensionsObject.dimensionValues.push_back(value.asString());
|
|
||||||
auto allDependentDimensions = value["DependentDimensions"]["DependentDimension"];
|
auto allDependentDimensions = value["DependentDimensions"]["DependentDimension"];
|
||||||
for (auto value : allDependentDimensions)
|
for (auto value : allDependentDimensions)
|
||||||
quotaDimensionsObject.dependentDimensions.push_back(value.asString());
|
quotaDimensionsObject.dependentDimensions.push_back(value.asString());
|
||||||
|
auto allDimensionValues = value["DimensionValues"]["DimensionValues"];
|
||||||
|
for (auto value : allDimensionValues)
|
||||||
|
quotaDimensionsObject.dimensionValues.push_back(value.asString());
|
||||||
quotaDimensions_.push_back(quotaDimensionsObject);
|
quotaDimensions_.push_back(quotaDimensionsObject);
|
||||||
}
|
}
|
||||||
if(!value["TotalCount"].isNull())
|
if(!value["TotalCount"].isNull())
|
||||||
|
|||||||
@@ -1,144 +1,131 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListProductQuotasRequest.h>
|
#include <alibabacloud/quotas/model/ListProductQuotasRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListProductQuotasRequest;
|
using AlibabaCloud::Quotas::Model::ListProductQuotasRequest;
|
||||||
|
|
||||||
ListProductQuotasRequest::ListProductQuotasRequest() :
|
ListProductQuotasRequest::ListProductQuotasRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListProductQuotas")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListProductQuotas") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListProductQuotasRequest::~ListProductQuotasRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setProductCode(const std::string& productCode)
|
ListProductQuotasRequest::~ListProductQuotasRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListProductQuotasRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getQuotaActionCode()const
|
void ListProductQuotasRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string ListProductQuotasRequest::getQuotaActionCode() const {
|
||||||
{
|
return quotaActionCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getGroupCode()const
|
void ListProductQuotasRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
{
|
quotaActionCode_ = quotaActionCode;
|
||||||
return groupCode_;
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setGroupCode(const std::string& groupCode)
|
std::string ListProductQuotasRequest::getGroupCode() const {
|
||||||
{
|
return groupCode_;
|
||||||
groupCode_ = groupCode;
|
|
||||||
setBodyParameter("GroupCode", groupCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getNextToken()const
|
void ListProductQuotasRequest::setGroupCode(const std::string &groupCode) {
|
||||||
{
|
groupCode_ = groupCode;
|
||||||
return nextToken_;
|
setBodyParameter(std::string("GroupCode"), groupCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setNextToken(const std::string& nextToken)
|
std::string ListProductQuotasRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
nextToken_ = nextToken;
|
|
||||||
setBodyParameter("NextToken", nextToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getSortOrder()const
|
void ListProductQuotasRequest::setNextToken(const std::string &nextToken) {
|
||||||
{
|
nextToken_ = nextToken;
|
||||||
return sortOrder_;
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setSortOrder(const std::string& sortOrder)
|
std::string ListProductQuotasRequest::getSortOrder() const {
|
||||||
{
|
return sortOrder_;
|
||||||
sortOrder_ = sortOrder;
|
|
||||||
setBodyParameter("SortOrder", sortOrder);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getKeyWord()const
|
void ListProductQuotasRequest::setSortOrder(const std::string &sortOrder) {
|
||||||
{
|
sortOrder_ = sortOrder;
|
||||||
return keyWord_;
|
setBodyParameter(std::string("SortOrder"), sortOrder);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setKeyWord(const std::string& keyWord)
|
std::string ListProductQuotasRequest::getKeyWord() const {
|
||||||
{
|
return keyWord_;
|
||||||
keyWord_ = keyWord;
|
|
||||||
setBodyParameter("KeyWord", keyWord);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getQuotaCategory()const
|
void ListProductQuotasRequest::setKeyWord(const std::string &keyWord) {
|
||||||
{
|
keyWord_ = keyWord;
|
||||||
return quotaCategory_;
|
setBodyParameter(std::string("KeyWord"), keyWord);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setQuotaCategory(const std::string& quotaCategory)
|
std::string ListProductQuotasRequest::getQuotaCategory() const {
|
||||||
{
|
return quotaCategory_;
|
||||||
quotaCategory_ = quotaCategory;
|
|
||||||
setBodyParameter("QuotaCategory", quotaCategory);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListProductQuotasRequest::getMaxResults()const
|
void ListProductQuotasRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
{
|
quotaCategory_ = quotaCategory;
|
||||||
return maxResults_;
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setMaxResults(int maxResults)
|
std::string ListProductQuotasRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
maxResults_ = maxResults;
|
|
||||||
setBodyParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListProductQuotasRequest::getSortField()const
|
void ListProductQuotasRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return sortField_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setSortField(const std::string& sortField)
|
int ListProductQuotasRequest::getMaxResults() const {
|
||||||
{
|
return maxResults_;
|
||||||
sortField_ = sortField;
|
|
||||||
setBodyParameter("SortField", sortField);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<ListProductQuotasRequest::Dimensions> ListProductQuotasRequest::getDimensions()const
|
void ListProductQuotasRequest::setMaxResults(int maxResults) {
|
||||||
{
|
maxResults_ = maxResults;
|
||||||
return dimensions_;
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductQuotasRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
std::string ListProductQuotasRequest::getSortField() const {
|
||||||
{
|
return sortField_;
|
||||||
dimensions_ = dimensions;
|
}
|
||||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
|
||||||
auto dimensionsObj = dimensions.at(dep1);
|
void ListProductQuotasRequest::setSortField(const std::string &sortField) {
|
||||||
std::string dimensionsObjStr = "Dimensions." + std::to_string(dep1 + 1);
|
sortField_ = sortField;
|
||||||
setParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
setBodyParameter(std::string("SortField"), sortField);
|
||||||
setParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
}
|
||||||
}
|
|
||||||
|
std::vector<ListProductQuotasRequest::Dimensions> ListProductQuotasRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListProductQuotasRequest::setDimensions(const std::vector<ListProductQuotasRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,46 +43,56 @@ void ListProductQuotasResult::parse(const std::string &payload)
|
|||||||
for (auto valueQuotasQuotasItem : allQuotasNode)
|
for (auto valueQuotasQuotasItem : allQuotasNode)
|
||||||
{
|
{
|
||||||
QuotasItem quotasObject;
|
QuotasItem quotasObject;
|
||||||
if(!valueQuotasQuotasItem["QuotaDescription"].isNull())
|
if(!valueQuotasQuotasItem["QuotaUnit"].isNull())
|
||||||
quotasObject.quotaDescription = valueQuotasQuotasItem["QuotaDescription"].asString();
|
quotasObject.quotaUnit = valueQuotasQuotasItem["QuotaUnit"].asString();
|
||||||
if(!valueQuotasQuotasItem["Consumable"].isNull())
|
if(!valueQuotasQuotasItem["QuotaActionCode"].isNull())
|
||||||
quotasObject.consumable = valueQuotasQuotasItem["Consumable"].asString() == "true";
|
quotasObject.quotaActionCode = valueQuotasQuotasItem["QuotaActionCode"].asString();
|
||||||
if(!valueQuotasQuotasItem["UnadjustableDetail"].isNull())
|
|
||||||
quotasObject.unadjustableDetail = valueQuotasQuotasItem["UnadjustableDetail"].asString();
|
|
||||||
if(!valueQuotasQuotasItem["ProductCode"].isNull())
|
|
||||||
quotasObject.productCode = valueQuotasQuotasItem["ProductCode"].asString();
|
|
||||||
if(!valueQuotasQuotasItem["TotalUsage"].isNull())
|
if(!valueQuotasQuotasItem["TotalUsage"].isNull())
|
||||||
quotasObject.totalUsage = std::stof(valueQuotasQuotasItem["TotalUsage"].asString());
|
quotasObject.totalUsage = std::stof(valueQuotasQuotasItem["TotalUsage"].asString());
|
||||||
if(!valueQuotasQuotasItem["QuotaType"].isNull())
|
if(!valueQuotasQuotasItem["QuotaType"].isNull())
|
||||||
quotasObject.quotaType = valueQuotasQuotasItem["QuotaType"].asString();
|
quotasObject.quotaType = valueQuotasQuotasItem["QuotaType"].asString();
|
||||||
if(!valueQuotasQuotasItem["Dimensions"].isNull())
|
if(!valueQuotasQuotasItem["QuotaDescription"].isNull())
|
||||||
quotasObject.dimensions = valueQuotasQuotasItem["Dimensions"].asString();
|
quotasObject.quotaDescription = valueQuotasQuotasItem["QuotaDescription"].asString();
|
||||||
if(!valueQuotasQuotasItem["QuotaUnit"].isNull())
|
|
||||||
quotasObject.quotaUnit = valueQuotasQuotasItem["QuotaUnit"].asString();
|
|
||||||
if(!valueQuotasQuotasItem["Adjustable"].isNull())
|
|
||||||
quotasObject.adjustable = valueQuotasQuotasItem["Adjustable"].asString() == "true";
|
|
||||||
if(!valueQuotasQuotasItem["QuotaActionCode"].isNull())
|
|
||||||
quotasObject.quotaActionCode = valueQuotasQuotasItem["QuotaActionCode"].asString();
|
|
||||||
if(!valueQuotasQuotasItem["QuotaName"].isNull())
|
|
||||||
quotasObject.quotaName = valueQuotasQuotasItem["QuotaName"].asString();
|
|
||||||
if(!valueQuotasQuotasItem["QuotaArn"].isNull())
|
if(!valueQuotasQuotasItem["QuotaArn"].isNull())
|
||||||
quotasObject.quotaArn = valueQuotasQuotasItem["QuotaArn"].asString();
|
quotasObject.quotaArn = valueQuotasQuotasItem["QuotaArn"].asString();
|
||||||
if(!valueQuotasQuotasItem["TotalQuota"].isNull())
|
|
||||||
quotasObject.totalQuota = std::stof(valueQuotasQuotasItem["TotalQuota"].asString());
|
|
||||||
if(!valueQuotasQuotasItem["ApplicableType"].isNull())
|
if(!valueQuotasQuotasItem["ApplicableType"].isNull())
|
||||||
quotasObject.applicableType = valueQuotasQuotasItem["ApplicableType"].asString();
|
quotasObject.applicableType = valueQuotasQuotasItem["ApplicableType"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["Dimensions"].isNull())
|
||||||
|
quotasObject.dimensions = valueQuotasQuotasItem["Dimensions"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["Adjustable"].isNull())
|
||||||
|
quotasObject.adjustable = valueQuotasQuotasItem["Adjustable"].asString() == "true";
|
||||||
|
if(!valueQuotasQuotasItem["QuotaName"].isNull())
|
||||||
|
quotasObject.quotaName = valueQuotasQuotasItem["QuotaName"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["UnadjustableDetail"].isNull())
|
||||||
|
quotasObject.unadjustableDetail = valueQuotasQuotasItem["UnadjustableDetail"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["Consumable"].isNull())
|
||||||
|
quotasObject.consumable = valueQuotasQuotasItem["Consumable"].asString() == "true";
|
||||||
|
if(!valueQuotasQuotasItem["TotalQuota"].isNull())
|
||||||
|
quotasObject.totalQuota = std::stof(valueQuotasQuotasItem["TotalQuota"].asString());
|
||||||
|
if(!valueQuotasQuotasItem["ProductCode"].isNull())
|
||||||
|
quotasObject.productCode = valueQuotasQuotasItem["ProductCode"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["EffectiveTime"].isNull())
|
||||||
|
quotasObject.effectiveTime = valueQuotasQuotasItem["EffectiveTime"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["ExpireTime"].isNull())
|
||||||
|
quotasObject.expireTime = valueQuotasQuotasItem["ExpireTime"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["QuotaCategory"].isNull())
|
||||||
|
quotasObject.quotaCategory = valueQuotasQuotasItem["QuotaCategory"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["ApplyReasonTips"].isNull())
|
||||||
|
quotasObject.applyReasonTips = valueQuotasQuotasItem["ApplyReasonTips"].asString();
|
||||||
|
if(!valueQuotasQuotasItem["GlobalQuota"].isNull())
|
||||||
|
quotasObject.globalQuota = valueQuotasQuotasItem["GlobalQuota"].asString() == "true";
|
||||||
auto allQuotaItemsNode = valueQuotasQuotasItem["QuotaItems"]["QuotaItemsItem"];
|
auto allQuotaItemsNode = valueQuotasQuotasItem["QuotaItems"]["QuotaItemsItem"];
|
||||||
for (auto valueQuotasQuotasItemQuotaItemsQuotaItemsItem : allQuotaItemsNode)
|
for (auto valueQuotasQuotasItemQuotaItemsQuotaItemsItem : allQuotaItemsNode)
|
||||||
{
|
{
|
||||||
QuotasItem::QuotaItemsItem quotaItemsObject;
|
QuotasItem::QuotaItemsItem quotaItemsObject;
|
||||||
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Usage"].isNull())
|
|
||||||
quotaItemsObject.usage = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Usage"].asString();
|
|
||||||
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Type"].isNull())
|
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Type"].isNull())
|
||||||
quotaItemsObject.type = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Type"].asString();
|
quotaItemsObject.type = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Type"].asString();
|
||||||
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Quota"].isNull())
|
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Quota"].isNull())
|
||||||
quotaItemsObject.quota = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Quota"].asString();
|
quotaItemsObject.quota = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Quota"].asString();
|
||||||
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["QuotaUnit"].isNull())
|
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["QuotaUnit"].isNull())
|
||||||
quotaItemsObject.quotaUnit = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["QuotaUnit"].asString();
|
quotaItemsObject.quotaUnit = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["QuotaUnit"].asString();
|
||||||
|
if(!valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Usage"].isNull())
|
||||||
|
quotaItemsObject.usage = valueQuotasQuotasItemQuotaItemsQuotaItemsItem["Usage"].asString();
|
||||||
quotasObject.quotaItems.push_back(quotaItemsObject);
|
quotasObject.quotaItems.push_back(quotaItemsObject);
|
||||||
}
|
}
|
||||||
auto periodNode = value["Period"];
|
auto periodNode = value["Period"];
|
||||||
@@ -90,9 +100,19 @@ void ListProductQuotasResult::parse(const std::string &payload)
|
|||||||
quotasObject.period.periodValue = std::stoi(periodNode["PeriodValue"].asString());
|
quotasObject.period.periodValue = std::stoi(periodNode["PeriodValue"].asString());
|
||||||
if(!periodNode["PeriodUnit"].isNull())
|
if(!periodNode["PeriodUnit"].isNull())
|
||||||
quotasObject.period.periodUnit = periodNode["PeriodUnit"].asString();
|
quotasObject.period.periodUnit = periodNode["PeriodUnit"].asString();
|
||||||
|
auto usageMetricNode = value["UsageMetric"];
|
||||||
|
if(!usageMetricNode["MetricNamespace"].isNull())
|
||||||
|
quotasObject.usageMetric.metricNamespace = usageMetricNode["MetricNamespace"].asString();
|
||||||
|
if(!usageMetricNode["MetricName"].isNull())
|
||||||
|
quotasObject.usageMetric.metricName = usageMetricNode["MetricName"].asString();
|
||||||
|
if(!usageMetricNode["MetricDimensions"].isNull())
|
||||||
|
quotasObject.usageMetric.metricDimensions = usageMetricNode["MetricDimensions"].asString();
|
||||||
auto allApplicableRange = value["ApplicableRange"]["ApplicableRange"];
|
auto allApplicableRange = value["ApplicableRange"]["ApplicableRange"];
|
||||||
for (auto value : allApplicableRange)
|
for (auto value : allApplicableRange)
|
||||||
quotasObject.applicableRange.push_back(value.asString());
|
quotasObject.applicableRange.push_back(value.asString());
|
||||||
|
auto allSupportedRange = value["SupportedRange"]["SupportedRange"];
|
||||||
|
for (auto value : allSupportedRange)
|
||||||
|
quotasObject.supportedRange.push_back(value.asString());
|
||||||
quotas_.push_back(quotasObject);
|
quotas_.push_back(quotasObject);
|
||||||
}
|
}
|
||||||
if(!value["TotalCount"].isNull())
|
if(!value["TotalCount"].isNull())
|
||||||
|
|||||||
@@ -1,51 +1,54 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListProductsRequest.h>
|
#include <alibabacloud/quotas/model/ListProductsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListProductsRequest;
|
using AlibabaCloud::Quotas::Model::ListProductsRequest;
|
||||||
|
|
||||||
ListProductsRequest::ListProductsRequest() :
|
ListProductsRequest::ListProductsRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListProducts")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListProducts") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListProductsRequest::~ListProductsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListProductsRequest::getNextToken()const
|
|
||||||
{
|
|
||||||
return nextToken_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductsRequest::setNextToken(const std::string& nextToken)
|
ListProductsRequest::~ListProductsRequest() {}
|
||||||
{
|
|
||||||
nextToken_ = nextToken;
|
std::string ListProductsRequest::getOriginalContext() const {
|
||||||
setBodyParameter("NextToken", nextToken);
|
return originalContext_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListProductsRequest::getMaxResults()const
|
void ListProductsRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return maxResults_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListProductsRequest::setMaxResults(int maxResults)
|
std::string ListProductsRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
maxResults_ = maxResults;
|
}
|
||||||
setBodyParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
|
void ListProductsRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListProductsRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListProductsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,24 +43,26 @@ void ListProductsResult::parse(const std::string &payload)
|
|||||||
for (auto valueProductInfoProductInfos : allProductInfoNode)
|
for (auto valueProductInfoProductInfos : allProductInfoNode)
|
||||||
{
|
{
|
||||||
ProductInfos productInfoObject;
|
ProductInfos productInfoObject;
|
||||||
if(!valueProductInfoProductInfos["SecondCategoryNameEn"].isNull())
|
|
||||||
productInfoObject.secondCategoryNameEn = valueProductInfoProductInfos["SecondCategoryNameEn"].asString();
|
|
||||||
if(!valueProductInfoProductInfos["Dynamic"].isNull())
|
|
||||||
productInfoObject.dynamic = valueProductInfoProductInfos["Dynamic"].asString() == "true";
|
|
||||||
if(!valueProductInfoProductInfos["CommonQuotaSupport"].isNull())
|
|
||||||
productInfoObject.commonQuotaSupport = valueProductInfoProductInfos["CommonQuotaSupport"].asString();
|
|
||||||
if(!valueProductInfoProductInfos["ProductName"].isNull())
|
if(!valueProductInfoProductInfos["ProductName"].isNull())
|
||||||
productInfoObject.productName = valueProductInfoProductInfos["ProductName"].asString();
|
productInfoObject.productName = valueProductInfoProductInfos["ProductName"].asString();
|
||||||
if(!valueProductInfoProductInfos["ProductCode"].isNull())
|
|
||||||
productInfoObject.productCode = valueProductInfoProductInfos["ProductCode"].asString();
|
|
||||||
if(!valueProductInfoProductInfos["SecondCategoryName"].isNull())
|
|
||||||
productInfoObject.secondCategoryName = valueProductInfoProductInfos["SecondCategoryName"].asString();
|
|
||||||
if(!valueProductInfoProductInfos["FlowControlSupport"].isNull())
|
|
||||||
productInfoObject.flowControlSupport = valueProductInfoProductInfos["FlowControlSupport"].asString();
|
|
||||||
if(!valueProductInfoProductInfos["SecondCategoryId"].isNull())
|
if(!valueProductInfoProductInfos["SecondCategoryId"].isNull())
|
||||||
productInfoObject.secondCategoryId = std::stol(valueProductInfoProductInfos["SecondCategoryId"].asString());
|
productInfoObject.secondCategoryId = std::stol(valueProductInfoProductInfos["SecondCategoryId"].asString());
|
||||||
if(!valueProductInfoProductInfos["ProductNameEn"].isNull())
|
if(!valueProductInfoProductInfos["ProductNameEn"].isNull())
|
||||||
productInfoObject.productNameEn = valueProductInfoProductInfos["ProductNameEn"].asString();
|
productInfoObject.productNameEn = valueProductInfoProductInfos["ProductNameEn"].asString();
|
||||||
|
if(!valueProductInfoProductInfos["Dynamic"].isNull())
|
||||||
|
productInfoObject.dynamic = valueProductInfoProductInfos["Dynamic"].asString() == "true";
|
||||||
|
if(!valueProductInfoProductInfos["SecondCategoryNameEn"].isNull())
|
||||||
|
productInfoObject.secondCategoryNameEn = valueProductInfoProductInfos["SecondCategoryNameEn"].asString();
|
||||||
|
if(!valueProductInfoProductInfos["SecondCategoryName"].isNull())
|
||||||
|
productInfoObject.secondCategoryName = valueProductInfoProductInfos["SecondCategoryName"].asString();
|
||||||
|
if(!valueProductInfoProductInfos["ProductCode"].isNull())
|
||||||
|
productInfoObject.productCode = valueProductInfoProductInfos["ProductCode"].asString();
|
||||||
|
if(!valueProductInfoProductInfos["FlowControlSupport"].isNull())
|
||||||
|
productInfoObject.flowControlSupport = valueProductInfoProductInfos["FlowControlSupport"].asString();
|
||||||
|
if(!valueProductInfoProductInfos["CommonQuotaSupport"].isNull())
|
||||||
|
productInfoObject.commonQuotaSupport = valueProductInfoProductInfos["CommonQuotaSupport"].asString();
|
||||||
|
if(!valueProductInfoProductInfos["WhiteListLabelQuotaSupport"].isNull())
|
||||||
|
productInfoObject.whiteListLabelQuotaSupport = valueProductInfoProductInfos["WhiteListLabelQuotaSupport"].asString();
|
||||||
productInfo_.push_back(productInfoObject);
|
productInfo_.push_back(productInfoObject);
|
||||||
}
|
}
|
||||||
if(!value["TotalCount"].isNull())
|
if(!value["TotalCount"].isNull())
|
||||||
|
|||||||
@@ -1,100 +1,95 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListQuotaAlarmsRequest.h>
|
#include <alibabacloud/quotas/model/ListQuotaAlarmsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListQuotaAlarmsRequest;
|
using AlibabaCloud::Quotas::Model::ListQuotaAlarmsRequest;
|
||||||
|
|
||||||
ListQuotaAlarmsRequest::ListQuotaAlarmsRequest() :
|
ListQuotaAlarmsRequest::ListQuotaAlarmsRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListQuotaAlarms")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListQuotaAlarms") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListQuotaAlarmsRequest::~ListQuotaAlarmsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListQuotaAlarmsRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaAlarmsRequest::setProductCode(const std::string& productCode)
|
ListQuotaAlarmsRequest::~ListQuotaAlarmsRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListQuotaAlarmsRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaAlarmsRequest::getQuotaActionCode()const
|
void ListQuotaAlarmsRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaAlarmsRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string ListQuotaAlarmsRequest::getQuotaActionCode() const {
|
||||||
{
|
return quotaActionCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaAlarmsRequest::getNextToken()const
|
void ListQuotaAlarmsRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
{
|
quotaActionCode_ = quotaActionCode;
|
||||||
return nextToken_;
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaAlarmsRequest::setNextToken(const std::string& nextToken)
|
std::string ListQuotaAlarmsRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
nextToken_ = nextToken;
|
|
||||||
setBodyParameter("NextToken", nextToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<ListQuotaAlarmsRequest::QuotaDimensions> ListQuotaAlarmsRequest::getQuotaDimensions()const
|
void ListQuotaAlarmsRequest::setNextToken(const std::string &nextToken) {
|
||||||
{
|
nextToken_ = nextToken;
|
||||||
return quotaDimensions_;
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaAlarmsRequest::setQuotaDimensions(const std::vector<QuotaDimensions>& quotaDimensions)
|
std::vector<ListQuotaAlarmsRequest::QuotaDimensions> ListQuotaAlarmsRequest::getQuotaDimensions() const {
|
||||||
{
|
return quotaDimensions_;
|
||||||
quotaDimensions_ = quotaDimensions;
|
|
||||||
for(int dep1 = 0; dep1!= quotaDimensions.size(); dep1++) {
|
|
||||||
auto quotaDimensionsObj = quotaDimensions.at(dep1);
|
|
||||||
std::string quotaDimensionsObjStr = "QuotaDimensions." + std::to_string(dep1 + 1);
|
|
||||||
setParameter(quotaDimensionsObjStr + ".Key", quotaDimensionsObj.key);
|
|
||||||
setParameter(quotaDimensionsObjStr + ".Value", quotaDimensionsObj.value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListQuotaAlarmsRequest::getMaxResults()const
|
void ListQuotaAlarmsRequest::setQuotaDimensions(const std::vector<ListQuotaAlarmsRequest::QuotaDimensions> "aDimensions) {
|
||||||
{
|
quotaDimensions_ = quotaDimensions;
|
||||||
return maxResults_;
|
for(int dep1 = 0; dep1 != quotaDimensions.size(); dep1++) {
|
||||||
|
auto quotaDimensionsObj = quotaDimensions.at(dep1);
|
||||||
|
std::string quotaDimensionsObjStr = std::string("QuotaDimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(quotaDimensionsObjStr + ".Key", quotaDimensionsObj.key);
|
||||||
|
setBodyParameter(quotaDimensionsObjStr + ".Value", quotaDimensionsObj.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaAlarmsRequest::setMaxResults(int maxResults)
|
std::string ListQuotaAlarmsRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
maxResults_ = maxResults;
|
|
||||||
setBodyParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaAlarmsRequest::getAlarmName()const
|
void ListQuotaAlarmsRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return alarmName_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaAlarmsRequest::setAlarmName(const std::string& alarmName)
|
int ListQuotaAlarmsRequest::getMaxResults() const {
|
||||||
{
|
return maxResults_;
|
||||||
alarmName_ = alarmName;
|
}
|
||||||
setBodyParameter("AlarmName", alarmName);
|
|
||||||
|
void ListQuotaAlarmsRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaAlarmsRequest::getAlarmName() const {
|
||||||
|
return alarmName_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaAlarmsRequest::setAlarmName(const std::string &alarmName) {
|
||||||
|
alarmName_ = alarmName;
|
||||||
|
setBodyParameter(std::string("AlarmName"), alarmName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,34 +43,34 @@ void ListQuotaAlarmsResult::parse(const std::string &payload)
|
|||||||
for (auto valueQuotaAlarmsQuotaAlarm : allQuotaAlarmsNode)
|
for (auto valueQuotaAlarmsQuotaAlarm : allQuotaAlarmsNode)
|
||||||
{
|
{
|
||||||
QuotaAlarm quotaAlarmsObject;
|
QuotaAlarm quotaAlarmsObject;
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["AlarmId"].isNull())
|
|
||||||
quotaAlarmsObject.alarmId = valueQuotaAlarmsQuotaAlarm["AlarmId"].asString();
|
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["QuotaDimensions"].isNull())
|
|
||||||
quotaAlarmsObject.quotaDimensions = valueQuotaAlarmsQuotaAlarm["QuotaDimensions"].asString();
|
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["ThresholdPercent"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["ThresholdPercent"].isNull())
|
||||||
quotaAlarmsObject.thresholdPercent = std::stof(valueQuotaAlarmsQuotaAlarm["ThresholdPercent"].asString());
|
quotaAlarmsObject.thresholdPercent = std::stof(valueQuotaAlarmsQuotaAlarm["ThresholdPercent"].asString());
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["ProductCode"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["ThresholdType"].isNull())
|
||||||
quotaAlarmsObject.productCode = valueQuotaAlarmsQuotaAlarm["ProductCode"].asString();
|
quotaAlarmsObject.thresholdType = valueQuotaAlarmsQuotaAlarm["ThresholdType"].asString();
|
||||||
|
if(!valueQuotaAlarmsQuotaAlarm["QuotaDimensions"].isNull())
|
||||||
|
quotaAlarmsObject.quotaDimensions = valueQuotaAlarmsQuotaAlarm["QuotaDimensions"].asString();
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["CreateTime"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["CreateTime"].isNull())
|
||||||
quotaAlarmsObject.createTime = valueQuotaAlarmsQuotaAlarm["CreateTime"].asString();
|
quotaAlarmsObject.createTime = valueQuotaAlarmsQuotaAlarm["CreateTime"].asString();
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["WebHook"].isNull())
|
|
||||||
quotaAlarmsObject.webHook = valueQuotaAlarmsQuotaAlarm["WebHook"].asString();
|
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["QuotaUsage"].isNull())
|
|
||||||
quotaAlarmsObject.quotaUsage = std::stof(valueQuotaAlarmsQuotaAlarm["QuotaUsage"].asString());
|
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["ExceedThreshold"].isNull())
|
|
||||||
quotaAlarmsObject.exceedThreshold = valueQuotaAlarmsQuotaAlarm["ExceedThreshold"].asString() == "true";
|
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["QuotaActionCode"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["QuotaActionCode"].isNull())
|
||||||
quotaAlarmsObject.quotaActionCode = valueQuotaAlarmsQuotaAlarm["QuotaActionCode"].asString();
|
quotaAlarmsObject.quotaActionCode = valueQuotaAlarmsQuotaAlarm["QuotaActionCode"].asString();
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["QuotaValue"].isNull())
|
|
||||||
quotaAlarmsObject.quotaValue = std::stof(valueQuotaAlarmsQuotaAlarm["QuotaValue"].asString());
|
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["AlarmName"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["AlarmName"].isNull())
|
||||||
quotaAlarmsObject.alarmName = valueQuotaAlarmsQuotaAlarm["AlarmName"].asString();
|
quotaAlarmsObject.alarmName = valueQuotaAlarmsQuotaAlarm["AlarmName"].asString();
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["NotifyTarget"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["NotifyTarget"].isNull())
|
||||||
quotaAlarmsObject.notifyTarget = valueQuotaAlarmsQuotaAlarm["NotifyTarget"].asString();
|
quotaAlarmsObject.notifyTarget = valueQuotaAlarmsQuotaAlarm["NotifyTarget"].asString();
|
||||||
|
if(!valueQuotaAlarmsQuotaAlarm["QuotaUsage"].isNull())
|
||||||
|
quotaAlarmsObject.quotaUsage = std::stof(valueQuotaAlarmsQuotaAlarm["QuotaUsage"].asString());
|
||||||
|
if(!valueQuotaAlarmsQuotaAlarm["QuotaValue"].isNull())
|
||||||
|
quotaAlarmsObject.quotaValue = std::stof(valueQuotaAlarmsQuotaAlarm["QuotaValue"].asString());
|
||||||
|
if(!valueQuotaAlarmsQuotaAlarm["AlarmId"].isNull())
|
||||||
|
quotaAlarmsObject.alarmId = valueQuotaAlarmsQuotaAlarm["AlarmId"].asString();
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["Threshold"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["Threshold"].isNull())
|
||||||
quotaAlarmsObject.threshold = std::stof(valueQuotaAlarmsQuotaAlarm["Threshold"].asString());
|
quotaAlarmsObject.threshold = std::stof(valueQuotaAlarmsQuotaAlarm["Threshold"].asString());
|
||||||
if(!valueQuotaAlarmsQuotaAlarm["ThresholdType"].isNull())
|
if(!valueQuotaAlarmsQuotaAlarm["ProductCode"].isNull())
|
||||||
quotaAlarmsObject.thresholdType = valueQuotaAlarmsQuotaAlarm["ThresholdType"].asString();
|
quotaAlarmsObject.productCode = valueQuotaAlarmsQuotaAlarm["ProductCode"].asString();
|
||||||
|
if(!valueQuotaAlarmsQuotaAlarm["WebHook"].isNull())
|
||||||
|
quotaAlarmsObject.webHook = valueQuotaAlarmsQuotaAlarm["WebHook"].asString();
|
||||||
|
if(!valueQuotaAlarmsQuotaAlarm["ExceedThreshold"].isNull())
|
||||||
|
quotaAlarmsObject.exceedThreshold = valueQuotaAlarmsQuotaAlarm["ExceedThreshold"].asString() == "true";
|
||||||
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannels"];
|
auto allNotifyChannels = value["NotifyChannels"]["NotifyChannels"];
|
||||||
for (auto value : allNotifyChannels)
|
for (auto value : allNotifyChannels)
|
||||||
quotaAlarmsObject.notifyChannels.push_back(value.asString());
|
quotaAlarmsObject.notifyChannels.push_back(value.asString());
|
||||||
|
|||||||
104
quotas/src/model/ListQuotaApplicationTemplatesRequest.cc
Normal file
104
quotas/src/model/ListQuotaApplicationTemplatesRequest.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/quotas/model/ListQuotaApplicationTemplatesRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::ListQuotaApplicationTemplatesRequest;
|
||||||
|
|
||||||
|
ListQuotaApplicationTemplatesRequest::ListQuotaApplicationTemplatesRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "ListQuotaApplicationTemplates") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListQuotaApplicationTemplatesRequest::~ListQuotaApplicationTemplatesRequest() {}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesRequest::getProductCode() const {
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesRequest::getId() const {
|
||||||
|
return id_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setId(const std::string &id) {
|
||||||
|
id_ = id;
|
||||||
|
setBodyParameter(std::string("Id"), id);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesRequest::getQuotaCategory() const {
|
||||||
|
return quotaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
|
quotaCategory_ = quotaCategory;
|
||||||
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationTemplatesRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListQuotaApplicationTemplatesRequest::Dimensions> ListQuotaApplicationTemplatesRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesRequest::setDimensions(const std::vector<ListQuotaApplicationTemplatesRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
110
quotas/src/model/ListQuotaApplicationTemplatesResult.cc
Normal file
110
quotas/src/model/ListQuotaApplicationTemplatesResult.cc
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/ListQuotaApplicationTemplatesResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
ListQuotaApplicationTemplatesResult::ListQuotaApplicationTemplatesResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListQuotaApplicationTemplatesResult::ListQuotaApplicationTemplatesResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListQuotaApplicationTemplatesResult::~ListQuotaApplicationTemplatesResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListQuotaApplicationTemplatesResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allQuotaApplicationTemplatesNode = value["QuotaApplicationTemplates"]["QuotaApplicationTemplatesItem"];
|
||||||
|
for (auto valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem : allQuotaApplicationTemplatesNode)
|
||||||
|
{
|
||||||
|
QuotaApplicationTemplatesItem quotaApplicationTemplatesObject;
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["Id"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.id = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["Id"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["ProductCode"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.productCode = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["ProductCode"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["Dimensions"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.dimensions = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["Dimensions"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["DesireValue"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.desireValue = std::stof(valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["DesireValue"].asString());
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["NoticeType"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.noticeType = std::stoi(valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["NoticeType"].asString());
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaActionCode"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.quotaActionCode = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaActionCode"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["ApplicableType"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.applicableType = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["ApplicableType"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["EnvLanguage"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.envLanguage = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["EnvLanguage"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaName"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.quotaName = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaName"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaDescription"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.quotaDescription = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaDescription"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["EffectiveTime"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.effectiveTime = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["EffectiveTime"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["ExpireTime"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.expireTime = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["ExpireTime"].asString();
|
||||||
|
if(!valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaCategory"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.quotaCategory = valueQuotaApplicationTemplatesQuotaApplicationTemplatesItem["QuotaCategory"].asString();
|
||||||
|
auto periodNode = value["Period"];
|
||||||
|
if(!periodNode["PeriodValue"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.period.periodValue = std::stoi(periodNode["PeriodValue"].asString());
|
||||||
|
if(!periodNode["PeriodUnit"].isNull())
|
||||||
|
quotaApplicationTemplatesObject.period.periodUnit = periodNode["PeriodUnit"].asString();
|
||||||
|
auto allApplicableRange = value["ApplicableRange"]["Applicable"];
|
||||||
|
for (auto value : allApplicableRange)
|
||||||
|
quotaApplicationTemplatesObject.applicableRange.push_back(value.asString());
|
||||||
|
quotaApplicationTemplates_.push_back(quotaApplicationTemplatesObject);
|
||||||
|
}
|
||||||
|
if(!value["MaxResults"].isNull())
|
||||||
|
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationTemplatesResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationTemplatesResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationTemplatesResult::getMaxResults()const
|
||||||
|
{
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListQuotaApplicationTemplatesResult::QuotaApplicationTemplatesItem> ListQuotaApplicationTemplatesResult::getQuotaApplicationTemplates()const
|
||||||
|
{
|
||||||
|
return quotaApplicationTemplates_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,108 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/quotas/model/ListQuotaApplicationsDetailForTemplateRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::ListQuotaApplicationsDetailForTemplateRequest;
|
||||||
|
|
||||||
|
ListQuotaApplicationsDetailForTemplateRequest::ListQuotaApplicationsDetailForTemplateRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "ListQuotaApplicationsDetailForTemplate") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListQuotaApplicationsDetailForTemplateRequest::~ListQuotaApplicationsDetailForTemplateRequest() {}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getProductCode() const {
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getBatchQuotaApplicationId() const {
|
||||||
|
return batchQuotaApplicationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setBatchQuotaApplicationId(const std::string &batchQuotaApplicationId) {
|
||||||
|
batchQuotaApplicationId_ = batchQuotaApplicationId;
|
||||||
|
setBodyParameter(std::string("BatchQuotaApplicationId"), batchQuotaApplicationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getQuotaCategory() const {
|
||||||
|
return quotaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
|
quotaCategory_ = quotaCategory;
|
||||||
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getAliyunUid() const {
|
||||||
|
return aliyunUid_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setAliyunUid(const std::string &aliyunUid) {
|
||||||
|
aliyunUid_ = aliyunUid;
|
||||||
|
setBodyParameter(std::string("AliyunUid"), aliyunUid);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationsDetailForTemplateRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateRequest::getStatus() const {
|
||||||
|
return status_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateRequest::setStatus(const std::string &status) {
|
||||||
|
status_ = status;
|
||||||
|
setBodyParameter(std::string("Status"), status);
|
||||||
|
}
|
||||||
|
|
||||||
123
quotas/src/model/ListQuotaApplicationsDetailForTemplateResult.cc
Normal file
123
quotas/src/model/ListQuotaApplicationsDetailForTemplateResult.cc
Normal file
@@ -0,0 +1,123 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/quotas/model/ListQuotaApplicationsDetailForTemplateResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
ListQuotaApplicationsDetailForTemplateResult::ListQuotaApplicationsDetailForTemplateResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListQuotaApplicationsDetailForTemplateResult::ListQuotaApplicationsDetailForTemplateResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListQuotaApplicationsDetailForTemplateResult::~ListQuotaApplicationsDetailForTemplateResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsDetailForTemplateResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allQuotaApplicationsNode = value["QuotaApplications"]["QuotaBatchApplicationDetailVos"];
|
||||||
|
for (auto valueQuotaApplicationsQuotaBatchApplicationDetailVos : allQuotaApplicationsNode)
|
||||||
|
{
|
||||||
|
QuotaBatchApplicationDetailVos quotaApplicationsObject;
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["BatchQuotaApplicationId"].isNull())
|
||||||
|
quotaApplicationsObject.batchQuotaApplicationId = valueQuotaApplicationsQuotaBatchApplicationDetailVos["BatchQuotaApplicationId"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["ProductCode"].isNull())
|
||||||
|
quotaApplicationsObject.productCode = valueQuotaApplicationsQuotaBatchApplicationDetailVos["ProductCode"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaActionCode"].isNull())
|
||||||
|
quotaApplicationsObject.quotaActionCode = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaActionCode"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaName"].isNull())
|
||||||
|
quotaApplicationsObject.quotaName = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaName"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaDescription"].isNull())
|
||||||
|
quotaApplicationsObject.quotaDescription = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaDescription"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaUnit"].isNull())
|
||||||
|
quotaApplicationsObject.quotaUnit = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaUnit"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaArn"].isNull())
|
||||||
|
quotaApplicationsObject.quotaArn = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaArn"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaDimension"].isNull())
|
||||||
|
quotaApplicationsObject.quotaDimension = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaDimension"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["ApplicationId"].isNull())
|
||||||
|
quotaApplicationsObject.applicationId = valueQuotaApplicationsQuotaBatchApplicationDetailVos["ApplicationId"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["DesireValue"].isNull())
|
||||||
|
quotaApplicationsObject.desireValue = valueQuotaApplicationsQuotaBatchApplicationDetailVos["DesireValue"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["Reason"].isNull())
|
||||||
|
quotaApplicationsObject.reason = valueQuotaApplicationsQuotaBatchApplicationDetailVos["Reason"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["Status"].isNull())
|
||||||
|
quotaApplicationsObject.status = valueQuotaApplicationsQuotaBatchApplicationDetailVos["Status"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["ApproveValue"].isNull())
|
||||||
|
quotaApplicationsObject.approveValue = valueQuotaApplicationsQuotaBatchApplicationDetailVos["ApproveValue"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["EffectiveTime"].isNull())
|
||||||
|
quotaApplicationsObject.effectiveTime = valueQuotaApplicationsQuotaBatchApplicationDetailVos["EffectiveTime"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["ExpireTime"].isNull())
|
||||||
|
quotaApplicationsObject.expireTime = valueQuotaApplicationsQuotaBatchApplicationDetailVos["ExpireTime"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["ApplyTime"].isNull())
|
||||||
|
quotaApplicationsObject.applyTime = valueQuotaApplicationsQuotaBatchApplicationDetailVos["ApplyTime"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["AuditReason"].isNull())
|
||||||
|
quotaApplicationsObject.auditReason = valueQuotaApplicationsQuotaBatchApplicationDetailVos["AuditReason"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["NoticeType"].isNull())
|
||||||
|
quotaApplicationsObject.noticeType = std::stoi(valueQuotaApplicationsQuotaBatchApplicationDetailVos["NoticeType"].asString());
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["AliyunUid"].isNull())
|
||||||
|
quotaApplicationsObject.aliyunUid = valueQuotaApplicationsQuotaBatchApplicationDetailVos["AliyunUid"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaCategory"].isNull())
|
||||||
|
quotaApplicationsObject.quotaCategory = valueQuotaApplicationsQuotaBatchApplicationDetailVos["QuotaCategory"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaBatchApplicationDetailVos["EnvLanguage"].isNull())
|
||||||
|
quotaApplicationsObject.envLanguage = valueQuotaApplicationsQuotaBatchApplicationDetailVos["EnvLanguage"].asString();
|
||||||
|
auto periodNode = value["Period"];
|
||||||
|
if(!periodNode["PeriodUnit"].isNull())
|
||||||
|
quotaApplicationsObject.period.periodUnit = periodNode["PeriodUnit"].asString();
|
||||||
|
if(!periodNode["PeriodValue"].isNull())
|
||||||
|
quotaApplicationsObject.period.periodValue = std::stoi(periodNode["PeriodValue"].asString());
|
||||||
|
quotaApplications_.push_back(quotaApplicationsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
if(!value["MaxResults"].isNull())
|
||||||
|
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListQuotaApplicationsDetailForTemplateResult::QuotaBatchApplicationDetailVos> ListQuotaApplicationsDetailForTemplateResult::getQuotaApplications()const
|
||||||
|
{
|
||||||
|
return quotaApplications_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationsDetailForTemplateResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsDetailForTemplateResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationsDetailForTemplateResult::getMaxResults()const
|
||||||
|
{
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
108
quotas/src/model/ListQuotaApplicationsForTemplateRequest.cc
Normal file
108
quotas/src/model/ListQuotaApplicationsForTemplateRequest.cc
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/quotas/model/ListQuotaApplicationsForTemplateRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::ListQuotaApplicationsForTemplateRequest;
|
||||||
|
|
||||||
|
ListQuotaApplicationsForTemplateRequest::ListQuotaApplicationsForTemplateRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "ListQuotaApplicationsForTemplate") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListQuotaApplicationsForTemplateRequest::~ListQuotaApplicationsForTemplateRequest() {}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getProductCode() const {
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getBatchQuotaApplicationId() const {
|
||||||
|
return batchQuotaApplicationId_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setBatchQuotaApplicationId(const std::string &batchQuotaApplicationId) {
|
||||||
|
batchQuotaApplicationId_ = batchQuotaApplicationId;
|
||||||
|
setBodyParameter(std::string("BatchQuotaApplicationId"), batchQuotaApplicationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getNextToken() const {
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setNextToken(const std::string &nextToken) {
|
||||||
|
nextToken_ = nextToken;
|
||||||
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getQuotaCategory() const {
|
||||||
|
return quotaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
|
quotaCategory_ = quotaCategory;
|
||||||
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getApplyStartTime() const {
|
||||||
|
return applyStartTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setApplyStartTime(const std::string &applyStartTime) {
|
||||||
|
applyStartTime_ = applyStartTime;
|
||||||
|
setBodyParameter(std::string("ApplyStartTime"), applyStartTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateRequest::getApplyEndTime() const {
|
||||||
|
return applyEndTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setApplyEndTime(const std::string &applyEndTime) {
|
||||||
|
applyEndTime_ = applyEndTime;
|
||||||
|
setBodyParameter(std::string("ApplyEndTime"), applyEndTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationsForTemplateRequest::getMaxResults() const {
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateRequest::setMaxResults(int maxResults) {
|
||||||
|
maxResults_ = maxResults;
|
||||||
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
|
}
|
||||||
|
|
||||||
109
quotas/src/model/ListQuotaApplicationsForTemplateResult.cc
Normal file
109
quotas/src/model/ListQuotaApplicationsForTemplateResult.cc
Normal file
@@ -0,0 +1,109 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/ListQuotaApplicationsForTemplateResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
ListQuotaApplicationsForTemplateResult::ListQuotaApplicationsForTemplateResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ListQuotaApplicationsForTemplateResult::ListQuotaApplicationsForTemplateResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ListQuotaApplicationsForTemplateResult::~ListQuotaApplicationsForTemplateResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsForTemplateResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto allQuotaBatchApplicationsNode = value["QuotaBatchApplications"]["QuotaBatchApplicationsItem"];
|
||||||
|
for (auto valueQuotaBatchApplicationsQuotaBatchApplicationsItem : allQuotaBatchApplicationsNode)
|
||||||
|
{
|
||||||
|
QuotaBatchApplicationsItem quotaBatchApplicationsObject;
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["ProductCode"].isNull())
|
||||||
|
quotaBatchApplicationsObject.productCode = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["ProductCode"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["QuotaActionCode"].isNull())
|
||||||
|
quotaBatchApplicationsObject.quotaActionCode = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["QuotaActionCode"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["BatchQuotaApplicationId"].isNull())
|
||||||
|
quotaBatchApplicationsObject.batchQuotaApplicationId = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["BatchQuotaApplicationId"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["EffectiveTime"].isNull())
|
||||||
|
quotaBatchApplicationsObject.effectiveTime = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["EffectiveTime"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["ExpireTime"].isNull())
|
||||||
|
quotaBatchApplicationsObject.expireTime = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["ExpireTime"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["ApplyTime"].isNull())
|
||||||
|
quotaBatchApplicationsObject.applyTime = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["ApplyTime"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["DesireValue"].isNull())
|
||||||
|
quotaBatchApplicationsObject.desireValue = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["DesireValue"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["QuotaCategory"].isNull())
|
||||||
|
quotaBatchApplicationsObject.quotaCategory = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["QuotaCategory"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["Dimensions"].isNull())
|
||||||
|
quotaBatchApplicationsObject.dimensions = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["Dimensions"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItem["Reason"].isNull())
|
||||||
|
quotaBatchApplicationsObject.reason = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["Reason"].asString();
|
||||||
|
auto allAuditStatusVosNode = valueQuotaBatchApplicationsQuotaBatchApplicationsItem["AuditStatusVos"]["AuditStatusVo"];
|
||||||
|
for (auto valueQuotaBatchApplicationsQuotaBatchApplicationsItemAuditStatusVosAuditStatusVo : allAuditStatusVosNode)
|
||||||
|
{
|
||||||
|
QuotaBatchApplicationsItem::AuditStatusVo auditStatusVosObject;
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItemAuditStatusVosAuditStatusVo["Status"].isNull())
|
||||||
|
auditStatusVosObject.status = valueQuotaBatchApplicationsQuotaBatchApplicationsItemAuditStatusVosAuditStatusVo["Status"].asString();
|
||||||
|
if(!valueQuotaBatchApplicationsQuotaBatchApplicationsItemAuditStatusVosAuditStatusVo["Count"].isNull())
|
||||||
|
auditStatusVosObject.count = std::stoi(valueQuotaBatchApplicationsQuotaBatchApplicationsItemAuditStatusVosAuditStatusVo["Count"].asString());
|
||||||
|
quotaBatchApplicationsObject.auditStatusVos.push_back(auditStatusVosObject);
|
||||||
|
}
|
||||||
|
auto allAliyunUids = value["AliyunUids"]["AliyunUids"];
|
||||||
|
for (auto value : allAliyunUids)
|
||||||
|
quotaBatchApplicationsObject.aliyunUids.push_back(value.asString());
|
||||||
|
quotaBatchApplications_.push_back(quotaBatchApplicationsObject);
|
||||||
|
}
|
||||||
|
if(!value["NextToken"].isNull())
|
||||||
|
nextToken_ = value["NextToken"].asString();
|
||||||
|
if(!value["TotalCount"].isNull())
|
||||||
|
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||||
|
if(!value["MaxResults"].isNull())
|
||||||
|
maxResults_ = std::stoi(value["MaxResults"].asString());
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationsForTemplateResult::getTotalCount()const
|
||||||
|
{
|
||||||
|
return totalCount_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ListQuotaApplicationsForTemplateResult::getNextToken()const
|
||||||
|
{
|
||||||
|
return nextToken_;
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ListQuotaApplicationsForTemplateResult::QuotaBatchApplicationsItem> ListQuotaApplicationsForTemplateResult::getQuotaBatchApplications()const
|
||||||
|
{
|
||||||
|
return quotaBatchApplications_;
|
||||||
|
}
|
||||||
|
|
||||||
|
int ListQuotaApplicationsForTemplateResult::getMaxResults()const
|
||||||
|
{
|
||||||
|
return maxResults_;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,122 +1,113 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <alibabacloud/quotas/model/ListQuotaApplicationsRequest.h>
|
#include <alibabacloud/quotas/model/ListQuotaApplicationsRequest.h>
|
||||||
|
|
||||||
using AlibabaCloud::Quotas::Model::ListQuotaApplicationsRequest;
|
using AlibabaCloud::Quotas::Model::ListQuotaApplicationsRequest;
|
||||||
|
|
||||||
ListQuotaApplicationsRequest::ListQuotaApplicationsRequest() :
|
ListQuotaApplicationsRequest::ListQuotaApplicationsRequest()
|
||||||
RpcServiceRequest("quotas", "2020-05-10", "ListQuotaApplications")
|
: RpcServiceRequest("quotas", "2020-05-10", "ListQuotaApplications") {
|
||||||
{
|
setMethod(HttpRequest::Method::Post);
|
||||||
setMethod(HttpRequest::Method::Post);
|
|
||||||
}
|
|
||||||
|
|
||||||
ListQuotaApplicationsRequest::~ListQuotaApplicationsRequest()
|
|
||||||
{}
|
|
||||||
|
|
||||||
std::string ListQuotaApplicationsRequest::getProductCode()const
|
|
||||||
{
|
|
||||||
return productCode_;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setProductCode(const std::string& productCode)
|
ListQuotaApplicationsRequest::~ListQuotaApplicationsRequest() {}
|
||||||
{
|
|
||||||
productCode_ = productCode;
|
std::string ListQuotaApplicationsRequest::getProductCode() const {
|
||||||
setBodyParameter("ProductCode", productCode);
|
return productCode_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaApplicationsRequest::getQuotaActionCode()const
|
void ListQuotaApplicationsRequest::setProductCode(const std::string &productCode) {
|
||||||
{
|
productCode_ = productCode;
|
||||||
return quotaActionCode_;
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setQuotaActionCode(const std::string& quotaActionCode)
|
std::string ListQuotaApplicationsRequest::getQuotaActionCode() const {
|
||||||
{
|
return quotaActionCode_;
|
||||||
quotaActionCode_ = quotaActionCode;
|
|
||||||
setBodyParameter("QuotaActionCode", quotaActionCode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaApplicationsRequest::getNextToken()const
|
void ListQuotaApplicationsRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
{
|
quotaActionCode_ = quotaActionCode;
|
||||||
return nextToken_;
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setNextToken(const std::string& nextToken)
|
std::string ListQuotaApplicationsRequest::getNextToken() const {
|
||||||
{
|
return nextToken_;
|
||||||
nextToken_ = nextToken;
|
|
||||||
setBodyParameter("NextToken", nextToken);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaApplicationsRequest::getKeyWord()const
|
void ListQuotaApplicationsRequest::setNextToken(const std::string &nextToken) {
|
||||||
{
|
nextToken_ = nextToken;
|
||||||
return keyWord_;
|
setBodyParameter(std::string("NextToken"), nextToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setKeyWord(const std::string& keyWord)
|
std::string ListQuotaApplicationsRequest::getKeyWord() const {
|
||||||
{
|
return keyWord_;
|
||||||
keyWord_ = keyWord;
|
|
||||||
setBodyParameter("KeyWord", keyWord);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaApplicationsRequest::getQuotaCategory()const
|
void ListQuotaApplicationsRequest::setKeyWord(const std::string &keyWord) {
|
||||||
{
|
keyWord_ = keyWord;
|
||||||
return quotaCategory_;
|
setBodyParameter(std::string("KeyWord"), keyWord);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setQuotaCategory(const std::string& quotaCategory)
|
std::string ListQuotaApplicationsRequest::getQuotaCategory() const {
|
||||||
{
|
return quotaCategory_;
|
||||||
quotaCategory_ = quotaCategory;
|
|
||||||
setBodyParameter("QuotaCategory", quotaCategory);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int ListQuotaApplicationsRequest::getMaxResults()const
|
void ListQuotaApplicationsRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
{
|
quotaCategory_ = quotaCategory;
|
||||||
return maxResults_;
|
setBodyParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setMaxResults(int maxResults)
|
std::string ListQuotaApplicationsRequest::getOriginalContext() const {
|
||||||
{
|
return originalContext_;
|
||||||
maxResults_ = maxResults;
|
|
||||||
setBodyParameter("MaxResults", std::to_string(maxResults));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string ListQuotaApplicationsRequest::getStatus()const
|
void ListQuotaApplicationsRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
{
|
originalContext_ = originalContext;
|
||||||
return status_;
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setStatus(const std::string& status)
|
int ListQuotaApplicationsRequest::getMaxResults() const {
|
||||||
{
|
return maxResults_;
|
||||||
status_ = status;
|
|
||||||
setBodyParameter("Status", status);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<ListQuotaApplicationsRequest::Dimensions> ListQuotaApplicationsRequest::getDimensions()const
|
void ListQuotaApplicationsRequest::setMaxResults(int maxResults) {
|
||||||
{
|
maxResults_ = maxResults;
|
||||||
return dimensions_;
|
setBodyParameter(std::string("MaxResults"), std::to_string(maxResults));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ListQuotaApplicationsRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
std::string ListQuotaApplicationsRequest::getStatus() const {
|
||||||
{
|
return status_;
|
||||||
dimensions_ = dimensions;
|
}
|
||||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
|
||||||
auto dimensionsObj = dimensions.at(dep1);
|
void ListQuotaApplicationsRequest::setStatus(const std::string &status) {
|
||||||
std::string dimensionsObjStr = "Dimensions." + std::to_string(dep1 + 1);
|
status_ = status;
|
||||||
setParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
setBodyParameter(std::string("Status"), status);
|
||||||
setParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
}
|
||||||
}
|
|
||||||
|
std::vector<ListQuotaApplicationsRequest::Dimensions> ListQuotaApplicationsRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ListQuotaApplicationsRequest::setDimensions(const std::vector<ListQuotaApplicationsRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,40 +45,40 @@ void ListQuotaApplicationsResult::parse(const std::string &payload)
|
|||||||
QuotaApplicationsItem quotaApplicationsObject;
|
QuotaApplicationsItem quotaApplicationsObject;
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["Status"].isNull())
|
if(!valueQuotaApplicationsQuotaApplicationsItem["Status"].isNull())
|
||||||
quotaApplicationsObject.status = valueQuotaApplicationsQuotaApplicationsItem["Status"].asString();
|
quotaApplicationsObject.status = valueQuotaApplicationsQuotaApplicationsItem["Status"].asString();
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["ApplyTime"].isNull())
|
|
||||||
quotaApplicationsObject.applyTime = valueQuotaApplicationsQuotaApplicationsItem["ApplyTime"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["Comment"].isNull())
|
if(!valueQuotaApplicationsQuotaApplicationsItem["Comment"].isNull())
|
||||||
quotaApplicationsObject.comment = valueQuotaApplicationsQuotaApplicationsItem["Comment"].asString();
|
quotaApplicationsObject.comment = valueQuotaApplicationsQuotaApplicationsItem["Comment"].asString();
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaDescription"].isNull())
|
|
||||||
quotaApplicationsObject.quotaDescription = valueQuotaApplicationsQuotaApplicationsItem["QuotaDescription"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["ProductCode"].isNull())
|
|
||||||
quotaApplicationsObject.productCode = valueQuotaApplicationsQuotaApplicationsItem["ProductCode"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["EffectiveTime"].isNull())
|
|
||||||
quotaApplicationsObject.effectiveTime = valueQuotaApplicationsQuotaApplicationsItem["EffectiveTime"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["AuditReason"].isNull())
|
|
||||||
quotaApplicationsObject.auditReason = valueQuotaApplicationsQuotaApplicationsItem["AuditReason"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaUnit"].isNull())
|
|
||||||
quotaApplicationsObject.quotaUnit = valueQuotaApplicationsQuotaApplicationsItem["QuotaUnit"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["Dimension"].isNull())
|
|
||||||
quotaApplicationsObject.dimension = valueQuotaApplicationsQuotaApplicationsItem["Dimension"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["ApproveValue"].isNull())
|
|
||||||
quotaApplicationsObject.approveValue = std::stof(valueQuotaApplicationsQuotaApplicationsItem["ApproveValue"].asString());
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["Reason"].isNull())
|
|
||||||
quotaApplicationsObject.reason = valueQuotaApplicationsQuotaApplicationsItem["Reason"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaActionCode"].isNull())
|
|
||||||
quotaApplicationsObject.quotaActionCode = valueQuotaApplicationsQuotaApplicationsItem["QuotaActionCode"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaName"].isNull())
|
|
||||||
quotaApplicationsObject.quotaName = valueQuotaApplicationsQuotaApplicationsItem["QuotaName"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaArn"].isNull())
|
|
||||||
quotaApplicationsObject.quotaArn = valueQuotaApplicationsQuotaApplicationsItem["QuotaArn"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["NoticeType"].isNull())
|
|
||||||
quotaApplicationsObject.noticeType = std::stoi(valueQuotaApplicationsQuotaApplicationsItem["NoticeType"].asString());
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["ApplicationId"].isNull())
|
|
||||||
quotaApplicationsObject.applicationId = valueQuotaApplicationsQuotaApplicationsItem["ApplicationId"].asString();
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["DesireValue"].isNull())
|
|
||||||
quotaApplicationsObject.desireValue = std::stof(valueQuotaApplicationsQuotaApplicationsItem["DesireValue"].asString());
|
|
||||||
if(!valueQuotaApplicationsQuotaApplicationsItem["ExpireTime"].isNull())
|
if(!valueQuotaApplicationsQuotaApplicationsItem["ExpireTime"].isNull())
|
||||||
quotaApplicationsObject.expireTime = valueQuotaApplicationsQuotaApplicationsItem["ExpireTime"].asString();
|
quotaApplicationsObject.expireTime = valueQuotaApplicationsQuotaApplicationsItem["ExpireTime"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaUnit"].isNull())
|
||||||
|
quotaApplicationsObject.quotaUnit = valueQuotaApplicationsQuotaApplicationsItem["QuotaUnit"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["DesireValue"].isNull())
|
||||||
|
quotaApplicationsObject.desireValue = std::stof(valueQuotaApplicationsQuotaApplicationsItem["DesireValue"].asString());
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["NoticeType"].isNull())
|
||||||
|
quotaApplicationsObject.noticeType = std::stoi(valueQuotaApplicationsQuotaApplicationsItem["NoticeType"].asString());
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaActionCode"].isNull())
|
||||||
|
quotaApplicationsObject.quotaActionCode = valueQuotaApplicationsQuotaApplicationsItem["QuotaActionCode"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["Dimension"].isNull())
|
||||||
|
quotaApplicationsObject.dimension = valueQuotaApplicationsQuotaApplicationsItem["Dimension"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaDescription"].isNull())
|
||||||
|
quotaApplicationsObject.quotaDescription = valueQuotaApplicationsQuotaApplicationsItem["QuotaDescription"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaArn"].isNull())
|
||||||
|
quotaApplicationsObject.quotaArn = valueQuotaApplicationsQuotaApplicationsItem["QuotaArn"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["EffectiveTime"].isNull())
|
||||||
|
quotaApplicationsObject.effectiveTime = valueQuotaApplicationsQuotaApplicationsItem["EffectiveTime"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["ApproveValue"].isNull())
|
||||||
|
quotaApplicationsObject.approveValue = std::stof(valueQuotaApplicationsQuotaApplicationsItem["ApproveValue"].asString());
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["QuotaName"].isNull())
|
||||||
|
quotaApplicationsObject.quotaName = valueQuotaApplicationsQuotaApplicationsItem["QuotaName"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["ApplicationId"].isNull())
|
||||||
|
quotaApplicationsObject.applicationId = valueQuotaApplicationsQuotaApplicationsItem["ApplicationId"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["AuditReason"].isNull())
|
||||||
|
quotaApplicationsObject.auditReason = valueQuotaApplicationsQuotaApplicationsItem["AuditReason"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["Reason"].isNull())
|
||||||
|
quotaApplicationsObject.reason = valueQuotaApplicationsQuotaApplicationsItem["Reason"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["ApplyTime"].isNull())
|
||||||
|
quotaApplicationsObject.applyTime = valueQuotaApplicationsQuotaApplicationsItem["ApplyTime"].asString();
|
||||||
|
if(!valueQuotaApplicationsQuotaApplicationsItem["ProductCode"].isNull())
|
||||||
|
quotaApplicationsObject.productCode = valueQuotaApplicationsQuotaApplicationsItem["ProductCode"].asString();
|
||||||
auto periodNode = value["Period"];
|
auto periodNode = value["Period"];
|
||||||
if(!periodNode["PeriodValue"].isNull())
|
if(!periodNode["PeriodValue"].isNull())
|
||||||
quotaApplicationsObject.period.periodValue = std::stol(periodNode["PeriodValue"].asString());
|
quotaApplicationsObject.period.periodValue = std::stol(periodNode["PeriodValue"].asString());
|
||||||
|
|||||||
45
quotas/src/model/ModifyQuotaTemplateServiceStatusRequest.cc
Normal file
45
quotas/src/model/ModifyQuotaTemplateServiceStatusRequest.cc
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/ModifyQuotaTemplateServiceStatusRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::ModifyQuotaTemplateServiceStatusRequest;
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusRequest::ModifyQuotaTemplateServiceStatusRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "ModifyQuotaTemplateServiceStatus") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusRequest::~ModifyQuotaTemplateServiceStatusRequest() {}
|
||||||
|
|
||||||
|
std::string ModifyQuotaTemplateServiceStatusRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyQuotaTemplateServiceStatusRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
int ModifyQuotaTemplateServiceStatusRequest::getServiceStatus() const {
|
||||||
|
return serviceStatus_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyQuotaTemplateServiceStatusRequest::setServiceStatus(int serviceStatus) {
|
||||||
|
serviceStatus_ = serviceStatus;
|
||||||
|
setBodyParameter(std::string("ServiceStatus"), std::to_string(serviceStatus));
|
||||||
|
}
|
||||||
|
|
||||||
54
quotas/src/model/ModifyQuotaTemplateServiceStatusResult.cc
Normal file
54
quotas/src/model/ModifyQuotaTemplateServiceStatusResult.cc
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <alibabacloud/quotas/model/ModifyQuotaTemplateServiceStatusResult.h>
|
||||||
|
#include <json/json.h>
|
||||||
|
|
||||||
|
using namespace AlibabaCloud::Quotas;
|
||||||
|
using namespace AlibabaCloud::Quotas::Model;
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusResult::ModifyQuotaTemplateServiceStatusResult() :
|
||||||
|
ServiceResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusResult::ModifyQuotaTemplateServiceStatusResult(const std::string &payload) :
|
||||||
|
ServiceResult()
|
||||||
|
{
|
||||||
|
parse(payload);
|
||||||
|
}
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusResult::~ModifyQuotaTemplateServiceStatusResult()
|
||||||
|
{}
|
||||||
|
|
||||||
|
void ModifyQuotaTemplateServiceStatusResult::parse(const std::string &payload)
|
||||||
|
{
|
||||||
|
Json::Reader reader;
|
||||||
|
Json::Value value;
|
||||||
|
reader.parse(payload, value);
|
||||||
|
setRequestId(value["RequestId"].asString());
|
||||||
|
auto templateServiceStatusNode = value["TemplateServiceStatus"];
|
||||||
|
if(!templateServiceStatusNode["ServiceStatus"].isNull())
|
||||||
|
templateServiceStatus_.serviceStatus = std::stoi(templateServiceStatusNode["ServiceStatus"].asString());
|
||||||
|
if(!templateServiceStatusNode["ResourceDirectoryId"].isNull())
|
||||||
|
templateServiceStatus_.resourceDirectoryId = templateServiceStatusNode["ResourceDirectoryId"].asString();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
ModifyQuotaTemplateServiceStatusResult::TemplateServiceStatus ModifyQuotaTemplateServiceStatusResult::getTemplateServiceStatus()const
|
||||||
|
{
|
||||||
|
return templateServiceStatus_;
|
||||||
|
}
|
||||||
|
|
||||||
131
quotas/src/model/ModifyTemplateQuotaItemRequest.cc
Normal file
131
quotas/src/model/ModifyTemplateQuotaItemRequest.cc
Normal file
@@ -0,0 +1,131 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT 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/quotas/model/ModifyTemplateQuotaItemRequest.h>
|
||||||
|
|
||||||
|
using AlibabaCloud::Quotas::Model::ModifyTemplateQuotaItemRequest;
|
||||||
|
|
||||||
|
ModifyTemplateQuotaItemRequest::ModifyTemplateQuotaItemRequest()
|
||||||
|
: RpcServiceRequest("quotas", "2020-05-10", "ModifyTemplateQuotaItem") {
|
||||||
|
setMethod(HttpRequest::Method::Post);
|
||||||
|
}
|
||||||
|
|
||||||
|
ModifyTemplateQuotaItemRequest::~ModifyTemplateQuotaItemRequest() {}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getProductCode() const {
|
||||||
|
return productCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setProductCode(const std::string &productCode) {
|
||||||
|
productCode_ = productCode;
|
||||||
|
setBodyParameter(std::string("ProductCode"), productCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getQuotaActionCode() const {
|
||||||
|
return quotaActionCode_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setQuotaActionCode(const std::string "aActionCode) {
|
||||||
|
quotaActionCode_ = quotaActionCode;
|
||||||
|
setBodyParameter(std::string("QuotaActionCode"), quotaActionCode);
|
||||||
|
}
|
||||||
|
|
||||||
|
float ModifyTemplateQuotaItemRequest::getDesireValue() const {
|
||||||
|
return desireValue_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setDesireValue(float desireValue) {
|
||||||
|
desireValue_ = desireValue;
|
||||||
|
setBodyParameter(std::string("DesireValue"), std::to_string(desireValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getEffectiveTime() const {
|
||||||
|
return effectiveTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setEffectiveTime(const std::string &effectiveTime) {
|
||||||
|
effectiveTime_ = effectiveTime;
|
||||||
|
setBodyParameter(std::string("EffectiveTime"), effectiveTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getId() const {
|
||||||
|
return id_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setId(const std::string &id) {
|
||||||
|
id_ = id;
|
||||||
|
setBodyParameter(std::string("Id"), id);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getQuotaCategory() const {
|
||||||
|
return quotaCategory_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setQuotaCategory(const std::string "aCategory) {
|
||||||
|
quotaCategory_ = quotaCategory;
|
||||||
|
setParameter(std::string("QuotaCategory"), quotaCategory);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getOriginalContext() const {
|
||||||
|
return originalContext_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setOriginalContext(const std::string &originalContext) {
|
||||||
|
originalContext_ = originalContext;
|
||||||
|
setBodyParameter(std::string("OriginalContext"), originalContext);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getExpireTime() const {
|
||||||
|
return expireTime_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setExpireTime(const std::string &expireTime) {
|
||||||
|
expireTime_ = expireTime;
|
||||||
|
setBodyParameter(std::string("ExpireTime"), expireTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
std::string ModifyTemplateQuotaItemRequest::getEnvLanguage() const {
|
||||||
|
return envLanguage_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setEnvLanguage(const std::string &envLanguage) {
|
||||||
|
envLanguage_ = envLanguage;
|
||||||
|
setBodyParameter(std::string("EnvLanguage"), envLanguage);
|
||||||
|
}
|
||||||
|
|
||||||
|
long ModifyTemplateQuotaItemRequest::getNoticeType() const {
|
||||||
|
return noticeType_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setNoticeType(long noticeType) {
|
||||||
|
noticeType_ = noticeType;
|
||||||
|
setBodyParameter(std::string("NoticeType"), std::to_string(noticeType));
|
||||||
|
}
|
||||||
|
|
||||||
|
std::vector<ModifyTemplateQuotaItemRequest::Dimensions> ModifyTemplateQuotaItemRequest::getDimensions() const {
|
||||||
|
return dimensions_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ModifyTemplateQuotaItemRequest::setDimensions(const std::vector<ModifyTemplateQuotaItemRequest::Dimensions> &dimensions) {
|
||||||
|
dimensions_ = dimensions;
|
||||||
|
for(int dep1 = 0; dep1 != dimensions.size(); dep1++) {
|
||||||
|
auto dimensionsObj = dimensions.at(dep1);
|
||||||
|
std::string dimensionsObjStr = std::string("Dimensions") + "." + std::to_string(dep1 + 1);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||||
|
setBodyParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user