From 9db0b784a47ac27252d0c7cff57f3e16856ff3e1 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 10 Feb 2023 08:23:23 +0000 Subject: [PATCH] Add service label api. --- VERSION | 2 +- eas/CMakeLists.txt | 40 ++ eas/include/alibabacloud/eas/EasClient.h | 80 ++++ .../eas/model/CommitServiceRequest.h | 45 +++ .../eas/model/CommitServiceResult.h | 51 +++ .../eas/model/CreateBenchmarkTaskRequest.h | 6 +- .../eas/model/CreateBenchmarkTaskResult.h | 4 +- .../model/CreateResourceInstancesRequest.h | 12 +- .../eas/model/CreateResourceLogRequest.h | 12 +- .../model/CreateServiceAutoScalerRequest.h | 12 +- .../model/CreateServiceCronScalerRequest.h | 12 +- .../eas/model/CreateServiceMirrorRequest.h | 12 +- .../eas/model/CreateServiceRequest.h | 12 +- .../eas/model/DeleteBenchmarkTaskRequest.h | 12 +- .../eas/model/DeleteResourceDLinkRequest.h | 12 +- .../model/DeleteResourceInstancesRequest.h | 24 +- .../eas/model/DeleteResourceLogRequest.h | 12 +- .../eas/model/DeleteResourceRequest.h | 12 +- .../model/DeleteServiceAutoScalerRequest.h | 12 +- .../model/DeleteServiceCronScalerRequest.h | 12 +- .../eas/model/DeleteServiceInstancesRequest.h | 18 +- .../eas/model/DeleteServiceLabelRequest.h | 45 +++ .../eas/model/DeleteServiceLabelResult.h | 51 +++ .../eas/model/DeleteServiceMirrorRequest.h | 12 +- .../eas/model/DeleteServiceRequest.h | 12 +- .../DescribeBenchmarkTaskReportRequest.h | 15 +- .../model/DescribeBenchmarkTaskReportResult.h | 2 + .../eas/model/DescribeBenchmarkTaskRequest.h | 12 +- .../eas/model/DescribeBenchmarkTaskResult.h | 2 + .../eas/model/DescribeGroupRequest.h | 45 +++ .../eas/model/DescribeGroupResult.h | 65 ++++ .../eas/model/DescribeResourceDLinkRequest.h | 12 +- .../eas/model/DescribeResourceLogRequest.h | 12 +- .../eas/model/DescribeResourceRequest.h | 12 +- .../model/DescribeServiceAutoScalerRequest.h | 12 +- .../model/DescribeServiceAutoScalerResult.h | 22 +- .../model/DescribeServiceCronScalerRequest.h | 12 +- .../eas/model/DescribeServiceEventRequest.h | 57 +++ .../eas/model/DescribeServiceEventResult.h | 64 ++++ .../eas/model/DescribeServiceLogRequest.h | 48 +-- .../eas/model/DescribeServiceMirrorRequest.h | 12 +- .../eas/model/DescribeServiceRequest.h | 12 +- .../eas/model/DescribeServiceResult.h | 21 + .../eas/model/DevelopServiceRequest.h | 48 +++ .../eas/model/DevelopServiceResult.h | 51 +++ .../eas/model/ListBenchmarkTaskRequest.h | 12 + .../eas/model/ListBenchmarkTaskResult.h | 6 + .../eas/model/ListGroupsRequest.h | 48 +++ .../alibabacloud/eas/model/ListGroupsResult.h | 68 ++++ .../model/ListResourceInstanceWorkerRequest.h | 30 +- .../eas/model/ListResourceInstancesRequest.h | 36 +- .../eas/model/ListResourceInstancesResult.h | 8 +- .../eas/model/ListResourceServicesRequest.h | 24 +- .../eas/model/ListResourceServicesResult.h | 13 + .../eas/model/ListResourcesRequest.h | 18 +- .../eas/model/ListServiceInstancesRequest.h | 24 +- .../eas/model/ListServiceInstancesResult.h | 4 + .../eas/model/ListServiceVersionsRequest.h | 51 +++ .../eas/model/ListServiceVersionsResult.h | 65 ++++ .../eas/model/ListServicesRequest.h | 42 +- .../eas/model/ListServicesResult.h | 13 + .../eas/model/ReleaseServiceRequest.h | 12 +- .../eas/model/StartBenchmarkTaskRequest.h | 12 +- .../eas/model/StartServiceRequest.h | 12 +- .../eas/model/StopBenchmarkTaskRequest.h | 12 +- .../eas/model/StopServiceRequest.h | 12 +- .../eas/model/UpdateBenchmarkTaskRequest.h | 18 +- .../eas/model/UpdateResourceDLinkRequest.h | 12 +- .../eas/model/UpdateResourceInstanceRequest.h | 51 +++ .../eas/model/UpdateResourceInstanceResult.h | 53 +++ .../eas/model/UpdateResourceRequest.h | 12 +- .../model/UpdateServiceAutoScalerRequest.h | 12 +- .../model/UpdateServiceCronScalerRequest.h | 12 +- .../eas/model/UpdateServiceLabelRequest.h | 48 +++ .../eas/model/UpdateServiceLabelResult.h | 51 +++ .../eas/model/UpdateServiceMirrorRequest.h | 12 +- .../eas/model/UpdateServiceRequest.h | 18 +- .../model/UpdateServiceSafetyLockRequest.h | 48 +++ .../eas/model/UpdateServiceSafetyLockResult.h | 51 +++ .../eas/model/UpdateServiceVersionRequest.h | 12 +- eas/src/EasClient.cc | 360 ++++++++++++++++++ eas/src/model/CommitServiceRequest.cc | 46 +++ eas/src/model/CommitServiceResult.cc | 51 +++ eas/src/model/CreateBenchmarkTaskRequest.cc | 6 +- eas/src/model/CreateBenchmarkTaskResult.cc | 14 +- .../model/CreateResourceInstancesRequest.cc | 12 +- eas/src/model/CreateResourceLogRequest.cc | 12 +- .../model/CreateServiceAutoScalerRequest.cc | 12 +- .../model/CreateServiceCronScalerRequest.cc | 12 +- eas/src/model/CreateServiceMirrorRequest.cc | 12 +- eas/src/model/CreateServiceRequest.cc | 24 +- eas/src/model/DeleteBenchmarkTaskRequest.cc | 12 +- eas/src/model/DeleteResourceDLinkRequest.cc | 12 +- .../model/DeleteResourceInstancesRequest.cc | 24 +- eas/src/model/DeleteResourceLogRequest.cc | 12 +- eas/src/model/DeleteResourceRequest.cc | 12 +- .../model/DeleteServiceAutoScalerRequest.cc | 12 +- .../model/DeleteServiceCronScalerRequest.cc | 12 +- .../model/DeleteServiceInstancesRequest.cc | 18 +- eas/src/model/DeleteServiceLabelRequest.cc | 46 +++ eas/src/model/DeleteServiceLabelResult.cc | 51 +++ eas/src/model/DeleteServiceMirrorRequest.cc | 12 +- eas/src/model/DeleteServiceRequest.cc | 12 +- .../DescribeBenchmarkTaskReportRequest.cc | 21 +- .../DescribeBenchmarkTaskReportResult.cc | 7 + eas/src/model/DescribeBenchmarkTaskRequest.cc | 12 +- eas/src/model/DescribeBenchmarkTaskResult.cc | 7 + eas/src/model/DescribeGroupRequest.cc | 46 +++ eas/src/model/DescribeGroupResult.cc | 100 +++++ eas/src/model/DescribeResourceDLinkRequest.cc | 12 +- eas/src/model/DescribeResourceLogRequest.cc | 12 +- eas/src/model/DescribeResourceRequest.cc | 12 +- .../model/DescribeServiceAutoScalerRequest.cc | 12 +- .../model/DescribeServiceAutoScalerResult.cc | 49 ++- .../model/DescribeServiceCronScalerRequest.cc | 12 +- eas/src/model/DescribeServiceEventRequest.cc | 82 ++++ eas/src/model/DescribeServiceEventResult.cc | 84 ++++ eas/src/model/DescribeServiceLogRequest.cc | 44 +-- eas/src/model/DescribeServiceMirrorRequest.cc | 12 +- eas/src/model/DescribeServiceRequest.cc | 12 +- eas/src/model/DescribeServiceResult.cc | 64 ++++ eas/src/model/DevelopServiceRequest.cc | 55 +++ eas/src/model/DevelopServiceResult.cc | 51 +++ eas/src/model/ListBenchmarkTaskRequest.cc | 36 ++ eas/src/model/ListBenchmarkTaskResult.cc | 21 + eas/src/model/ListGroupsRequest.cc | 55 +++ eas/src/model/ListGroupsResult.cc | 92 +++++ .../ListResourceInstanceWorkerRequest.cc | 26 +- eas/src/model/ListResourceInstancesRequest.cc | 44 ++- eas/src/model/ListResourceInstancesResult.cc | 14 +- eas/src/model/ListResourceServicesRequest.cc | 20 +- eas/src/model/ListResourceServicesResult.cc | 24 ++ eas/src/model/ListResourcesRequest.cc | 26 +- eas/src/model/ListServiceInstancesRequest.cc | 20 +- eas/src/model/ListServiceInstancesResult.cc | 8 + eas/src/model/ListServiceVersionsRequest.cc | 64 ++++ eas/src/model/ListServiceVersionsResult.cc | 86 +++++ eas/src/model/ListServicesRequest.cc | 62 ++- eas/src/model/ListServicesResult.cc | 24 ++ eas/src/model/ReleaseServiceRequest.cc | 12 +- eas/src/model/StartBenchmarkTaskRequest.cc | 12 +- eas/src/model/StartServiceRequest.cc | 12 +- eas/src/model/StopBenchmarkTaskRequest.cc | 12 +- eas/src/model/StopServiceRequest.cc | 12 +- eas/src/model/UpdateBenchmarkTaskRequest.cc | 18 +- eas/src/model/UpdateResourceDLinkRequest.cc | 12 +- .../model/UpdateResourceInstanceRequest.cc | 64 ++++ eas/src/model/UpdateResourceInstanceResult.cc | 58 +++ eas/src/model/UpdateResourceRequest.cc | 12 +- .../model/UpdateServiceAutoScalerRequest.cc | 12 +- .../model/UpdateServiceCronScalerRequest.cc | 12 +- eas/src/model/UpdateServiceLabelRequest.cc | 55 +++ eas/src/model/UpdateServiceLabelResult.cc | 51 +++ eas/src/model/UpdateServiceMirrorRequest.cc | 12 +- eas/src/model/UpdateServiceRequest.cc | 18 +- .../model/UpdateServiceSafetyLockRequest.cc | 55 +++ .../model/UpdateServiceSafetyLockResult.cc | 51 +++ eas/src/model/UpdateServiceVersionRequest.cc | 12 +- 158 files changed, 3931 insertions(+), 697 deletions(-) create mode 100644 eas/include/alibabacloud/eas/model/CommitServiceRequest.h create mode 100644 eas/include/alibabacloud/eas/model/CommitServiceResult.h create mode 100644 eas/include/alibabacloud/eas/model/DeleteServiceLabelRequest.h create mode 100644 eas/include/alibabacloud/eas/model/DeleteServiceLabelResult.h create mode 100644 eas/include/alibabacloud/eas/model/DescribeGroupRequest.h create mode 100644 eas/include/alibabacloud/eas/model/DescribeGroupResult.h create mode 100644 eas/include/alibabacloud/eas/model/DescribeServiceEventRequest.h create mode 100644 eas/include/alibabacloud/eas/model/DescribeServiceEventResult.h create mode 100644 eas/include/alibabacloud/eas/model/DevelopServiceRequest.h create mode 100644 eas/include/alibabacloud/eas/model/DevelopServiceResult.h create mode 100644 eas/include/alibabacloud/eas/model/ListGroupsRequest.h create mode 100644 eas/include/alibabacloud/eas/model/ListGroupsResult.h create mode 100644 eas/include/alibabacloud/eas/model/ListServiceVersionsRequest.h create mode 100644 eas/include/alibabacloud/eas/model/ListServiceVersionsResult.h create mode 100644 eas/include/alibabacloud/eas/model/UpdateResourceInstanceRequest.h create mode 100644 eas/include/alibabacloud/eas/model/UpdateResourceInstanceResult.h create mode 100644 eas/include/alibabacloud/eas/model/UpdateServiceLabelRequest.h create mode 100644 eas/include/alibabacloud/eas/model/UpdateServiceLabelResult.h create mode 100644 eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockRequest.h create mode 100644 eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockResult.h create mode 100644 eas/src/model/CommitServiceRequest.cc create mode 100644 eas/src/model/CommitServiceResult.cc create mode 100644 eas/src/model/DeleteServiceLabelRequest.cc create mode 100644 eas/src/model/DeleteServiceLabelResult.cc create mode 100644 eas/src/model/DescribeGroupRequest.cc create mode 100644 eas/src/model/DescribeGroupResult.cc create mode 100644 eas/src/model/DescribeServiceEventRequest.cc create mode 100644 eas/src/model/DescribeServiceEventResult.cc create mode 100644 eas/src/model/DevelopServiceRequest.cc create mode 100644 eas/src/model/DevelopServiceResult.cc create mode 100644 eas/src/model/ListGroupsRequest.cc create mode 100644 eas/src/model/ListGroupsResult.cc create mode 100644 eas/src/model/ListServiceVersionsRequest.cc create mode 100644 eas/src/model/ListServiceVersionsResult.cc create mode 100644 eas/src/model/UpdateResourceInstanceRequest.cc create mode 100644 eas/src/model/UpdateResourceInstanceResult.cc create mode 100644 eas/src/model/UpdateServiceLabelRequest.cc create mode 100644 eas/src/model/UpdateServiceLabelResult.cc create mode 100644 eas/src/model/UpdateServiceSafetyLockRequest.cc create mode 100644 eas/src/model/UpdateServiceSafetyLockResult.cc diff --git a/VERSION b/VERSION index 87c6ca060..4733b4150 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1444 \ No newline at end of file +1.36.1445 \ No newline at end of file diff --git a/eas/CMakeLists.txt b/eas/CMakeLists.txt index ef6a1800f..b73567f30 100644 --- a/eas/CMakeLists.txt +++ b/eas/CMakeLists.txt @@ -21,6 +21,8 @@ set(eas_public_header include/alibabacloud/eas/EasExport.h ) set(eas_public_header_model + include/alibabacloud/eas/model/CommitServiceRequest.h + include/alibabacloud/eas/model/CommitServiceResult.h include/alibabacloud/eas/model/CreateBenchmarkTaskRequest.h include/alibabacloud/eas/model/CreateBenchmarkTaskResult.h include/alibabacloud/eas/model/CreateResourceRequest.h @@ -55,12 +57,16 @@ set(eas_public_header_model include/alibabacloud/eas/model/DeleteServiceCronScalerResult.h include/alibabacloud/eas/model/DeleteServiceInstancesRequest.h include/alibabacloud/eas/model/DeleteServiceInstancesResult.h + include/alibabacloud/eas/model/DeleteServiceLabelRequest.h + include/alibabacloud/eas/model/DeleteServiceLabelResult.h include/alibabacloud/eas/model/DeleteServiceMirrorRequest.h include/alibabacloud/eas/model/DeleteServiceMirrorResult.h include/alibabacloud/eas/model/DescribeBenchmarkTaskRequest.h include/alibabacloud/eas/model/DescribeBenchmarkTaskResult.h include/alibabacloud/eas/model/DescribeBenchmarkTaskReportRequest.h include/alibabacloud/eas/model/DescribeBenchmarkTaskReportResult.h + include/alibabacloud/eas/model/DescribeGroupRequest.h + include/alibabacloud/eas/model/DescribeGroupResult.h include/alibabacloud/eas/model/DescribeResourceRequest.h include/alibabacloud/eas/model/DescribeResourceResult.h include/alibabacloud/eas/model/DescribeResourceDLinkRequest.h @@ -73,12 +79,18 @@ set(eas_public_header_model include/alibabacloud/eas/model/DescribeServiceAutoScalerResult.h include/alibabacloud/eas/model/DescribeServiceCronScalerRequest.h include/alibabacloud/eas/model/DescribeServiceCronScalerResult.h + include/alibabacloud/eas/model/DescribeServiceEventRequest.h + include/alibabacloud/eas/model/DescribeServiceEventResult.h include/alibabacloud/eas/model/DescribeServiceLogRequest.h include/alibabacloud/eas/model/DescribeServiceLogResult.h include/alibabacloud/eas/model/DescribeServiceMirrorRequest.h include/alibabacloud/eas/model/DescribeServiceMirrorResult.h + include/alibabacloud/eas/model/DevelopServiceRequest.h + include/alibabacloud/eas/model/DevelopServiceResult.h include/alibabacloud/eas/model/ListBenchmarkTaskRequest.h include/alibabacloud/eas/model/ListBenchmarkTaskResult.h + include/alibabacloud/eas/model/ListGroupsRequest.h + include/alibabacloud/eas/model/ListGroupsResult.h include/alibabacloud/eas/model/ListResourceInstanceWorkerRequest.h include/alibabacloud/eas/model/ListResourceInstanceWorkerResult.h include/alibabacloud/eas/model/ListResourceInstancesRequest.h @@ -89,6 +101,8 @@ set(eas_public_header_model include/alibabacloud/eas/model/ListResourcesResult.h include/alibabacloud/eas/model/ListServiceInstancesRequest.h include/alibabacloud/eas/model/ListServiceInstancesResult.h + include/alibabacloud/eas/model/ListServiceVersionsRequest.h + include/alibabacloud/eas/model/ListServiceVersionsResult.h include/alibabacloud/eas/model/ListServicesRequest.h include/alibabacloud/eas/model/ListServicesResult.h include/alibabacloud/eas/model/ReleaseServiceRequest.h @@ -107,19 +121,27 @@ set(eas_public_header_model include/alibabacloud/eas/model/UpdateResourceResult.h include/alibabacloud/eas/model/UpdateResourceDLinkRequest.h include/alibabacloud/eas/model/UpdateResourceDLinkResult.h + include/alibabacloud/eas/model/UpdateResourceInstanceRequest.h + include/alibabacloud/eas/model/UpdateResourceInstanceResult.h include/alibabacloud/eas/model/UpdateServiceRequest.h include/alibabacloud/eas/model/UpdateServiceResult.h include/alibabacloud/eas/model/UpdateServiceAutoScalerRequest.h include/alibabacloud/eas/model/UpdateServiceAutoScalerResult.h include/alibabacloud/eas/model/UpdateServiceCronScalerRequest.h include/alibabacloud/eas/model/UpdateServiceCronScalerResult.h + include/alibabacloud/eas/model/UpdateServiceLabelRequest.h + include/alibabacloud/eas/model/UpdateServiceLabelResult.h include/alibabacloud/eas/model/UpdateServiceMirrorRequest.h include/alibabacloud/eas/model/UpdateServiceMirrorResult.h + include/alibabacloud/eas/model/UpdateServiceSafetyLockRequest.h + include/alibabacloud/eas/model/UpdateServiceSafetyLockResult.h include/alibabacloud/eas/model/UpdateServiceVersionRequest.h include/alibabacloud/eas/model/UpdateServiceVersionResult.h ) set(eas_src src/EasClient.cc + src/model/CommitServiceRequest.cc + src/model/CommitServiceResult.cc src/model/CreateBenchmarkTaskRequest.cc src/model/CreateBenchmarkTaskResult.cc src/model/CreateResourceRequest.cc @@ -154,12 +176,16 @@ set(eas_src src/model/DeleteServiceCronScalerResult.cc src/model/DeleteServiceInstancesRequest.cc src/model/DeleteServiceInstancesResult.cc + src/model/DeleteServiceLabelRequest.cc + src/model/DeleteServiceLabelResult.cc src/model/DeleteServiceMirrorRequest.cc src/model/DeleteServiceMirrorResult.cc src/model/DescribeBenchmarkTaskRequest.cc src/model/DescribeBenchmarkTaskResult.cc src/model/DescribeBenchmarkTaskReportRequest.cc src/model/DescribeBenchmarkTaskReportResult.cc + src/model/DescribeGroupRequest.cc + src/model/DescribeGroupResult.cc src/model/DescribeResourceRequest.cc src/model/DescribeResourceResult.cc src/model/DescribeResourceDLinkRequest.cc @@ -172,12 +198,18 @@ set(eas_src src/model/DescribeServiceAutoScalerResult.cc src/model/DescribeServiceCronScalerRequest.cc src/model/DescribeServiceCronScalerResult.cc + src/model/DescribeServiceEventRequest.cc + src/model/DescribeServiceEventResult.cc src/model/DescribeServiceLogRequest.cc src/model/DescribeServiceLogResult.cc src/model/DescribeServiceMirrorRequest.cc src/model/DescribeServiceMirrorResult.cc + src/model/DevelopServiceRequest.cc + src/model/DevelopServiceResult.cc src/model/ListBenchmarkTaskRequest.cc src/model/ListBenchmarkTaskResult.cc + src/model/ListGroupsRequest.cc + src/model/ListGroupsResult.cc src/model/ListResourceInstanceWorkerRequest.cc src/model/ListResourceInstanceWorkerResult.cc src/model/ListResourceInstancesRequest.cc @@ -188,6 +220,8 @@ set(eas_src src/model/ListResourcesResult.cc src/model/ListServiceInstancesRequest.cc src/model/ListServiceInstancesResult.cc + src/model/ListServiceVersionsRequest.cc + src/model/ListServiceVersionsResult.cc src/model/ListServicesRequest.cc src/model/ListServicesResult.cc src/model/ReleaseServiceRequest.cc @@ -206,14 +240,20 @@ set(eas_src src/model/UpdateResourceResult.cc src/model/UpdateResourceDLinkRequest.cc src/model/UpdateResourceDLinkResult.cc + src/model/UpdateResourceInstanceRequest.cc + src/model/UpdateResourceInstanceResult.cc src/model/UpdateServiceRequest.cc src/model/UpdateServiceResult.cc src/model/UpdateServiceAutoScalerRequest.cc src/model/UpdateServiceAutoScalerResult.cc src/model/UpdateServiceCronScalerRequest.cc src/model/UpdateServiceCronScalerResult.cc + src/model/UpdateServiceLabelRequest.cc + src/model/UpdateServiceLabelResult.cc src/model/UpdateServiceMirrorRequest.cc src/model/UpdateServiceMirrorResult.cc + src/model/UpdateServiceSafetyLockRequest.cc + src/model/UpdateServiceSafetyLockResult.cc src/model/UpdateServiceVersionRequest.cc src/model/UpdateServiceVersionResult.cc ) diff --git a/eas/include/alibabacloud/eas/EasClient.h b/eas/include/alibabacloud/eas/EasClient.h index 8a6ec59a9..514ed5192 100644 --- a/eas/include/alibabacloud/eas/EasClient.h +++ b/eas/include/alibabacloud/eas/EasClient.h @@ -22,6 +22,8 @@ #include #include #include "EasExport.h" +#include "model/CommitServiceRequest.h" +#include "model/CommitServiceResult.h" #include "model/CreateBenchmarkTaskRequest.h" #include "model/CreateBenchmarkTaskResult.h" #include "model/CreateResourceRequest.h" @@ -56,12 +58,16 @@ #include "model/DeleteServiceCronScalerResult.h" #include "model/DeleteServiceInstancesRequest.h" #include "model/DeleteServiceInstancesResult.h" +#include "model/DeleteServiceLabelRequest.h" +#include "model/DeleteServiceLabelResult.h" #include "model/DeleteServiceMirrorRequest.h" #include "model/DeleteServiceMirrorResult.h" #include "model/DescribeBenchmarkTaskRequest.h" #include "model/DescribeBenchmarkTaskResult.h" #include "model/DescribeBenchmarkTaskReportRequest.h" #include "model/DescribeBenchmarkTaskReportResult.h" +#include "model/DescribeGroupRequest.h" +#include "model/DescribeGroupResult.h" #include "model/DescribeResourceRequest.h" #include "model/DescribeResourceResult.h" #include "model/DescribeResourceDLinkRequest.h" @@ -74,12 +80,18 @@ #include "model/DescribeServiceAutoScalerResult.h" #include "model/DescribeServiceCronScalerRequest.h" #include "model/DescribeServiceCronScalerResult.h" +#include "model/DescribeServiceEventRequest.h" +#include "model/DescribeServiceEventResult.h" #include "model/DescribeServiceLogRequest.h" #include "model/DescribeServiceLogResult.h" #include "model/DescribeServiceMirrorRequest.h" #include "model/DescribeServiceMirrorResult.h" +#include "model/DevelopServiceRequest.h" +#include "model/DevelopServiceResult.h" #include "model/ListBenchmarkTaskRequest.h" #include "model/ListBenchmarkTaskResult.h" +#include "model/ListGroupsRequest.h" +#include "model/ListGroupsResult.h" #include "model/ListResourceInstanceWorkerRequest.h" #include "model/ListResourceInstanceWorkerResult.h" #include "model/ListResourceInstancesRequest.h" @@ -90,6 +102,8 @@ #include "model/ListResourcesResult.h" #include "model/ListServiceInstancesRequest.h" #include "model/ListServiceInstancesResult.h" +#include "model/ListServiceVersionsRequest.h" +#include "model/ListServiceVersionsResult.h" #include "model/ListServicesRequest.h" #include "model/ListServicesResult.h" #include "model/ReleaseServiceRequest.h" @@ -108,14 +122,20 @@ #include "model/UpdateResourceResult.h" #include "model/UpdateResourceDLinkRequest.h" #include "model/UpdateResourceDLinkResult.h" +#include "model/UpdateResourceInstanceRequest.h" +#include "model/UpdateResourceInstanceResult.h" #include "model/UpdateServiceRequest.h" #include "model/UpdateServiceResult.h" #include "model/UpdateServiceAutoScalerRequest.h" #include "model/UpdateServiceAutoScalerResult.h" #include "model/UpdateServiceCronScalerRequest.h" #include "model/UpdateServiceCronScalerResult.h" +#include "model/UpdateServiceLabelRequest.h" +#include "model/UpdateServiceLabelResult.h" #include "model/UpdateServiceMirrorRequest.h" #include "model/UpdateServiceMirrorResult.h" +#include "model/UpdateServiceSafetyLockRequest.h" +#include "model/UpdateServiceSafetyLockResult.h" #include "model/UpdateServiceVersionRequest.h" #include "model/UpdateServiceVersionResult.h" @@ -127,6 +147,9 @@ namespace AlibabaCloud class ALIBABACLOUD_EAS_EXPORT EasClient : public RoaServiceClient { public: + typedef Outcome CommitServiceOutcome; + typedef std::future CommitServiceOutcomeCallable; + typedef std::function&)> CommitServiceAsyncHandler; typedef Outcome CreateBenchmarkTaskOutcome; typedef std::future CreateBenchmarkTaskOutcomeCallable; typedef std::function&)> CreateBenchmarkTaskAsyncHandler; @@ -178,6 +201,9 @@ namespace AlibabaCloud typedef Outcome DeleteServiceInstancesOutcome; typedef std::future DeleteServiceInstancesOutcomeCallable; typedef std::function&)> DeleteServiceInstancesAsyncHandler; + typedef Outcome DeleteServiceLabelOutcome; + typedef std::future DeleteServiceLabelOutcomeCallable; + typedef std::function&)> DeleteServiceLabelAsyncHandler; typedef Outcome DeleteServiceMirrorOutcome; typedef std::future DeleteServiceMirrorOutcomeCallable; typedef std::function&)> DeleteServiceMirrorAsyncHandler; @@ -187,6 +213,9 @@ namespace AlibabaCloud typedef Outcome DescribeBenchmarkTaskReportOutcome; typedef std::future DescribeBenchmarkTaskReportOutcomeCallable; typedef std::function&)> DescribeBenchmarkTaskReportAsyncHandler; + typedef Outcome DescribeGroupOutcome; + typedef std::future DescribeGroupOutcomeCallable; + typedef std::function&)> DescribeGroupAsyncHandler; typedef Outcome DescribeResourceOutcome; typedef std::future DescribeResourceOutcomeCallable; typedef std::function&)> DescribeResourceAsyncHandler; @@ -205,15 +234,24 @@ namespace AlibabaCloud typedef Outcome DescribeServiceCronScalerOutcome; typedef std::future DescribeServiceCronScalerOutcomeCallable; typedef std::function&)> DescribeServiceCronScalerAsyncHandler; + typedef Outcome DescribeServiceEventOutcome; + typedef std::future DescribeServiceEventOutcomeCallable; + typedef std::function&)> DescribeServiceEventAsyncHandler; typedef Outcome DescribeServiceLogOutcome; typedef std::future DescribeServiceLogOutcomeCallable; typedef std::function&)> DescribeServiceLogAsyncHandler; typedef Outcome DescribeServiceMirrorOutcome; typedef std::future DescribeServiceMirrorOutcomeCallable; typedef std::function&)> DescribeServiceMirrorAsyncHandler; + typedef Outcome DevelopServiceOutcome; + typedef std::future DevelopServiceOutcomeCallable; + typedef std::function&)> DevelopServiceAsyncHandler; typedef Outcome ListBenchmarkTaskOutcome; typedef std::future ListBenchmarkTaskOutcomeCallable; typedef std::function&)> ListBenchmarkTaskAsyncHandler; + typedef Outcome ListGroupsOutcome; + typedef std::future ListGroupsOutcomeCallable; + typedef std::function&)> ListGroupsAsyncHandler; typedef Outcome ListResourceInstanceWorkerOutcome; typedef std::future ListResourceInstanceWorkerOutcomeCallable; typedef std::function&)> ListResourceInstanceWorkerAsyncHandler; @@ -229,6 +267,9 @@ namespace AlibabaCloud typedef Outcome ListServiceInstancesOutcome; typedef std::future ListServiceInstancesOutcomeCallable; typedef std::function&)> ListServiceInstancesAsyncHandler; + typedef Outcome ListServiceVersionsOutcome; + typedef std::future ListServiceVersionsOutcomeCallable; + typedef std::function&)> ListServiceVersionsAsyncHandler; typedef Outcome ListServicesOutcome; typedef std::future ListServicesOutcomeCallable; typedef std::function&)> ListServicesAsyncHandler; @@ -256,6 +297,9 @@ namespace AlibabaCloud typedef Outcome UpdateResourceDLinkOutcome; typedef std::future UpdateResourceDLinkOutcomeCallable; typedef std::function&)> UpdateResourceDLinkAsyncHandler; + typedef Outcome UpdateResourceInstanceOutcome; + typedef std::future UpdateResourceInstanceOutcomeCallable; + typedef std::function&)> UpdateResourceInstanceAsyncHandler; typedef Outcome UpdateServiceOutcome; typedef std::future UpdateServiceOutcomeCallable; typedef std::function&)> UpdateServiceAsyncHandler; @@ -265,9 +309,15 @@ namespace AlibabaCloud typedef Outcome UpdateServiceCronScalerOutcome; typedef std::future UpdateServiceCronScalerOutcomeCallable; typedef std::function&)> UpdateServiceCronScalerAsyncHandler; + typedef Outcome UpdateServiceLabelOutcome; + typedef std::future UpdateServiceLabelOutcomeCallable; + typedef std::function&)> UpdateServiceLabelAsyncHandler; typedef Outcome UpdateServiceMirrorOutcome; typedef std::future UpdateServiceMirrorOutcomeCallable; typedef std::function&)> UpdateServiceMirrorAsyncHandler; + typedef Outcome UpdateServiceSafetyLockOutcome; + typedef std::future UpdateServiceSafetyLockOutcomeCallable; + typedef std::function&)> UpdateServiceSafetyLockAsyncHandler; typedef Outcome UpdateServiceVersionOutcome; typedef std::future UpdateServiceVersionOutcomeCallable; typedef std::function&)> UpdateServiceVersionAsyncHandler; @@ -276,6 +326,9 @@ namespace AlibabaCloud EasClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); EasClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~EasClient(); + CommitServiceOutcome commitService(const Model::CommitServiceRequest &request)const; + void commitServiceAsync(const Model::CommitServiceRequest& request, const CommitServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CommitServiceOutcomeCallable commitServiceCallable(const Model::CommitServiceRequest& request) const; CreateBenchmarkTaskOutcome createBenchmarkTask(const Model::CreateBenchmarkTaskRequest &request)const; void createBenchmarkTaskAsync(const Model::CreateBenchmarkTaskRequest& request, const CreateBenchmarkTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBenchmarkTaskOutcomeCallable createBenchmarkTaskCallable(const Model::CreateBenchmarkTaskRequest& request) const; @@ -327,6 +380,9 @@ namespace AlibabaCloud DeleteServiceInstancesOutcome deleteServiceInstances(const Model::DeleteServiceInstancesRequest &request)const; void deleteServiceInstancesAsync(const Model::DeleteServiceInstancesRequest& request, const DeleteServiceInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteServiceInstancesOutcomeCallable deleteServiceInstancesCallable(const Model::DeleteServiceInstancesRequest& request) const; + DeleteServiceLabelOutcome deleteServiceLabel(const Model::DeleteServiceLabelRequest &request)const; + void deleteServiceLabelAsync(const Model::DeleteServiceLabelRequest& request, const DeleteServiceLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServiceLabelOutcomeCallable deleteServiceLabelCallable(const Model::DeleteServiceLabelRequest& request) const; DeleteServiceMirrorOutcome deleteServiceMirror(const Model::DeleteServiceMirrorRequest &request)const; void deleteServiceMirrorAsync(const Model::DeleteServiceMirrorRequest& request, const DeleteServiceMirrorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteServiceMirrorOutcomeCallable deleteServiceMirrorCallable(const Model::DeleteServiceMirrorRequest& request) const; @@ -336,6 +392,9 @@ namespace AlibabaCloud DescribeBenchmarkTaskReportOutcome describeBenchmarkTaskReport(const Model::DescribeBenchmarkTaskReportRequest &request)const; void describeBenchmarkTaskReportAsync(const Model::DescribeBenchmarkTaskReportRequest& request, const DescribeBenchmarkTaskReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeBenchmarkTaskReportOutcomeCallable describeBenchmarkTaskReportCallable(const Model::DescribeBenchmarkTaskReportRequest& request) const; + DescribeGroupOutcome describeGroup(const Model::DescribeGroupRequest &request)const; + void describeGroupAsync(const Model::DescribeGroupRequest& request, const DescribeGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupOutcomeCallable describeGroupCallable(const Model::DescribeGroupRequest& request) const; DescribeResourceOutcome describeResource(const Model::DescribeResourceRequest &request)const; void describeResourceAsync(const Model::DescribeResourceRequest& request, const DescribeResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeResourceOutcomeCallable describeResourceCallable(const Model::DescribeResourceRequest& request) const; @@ -354,15 +413,24 @@ namespace AlibabaCloud DescribeServiceCronScalerOutcome describeServiceCronScaler(const Model::DescribeServiceCronScalerRequest &request)const; void describeServiceCronScalerAsync(const Model::DescribeServiceCronScalerRequest& request, const DescribeServiceCronScalerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeServiceCronScalerOutcomeCallable describeServiceCronScalerCallable(const Model::DescribeServiceCronScalerRequest& request) const; + DescribeServiceEventOutcome describeServiceEvent(const Model::DescribeServiceEventRequest &request)const; + void describeServiceEventAsync(const Model::DescribeServiceEventRequest& request, const DescribeServiceEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServiceEventOutcomeCallable describeServiceEventCallable(const Model::DescribeServiceEventRequest& request) const; DescribeServiceLogOutcome describeServiceLog(const Model::DescribeServiceLogRequest &request)const; void describeServiceLogAsync(const Model::DescribeServiceLogRequest& request, const DescribeServiceLogAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeServiceLogOutcomeCallable describeServiceLogCallable(const Model::DescribeServiceLogRequest& request) const; DescribeServiceMirrorOutcome describeServiceMirror(const Model::DescribeServiceMirrorRequest &request)const; void describeServiceMirrorAsync(const Model::DescribeServiceMirrorRequest& request, const DescribeServiceMirrorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeServiceMirrorOutcomeCallable describeServiceMirrorCallable(const Model::DescribeServiceMirrorRequest& request) const; + DevelopServiceOutcome developService(const Model::DevelopServiceRequest &request)const; + void developServiceAsync(const Model::DevelopServiceRequest& request, const DevelopServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DevelopServiceOutcomeCallable developServiceCallable(const Model::DevelopServiceRequest& request) const; ListBenchmarkTaskOutcome listBenchmarkTask(const Model::ListBenchmarkTaskRequest &request)const; void listBenchmarkTaskAsync(const Model::ListBenchmarkTaskRequest& request, const ListBenchmarkTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListBenchmarkTaskOutcomeCallable listBenchmarkTaskCallable(const Model::ListBenchmarkTaskRequest& request) const; + ListGroupsOutcome listGroups(const Model::ListGroupsRequest &request)const; + void listGroupsAsync(const Model::ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListGroupsOutcomeCallable listGroupsCallable(const Model::ListGroupsRequest& request) const; ListResourceInstanceWorkerOutcome listResourceInstanceWorker(const Model::ListResourceInstanceWorkerRequest &request)const; void listResourceInstanceWorkerAsync(const Model::ListResourceInstanceWorkerRequest& request, const ListResourceInstanceWorkerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListResourceInstanceWorkerOutcomeCallable listResourceInstanceWorkerCallable(const Model::ListResourceInstanceWorkerRequest& request) const; @@ -378,6 +446,9 @@ namespace AlibabaCloud ListServiceInstancesOutcome listServiceInstances(const Model::ListServiceInstancesRequest &request)const; void listServiceInstancesAsync(const Model::ListServiceInstancesRequest& request, const ListServiceInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListServiceInstancesOutcomeCallable listServiceInstancesCallable(const Model::ListServiceInstancesRequest& request) const; + ListServiceVersionsOutcome listServiceVersions(const Model::ListServiceVersionsRequest &request)const; + void listServiceVersionsAsync(const Model::ListServiceVersionsRequest& request, const ListServiceVersionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListServiceVersionsOutcomeCallable listServiceVersionsCallable(const Model::ListServiceVersionsRequest& request) const; ListServicesOutcome listServices(const Model::ListServicesRequest &request)const; void listServicesAsync(const Model::ListServicesRequest& request, const ListServicesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListServicesOutcomeCallable listServicesCallable(const Model::ListServicesRequest& request) const; @@ -405,6 +476,9 @@ namespace AlibabaCloud UpdateResourceDLinkOutcome updateResourceDLink(const Model::UpdateResourceDLinkRequest &request)const; void updateResourceDLinkAsync(const Model::UpdateResourceDLinkRequest& request, const UpdateResourceDLinkAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateResourceDLinkOutcomeCallable updateResourceDLinkCallable(const Model::UpdateResourceDLinkRequest& request) const; + UpdateResourceInstanceOutcome updateResourceInstance(const Model::UpdateResourceInstanceRequest &request)const; + void updateResourceInstanceAsync(const Model::UpdateResourceInstanceRequest& request, const UpdateResourceInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateResourceInstanceOutcomeCallable updateResourceInstanceCallable(const Model::UpdateResourceInstanceRequest& request) const; UpdateServiceOutcome updateService(const Model::UpdateServiceRequest &request)const; void updateServiceAsync(const Model::UpdateServiceRequest& request, const UpdateServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateServiceOutcomeCallable updateServiceCallable(const Model::UpdateServiceRequest& request) const; @@ -414,9 +488,15 @@ namespace AlibabaCloud UpdateServiceCronScalerOutcome updateServiceCronScaler(const Model::UpdateServiceCronScalerRequest &request)const; void updateServiceCronScalerAsync(const Model::UpdateServiceCronScalerRequest& request, const UpdateServiceCronScalerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateServiceCronScalerOutcomeCallable updateServiceCronScalerCallable(const Model::UpdateServiceCronScalerRequest& request) const; + UpdateServiceLabelOutcome updateServiceLabel(const Model::UpdateServiceLabelRequest &request)const; + void updateServiceLabelAsync(const Model::UpdateServiceLabelRequest& request, const UpdateServiceLabelAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceLabelOutcomeCallable updateServiceLabelCallable(const Model::UpdateServiceLabelRequest& request) const; UpdateServiceMirrorOutcome updateServiceMirror(const Model::UpdateServiceMirrorRequest &request)const; void updateServiceMirrorAsync(const Model::UpdateServiceMirrorRequest& request, const UpdateServiceMirrorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateServiceMirrorOutcomeCallable updateServiceMirrorCallable(const Model::UpdateServiceMirrorRequest& request) const; + UpdateServiceSafetyLockOutcome updateServiceSafetyLock(const Model::UpdateServiceSafetyLockRequest &request)const; + void updateServiceSafetyLockAsync(const Model::UpdateServiceSafetyLockRequest& request, const UpdateServiceSafetyLockAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateServiceSafetyLockOutcomeCallable updateServiceSafetyLockCallable(const Model::UpdateServiceSafetyLockRequest& request) const; UpdateServiceVersionOutcome updateServiceVersion(const Model::UpdateServiceVersionRequest &request)const; void updateServiceVersionAsync(const Model::UpdateServiceVersionRequest& request, const UpdateServiceVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateServiceVersionOutcomeCallable updateServiceVersionCallable(const Model::UpdateServiceVersionRequest& request) const; diff --git a/eas/include/alibabacloud/eas/model/CommitServiceRequest.h b/eas/include/alibabacloud/eas/model/CommitServiceRequest.h new file mode 100644 index 000000000..4d1072ecb --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CommitServiceRequest.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_EAS_MODEL_COMMITSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_COMMITSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT CommitServiceRequest : public RoaServiceRequest { +public: + CommitServiceRequest(); + ~CommitServiceRequest(); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string serviceName_; + std::string clusterId_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_COMMITSERVICEREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/CommitServiceResult.h b/eas/include/alibabacloud/eas/model/CommitServiceResult.h new file mode 100644 index 000000000..2aba3c2ef --- /dev/null +++ b/eas/include/alibabacloud/eas/model/CommitServiceResult.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_EAS_MODEL_COMMITSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_COMMITSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT CommitServiceResult : public ServiceResult + { + public: + + + CommitServiceResult(); + explicit CommitServiceResult(const std::string &payload); + ~CommitServiceResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_COMMITSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskRequest.h index 755d52f53..0da7b3101 100644 --- a/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskRequest.h @@ -30,11 +30,11 @@ class ALIBABACLOUD_EAS_EXPORT CreateBenchmarkTaskRequest : public RoaServiceRequ public: CreateBenchmarkTaskRequest(); ~CreateBenchmarkTaskRequest(); - string getBody() const; - void setBody(string body); + std::string getBody() const; + void setBody(const std::string &body); private: - string body_; + std::string body_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskResult.h b/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskResult.h index c44466c41..8f770dc4b 100644 --- a/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskResult.h +++ b/eas/include/alibabacloud/eas/model/CreateBenchmarkTaskResult.h @@ -38,15 +38,15 @@ namespace AlibabaCloud explicit CreateBenchmarkTaskResult(const std::string &payload); ~CreateBenchmarkTaskResult(); std::string getMessage()const; + std::string getTaskName()const; std::string getRegion()const; - std::string getName()const; protected: void parse(const std::string &payload); private: std::string message_; + std::string taskName_; std::string region_; - std::string name_; }; } diff --git a/eas/include/alibabacloud/eas/model/CreateResourceInstancesRequest.h b/eas/include/alibabacloud/eas/model/CreateResourceInstancesRequest.h index ac056c812..0f1e167aa 100644 --- a/eas/include/alibabacloud/eas/model/CreateResourceInstancesRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateResourceInstancesRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT CreateResourceInstancesRequest : public RoaService public: CreateResourceInstancesRequest(); ~CreateResourceInstancesRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/CreateResourceLogRequest.h b/eas/include/alibabacloud/eas/model/CreateResourceLogRequest.h index edac32de8..143328eab 100644 --- a/eas/include/alibabacloud/eas/model/CreateResourceLogRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateResourceLogRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT CreateResourceLogRequest : public RoaServiceReques public: CreateResourceLogRequest(); ~CreateResourceLogRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/CreateServiceAutoScalerRequest.h b/eas/include/alibabacloud/eas/model/CreateServiceAutoScalerRequest.h index a5d768fe9..aa6d9415e 100644 --- a/eas/include/alibabacloud/eas/model/CreateServiceAutoScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateServiceAutoScalerRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT CreateServiceAutoScalerRequest : public RoaService public: CreateServiceAutoScalerRequest(); ~CreateServiceAutoScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/CreateServiceCronScalerRequest.h b/eas/include/alibabacloud/eas/model/CreateServiceCronScalerRequest.h index a23b7f7b7..74b5afea0 100644 --- a/eas/include/alibabacloud/eas/model/CreateServiceCronScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateServiceCronScalerRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT CreateServiceCronScalerRequest : public RoaService public: CreateServiceCronScalerRequest(); ~CreateServiceCronScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/CreateServiceMirrorRequest.h b/eas/include/alibabacloud/eas/model/CreateServiceMirrorRequest.h index 7f5ca4bb4..068e6bff5 100644 --- a/eas/include/alibabacloud/eas/model/CreateServiceMirrorRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateServiceMirrorRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT CreateServiceMirrorRequest : public RoaServiceRequ public: CreateServiceMirrorRequest(); ~CreateServiceMirrorRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/CreateServiceRequest.h b/eas/include/alibabacloud/eas/model/CreateServiceRequest.h index 49dd15bc5..bedd64ff2 100644 --- a/eas/include/alibabacloud/eas/model/CreateServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/CreateServiceRequest.h @@ -30,11 +30,17 @@ class ALIBABACLOUD_EAS_EXPORT CreateServiceRequest : public RoaServiceRequest { public: CreateServiceRequest(); ~CreateServiceRequest(); - string getBody() const; - void setBody(string body); + std::string getDevelop() const; + void setDevelop(const std::string &develop); + std::string getBody() const; + void setBody(const std::string &body); + std::string getLabels() const; + void setLabels(const std::string &labels); private: - string body_; + std::string develop_; + std::string body_; + std::string labels_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/DeleteBenchmarkTaskRequest.h index 4c537114b..499d3574b 100644 --- a/eas/include/alibabacloud/eas/model/DeleteBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteBenchmarkTaskRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteBenchmarkTaskRequest : public RoaServiceRequ public: DeleteBenchmarkTaskRequest(); ~DeleteBenchmarkTaskRequest(); - string getTaskName() const; - void setTaskName(string taskName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string taskName_; - string clusterId_; + std::string taskName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceDLinkRequest.h b/eas/include/alibabacloud/eas/model/DeleteResourceDLinkRequest.h index 6423e6139..234ede058 100644 --- a/eas/include/alibabacloud/eas/model/DeleteResourceDLinkRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteResourceDLinkRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteResourceDLinkRequest : public RoaServiceRequ public: DeleteResourceDLinkRequest(); ~DeleteResourceDLinkRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceInstancesRequest.h b/eas/include/alibabacloud/eas/model/DeleteResourceInstancesRequest.h index d9138fa49..ca4b573e9 100644 --- a/eas/include/alibabacloud/eas/model/DeleteResourceInstancesRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteResourceInstancesRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_EAS_EXPORT DeleteResourceInstancesRequest : public RoaService public: DeleteResourceInstancesRequest(); ~DeleteResourceInstancesRequest(); - string getInstanceList() const; - void setInstanceList(string instanceList); - string getResourceId() const; - void setResourceId(string resourceId); - boolean getAllFailed() const; - void setAllFailed(boolean allFailed); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getInstanceList() const; + void setInstanceList(const std::string &instanceList); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + bool getAllFailed() const; + void setAllFailed(bool allFailed); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string instanceList_; - string resourceId_; - boolean allFailed_; - string clusterId_; + std::string instanceList_; + std::string resourceId_; + bool allFailed_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceLogRequest.h b/eas/include/alibabacloud/eas/model/DeleteResourceLogRequest.h index df1b6f8b0..50bdbefff 100644 --- a/eas/include/alibabacloud/eas/model/DeleteResourceLogRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteResourceLogRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteResourceLogRequest : public RoaServiceReques public: DeleteResourceLogRequest(); ~DeleteResourceLogRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteResourceRequest.h b/eas/include/alibabacloud/eas/model/DeleteResourceRequest.h index f86bc7379..454a9f9c0 100644 --- a/eas/include/alibabacloud/eas/model/DeleteResourceRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteResourceRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteResourceRequest : public RoaServiceRequest { public: DeleteResourceRequest(); ~DeleteResourceRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceAutoScalerRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceAutoScalerRequest.h index 8c08bc9a8..322fd7c30 100644 --- a/eas/include/alibabacloud/eas/model/DeleteServiceAutoScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteServiceAutoScalerRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteServiceAutoScalerRequest : public RoaService public: DeleteServiceAutoScalerRequest(); ~DeleteServiceAutoScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceCronScalerRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceCronScalerRequest.h index 491eb8a67..3f86b6ffd 100644 --- a/eas/include/alibabacloud/eas/model/DeleteServiceCronScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteServiceCronScalerRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteServiceCronScalerRequest : public RoaService public: DeleteServiceCronScalerRequest(); ~DeleteServiceCronScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceInstancesRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceInstancesRequest.h index a9f7d4435..872cce185 100644 --- a/eas/include/alibabacloud/eas/model/DeleteServiceInstancesRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteServiceInstancesRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_EAS_EXPORT DeleteServiceInstancesRequest : public RoaServiceR public: DeleteServiceInstancesRequest(); ~DeleteServiceInstancesRequest(); - string getInstanceList() const; - void setInstanceList(string instanceList); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getInstanceList() const; + void setInstanceList(const std::string &instanceList); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string instanceList_; - string serviceName_; - string clusterId_; + std::string instanceList_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceLabelRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceLabelRequest.h new file mode 100644 index 000000000..26ef0bf48 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteServiceLabelRequest.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_EAS_MODEL_DELETESERVICELABELREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETESERVICELABELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT DeleteServiceLabelRequest : public RoaServiceRequest { +public: + DeleteServiceLabelRequest(); + ~DeleteServiceLabelRequest(); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string serviceName_; + std::string clusterId_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_DELETESERVICELABELREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceLabelResult.h b/eas/include/alibabacloud/eas/model/DeleteServiceLabelResult.h new file mode 100644 index 000000000..680602dd2 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DeleteServiceLabelResult.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_EAS_MODEL_DELETESERVICELABELRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DELETESERVICELABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DeleteServiceLabelResult : public ServiceResult + { + public: + + + DeleteServiceLabelResult(); + explicit DeleteServiceLabelResult(const std::string &payload); + ~DeleteServiceLabelResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DELETESERVICELABELRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceMirrorRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceMirrorRequest.h index 6b241e329..6d949922a 100644 --- a/eas/include/alibabacloud/eas/model/DeleteServiceMirrorRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteServiceMirrorRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteServiceMirrorRequest : public RoaServiceRequ public: DeleteServiceMirrorRequest(); ~DeleteServiceMirrorRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DeleteServiceRequest.h b/eas/include/alibabacloud/eas/model/DeleteServiceRequest.h index 41e69c6f2..d96b9cce3 100644 --- a/eas/include/alibabacloud/eas/model/DeleteServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/DeleteServiceRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DeleteServiceRequest : public RoaServiceRequest { public: DeleteServiceRequest(); ~DeleteServiceRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportRequest.h b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportRequest.h index a6e5cecdd..cd7c56c90 100644 --- a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportRequest.h @@ -30,14 +30,17 @@ class ALIBABACLOUD_EAS_EXPORT DescribeBenchmarkTaskReportRequest : public RoaSer public: DescribeBenchmarkTaskReportRequest(); ~DescribeBenchmarkTaskReportRequest(); - string getTaskName() const; - void setTaskName(string taskName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getReportType() const; + void setReportType(const std::string &reportType); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string taskName_; - string clusterId_; + std::string reportType_; + std::string taskName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportResult.h b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportResult.h index 004456a49..c7227481e 100644 --- a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportResult.h +++ b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskReportResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud explicit DescribeBenchmarkTaskReportResult(const std::string &payload); ~DescribeBenchmarkTaskReportResult(); std::string getReportUrl()const; + ObjectOfAny getData()const; protected: void parse(const std::string &payload); private: std::string reportUrl_; + ObjectOfAny data_; }; } diff --git a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskRequest.h index 46555531e..27c64d18e 100644 --- a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeBenchmarkTaskRequest : public RoaServiceRe public: DescribeBenchmarkTaskRequest(); ~DescribeBenchmarkTaskRequest(); - string getTaskName() const; - void setTaskName(string taskName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string taskName_; - string clusterId_; + std::string taskName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskResult.h b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskResult.h index b169afc5a..4b1886f53 100644 --- a/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskResult.h +++ b/eas/include/alibabacloud/eas/model/DescribeBenchmarkTaskResult.h @@ -41,6 +41,7 @@ namespace AlibabaCloud long getAvailableAgent()const; std::string getTaskId()const; std::string getMessage()const; + std::string getEndpoint()const; std::string getTaskName()const; std::string getServiceName()const; long getDesiredAgent()const; @@ -56,6 +57,7 @@ namespace AlibabaCloud long availableAgent_; std::string taskId_; std::string message_; + std::string endpoint_; std::string taskName_; std::string serviceName_; long desiredAgent_; diff --git a/eas/include/alibabacloud/eas/model/DescribeGroupRequest.h b/eas/include/alibabacloud/eas/model/DescribeGroupRequest.h new file mode 100644 index 000000000..a833c523f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DescribeGroupRequest.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_EAS_MODEL_DESCRIBEGROUPREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DESCRIBEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT DescribeGroupRequest : public RoaServiceRequest { +public: + DescribeGroupRequest(); + ~DescribeGroupRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + +private: + std::string clusterId_; + std::string groupName_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_DESCRIBEGROUPREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/DescribeGroupResult.h b/eas/include/alibabacloud/eas/model/DescribeGroupResult.h new file mode 100644 index 000000000..472b569b5 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DescribeGroupResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DESCRIBEGROUPRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DESCRIBEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DescribeGroupResult : public ServiceResult + { + public: + + + DescribeGroupResult(); + explicit DescribeGroupResult(const std::string &payload); + ~DescribeGroupResult(); + std::string getClusterId()const; + std::string getAccessToken()const; + std::string getCreateTime()const; + std::string getUpdateTime()const; + std::string getInternetEndpoint()const; + std::string getQueueService()const; + std::string getIntranetEndpoint()const; + std::string getName()const; + + protected: + void parse(const std::string &payload); + private: + std::string clusterId_; + std::string accessToken_; + std::string createTime_; + std::string updateTime_; + std::string internetEndpoint_; + std::string queueService_; + std::string intranetEndpoint_; + std::string name_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DESCRIBEGROUPRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DescribeResourceDLinkRequest.h b/eas/include/alibabacloud/eas/model/DescribeResourceDLinkRequest.h index 10f8bbec0..fc3b92ed4 100644 --- a/eas/include/alibabacloud/eas/model/DescribeResourceDLinkRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeResourceDLinkRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeResourceDLinkRequest : public RoaServiceRe public: DescribeResourceDLinkRequest(); ~DescribeResourceDLinkRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeResourceLogRequest.h b/eas/include/alibabacloud/eas/model/DescribeResourceLogRequest.h index dc90785c3..9a4cf2b7f 100644 --- a/eas/include/alibabacloud/eas/model/DescribeResourceLogRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeResourceLogRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeResourceLogRequest : public RoaServiceRequ public: DescribeResourceLogRequest(); ~DescribeResourceLogRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeResourceRequest.h b/eas/include/alibabacloud/eas/model/DescribeResourceRequest.h index d5e97d28a..0d399e43f 100644 --- a/eas/include/alibabacloud/eas/model/DescribeResourceRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeResourceRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeResourceRequest : public RoaServiceRequest public: DescribeResourceRequest(); ~DescribeResourceRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerRequest.h b/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerRequest.h index 0eef4c04d..31b6638f7 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeServiceAutoScalerRequest : public RoaServi public: DescribeServiceAutoScalerRequest(); ~DescribeServiceAutoScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerResult.h b/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerResult.h index 6bfcaa5d8..b8ebd94ea 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerResult.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceAutoScalerResult.h @@ -32,25 +32,39 @@ namespace AlibabaCloud class ALIBABACLOUD_EAS_EXPORT DescribeServiceAutoScalerResult : public ServiceResult { public: + struct ScaleStrategy + { + std::string metricName; + std::string service; + float threshold; + }; + struct CurrentMetric + { + std::string metricName; + float value; + std::string service; + }; DescribeServiceAutoScalerResult(); explicit DescribeServiceAutoScalerResult(const std::string &payload); ~DescribeServiceAutoScalerResult(); + std::vector getCurrentMetrics()const; int getMaxReplica()const; std::string getServiceName()const; - std::string getStrategies()const; int getMinReplica()const; - std::string getCurrentValues()const; + std::vector getScaleStrategies()const; + std::string getBehavior()const; protected: void parse(const std::string &payload); private: + std::vector currentMetrics_; int maxReplica_; std::string serviceName_; - std::string strategies_; int minReplica_; - std::string currentValues_; + std::vector scaleStrategies_; + std::string behavior_; }; } diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceCronScalerRequest.h b/eas/include/alibabacloud/eas/model/DescribeServiceCronScalerRequest.h index b5655b6ca..fc4c6ae04 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceCronScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceCronScalerRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeServiceCronScalerRequest : public RoaServi public: DescribeServiceCronScalerRequest(); ~DescribeServiceCronScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceEventRequest.h b/eas/include/alibabacloud/eas/model/DescribeServiceEventRequest.h new file mode 100644 index 000000000..975fb5cd8 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DescribeServiceEventRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DESCRIBESERVICEEVENTREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DESCRIBESERVICEEVENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT DescribeServiceEventRequest : public RoaServiceRequest { +public: + DescribeServiceEventRequest(); + ~DescribeServiceEventRequest(); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getPageNum() const; + void setPageNum(const std::string &pageNum); + +private: + std::string pageSize_; + std::string endTime_; + std::string serviceName_; + std::string clusterId_; + std::string startTime_; + std::string pageNum_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_DESCRIBESERVICEEVENTREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceEventResult.h b/eas/include/alibabacloud/eas/model/DescribeServiceEventResult.h new file mode 100644 index 000000000..c61593d7b --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DescribeServiceEventResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EAS_MODEL_DESCRIBESERVICEEVENTRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DESCRIBESERVICEEVENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DescribeServiceEventResult : public ServiceResult + { + public: + struct EventsItem + { + std::string type; + std::string message; + std::string time; + std::string reason; + }; + + + DescribeServiceEventResult(); + explicit DescribeServiceEventResult(const std::string &payload); + ~DescribeServiceEventResult(); + long getTotalCount()const; + long getPageNum()const; + std::vector getEvents()const; + long getTotalPageNum()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageNum_; + std::vector events_; + long totalPageNum_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DESCRIBESERVICEEVENTRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceLogRequest.h b/eas/include/alibabacloud/eas/model/DescribeServiceLogRequest.h index 553f14381..1c30676b6 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceLogRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceLogRequest.h @@ -30,32 +30,32 @@ class ALIBABACLOUD_EAS_EXPORT DescribeServiceLogRequest : public RoaServiceReque public: DescribeServiceLogRequest(); ~DescribeServiceLogRequest(); - string getIp() const; - void setIp(string ip); - integer getPageSize() const; - void setPageSize(integer pageSize); - string getEndTime() const; - void setEndTime(string endTime); - string getServiceName() const; - void setServiceName(string serviceName); - string getStartTime() const; - void setStartTime(string startTime); - string getClusterId() const; - void setClusterId(string clusterId); - integer getPageNum() const; - void setPageNum(integer pageNum); - string getKeyword() const; - void setKeyword(string keyword); + std::string getIp() const; + void setIp(const std::string &ip); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getEndTime() const; + void setEndTime(const std::string &endTime); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getStartTime() const; + void setStartTime(const std::string &startTime); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + long getPageNum() const; + void setPageNum(long pageNum); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); private: - string ip_; - integer pageSize_; - string endTime_; - string serviceName_; - string startTime_; - string clusterId_; - integer pageNum_; - string keyword_; + std::string ip_; + long pageSize_; + std::string endTime_; + std::string serviceName_; + std::string startTime_; + std::string clusterId_; + long pageNum_; + std::string keyword_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceMirrorRequest.h b/eas/include/alibabacloud/eas/model/DescribeServiceMirrorRequest.h index d41ab21d3..3dbf9663a 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceMirrorRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceMirrorRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeServiceMirrorRequest : public RoaServiceRe public: DescribeServiceMirrorRequest(); ~DescribeServiceMirrorRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceRequest.h b/eas/include/alibabacloud/eas/model/DescribeServiceRequest.h index 842677067..b9dfb40e8 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT DescribeServiceRequest : public RoaServiceRequest public: DescribeServiceRequest(); ~DescribeServiceRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/DescribeServiceResult.h b/eas/include/alibabacloud/eas/model/DescribeServiceResult.h index 90fb4e6d8..6c563333c 100644 --- a/eas/include/alibabacloud/eas/model/DescribeServiceResult.h +++ b/eas/include/alibabacloud/eas/model/DescribeServiceResult.h @@ -32,12 +32,18 @@ namespace AlibabaCloud class ALIBABACLOUD_EAS_EXPORT DescribeServiceResult : public ServiceResult { public: + struct LabelsItem + { + std::string labelValue; + std::string labelKey; + }; DescribeServiceResult(); explicit DescribeServiceResult(const std::string &payload); ~DescribeServiceResult(); std::string getMessage()const; + std::string getServiceGroup()const; int getMemory()const; int getCurrentVersion()const; int getRunningInstance()const; @@ -52,23 +58,31 @@ namespace AlibabaCloud std::string getServiceConfig()const; std::string getAccessToken()const; std::string getInternetEndpoint()const; + std::string getResourceAlias()const; std::string getStatus()const; std::string getCreateTime()const; std::string getResource()const; + std::vector getLabels()const; std::string get_Namespace()const; + std::string getExtraData()const; int getWeight()const; + std::string getRole()const; int getPendingInstance()const; int getLatestVersion()const; std::string getServiceName()const; + std::string getSafetyLock()const; std::string getUpdateTime()const; + std::string getServiceUid()const; std::string getRegion()const; std::string getParentUid()const; std::string getIntranetEndpoint()const; + std::string getRoleAttrs()const; protected: void parse(const std::string &payload); private: std::string message_; + std::string serviceGroup_; int memory_; int currentVersion_; int runningInstance_; @@ -83,18 +97,25 @@ namespace AlibabaCloud std::string serviceConfig_; std::string accessToken_; std::string internetEndpoint_; + std::string resourceAlias_; std::string status_; std::string createTime_; std::string resource_; + std::vector labels_; std::string _namespace_; + std::string extraData_; int weight_; + std::string role_; int pendingInstance_; int latestVersion_; std::string serviceName_; + std::string safetyLock_; std::string updateTime_; + std::string serviceUid_; std::string region_; std::string parentUid_; std::string intranetEndpoint_; + std::string roleAttrs_; }; } diff --git a/eas/include/alibabacloud/eas/model/DevelopServiceRequest.h b/eas/include/alibabacloud/eas/model/DevelopServiceRequest.h new file mode 100644 index 000000000..1fe15ed37 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DevelopServiceRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_DEVELOPSERVICEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_DEVELOPSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT DevelopServiceRequest : public RoaServiceRequest { +public: + DevelopServiceRequest(); + ~DevelopServiceRequest(); + std::string getExit() const; + void setExit(const std::string &exit); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + +private: + std::string exit_; + std::string serviceName_; + std::string clusterId_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_DEVELOPSERVICEREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/DevelopServiceResult.h b/eas/include/alibabacloud/eas/model/DevelopServiceResult.h new file mode 100644 index 000000000..e2e038364 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/DevelopServiceResult.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_EAS_MODEL_DEVELOPSERVICERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_DEVELOPSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT DevelopServiceResult : public ServiceResult + { + public: + + + DevelopServiceResult(); + explicit DevelopServiceResult(const std::string &payload); + ~DevelopServiceResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_DEVELOPSERVICERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/ListBenchmarkTaskRequest.h index d26a9a2d6..bae14314a 100644 --- a/eas/include/alibabacloud/eas/model/ListBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/ListBenchmarkTaskRequest.h @@ -30,8 +30,20 @@ class ALIBABACLOUD_EAS_EXPORT ListBenchmarkTaskRequest : public RoaServiceReques public: ListBenchmarkTaskRequest(); ~ListBenchmarkTaskRequest(); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); private: + std::string filter_; + std::string pageSize_; + std::string serviceName_; + std::string pageNumber_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListBenchmarkTaskResult.h b/eas/include/alibabacloud/eas/model/ListBenchmarkTaskResult.h index 0f4ac3a85..9f3ec15d9 100644 --- a/eas/include/alibabacloud/eas/model/ListBenchmarkTaskResult.h +++ b/eas/include/alibabacloud/eas/model/ListBenchmarkTaskResult.h @@ -49,12 +49,18 @@ namespace AlibabaCloud ListBenchmarkTaskResult(); explicit ListBenchmarkTaskResult(const std::string &payload); ~ListBenchmarkTaskResult(); + int getTotalCount()const; std::vector getTasks()const; + int getPageSize()const; + int getPageNumber()const; protected: void parse(const std::string &payload); private: + int totalCount_; std::vector tasks_; + int pageSize_; + int pageNumber_; }; } diff --git a/eas/include/alibabacloud/eas/model/ListGroupsRequest.h b/eas/include/alibabacloud/eas/model/ListGroupsRequest.h new file mode 100644 index 000000000..a242e8f54 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListGroupsRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_LISTGROUPSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT ListGroupsRequest : public RoaServiceRequest { +public: + ListGroupsRequest(); + ~ListGroupsRequest(); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getPageSize() const; + void setPageSize(const std::string &pageSize); + std::string getPageNumber() const; + void setPageNumber(const std::string &pageNumber); + +private: + std::string filter_; + std::string pageSize_; + std::string pageNumber_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_LISTGROUPSREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/ListGroupsResult.h b/eas/include/alibabacloud/eas/model/ListGroupsResult.h new file mode 100644 index 000000000..f9eeac9d6 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListGroupsResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_LISTGROUPSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListGroupsResult : public ServiceResult + { + public: + struct 服务组列表 + { + std::string clusterId; + std::string accessToken; + std::string createTime; + std::string updateTime; + std::string internetEndpoint; + std::string queueService; + std::string intranetEndpoint; + std::string name; + }; + + + ListGroupsResult(); + explicit ListGroupsResult(const std::string &payload); + ~ListGroupsResult(); + long getTotalCount()const; + long getPageSize()const; + long getPageNumber()const; + std::vector<服务组列表> getGroups()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + long pageSize_; + long pageNumber_; + std::vector<服务组列表> groups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTGROUPSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListResourceInstanceWorkerRequest.h b/eas/include/alibabacloud/eas/model/ListResourceInstanceWorkerRequest.h index ef8da969b..9f23fcadf 100644 --- a/eas/include/alibabacloud/eas/model/ListResourceInstanceWorkerRequest.h +++ b/eas/include/alibabacloud/eas/model/ListResourceInstanceWorkerRequest.h @@ -30,23 +30,23 @@ class ALIBABACLOUD_EAS_EXPORT ListResourceInstanceWorkerRequest : public RoaServ public: ListResourceInstanceWorkerRequest(); ~ListResourceInstanceWorkerRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getInstanceName() const; - void setInstanceName(string instanceName); - integer getPageSize() const; - void setPageSize(integer pageSize); - string getClusterId() const; - void setClusterId(string clusterId); - integer getPageNumber() const; - void setPageNumber(integer pageNumber); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); private: - string resourceId_; - string instanceName_; - integer pageSize_; - string clusterId_; - integer pageNumber_; + std::string resourceId_; + std::string instanceName_; + int pageSize_; + std::string clusterId_; + int pageNumber_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListResourceInstancesRequest.h b/eas/include/alibabacloud/eas/model/ListResourceInstancesRequest.h index 13568779b..8f4dfe57e 100644 --- a/eas/include/alibabacloud/eas/model/ListResourceInstancesRequest.h +++ b/eas/include/alibabacloud/eas/model/ListResourceInstancesRequest.h @@ -30,23 +30,29 @@ class ALIBABACLOUD_EAS_EXPORT ListResourceInstancesRequest : public RoaServiceRe public: ListResourceInstancesRequest(); ~ListResourceInstancesRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - integer getPageSize() const; - void setPageSize(integer pageSize); - string getClusterId() const; - void setClusterId(string clusterId); - string getChargeType() const; - void setChargeType(string chargeType); - integer getPageNumber() const; - void setPageNumber(integer pageNumber); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + int getPageNumber() const; + void setPageNumber(int pageNumber); private: - string resourceId_; - integer pageSize_; - string clusterId_; - string chargeType_; - integer pageNumber_; + std::string resourceId_; + std::string instanceName_; + std::string instanceId_; + int pageSize_; + std::string clusterId_; + std::string chargeType_; + int pageNumber_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListResourceInstancesResult.h b/eas/include/alibabacloud/eas/model/ListResourceInstancesResult.h index 3891bed30..80735d1f5 100644 --- a/eas/include/alibabacloud/eas/model/ListResourceInstancesResult.h +++ b/eas/include/alibabacloud/eas/model/ListResourceInstancesResult.h @@ -35,18 +35,24 @@ namespace AlibabaCloud struct InstancesItem { std::string instanceId; + std::string zone; std::string createTime; std::string instanceUsedMemory; std::string instanceIp; + std::string arch; + std::string instanceGpuMemory; int instanceGpuCount; std::string instanceName; std::string instanceMemory; + std::string instanceUsedGpuMemory; int instanceCpuCount; - int instanceUsedGpu; + float instanceUsedGpu; bool autoRenewal; + std::string instanceTenantIp; std::string instanceStatus; std::string chargeType; std::string expiredTime; + std::string region; std::string instanceType; float instanceUsedCpu; }; diff --git a/eas/include/alibabacloud/eas/model/ListResourceServicesRequest.h b/eas/include/alibabacloud/eas/model/ListResourceServicesRequest.h index ae0bdcedf..11a768c99 100644 --- a/eas/include/alibabacloud/eas/model/ListResourceServicesRequest.h +++ b/eas/include/alibabacloud/eas/model/ListResourceServicesRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_EAS_EXPORT ListResourceServicesRequest : public RoaServiceReq public: ListResourceServicesRequest(); ~ListResourceServicesRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - integer getPageSize() const; - void setPageSize(integer pageSize); - string getClusterId() const; - void setClusterId(string clusterId); - integer getPageNumber() const; - void setPageNumber(integer pageNumber); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); private: - string resourceId_; - integer pageSize_; - string clusterId_; - integer pageNumber_; + std::string resourceId_; + int pageSize_; + std::string clusterId_; + int pageNumber_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListResourceServicesResult.h b/eas/include/alibabacloud/eas/model/ListResourceServicesResult.h index e77b73a36..81283db47 100644 --- a/eas/include/alibabacloud/eas/model/ListResourceServicesResult.h +++ b/eas/include/alibabacloud/eas/model/ListResourceServicesResult.h @@ -34,7 +34,13 @@ namespace AlibabaCloud public: struct ServicesItem { + struct LabelsItem + { + std::string labelValue; + std::string labelKey; + }; std::string message; + std::string serviceGroup; int memory; int currentVersion; int runningInstance; @@ -49,19 +55,26 @@ namespace AlibabaCloud std::string serviceConfig; std::string accessToken; std::string internetEndpoint; + std::string resourceAlias; std::string status; std::string requestId; std::string createTime; std::string resource; + std::vector labels; std::string _namespace; + std::string extraData; int weight; + std::string role; int pendingInstance; int latestVersion; std::string serviceName; + std::string safetyLock; std::string updateTime; + std::string serviceUid; std::string region; std::string parentUid; std::string intranetEndpoint; + std::string roleAttrs; }; diff --git a/eas/include/alibabacloud/eas/model/ListResourcesRequest.h b/eas/include/alibabacloud/eas/model/ListResourcesRequest.h index b8c89db81..80058095e 100644 --- a/eas/include/alibabacloud/eas/model/ListResourcesRequest.h +++ b/eas/include/alibabacloud/eas/model/ListResourcesRequest.h @@ -30,14 +30,20 @@ class ALIBABACLOUD_EAS_EXPORT ListResourcesRequest : public RoaServiceRequest { public: ListResourcesRequest(); ~ListResourcesRequest(); - integer getPageSize() const; - void setPageSize(integer pageSize); - integer getPageNumber() const; - void setPageNumber(integer pageNumber); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceName() const; + void setResourceName(const std::string &resourceName); + int getPageNumber() const; + void setPageNumber(int pageNumber); private: - integer pageSize_; - integer pageNumber_; + std::string resourceId_; + int pageSize_; + std::string resourceName_; + int pageNumber_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListServiceInstancesRequest.h b/eas/include/alibabacloud/eas/model/ListServiceInstancesRequest.h index 2718baedc..43ca5c30c 100644 --- a/eas/include/alibabacloud/eas/model/ListServiceInstancesRequest.h +++ b/eas/include/alibabacloud/eas/model/ListServiceInstancesRequest.h @@ -30,20 +30,20 @@ class ALIBABACLOUD_EAS_EXPORT ListServiceInstancesRequest : public RoaServiceReq public: ListServiceInstancesRequest(); ~ListServiceInstancesRequest(); - integer getPageSize() const; - void setPageSize(integer pageSize); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); - integer getPageNumber() const; - void setPageNumber(integer pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); private: - integer pageSize_; - string serviceName_; - string clusterId_; - integer pageNumber_; + int pageSize_; + std::string serviceName_; + std::string clusterId_; + int pageNumber_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListServiceInstancesResult.h b/eas/include/alibabacloud/eas/model/ListServiceInstancesResult.h index 5661a3a9d..f3eb8e394 100644 --- a/eas/include/alibabacloud/eas/model/ListServiceInstancesResult.h +++ b/eas/include/alibabacloud/eas/model/ListServiceInstancesResult.h @@ -39,13 +39,17 @@ namespace AlibabaCloud std::string innerIP; int instancePort; std::string _namespace; + std::string resourceType; + std::string tenantInstanceIP; std::string reason; std::string instanceName; int restartCount; int totalProcesses; + std::string role; std::vector lastState; int readyProcesses; std::string startAt; + std::string tenantHostIP; std::string hostName; }; diff --git a/eas/include/alibabacloud/eas/model/ListServiceVersionsRequest.h b/eas/include/alibabacloud/eas/model/ListServiceVersionsRequest.h new file mode 100644 index 000000000..44c13b080 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListServiceVersionsRequest.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_EAS_MODEL_LISTSERVICEVERSIONSREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTSERVICEVERSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT ListServiceVersionsRequest : public RoaServiceRequest { +public: + ListServiceVersionsRequest(); + ~ListServiceVersionsRequest(); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + +private: + int pageSize_; + std::string serviceName_; + std::string clusterId_; + int pageNumber_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_LISTSERVICEVERSIONSREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/ListServiceVersionsResult.h b/eas/include/alibabacloud/eas/model/ListServiceVersionsResult.h new file mode 100644 index 000000000..9f3dea5d3 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/ListServiceVersionsResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_LISTSERVICEVERSIONSRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_LISTSERVICEVERSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT ListServiceVersionsResult : public ServiceResult + { + public: + struct VersionsItem + { + std::string message; + std::string imageAvailable; + int imageId; + std::string buildTime; + std::string serviceRunnable; + }; + + + ListServiceVersionsResult(); + explicit ListServiceVersionsResult(const std::string &payload); + ~ListServiceVersionsResult(); + long getTotalCount()const; + std::vector getVersions()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + long totalCount_; + std::vector versions_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_LISTSERVICEVERSIONSRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/ListServicesRequest.h b/eas/include/alibabacloud/eas/model/ListServicesRequest.h index b99445f0d..254007852 100644 --- a/eas/include/alibabacloud/eas/model/ListServicesRequest.h +++ b/eas/include/alibabacloud/eas/model/ListServicesRequest.h @@ -30,23 +30,35 @@ class ALIBABACLOUD_EAS_EXPORT ListServicesRequest : public RoaServiceRequest { public: ListServicesRequest(); ~ListServicesRequest(); - string getFilter() const; - void setFilter(string filter); - integer getPageSize() const; - void setPageSize(integer pageSize); - string getSort() const; - void setSort(string sort); - integer getPageNumber() const; - void setPageNumber(integer pageNumber); - string getOrder() const; - void setOrder(string order); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getServiceType() const; + void setServiceType(const std::string &serviceType); + std::string getParentServiceUid() const; + void setParentServiceUid(const std::string &parentServiceUid); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getSort() const; + void setSort(const std::string &sort); + std::string getLabel() const; + void setLabel(const std::string &label); + std::string getGroupName() const; + void setGroupName(const std::string &groupName); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getOrder() const; + void setOrder(const std::string &order); private: - string filter_; - integer pageSize_; - string sort_; - integer pageNumber_; - string order_; + std::string filter_; + std::string serviceType_; + std::string parentServiceUid_; + int pageSize_; + std::string sort_; + std::string label_; + std::string groupName_; + int pageNumber_; + std::string order_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/ListServicesResult.h b/eas/include/alibabacloud/eas/model/ListServicesResult.h index ec5dfefa0..70086f829 100644 --- a/eas/include/alibabacloud/eas/model/ListServicesResult.h +++ b/eas/include/alibabacloud/eas/model/ListServicesResult.h @@ -34,7 +34,13 @@ namespace AlibabaCloud public: struct ServicesItem { + struct LabelsItem + { + std::string labelValue; + std::string labelKey; + }; std::string message; + std::string serviceGroup; int memory; int currentVersion; int runningInstance; @@ -49,19 +55,26 @@ namespace AlibabaCloud std::string serviceConfig; std::string accessToken; std::string internetEndpoint; + std::string resourceAlias; std::string status; std::string requestId; std::string createTime; std::string resource; + std::vector labels; std::string _namespace; + std::string extraData; int weight; + std::string role; int pendingInstance; int latestVersion; std::string serviceName; + std::string safetyLock; std::string updateTime; + std::string serviceUid; std::string region; std::string parentUid; std::string intranetEndpoint; + std::string roleAttrs; }; diff --git a/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.h b/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.h index 01ae1c8d6..e01f9dcbc 100644 --- a/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/ReleaseServiceRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT ReleaseServiceRequest : public RoaServiceRequest { public: ReleaseServiceRequest(); ~ReleaseServiceRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/StartBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/StartBenchmarkTaskRequest.h index f412a0412..39c059c40 100644 --- a/eas/include/alibabacloud/eas/model/StartBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/StartBenchmarkTaskRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT StartBenchmarkTaskRequest : public RoaServiceReque public: StartBenchmarkTaskRequest(); ~StartBenchmarkTaskRequest(); - string getTaskName() const; - void setTaskName(string taskName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string taskName_; - string clusterId_; + std::string taskName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/StartServiceRequest.h b/eas/include/alibabacloud/eas/model/StartServiceRequest.h index c6abbec92..2ccb4042b 100644 --- a/eas/include/alibabacloud/eas/model/StartServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/StartServiceRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT StartServiceRequest : public RoaServiceRequest { public: StartServiceRequest(); ~StartServiceRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/StopBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/StopBenchmarkTaskRequest.h index 8f7a410ca..24a222981 100644 --- a/eas/include/alibabacloud/eas/model/StopBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/StopBenchmarkTaskRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT StopBenchmarkTaskRequest : public RoaServiceReques public: StopBenchmarkTaskRequest(); ~StopBenchmarkTaskRequest(); - string getTaskName() const; - void setTaskName(string taskName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string taskName_; - string clusterId_; + std::string taskName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/StopServiceRequest.h b/eas/include/alibabacloud/eas/model/StopServiceRequest.h index 38150e70a..1e5ac4e1e 100644 --- a/eas/include/alibabacloud/eas/model/StopServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/StopServiceRequest.h @@ -30,14 +30,14 @@ class ALIBABACLOUD_EAS_EXPORT StopServiceRequest : public RoaServiceRequest { public: StopServiceRequest(); ~StopServiceRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/UpdateBenchmarkTaskRequest.h b/eas/include/alibabacloud/eas/model/UpdateBenchmarkTaskRequest.h index 04bcc214c..e9d385869 100644 --- a/eas/include/alibabacloud/eas/model/UpdateBenchmarkTaskRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateBenchmarkTaskRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_EAS_EXPORT UpdateBenchmarkTaskRequest : public RoaServiceRequ public: UpdateBenchmarkTaskRequest(); ~UpdateBenchmarkTaskRequest(); - string getTaskName() const; - void setTaskName(string taskName); - string getClusterId() const; - void setClusterId(string clusterId); - string getBody() const; - void setBody(string body); + std::string getTaskName() const; + void setTaskName(const std::string &taskName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getBody() const; + void setBody(const std::string &body); private: - string taskName_; - string clusterId_; - string body_; + std::string taskName_; + std::string clusterId_; + std::string body_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/UpdateResourceDLinkRequest.h b/eas/include/alibabacloud/eas/model/UpdateResourceDLinkRequest.h index b0e844212..fe543bffc 100644 --- a/eas/include/alibabacloud/eas/model/UpdateResourceDLinkRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateResourceDLinkRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT UpdateResourceDLinkRequest : public RoaServiceRequ public: UpdateResourceDLinkRequest(); ~UpdateResourceDLinkRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/UpdateResourceInstanceRequest.h b/eas/include/alibabacloud/eas/model/UpdateResourceInstanceRequest.h new file mode 100644 index 000000000..2f816f48c --- /dev/null +++ b/eas/include/alibabacloud/eas/model/UpdateResourceInstanceRequest.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_EAS_MODEL_UPDATERESOURCEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_UPDATERESOURCEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT UpdateResourceInstanceRequest : public RoaServiceRequest { +public: + UpdateResourceInstanceRequest(); + ~UpdateResourceInstanceRequest(); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string resourceId_; + std::string instanceId_; + std::string clusterId_; + std::string body_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_UPDATERESOURCEINSTANCEREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/UpdateResourceInstanceResult.h b/eas/include/alibabacloud/eas/model/UpdateResourceInstanceResult.h new file mode 100644 index 000000000..08025b1b7 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/UpdateResourceInstanceResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_UPDATERESOURCEINSTANCERESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_UPDATERESOURCEINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT UpdateResourceInstanceResult : public ServiceResult + { + public: + + + UpdateResourceInstanceResult(); + explicit UpdateResourceInstanceResult(const std::string &payload); + ~UpdateResourceInstanceResult(); + std::string getResourceId()const; + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string resourceId_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_UPDATERESOURCEINSTANCERESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/UpdateResourceRequest.h b/eas/include/alibabacloud/eas/model/UpdateResourceRequest.h index 848b7eca0..d6e858037 100644 --- a/eas/include/alibabacloud/eas/model/UpdateResourceRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateResourceRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT UpdateResourceRequest : public RoaServiceRequest { public: UpdateResourceRequest(); ~UpdateResourceRequest(); - string getResourceId() const; - void setResourceId(string resourceId); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string resourceId_; - string clusterId_; + std::string resourceId_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceAutoScalerRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceAutoScalerRequest.h index a28c383ae..4afb5e20c 100644 --- a/eas/include/alibabacloud/eas/model/UpdateServiceAutoScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateServiceAutoScalerRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT UpdateServiceAutoScalerRequest : public RoaService public: UpdateServiceAutoScalerRequest(); ~UpdateServiceAutoScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceCronScalerRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceCronScalerRequest.h index 1f56e7e0b..43a6812c1 100644 --- a/eas/include/alibabacloud/eas/model/UpdateServiceCronScalerRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateServiceCronScalerRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT UpdateServiceCronScalerRequest : public RoaService public: UpdateServiceCronScalerRequest(); ~UpdateServiceCronScalerRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceLabelRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceLabelRequest.h new file mode 100644 index 000000000..5583d8293 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/UpdateServiceLabelRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_UPDATESERVICELABELREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_UPDATESERVICELABELREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT UpdateServiceLabelRequest : public RoaServiceRequest { +public: + UpdateServiceLabelRequest(); + ~UpdateServiceLabelRequest(); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string serviceName_; + std::string clusterId_; + std::string body_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_UPDATESERVICELABELREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceLabelResult.h b/eas/include/alibabacloud/eas/model/UpdateServiceLabelResult.h new file mode 100644 index 000000000..774749667 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/UpdateServiceLabelResult.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_EAS_MODEL_UPDATESERVICELABELRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_UPDATESERVICELABELRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT UpdateServiceLabelResult : public ServiceResult + { + public: + + + UpdateServiceLabelResult(); + explicit UpdateServiceLabelResult(const std::string &payload); + ~UpdateServiceLabelResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_UPDATESERVICELABELRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceMirrorRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceMirrorRequest.h index 62e68e860..5f7f59368 100644 --- a/eas/include/alibabacloud/eas/model/UpdateServiceMirrorRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateServiceMirrorRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT UpdateServiceMirrorRequest : public RoaServiceRequ public: UpdateServiceMirrorRequest(); ~UpdateServiceMirrorRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceRequest.h index d3076d772..07ae4ce46 100644 --- a/eas/include/alibabacloud/eas/model/UpdateServiceRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateServiceRequest.h @@ -30,17 +30,17 @@ class ALIBABACLOUD_EAS_EXPORT UpdateServiceRequest : public RoaServiceRequest { public: UpdateServiceRequest(); ~UpdateServiceRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); - string getBody() const; - void setBody(string body); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getBody() const; + void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; - string body_; + std::string serviceName_; + std::string clusterId_; + std::string body_; }; } // namespace Model } // namespace Eas diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockRequest.h new file mode 100644 index 000000000..ffed7bf57 --- /dev/null +++ b/eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EAS_MODEL_UPDATESERVICESAFETYLOCKREQUEST_H_ +#define ALIBABACLOUD_EAS_MODEL_UPDATESERVICESAFETYLOCKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Eas { +namespace Model { +class ALIBABACLOUD_EAS_EXPORT UpdateServiceSafetyLockRequest : public RoaServiceRequest { +public: + UpdateServiceSafetyLockRequest(); + ~UpdateServiceSafetyLockRequest(); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getBody() const; + void setBody(const std::string &body); + +private: + std::string serviceName_; + std::string clusterId_; + std::string body_; +}; +} // namespace Model +} // namespace Eas +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EAS_MODEL_UPDATESERVICESAFETYLOCKREQUEST_H_ diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockResult.h b/eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockResult.h new file mode 100644 index 000000000..dc633093f --- /dev/null +++ b/eas/include/alibabacloud/eas/model/UpdateServiceSafetyLockResult.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_EAS_MODEL_UPDATESERVICESAFETYLOCKRESULT_H_ +#define ALIBABACLOUD_EAS_MODEL_UPDATESERVICESAFETYLOCKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Eas + { + namespace Model + { + class ALIBABACLOUD_EAS_EXPORT UpdateServiceSafetyLockResult : public ServiceResult + { + public: + + + UpdateServiceSafetyLockResult(); + explicit UpdateServiceSafetyLockResult(const std::string &payload); + ~UpdateServiceSafetyLockResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EAS_MODEL_UPDATESERVICESAFETYLOCKRESULT_H_ \ No newline at end of file diff --git a/eas/include/alibabacloud/eas/model/UpdateServiceVersionRequest.h b/eas/include/alibabacloud/eas/model/UpdateServiceVersionRequest.h index 7a5e28b2c..73d50c45d 100644 --- a/eas/include/alibabacloud/eas/model/UpdateServiceVersionRequest.h +++ b/eas/include/alibabacloud/eas/model/UpdateServiceVersionRequest.h @@ -30,16 +30,16 @@ class ALIBABACLOUD_EAS_EXPORT UpdateServiceVersionRequest : public RoaServiceReq public: UpdateServiceVersionRequest(); ~UpdateServiceVersionRequest(); - string getServiceName() const; - void setServiceName(string serviceName); - string getClusterId() const; - void setClusterId(string clusterId); + std::string getServiceName() const; + void setServiceName(const std::string &serviceName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getBody() const; void setBody(const std::string &body); private: - string serviceName_; - string clusterId_; + std::string serviceName_; + std::string clusterId_; std::string body_; }; } // namespace Model diff --git a/eas/src/EasClient.cc b/eas/src/EasClient.cc index 3c7b9333d..2b7af7314 100644 --- a/eas/src/EasClient.cc +++ b/eas/src/EasClient.cc @@ -51,6 +51,42 @@ EasClient::EasClient(const std::string & accessKeyId, const std::string & access EasClient::~EasClient() {} +EasClient::CommitServiceOutcome EasClient::commitService(const CommitServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CommitServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CommitServiceOutcome(CommitServiceResult(outcome.result())); + else + return CommitServiceOutcome(outcome.error()); +} + +void EasClient::commitServiceAsync(const CommitServiceRequest& request, const CommitServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, commitService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::CommitServiceOutcomeCallable EasClient::commitServiceCallable(const CommitServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->commitService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::CreateBenchmarkTaskOutcome EasClient::createBenchmarkTask(const CreateBenchmarkTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +699,42 @@ EasClient::DeleteServiceInstancesOutcomeCallable EasClient::deleteServiceInstanc return task->get_future(); } +EasClient::DeleteServiceLabelOutcome EasClient::deleteServiceLabel(const DeleteServiceLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServiceLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServiceLabelOutcome(DeleteServiceLabelResult(outcome.result())); + else + return DeleteServiceLabelOutcome(outcome.error()); +} + +void EasClient::deleteServiceLabelAsync(const DeleteServiceLabelRequest& request, const DeleteServiceLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServiceLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DeleteServiceLabelOutcomeCallable EasClient::deleteServiceLabelCallable(const DeleteServiceLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServiceLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::DeleteServiceMirrorOutcome EasClient::deleteServiceMirror(const DeleteServiceMirrorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +843,42 @@ EasClient::DescribeBenchmarkTaskReportOutcomeCallable EasClient::describeBenchma return task->get_future(); } +EasClient::DescribeGroupOutcome EasClient::describeGroup(const DescribeGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupOutcome(DescribeGroupResult(outcome.result())); + else + return DescribeGroupOutcome(outcome.error()); +} + +void EasClient::describeGroupAsync(const DescribeGroupRequest& request, const DescribeGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DescribeGroupOutcomeCallable EasClient::describeGroupCallable(const DescribeGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::DescribeResourceOutcome EasClient::describeResource(const DescribeResourceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,6 +1095,42 @@ EasClient::DescribeServiceCronScalerOutcomeCallable EasClient::describeServiceCr return task->get_future(); } +EasClient::DescribeServiceEventOutcome EasClient::describeServiceEvent(const DescribeServiceEventRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServiceEventOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServiceEventOutcome(DescribeServiceEventResult(outcome.result())); + else + return DescribeServiceEventOutcome(outcome.error()); +} + +void EasClient::describeServiceEventAsync(const DescribeServiceEventRequest& request, const DescribeServiceEventAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeServiceEvent(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DescribeServiceEventOutcomeCallable EasClient::describeServiceEventCallable(const DescribeServiceEventRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeServiceEvent(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::DescribeServiceLogOutcome EasClient::describeServiceLog(const DescribeServiceLogRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1059,6 +1203,42 @@ EasClient::DescribeServiceMirrorOutcomeCallable EasClient::describeServiceMirror return task->get_future(); } +EasClient::DevelopServiceOutcome EasClient::developService(const DevelopServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DevelopServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DevelopServiceOutcome(DevelopServiceResult(outcome.result())); + else + return DevelopServiceOutcome(outcome.error()); +} + +void EasClient::developServiceAsync(const DevelopServiceRequest& request, const DevelopServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, developService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::DevelopServiceOutcomeCallable EasClient::developServiceCallable(const DevelopServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->developService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::ListBenchmarkTaskOutcome EasClient::listBenchmarkTask(const ListBenchmarkTaskRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +1275,42 @@ EasClient::ListBenchmarkTaskOutcomeCallable EasClient::listBenchmarkTaskCallable return task->get_future(); } +EasClient::ListGroupsOutcome EasClient::listGroups(const ListGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListGroupsOutcome(ListGroupsResult(outcome.result())); + else + return ListGroupsOutcome(outcome.error()); +} + +void EasClient::listGroupsAsync(const ListGroupsRequest& request, const ListGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ListGroupsOutcomeCallable EasClient::listGroupsCallable(const ListGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::ListResourceInstanceWorkerOutcome EasClient::listResourceInstanceWorker(const ListResourceInstanceWorkerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1491,42 @@ EasClient::ListServiceInstancesOutcomeCallable EasClient::listServiceInstancesCa return task->get_future(); } +EasClient::ListServiceVersionsOutcome EasClient::listServiceVersions(const ListServiceVersionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListServiceVersionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListServiceVersionsOutcome(ListServiceVersionsResult(outcome.result())); + else + return ListServiceVersionsOutcome(outcome.error()); +} + +void EasClient::listServiceVersionsAsync(const ListServiceVersionsRequest& request, const ListServiceVersionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listServiceVersions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::ListServiceVersionsOutcomeCallable EasClient::listServiceVersionsCallable(const ListServiceVersionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listServiceVersions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::ListServicesOutcome EasClient::listServices(const ListServicesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,6 +1851,42 @@ EasClient::UpdateResourceDLinkOutcomeCallable EasClient::updateResourceDLinkCall return task->get_future(); } +EasClient::UpdateResourceInstanceOutcome EasClient::updateResourceInstance(const UpdateResourceInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateResourceInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateResourceInstanceOutcome(UpdateResourceInstanceResult(outcome.result())); + else + return UpdateResourceInstanceOutcome(outcome.error()); +} + +void EasClient::updateResourceInstanceAsync(const UpdateResourceInstanceRequest& request, const UpdateResourceInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateResourceInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::UpdateResourceInstanceOutcomeCallable EasClient::updateResourceInstanceCallable(const UpdateResourceInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateResourceInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::UpdateServiceOutcome EasClient::updateService(const UpdateServiceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1707,6 +1995,42 @@ EasClient::UpdateServiceCronScalerOutcomeCallable EasClient::updateServiceCronSc return task->get_future(); } +EasClient::UpdateServiceLabelOutcome EasClient::updateServiceLabel(const UpdateServiceLabelRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceLabelOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceLabelOutcome(UpdateServiceLabelResult(outcome.result())); + else + return UpdateServiceLabelOutcome(outcome.error()); +} + +void EasClient::updateServiceLabelAsync(const UpdateServiceLabelRequest& request, const UpdateServiceLabelAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServiceLabel(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::UpdateServiceLabelOutcomeCallable EasClient::updateServiceLabelCallable(const UpdateServiceLabelRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServiceLabel(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::UpdateServiceMirrorOutcome EasClient::updateServiceMirror(const UpdateServiceMirrorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1743,6 +2067,42 @@ EasClient::UpdateServiceMirrorOutcomeCallable EasClient::updateServiceMirrorCall return task->get_future(); } +EasClient::UpdateServiceSafetyLockOutcome EasClient::updateServiceSafetyLock(const UpdateServiceSafetyLockRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateServiceSafetyLockOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateServiceSafetyLockOutcome(UpdateServiceSafetyLockResult(outcome.result())); + else + return UpdateServiceSafetyLockOutcome(outcome.error()); +} + +void EasClient::updateServiceSafetyLockAsync(const UpdateServiceSafetyLockRequest& request, const UpdateServiceSafetyLockAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateServiceSafetyLock(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EasClient::UpdateServiceSafetyLockOutcomeCallable EasClient::updateServiceSafetyLockCallable(const UpdateServiceSafetyLockRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateServiceSafetyLock(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EasClient::UpdateServiceVersionOutcome EasClient::updateServiceVersion(const UpdateServiceVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/eas/src/model/CommitServiceRequest.cc b/eas/src/model/CommitServiceRequest.cc new file mode 100644 index 000000000..4ed3431d7 --- /dev/null +++ b/eas/src/model/CommitServiceRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Eas::Model::CommitServiceRequest; + +CommitServiceRequest::CommitServiceRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/commit"}; + setMethod(HttpRequest::Method::Put); +} + +CommitServiceRequest::~CommitServiceRequest() {} + +std::string CommitServiceRequest::getServiceName() const { + return serviceName_; +} + +void CommitServiceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string CommitServiceRequest::getClusterId() const { + return clusterId_; +} + +void CommitServiceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/eas/src/model/CommitServiceResult.cc b/eas/src/model/CommitServiceResult.cc new file mode 100644 index 000000000..4e5b1fae0 --- /dev/null +++ b/eas/src/model/CommitServiceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +CommitServiceResult::CommitServiceResult() : + ServiceResult() +{} + +CommitServiceResult::CommitServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CommitServiceResult::~CommitServiceResult() +{} + +void CommitServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CommitServiceResult::getMessage()const +{ + return message_; +} + diff --git a/eas/src/model/CreateBenchmarkTaskRequest.cc b/eas/src/model/CreateBenchmarkTaskRequest.cc index e095e672c..a0d76afdd 100644 --- a/eas/src/model/CreateBenchmarkTaskRequest.cc +++ b/eas/src/model/CreateBenchmarkTaskRequest.cc @@ -26,12 +26,12 @@ CreateBenchmarkTaskRequest::CreateBenchmarkTaskRequest() CreateBenchmarkTaskRequest::~CreateBenchmarkTaskRequest() {} -string CreateBenchmarkTaskRequest::getBody() const { +std::string CreateBenchmarkTaskRequest::getBody() const { return body_; } -void CreateBenchmarkTaskRequest::setBody(string body) { +void CreateBenchmarkTaskRequest::setBody(const std::string &body) { body_ = body; - setBodyParameter(std::string("body"), std::to_string(body)); + setBodyParameter(std::string("body"), body); } diff --git a/eas/src/model/CreateBenchmarkTaskResult.cc b/eas/src/model/CreateBenchmarkTaskResult.cc index 94cc85062..8b85da021 100644 --- a/eas/src/model/CreateBenchmarkTaskResult.cc +++ b/eas/src/model/CreateBenchmarkTaskResult.cc @@ -39,8 +39,8 @@ void CreateBenchmarkTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); + if(!value["TaskName"].isNull()) + taskName_ = value["TaskName"].asString(); if(!value["Region"].isNull()) region_ = value["Region"].asString(); if(!value["Message"].isNull()) @@ -53,13 +53,13 @@ std::string CreateBenchmarkTaskResult::getMessage()const return message_; } +std::string CreateBenchmarkTaskResult::getTaskName()const +{ + return taskName_; +} + std::string CreateBenchmarkTaskResult::getRegion()const { return region_; } -std::string CreateBenchmarkTaskResult::getName()const -{ - return name_; -} - diff --git a/eas/src/model/CreateResourceInstancesRequest.cc b/eas/src/model/CreateResourceInstancesRequest.cc index f93253be6..1d6207e31 100644 --- a/eas/src/model/CreateResourceInstancesRequest.cc +++ b/eas/src/model/CreateResourceInstancesRequest.cc @@ -26,22 +26,22 @@ CreateResourceInstancesRequest::CreateResourceInstancesRequest() CreateResourceInstancesRequest::~CreateResourceInstancesRequest() {} -string CreateResourceInstancesRequest::getResourceId() const { +std::string CreateResourceInstancesRequest::getResourceId() const { return resourceId_; } -void CreateResourceInstancesRequest::setResourceId(string resourceId) { +void CreateResourceInstancesRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string CreateResourceInstancesRequest::getClusterId() const { +std::string CreateResourceInstancesRequest::getClusterId() const { return clusterId_; } -void CreateResourceInstancesRequest::setClusterId(string clusterId) { +void CreateResourceInstancesRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string CreateResourceInstancesRequest::getBody() const { diff --git a/eas/src/model/CreateResourceLogRequest.cc b/eas/src/model/CreateResourceLogRequest.cc index 05a6f3e03..bb98694db 100644 --- a/eas/src/model/CreateResourceLogRequest.cc +++ b/eas/src/model/CreateResourceLogRequest.cc @@ -26,22 +26,22 @@ CreateResourceLogRequest::CreateResourceLogRequest() CreateResourceLogRequest::~CreateResourceLogRequest() {} -string CreateResourceLogRequest::getResourceId() const { +std::string CreateResourceLogRequest::getResourceId() const { return resourceId_; } -void CreateResourceLogRequest::setResourceId(string resourceId) { +void CreateResourceLogRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string CreateResourceLogRequest::getClusterId() const { +std::string CreateResourceLogRequest::getClusterId() const { return clusterId_; } -void CreateResourceLogRequest::setClusterId(string clusterId) { +void CreateResourceLogRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string CreateResourceLogRequest::getBody() const { diff --git a/eas/src/model/CreateServiceAutoScalerRequest.cc b/eas/src/model/CreateServiceAutoScalerRequest.cc index 52a6a0218..8f4ea3ecc 100644 --- a/eas/src/model/CreateServiceAutoScalerRequest.cc +++ b/eas/src/model/CreateServiceAutoScalerRequest.cc @@ -26,22 +26,22 @@ CreateServiceAutoScalerRequest::CreateServiceAutoScalerRequest() CreateServiceAutoScalerRequest::~CreateServiceAutoScalerRequest() {} -string CreateServiceAutoScalerRequest::getServiceName() const { +std::string CreateServiceAutoScalerRequest::getServiceName() const { return serviceName_; } -void CreateServiceAutoScalerRequest::setServiceName(string serviceName) { +void CreateServiceAutoScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string CreateServiceAutoScalerRequest::getClusterId() const { +std::string CreateServiceAutoScalerRequest::getClusterId() const { return clusterId_; } -void CreateServiceAutoScalerRequest::setClusterId(string clusterId) { +void CreateServiceAutoScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string CreateServiceAutoScalerRequest::getBody() const { diff --git a/eas/src/model/CreateServiceCronScalerRequest.cc b/eas/src/model/CreateServiceCronScalerRequest.cc index 46bf466ee..78e353c6e 100644 --- a/eas/src/model/CreateServiceCronScalerRequest.cc +++ b/eas/src/model/CreateServiceCronScalerRequest.cc @@ -26,22 +26,22 @@ CreateServiceCronScalerRequest::CreateServiceCronScalerRequest() CreateServiceCronScalerRequest::~CreateServiceCronScalerRequest() {} -string CreateServiceCronScalerRequest::getServiceName() const { +std::string CreateServiceCronScalerRequest::getServiceName() const { return serviceName_; } -void CreateServiceCronScalerRequest::setServiceName(string serviceName) { +void CreateServiceCronScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string CreateServiceCronScalerRequest::getClusterId() const { +std::string CreateServiceCronScalerRequest::getClusterId() const { return clusterId_; } -void CreateServiceCronScalerRequest::setClusterId(string clusterId) { +void CreateServiceCronScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string CreateServiceCronScalerRequest::getBody() const { diff --git a/eas/src/model/CreateServiceMirrorRequest.cc b/eas/src/model/CreateServiceMirrorRequest.cc index 98582a02d..78b02b007 100644 --- a/eas/src/model/CreateServiceMirrorRequest.cc +++ b/eas/src/model/CreateServiceMirrorRequest.cc @@ -26,22 +26,22 @@ CreateServiceMirrorRequest::CreateServiceMirrorRequest() CreateServiceMirrorRequest::~CreateServiceMirrorRequest() {} -string CreateServiceMirrorRequest::getServiceName() const { +std::string CreateServiceMirrorRequest::getServiceName() const { return serviceName_; } -void CreateServiceMirrorRequest::setServiceName(string serviceName) { +void CreateServiceMirrorRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string CreateServiceMirrorRequest::getClusterId() const { +std::string CreateServiceMirrorRequest::getClusterId() const { return clusterId_; } -void CreateServiceMirrorRequest::setClusterId(string clusterId) { +void CreateServiceMirrorRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string CreateServiceMirrorRequest::getBody() const { diff --git a/eas/src/model/CreateServiceRequest.cc b/eas/src/model/CreateServiceRequest.cc index 6223a6a51..f5764c569 100644 --- a/eas/src/model/CreateServiceRequest.cc +++ b/eas/src/model/CreateServiceRequest.cc @@ -26,12 +26,30 @@ CreateServiceRequest::CreateServiceRequest() CreateServiceRequest::~CreateServiceRequest() {} -string CreateServiceRequest::getBody() const { +std::string CreateServiceRequest::getDevelop() const { + return develop_; +} + +void CreateServiceRequest::setDevelop(const std::string &develop) { + develop_ = develop; + setParameter(std::string("Develop"), develop); +} + +std::string CreateServiceRequest::getBody() const { return body_; } -void CreateServiceRequest::setBody(string body) { +void CreateServiceRequest::setBody(const std::string &body) { body_ = body; - setBodyParameter(std::string("body"), std::to_string(body)); + setBodyParameter(std::string("body"), body); +} + +std::string CreateServiceRequest::getLabels() const { + return labels_; +} + +void CreateServiceRequest::setLabels(const std::string &labels) { + labels_ = labels; + setParameter(std::string("Labels"), labels); } diff --git a/eas/src/model/DeleteBenchmarkTaskRequest.cc b/eas/src/model/DeleteBenchmarkTaskRequest.cc index 9f9fd2d1e..1698784f1 100644 --- a/eas/src/model/DeleteBenchmarkTaskRequest.cc +++ b/eas/src/model/DeleteBenchmarkTaskRequest.cc @@ -26,21 +26,21 @@ DeleteBenchmarkTaskRequest::DeleteBenchmarkTaskRequest() DeleteBenchmarkTaskRequest::~DeleteBenchmarkTaskRequest() {} -string DeleteBenchmarkTaskRequest::getTaskName() const { +std::string DeleteBenchmarkTaskRequest::getTaskName() const { return taskName_; } -void DeleteBenchmarkTaskRequest::setTaskName(string taskName) { +void DeleteBenchmarkTaskRequest::setTaskName(const std::string &taskName) { taskName_ = taskName; - setParameter(std::string("TaskName"), std::to_string(taskName)); + setParameter(std::string("TaskName"), taskName); } -string DeleteBenchmarkTaskRequest::getClusterId() const { +std::string DeleteBenchmarkTaskRequest::getClusterId() const { return clusterId_; } -void DeleteBenchmarkTaskRequest::setClusterId(string clusterId) { +void DeleteBenchmarkTaskRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteResourceDLinkRequest.cc b/eas/src/model/DeleteResourceDLinkRequest.cc index 0eca83a29..b9f5cb0d4 100644 --- a/eas/src/model/DeleteResourceDLinkRequest.cc +++ b/eas/src/model/DeleteResourceDLinkRequest.cc @@ -26,21 +26,21 @@ DeleteResourceDLinkRequest::DeleteResourceDLinkRequest() DeleteResourceDLinkRequest::~DeleteResourceDLinkRequest() {} -string DeleteResourceDLinkRequest::getResourceId() const { +std::string DeleteResourceDLinkRequest::getResourceId() const { return resourceId_; } -void DeleteResourceDLinkRequest::setResourceId(string resourceId) { +void DeleteResourceDLinkRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string DeleteResourceDLinkRequest::getClusterId() const { +std::string DeleteResourceDLinkRequest::getClusterId() const { return clusterId_; } -void DeleteResourceDLinkRequest::setClusterId(string clusterId) { +void DeleteResourceDLinkRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteResourceInstancesRequest.cc b/eas/src/model/DeleteResourceInstancesRequest.cc index b62506d27..d270d933c 100644 --- a/eas/src/model/DeleteResourceInstancesRequest.cc +++ b/eas/src/model/DeleteResourceInstancesRequest.cc @@ -26,39 +26,39 @@ DeleteResourceInstancesRequest::DeleteResourceInstancesRequest() DeleteResourceInstancesRequest::~DeleteResourceInstancesRequest() {} -string DeleteResourceInstancesRequest::getInstanceList() const { +std::string DeleteResourceInstancesRequest::getInstanceList() const { return instanceList_; } -void DeleteResourceInstancesRequest::setInstanceList(string instanceList) { +void DeleteResourceInstancesRequest::setInstanceList(const std::string &instanceList) { instanceList_ = instanceList; - setParameter(std::string("InstanceList"), std::to_string(instanceList)); + setParameter(std::string("InstanceList"), instanceList); } -string DeleteResourceInstancesRequest::getResourceId() const { +std::string DeleteResourceInstancesRequest::getResourceId() const { return resourceId_; } -void DeleteResourceInstancesRequest::setResourceId(string resourceId) { +void DeleteResourceInstancesRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -boolean DeleteResourceInstancesRequest::getAllFailed() const { +bool DeleteResourceInstancesRequest::getAllFailed() const { return allFailed_; } -void DeleteResourceInstancesRequest::setAllFailed(boolean allFailed) { +void DeleteResourceInstancesRequest::setAllFailed(bool allFailed) { allFailed_ = allFailed; - setParameter(std::string("AllFailed"), std::to_string(allFailed)); + setParameter(std::string("AllFailed"), allFailed ? "true" : "false"); } -string DeleteResourceInstancesRequest::getClusterId() const { +std::string DeleteResourceInstancesRequest::getClusterId() const { return clusterId_; } -void DeleteResourceInstancesRequest::setClusterId(string clusterId) { +void DeleteResourceInstancesRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteResourceLogRequest.cc b/eas/src/model/DeleteResourceLogRequest.cc index 894dc923d..19911c912 100644 --- a/eas/src/model/DeleteResourceLogRequest.cc +++ b/eas/src/model/DeleteResourceLogRequest.cc @@ -26,21 +26,21 @@ DeleteResourceLogRequest::DeleteResourceLogRequest() DeleteResourceLogRequest::~DeleteResourceLogRequest() {} -string DeleteResourceLogRequest::getResourceId() const { +std::string DeleteResourceLogRequest::getResourceId() const { return resourceId_; } -void DeleteResourceLogRequest::setResourceId(string resourceId) { +void DeleteResourceLogRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string DeleteResourceLogRequest::getClusterId() const { +std::string DeleteResourceLogRequest::getClusterId() const { return clusterId_; } -void DeleteResourceLogRequest::setClusterId(string clusterId) { +void DeleteResourceLogRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteResourceRequest.cc b/eas/src/model/DeleteResourceRequest.cc index e816e2977..962d6a1d7 100644 --- a/eas/src/model/DeleteResourceRequest.cc +++ b/eas/src/model/DeleteResourceRequest.cc @@ -26,21 +26,21 @@ DeleteResourceRequest::DeleteResourceRequest() DeleteResourceRequest::~DeleteResourceRequest() {} -string DeleteResourceRequest::getResourceId() const { +std::string DeleteResourceRequest::getResourceId() const { return resourceId_; } -void DeleteResourceRequest::setResourceId(string resourceId) { +void DeleteResourceRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string DeleteResourceRequest::getClusterId() const { +std::string DeleteResourceRequest::getClusterId() const { return clusterId_; } -void DeleteResourceRequest::setClusterId(string clusterId) { +void DeleteResourceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteServiceAutoScalerRequest.cc b/eas/src/model/DeleteServiceAutoScalerRequest.cc index 457179001..7c381df4c 100644 --- a/eas/src/model/DeleteServiceAutoScalerRequest.cc +++ b/eas/src/model/DeleteServiceAutoScalerRequest.cc @@ -26,21 +26,21 @@ DeleteServiceAutoScalerRequest::DeleteServiceAutoScalerRequest() DeleteServiceAutoScalerRequest::~DeleteServiceAutoScalerRequest() {} -string DeleteServiceAutoScalerRequest::getServiceName() const { +std::string DeleteServiceAutoScalerRequest::getServiceName() const { return serviceName_; } -void DeleteServiceAutoScalerRequest::setServiceName(string serviceName) { +void DeleteServiceAutoScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DeleteServiceAutoScalerRequest::getClusterId() const { +std::string DeleteServiceAutoScalerRequest::getClusterId() const { return clusterId_; } -void DeleteServiceAutoScalerRequest::setClusterId(string clusterId) { +void DeleteServiceAutoScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteServiceCronScalerRequest.cc b/eas/src/model/DeleteServiceCronScalerRequest.cc index a2ffdcc00..f1875cad9 100644 --- a/eas/src/model/DeleteServiceCronScalerRequest.cc +++ b/eas/src/model/DeleteServiceCronScalerRequest.cc @@ -26,21 +26,21 @@ DeleteServiceCronScalerRequest::DeleteServiceCronScalerRequest() DeleteServiceCronScalerRequest::~DeleteServiceCronScalerRequest() {} -string DeleteServiceCronScalerRequest::getServiceName() const { +std::string DeleteServiceCronScalerRequest::getServiceName() const { return serviceName_; } -void DeleteServiceCronScalerRequest::setServiceName(string serviceName) { +void DeleteServiceCronScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DeleteServiceCronScalerRequest::getClusterId() const { +std::string DeleteServiceCronScalerRequest::getClusterId() const { return clusterId_; } -void DeleteServiceCronScalerRequest::setClusterId(string clusterId) { +void DeleteServiceCronScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteServiceInstancesRequest.cc b/eas/src/model/DeleteServiceInstancesRequest.cc index 2d8a369cd..379d9725a 100644 --- a/eas/src/model/DeleteServiceInstancesRequest.cc +++ b/eas/src/model/DeleteServiceInstancesRequest.cc @@ -26,30 +26,30 @@ DeleteServiceInstancesRequest::DeleteServiceInstancesRequest() DeleteServiceInstancesRequest::~DeleteServiceInstancesRequest() {} -string DeleteServiceInstancesRequest::getInstanceList() const { +std::string DeleteServiceInstancesRequest::getInstanceList() const { return instanceList_; } -void DeleteServiceInstancesRequest::setInstanceList(string instanceList) { +void DeleteServiceInstancesRequest::setInstanceList(const std::string &instanceList) { instanceList_ = instanceList; - setParameter(std::string("InstanceList"), std::to_string(instanceList)); + setParameter(std::string("InstanceList"), instanceList); } -string DeleteServiceInstancesRequest::getServiceName() const { +std::string DeleteServiceInstancesRequest::getServiceName() const { return serviceName_; } -void DeleteServiceInstancesRequest::setServiceName(string serviceName) { +void DeleteServiceInstancesRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DeleteServiceInstancesRequest::getClusterId() const { +std::string DeleteServiceInstancesRequest::getClusterId() const { return clusterId_; } -void DeleteServiceInstancesRequest::setClusterId(string clusterId) { +void DeleteServiceInstancesRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteServiceLabelRequest.cc b/eas/src/model/DeleteServiceLabelRequest.cc new file mode 100644 index 000000000..a5cad9ce5 --- /dev/null +++ b/eas/src/model/DeleteServiceLabelRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Eas::Model::DeleteServiceLabelRequest; + +DeleteServiceLabelRequest::DeleteServiceLabelRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/label"}; + setMethod(HttpRequest::Method::Delete); +} + +DeleteServiceLabelRequest::~DeleteServiceLabelRequest() {} + +std::string DeleteServiceLabelRequest::getServiceName() const { + return serviceName_; +} + +void DeleteServiceLabelRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string DeleteServiceLabelRequest::getClusterId() const { + return clusterId_; +} + +void DeleteServiceLabelRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/eas/src/model/DeleteServiceLabelResult.cc b/eas/src/model/DeleteServiceLabelResult.cc new file mode 100644 index 000000000..63bf2ae98 --- /dev/null +++ b/eas/src/model/DeleteServiceLabelResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +DeleteServiceLabelResult::DeleteServiceLabelResult() : + ServiceResult() +{} + +DeleteServiceLabelResult::DeleteServiceLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServiceLabelResult::~DeleteServiceLabelResult() +{} + +void DeleteServiceLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteServiceLabelResult::getMessage()const +{ + return message_; +} + diff --git a/eas/src/model/DeleteServiceMirrorRequest.cc b/eas/src/model/DeleteServiceMirrorRequest.cc index c2fe0dd46..f005d0c82 100644 --- a/eas/src/model/DeleteServiceMirrorRequest.cc +++ b/eas/src/model/DeleteServiceMirrorRequest.cc @@ -26,21 +26,21 @@ DeleteServiceMirrorRequest::DeleteServiceMirrorRequest() DeleteServiceMirrorRequest::~DeleteServiceMirrorRequest() {} -string DeleteServiceMirrorRequest::getServiceName() const { +std::string DeleteServiceMirrorRequest::getServiceName() const { return serviceName_; } -void DeleteServiceMirrorRequest::setServiceName(string serviceName) { +void DeleteServiceMirrorRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DeleteServiceMirrorRequest::getClusterId() const { +std::string DeleteServiceMirrorRequest::getClusterId() const { return clusterId_; } -void DeleteServiceMirrorRequest::setClusterId(string clusterId) { +void DeleteServiceMirrorRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DeleteServiceRequest.cc b/eas/src/model/DeleteServiceRequest.cc index 422919f17..a41e25d17 100644 --- a/eas/src/model/DeleteServiceRequest.cc +++ b/eas/src/model/DeleteServiceRequest.cc @@ -26,21 +26,21 @@ DeleteServiceRequest::DeleteServiceRequest() DeleteServiceRequest::~DeleteServiceRequest() {} -string DeleteServiceRequest::getServiceName() const { +std::string DeleteServiceRequest::getServiceName() const { return serviceName_; } -void DeleteServiceRequest::setServiceName(string serviceName) { +void DeleteServiceRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DeleteServiceRequest::getClusterId() const { +std::string DeleteServiceRequest::getClusterId() const { return clusterId_; } -void DeleteServiceRequest::setClusterId(string clusterId) { +void DeleteServiceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeBenchmarkTaskReportRequest.cc b/eas/src/model/DescribeBenchmarkTaskReportRequest.cc index 2c03d0c0f..4b12daf0a 100644 --- a/eas/src/model/DescribeBenchmarkTaskReportRequest.cc +++ b/eas/src/model/DescribeBenchmarkTaskReportRequest.cc @@ -26,21 +26,30 @@ DescribeBenchmarkTaskReportRequest::DescribeBenchmarkTaskReportRequest() DescribeBenchmarkTaskReportRequest::~DescribeBenchmarkTaskReportRequest() {} -string DescribeBenchmarkTaskReportRequest::getTaskName() const { +std::string DescribeBenchmarkTaskReportRequest::getReportType() const { + return reportType_; +} + +void DescribeBenchmarkTaskReportRequest::setReportType(const std::string &reportType) { + reportType_ = reportType; + setParameter(std::string("ReportType"), reportType); +} + +std::string DescribeBenchmarkTaskReportRequest::getTaskName() const { return taskName_; } -void DescribeBenchmarkTaskReportRequest::setTaskName(string taskName) { +void DescribeBenchmarkTaskReportRequest::setTaskName(const std::string &taskName) { taskName_ = taskName; - setParameter(std::string("TaskName"), std::to_string(taskName)); + setParameter(std::string("TaskName"), taskName); } -string DescribeBenchmarkTaskReportRequest::getClusterId() const { +std::string DescribeBenchmarkTaskReportRequest::getClusterId() const { return clusterId_; } -void DescribeBenchmarkTaskReportRequest::setClusterId(string clusterId) { +void DescribeBenchmarkTaskReportRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeBenchmarkTaskReportResult.cc b/eas/src/model/DescribeBenchmarkTaskReportResult.cc index 9bc7076e9..1b1f57f1b 100644 --- a/eas/src/model/DescribeBenchmarkTaskReportResult.cc +++ b/eas/src/model/DescribeBenchmarkTaskReportResult.cc @@ -41,6 +41,8 @@ void DescribeBenchmarkTaskReportResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["ReportUrl"].isNull()) reportUrl_ = value["ReportUrl"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); } @@ -49,3 +51,8 @@ std::string DescribeBenchmarkTaskReportResult::getReportUrl()const return reportUrl_; } +ObjectOfAny DescribeBenchmarkTaskReportResult::getData()const +{ + return data_; +} + diff --git a/eas/src/model/DescribeBenchmarkTaskRequest.cc b/eas/src/model/DescribeBenchmarkTaskRequest.cc index c5172f795..26f9ee410 100644 --- a/eas/src/model/DescribeBenchmarkTaskRequest.cc +++ b/eas/src/model/DescribeBenchmarkTaskRequest.cc @@ -26,21 +26,21 @@ DescribeBenchmarkTaskRequest::DescribeBenchmarkTaskRequest() DescribeBenchmarkTaskRequest::~DescribeBenchmarkTaskRequest() {} -string DescribeBenchmarkTaskRequest::getTaskName() const { +std::string DescribeBenchmarkTaskRequest::getTaskName() const { return taskName_; } -void DescribeBenchmarkTaskRequest::setTaskName(string taskName) { +void DescribeBenchmarkTaskRequest::setTaskName(const std::string &taskName) { taskName_ = taskName; - setParameter(std::string("TaskName"), std::to_string(taskName)); + setParameter(std::string("TaskName"), taskName); } -string DescribeBenchmarkTaskRequest::getClusterId() const { +std::string DescribeBenchmarkTaskRequest::getClusterId() const { return clusterId_; } -void DescribeBenchmarkTaskRequest::setClusterId(string clusterId) { +void DescribeBenchmarkTaskRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeBenchmarkTaskResult.cc b/eas/src/model/DescribeBenchmarkTaskResult.cc index c926bb55a..a9b069a1c 100644 --- a/eas/src/model/DescribeBenchmarkTaskResult.cc +++ b/eas/src/model/DescribeBenchmarkTaskResult.cc @@ -61,6 +61,8 @@ void DescribeBenchmarkTaskResult::parse(const std::string &payload) reason_ = value["Reason"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); } @@ -84,6 +86,11 @@ std::string DescribeBenchmarkTaskResult::getMessage()const return message_; } +std::string DescribeBenchmarkTaskResult::getEndpoint()const +{ + return endpoint_; +} + std::string DescribeBenchmarkTaskResult::getTaskName()const { return taskName_; diff --git a/eas/src/model/DescribeGroupRequest.cc b/eas/src/model/DescribeGroupRequest.cc new file mode 100644 index 000000000..571d00a0c --- /dev/null +++ b/eas/src/model/DescribeGroupRequest.cc @@ -0,0 +1,46 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Eas::Model::DescribeGroupRequest; + +DescribeGroupRequest::DescribeGroupRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/groups/[ClusterId]/[GroupName]"}; + setMethod(HttpRequest::Method::Get); +} + +DescribeGroupRequest::~DescribeGroupRequest() {} + +std::string DescribeGroupRequest::getClusterId() const { + return clusterId_; +} + +void DescribeGroupRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeGroupRequest::getGroupName() const { + return groupName_; +} + +void DescribeGroupRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + diff --git a/eas/src/model/DescribeGroupResult.cc b/eas/src/model/DescribeGroupResult.cc new file mode 100644 index 000000000..6c043c11d --- /dev/null +++ b/eas/src/model/DescribeGroupResult.cc @@ -0,0 +1,100 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +DescribeGroupResult::DescribeGroupResult() : + ServiceResult() +{} + +DescribeGroupResult::DescribeGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupResult::~DescribeGroupResult() +{} + +void DescribeGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["UpdateTime"].isNull()) + updateTime_ = value["UpdateTime"].asString(); + if(!value["QueueService"].isNull()) + queueService_ = value["QueueService"].asString(); + if(!value["InternetEndpoint"].isNull()) + internetEndpoint_ = value["InternetEndpoint"].asString(); + if(!value["IntranetEndpoint"].isNull()) + intranetEndpoint_ = value["IntranetEndpoint"].asString(); + if(!value["AccessToken"].isNull()) + accessToken_ = value["AccessToken"].asString(); + +} + +std::string DescribeGroupResult::getClusterId()const +{ + return clusterId_; +} + +std::string DescribeGroupResult::getAccessToken()const +{ + return accessToken_; +} + +std::string DescribeGroupResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeGroupResult::getUpdateTime()const +{ + return updateTime_; +} + +std::string DescribeGroupResult::getInternetEndpoint()const +{ + return internetEndpoint_; +} + +std::string DescribeGroupResult::getQueueService()const +{ + return queueService_; +} + +std::string DescribeGroupResult::getIntranetEndpoint()const +{ + return intranetEndpoint_; +} + +std::string DescribeGroupResult::getName()const +{ + return name_; +} + diff --git a/eas/src/model/DescribeResourceDLinkRequest.cc b/eas/src/model/DescribeResourceDLinkRequest.cc index ce75a2b7a..289ba4138 100644 --- a/eas/src/model/DescribeResourceDLinkRequest.cc +++ b/eas/src/model/DescribeResourceDLinkRequest.cc @@ -26,21 +26,21 @@ DescribeResourceDLinkRequest::DescribeResourceDLinkRequest() DescribeResourceDLinkRequest::~DescribeResourceDLinkRequest() {} -string DescribeResourceDLinkRequest::getResourceId() const { +std::string DescribeResourceDLinkRequest::getResourceId() const { return resourceId_; } -void DescribeResourceDLinkRequest::setResourceId(string resourceId) { +void DescribeResourceDLinkRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string DescribeResourceDLinkRequest::getClusterId() const { +std::string DescribeResourceDLinkRequest::getClusterId() const { return clusterId_; } -void DescribeResourceDLinkRequest::setClusterId(string clusterId) { +void DescribeResourceDLinkRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeResourceLogRequest.cc b/eas/src/model/DescribeResourceLogRequest.cc index c468c5cc0..723a04b45 100644 --- a/eas/src/model/DescribeResourceLogRequest.cc +++ b/eas/src/model/DescribeResourceLogRequest.cc @@ -26,21 +26,21 @@ DescribeResourceLogRequest::DescribeResourceLogRequest() DescribeResourceLogRequest::~DescribeResourceLogRequest() {} -string DescribeResourceLogRequest::getResourceId() const { +std::string DescribeResourceLogRequest::getResourceId() const { return resourceId_; } -void DescribeResourceLogRequest::setResourceId(string resourceId) { +void DescribeResourceLogRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string DescribeResourceLogRequest::getClusterId() const { +std::string DescribeResourceLogRequest::getClusterId() const { return clusterId_; } -void DescribeResourceLogRequest::setClusterId(string clusterId) { +void DescribeResourceLogRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeResourceRequest.cc b/eas/src/model/DescribeResourceRequest.cc index b16b9c3c5..877c3e6d9 100644 --- a/eas/src/model/DescribeResourceRequest.cc +++ b/eas/src/model/DescribeResourceRequest.cc @@ -26,21 +26,21 @@ DescribeResourceRequest::DescribeResourceRequest() DescribeResourceRequest::~DescribeResourceRequest() {} -string DescribeResourceRequest::getResourceId() const { +std::string DescribeResourceRequest::getResourceId() const { return resourceId_; } -void DescribeResourceRequest::setResourceId(string resourceId) { +void DescribeResourceRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string DescribeResourceRequest::getClusterId() const { +std::string DescribeResourceRequest::getClusterId() const { return clusterId_; } -void DescribeResourceRequest::setClusterId(string clusterId) { +void DescribeResourceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeServiceAutoScalerRequest.cc b/eas/src/model/DescribeServiceAutoScalerRequest.cc index 4269bd924..90203f962 100644 --- a/eas/src/model/DescribeServiceAutoScalerRequest.cc +++ b/eas/src/model/DescribeServiceAutoScalerRequest.cc @@ -26,21 +26,21 @@ DescribeServiceAutoScalerRequest::DescribeServiceAutoScalerRequest() DescribeServiceAutoScalerRequest::~DescribeServiceAutoScalerRequest() {} -string DescribeServiceAutoScalerRequest::getServiceName() const { +std::string DescribeServiceAutoScalerRequest::getServiceName() const { return serviceName_; } -void DescribeServiceAutoScalerRequest::setServiceName(string serviceName) { +void DescribeServiceAutoScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DescribeServiceAutoScalerRequest::getClusterId() const { +std::string DescribeServiceAutoScalerRequest::getClusterId() const { return clusterId_; } -void DescribeServiceAutoScalerRequest::setClusterId(string clusterId) { +void DescribeServiceAutoScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeServiceAutoScalerResult.cc b/eas/src/model/DescribeServiceAutoScalerResult.cc index 2e4f472e2..6545dab12 100644 --- a/eas/src/model/DescribeServiceAutoScalerResult.cc +++ b/eas/src/model/DescribeServiceAutoScalerResult.cc @@ -39,19 +39,46 @@ void DescribeServiceAutoScalerResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allScaleStrategiesNode = value["ScaleStrategies"]["ScaleStrategy"]; + for (auto valueScaleStrategiesScaleStrategy : allScaleStrategiesNode) + { + ScaleStrategy scaleStrategiesObject; + if(!valueScaleStrategiesScaleStrategy["metricName"].isNull()) + scaleStrategiesObject.metricName = valueScaleStrategiesScaleStrategy["metricName"].asString(); + if(!valueScaleStrategiesScaleStrategy["threshold"].isNull()) + scaleStrategiesObject.threshold = std::stof(valueScaleStrategiesScaleStrategy["threshold"].asString()); + if(!valueScaleStrategiesScaleStrategy["service"].isNull()) + scaleStrategiesObject.service = valueScaleStrategiesScaleStrategy["service"].asString(); + scaleStrategies_.push_back(scaleStrategiesObject); + } + auto allCurrentMetricsNode = value["CurrentMetrics"]["CurrentMetric"]; + for (auto valueCurrentMetricsCurrentMetric : allCurrentMetricsNode) + { + CurrentMetric currentMetricsObject; + if(!valueCurrentMetricsCurrentMetric["metricName"].isNull()) + currentMetricsObject.metricName = valueCurrentMetricsCurrentMetric["metricName"].asString(); + if(!valueCurrentMetricsCurrentMetric["value"].isNull()) + currentMetricsObject.value = std::stof(valueCurrentMetricsCurrentMetric["value"].asString()); + if(!valueCurrentMetricsCurrentMetric["service"].isNull()) + currentMetricsObject.service = valueCurrentMetricsCurrentMetric["service"].asString(); + currentMetrics_.push_back(currentMetricsObject); + } if(!value["ServiceName"].isNull()) serviceName_ = value["ServiceName"].asString(); if(!value["MinReplica"].isNull()) minReplica_ = std::stoi(value["MinReplica"].asString()); if(!value["MaxReplica"].isNull()) maxReplica_ = std::stoi(value["MaxReplica"].asString()); - if(!value["Strategies"].isNull()) - strategies_ = value["Strategies"].asString(); - if(!value["CurrentValues"].isNull()) - currentValues_ = value["CurrentValues"].asString(); + if(!value["Behavior"].isNull()) + behavior_ = value["Behavior"].asString(); } +std::vector DescribeServiceAutoScalerResult::getCurrentMetrics()const +{ + return currentMetrics_; +} + int DescribeServiceAutoScalerResult::getMaxReplica()const { return maxReplica_; @@ -62,18 +89,18 @@ std::string DescribeServiceAutoScalerResult::getServiceName()const return serviceName_; } -std::string DescribeServiceAutoScalerResult::getStrategies()const -{ - return strategies_; -} - int DescribeServiceAutoScalerResult::getMinReplica()const { return minReplica_; } -std::string DescribeServiceAutoScalerResult::getCurrentValues()const +std::vector DescribeServiceAutoScalerResult::getScaleStrategies()const { - return currentValues_; + return scaleStrategies_; +} + +std::string DescribeServiceAutoScalerResult::getBehavior()const +{ + return behavior_; } diff --git a/eas/src/model/DescribeServiceCronScalerRequest.cc b/eas/src/model/DescribeServiceCronScalerRequest.cc index 38bd1693b..920b94c5a 100644 --- a/eas/src/model/DescribeServiceCronScalerRequest.cc +++ b/eas/src/model/DescribeServiceCronScalerRequest.cc @@ -26,21 +26,21 @@ DescribeServiceCronScalerRequest::DescribeServiceCronScalerRequest() DescribeServiceCronScalerRequest::~DescribeServiceCronScalerRequest() {} -string DescribeServiceCronScalerRequest::getServiceName() const { +std::string DescribeServiceCronScalerRequest::getServiceName() const { return serviceName_; } -void DescribeServiceCronScalerRequest::setServiceName(string serviceName) { +void DescribeServiceCronScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DescribeServiceCronScalerRequest::getClusterId() const { +std::string DescribeServiceCronScalerRequest::getClusterId() const { return clusterId_; } -void DescribeServiceCronScalerRequest::setClusterId(string clusterId) { +void DescribeServiceCronScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeServiceEventRequest.cc b/eas/src/model/DescribeServiceEventRequest.cc new file mode 100644 index 000000000..d51d26ba1 --- /dev/null +++ b/eas/src/model/DescribeServiceEventRequest.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::DescribeServiceEventRequest; + +DescribeServiceEventRequest::DescribeServiceEventRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/events"}; + setMethod(HttpRequest::Method::Get); +} + +DescribeServiceEventRequest::~DescribeServiceEventRequest() {} + +std::string DescribeServiceEventRequest::getPageSize() const { + return pageSize_; +} + +void DescribeServiceEventRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string DescribeServiceEventRequest::getEndTime() const { + return endTime_; +} + +void DescribeServiceEventRequest::setEndTime(const std::string &endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), endTime); +} + +std::string DescribeServiceEventRequest::getServiceName() const { + return serviceName_; +} + +void DescribeServiceEventRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string DescribeServiceEventRequest::getClusterId() const { + return clusterId_; +} + +void DescribeServiceEventRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeServiceEventRequest::getStartTime() const { + return startTime_; +} + +void DescribeServiceEventRequest::setStartTime(const std::string &startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), startTime); +} + +std::string DescribeServiceEventRequest::getPageNum() const { + return pageNum_; +} + +void DescribeServiceEventRequest::setPageNum(const std::string &pageNum) { + pageNum_ = pageNum; + setParameter(std::string("PageNum"), pageNum); +} + diff --git a/eas/src/model/DescribeServiceEventResult.cc b/eas/src/model/DescribeServiceEventResult.cc new file mode 100644 index 000000000..950db9bf8 --- /dev/null +++ b/eas/src/model/DescribeServiceEventResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +DescribeServiceEventResult::DescribeServiceEventResult() : + ServiceResult() +{} + +DescribeServiceEventResult::DescribeServiceEventResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServiceEventResult::~DescribeServiceEventResult() +{} + +void DescribeServiceEventResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEventsNode = value["Events"]["eventsItem"]; + for (auto valueEventseventsItem : allEventsNode) + { + EventsItem eventsObject; + if(!valueEventseventsItem["Type"].isNull()) + eventsObject.type = valueEventseventsItem["Type"].asString(); + if(!valueEventseventsItem["Reason"].isNull()) + eventsObject.reason = valueEventseventsItem["Reason"].asString(); + if(!valueEventseventsItem["Message"].isNull()) + eventsObject.message = valueEventseventsItem["Message"].asString(); + if(!valueEventseventsItem["Time"].isNull()) + eventsObject.time = valueEventseventsItem["Time"].asString(); + events_.push_back(eventsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + if(!value["TotalPageNum"].isNull()) + totalPageNum_ = std::stol(value["TotalPageNum"].asString()); + if(!value["PageNum"].isNull()) + pageNum_ = std::stol(value["PageNum"].asString()); + +} + +long DescribeServiceEventResult::getTotalCount()const +{ + return totalCount_; +} + +long DescribeServiceEventResult::getPageNum()const +{ + return pageNum_; +} + +std::vector DescribeServiceEventResult::getEvents()const +{ + return events_; +} + +long DescribeServiceEventResult::getTotalPageNum()const +{ + return totalPageNum_; +} + diff --git a/eas/src/model/DescribeServiceLogRequest.cc b/eas/src/model/DescribeServiceLogRequest.cc index f45445197..8d7112bc6 100644 --- a/eas/src/model/DescribeServiceLogRequest.cc +++ b/eas/src/model/DescribeServiceLogRequest.cc @@ -26,75 +26,75 @@ DescribeServiceLogRequest::DescribeServiceLogRequest() DescribeServiceLogRequest::~DescribeServiceLogRequest() {} -string DescribeServiceLogRequest::getIp() const { +std::string DescribeServiceLogRequest::getIp() const { return ip_; } -void DescribeServiceLogRequest::setIp(string ip) { +void DescribeServiceLogRequest::setIp(const std::string &ip) { ip_ = ip; - setParameter(std::string("Ip"), std::to_string(ip)); + setParameter(std::string("Ip"), ip); } -integer DescribeServiceLogRequest::getPageSize() const { +long DescribeServiceLogRequest::getPageSize() const { return pageSize_; } -void DescribeServiceLogRequest::setPageSize(integer pageSize) { +void DescribeServiceLogRequest::setPageSize(long pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -string DescribeServiceLogRequest::getEndTime() const { +std::string DescribeServiceLogRequest::getEndTime() const { return endTime_; } -void DescribeServiceLogRequest::setEndTime(string endTime) { +void DescribeServiceLogRequest::setEndTime(const std::string &endTime) { endTime_ = endTime; - setParameter(std::string("EndTime"), std::to_string(endTime)); + setParameter(std::string("EndTime"), endTime); } -string DescribeServiceLogRequest::getServiceName() const { +std::string DescribeServiceLogRequest::getServiceName() const { return serviceName_; } -void DescribeServiceLogRequest::setServiceName(string serviceName) { +void DescribeServiceLogRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DescribeServiceLogRequest::getStartTime() const { +std::string DescribeServiceLogRequest::getStartTime() const { return startTime_; } -void DescribeServiceLogRequest::setStartTime(string startTime) { +void DescribeServiceLogRequest::setStartTime(const std::string &startTime) { startTime_ = startTime; - setParameter(std::string("StartTime"), std::to_string(startTime)); + setParameter(std::string("StartTime"), startTime); } -string DescribeServiceLogRequest::getClusterId() const { +std::string DescribeServiceLogRequest::getClusterId() const { return clusterId_; } -void DescribeServiceLogRequest::setClusterId(string clusterId) { +void DescribeServiceLogRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -integer DescribeServiceLogRequest::getPageNum() const { +long DescribeServiceLogRequest::getPageNum() const { return pageNum_; } -void DescribeServiceLogRequest::setPageNum(integer pageNum) { +void DescribeServiceLogRequest::setPageNum(long pageNum) { pageNum_ = pageNum; setParameter(std::string("PageNum"), std::to_string(pageNum)); } -string DescribeServiceLogRequest::getKeyword() const { +std::string DescribeServiceLogRequest::getKeyword() const { return keyword_; } -void DescribeServiceLogRequest::setKeyword(string keyword) { +void DescribeServiceLogRequest::setKeyword(const std::string &keyword) { keyword_ = keyword; - setParameter(std::string("Keyword"), std::to_string(keyword)); + setParameter(std::string("Keyword"), keyword); } diff --git a/eas/src/model/DescribeServiceMirrorRequest.cc b/eas/src/model/DescribeServiceMirrorRequest.cc index dd986804d..ab51dd448 100644 --- a/eas/src/model/DescribeServiceMirrorRequest.cc +++ b/eas/src/model/DescribeServiceMirrorRequest.cc @@ -26,21 +26,21 @@ DescribeServiceMirrorRequest::DescribeServiceMirrorRequest() DescribeServiceMirrorRequest::~DescribeServiceMirrorRequest() {} -string DescribeServiceMirrorRequest::getServiceName() const { +std::string DescribeServiceMirrorRequest::getServiceName() const { return serviceName_; } -void DescribeServiceMirrorRequest::setServiceName(string serviceName) { +void DescribeServiceMirrorRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DescribeServiceMirrorRequest::getClusterId() const { +std::string DescribeServiceMirrorRequest::getClusterId() const { return clusterId_; } -void DescribeServiceMirrorRequest::setClusterId(string clusterId) { +void DescribeServiceMirrorRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeServiceRequest.cc b/eas/src/model/DescribeServiceRequest.cc index 37ccfd84a..a63912e2c 100644 --- a/eas/src/model/DescribeServiceRequest.cc +++ b/eas/src/model/DescribeServiceRequest.cc @@ -26,21 +26,21 @@ DescribeServiceRequest::DescribeServiceRequest() DescribeServiceRequest::~DescribeServiceRequest() {} -string DescribeServiceRequest::getServiceName() const { +std::string DescribeServiceRequest::getServiceName() const { return serviceName_; } -void DescribeServiceRequest::setServiceName(string serviceName) { +void DescribeServiceRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string DescribeServiceRequest::getClusterId() const { +std::string DescribeServiceRequest::getClusterId() const { return clusterId_; } -void DescribeServiceRequest::setClusterId(string clusterId) { +void DescribeServiceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/DescribeServiceResult.cc b/eas/src/model/DescribeServiceResult.cc index 3874fac03..47aed71a8 100644 --- a/eas/src/model/DescribeServiceResult.cc +++ b/eas/src/model/DescribeServiceResult.cc @@ -39,6 +39,16 @@ void DescribeServiceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allLabelsNode = value["Labels"]["LabelsItem"]; + for (auto valueLabelsLabelsItem : allLabelsNode) + { + LabelsItem labelsObject; + if(!valueLabelsLabelsItem["LabelKey"].isNull()) + labelsObject.labelKey = valueLabelsLabelsItem["LabelKey"].asString(); + if(!valueLabelsLabelsItem["LabelValue"].isNull()) + labelsObject.labelValue = valueLabelsLabelsItem["LabelValue"].asString(); + labels_.push_back(labelsObject); + } if(!value["Region"].isNull()) region_ = value["Region"].asString(); if(!value["CallerUid"].isNull()) @@ -75,10 +85,14 @@ void DescribeServiceResult::parse(const std::string &payload) reason_ = value["Reason"].asString(); if(!value["Resource"].isNull()) resource_ = value["Resource"].asString(); + if(!value["ResourceAlias"].isNull()) + resourceAlias_ = value["ResourceAlias"].asString(); if(!value["ServiceConfig"].isNull()) serviceConfig_ = value["ServiceConfig"].asString(); if(!value["ServiceName"].isNull()) serviceName_ = value["ServiceName"].asString(); + if(!value["ServiceGroup"].isNull()) + serviceGroup_ = value["ServiceGroup"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); if(!value["CreateTime"].isNull()) @@ -89,10 +103,20 @@ void DescribeServiceResult::parse(const std::string &payload) weight_ = std::stoi(value["Weight"].asString()); if(!value["ServiceId"].isNull()) serviceId_ = value["ServiceId"].asString(); + if(!value["ServiceUid"].isNull()) + serviceUid_ = value["ServiceUid"].asString(); if(!value["AccessToken"].isNull()) accessToken_ = value["AccessToken"].asString(); if(!value["Source"].isNull()) source_ = value["Source"].asString(); + if(!value["ExtraData"].isNull()) + extraData_ = value["ExtraData"].asString(); + if(!value["Role"].isNull()) + role_ = value["Role"].asString(); + if(!value["RoleAttrs"].isNull()) + roleAttrs_ = value["RoleAttrs"].asString(); + if(!value["SafetyLock"].isNull()) + safetyLock_ = value["SafetyLock"].asString(); } @@ -101,6 +125,11 @@ std::string DescribeServiceResult::getMessage()const return message_; } +std::string DescribeServiceResult::getServiceGroup()const +{ + return serviceGroup_; +} + int DescribeServiceResult::getMemory()const { return memory_; @@ -171,6 +200,11 @@ std::string DescribeServiceResult::getInternetEndpoint()const return internetEndpoint_; } +std::string DescribeServiceResult::getResourceAlias()const +{ + return resourceAlias_; +} + std::string DescribeServiceResult::getStatus()const { return status_; @@ -186,16 +220,31 @@ std::string DescribeServiceResult::getResource()const return resource_; } +std::vector DescribeServiceResult::getLabels()const +{ + return labels_; +} + std::string DescribeServiceResult::get_Namespace()const { return _namespace_; } +std::string DescribeServiceResult::getExtraData()const +{ + return extraData_; +} + int DescribeServiceResult::getWeight()const { return weight_; } +std::string DescribeServiceResult::getRole()const +{ + return role_; +} + int DescribeServiceResult::getPendingInstance()const { return pendingInstance_; @@ -211,11 +260,21 @@ std::string DescribeServiceResult::getServiceName()const return serviceName_; } +std::string DescribeServiceResult::getSafetyLock()const +{ + return safetyLock_; +} + std::string DescribeServiceResult::getUpdateTime()const { return updateTime_; } +std::string DescribeServiceResult::getServiceUid()const +{ + return serviceUid_; +} + std::string DescribeServiceResult::getRegion()const { return region_; @@ -231,3 +290,8 @@ std::string DescribeServiceResult::getIntranetEndpoint()const return intranetEndpoint_; } +std::string DescribeServiceResult::getRoleAttrs()const +{ + return roleAttrs_; +} + diff --git a/eas/src/model/DevelopServiceRequest.cc b/eas/src/model/DevelopServiceRequest.cc new file mode 100644 index 000000000..d9fb7bf2a --- /dev/null +++ b/eas/src/model/DevelopServiceRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::DevelopServiceRequest; + +DevelopServiceRequest::DevelopServiceRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/develop"}; + setMethod(HttpRequest::Method::Put); +} + +DevelopServiceRequest::~DevelopServiceRequest() {} + +std::string DevelopServiceRequest::getExit() const { + return exit_; +} + +void DevelopServiceRequest::setExit(const std::string &exit) { + exit_ = exit; + setParameter(std::string("Exit"), exit); +} + +std::string DevelopServiceRequest::getServiceName() const { + return serviceName_; +} + +void DevelopServiceRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string DevelopServiceRequest::getClusterId() const { + return clusterId_; +} + +void DevelopServiceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + diff --git a/eas/src/model/DevelopServiceResult.cc b/eas/src/model/DevelopServiceResult.cc new file mode 100644 index 000000000..3f6e9dd01 --- /dev/null +++ b/eas/src/model/DevelopServiceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +DevelopServiceResult::DevelopServiceResult() : + ServiceResult() +{} + +DevelopServiceResult::DevelopServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DevelopServiceResult::~DevelopServiceResult() +{} + +void DevelopServiceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DevelopServiceResult::getMessage()const +{ + return message_; +} + diff --git a/eas/src/model/ListBenchmarkTaskRequest.cc b/eas/src/model/ListBenchmarkTaskRequest.cc index c87d45e6b..9308eae87 100644 --- a/eas/src/model/ListBenchmarkTaskRequest.cc +++ b/eas/src/model/ListBenchmarkTaskRequest.cc @@ -26,3 +26,39 @@ ListBenchmarkTaskRequest::ListBenchmarkTaskRequest() ListBenchmarkTaskRequest::~ListBenchmarkTaskRequest() {} +std::string ListBenchmarkTaskRequest::getFilter() const { + return filter_; +} + +void ListBenchmarkTaskRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("Filter"), filter); +} + +std::string ListBenchmarkTaskRequest::getPageSize() const { + return pageSize_; +} + +void ListBenchmarkTaskRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListBenchmarkTaskRequest::getServiceName() const { + return serviceName_; +} + +void ListBenchmarkTaskRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string ListBenchmarkTaskRequest::getPageNumber() const { + return pageNumber_; +} + +void ListBenchmarkTaskRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + diff --git a/eas/src/model/ListBenchmarkTaskResult.cc b/eas/src/model/ListBenchmarkTaskResult.cc index d53672093..e4edf8325 100644 --- a/eas/src/model/ListBenchmarkTaskResult.cc +++ b/eas/src/model/ListBenchmarkTaskResult.cc @@ -63,11 +63,32 @@ void ListBenchmarkTaskResult::parse(const std::string &payload) tasksObject.updateTime = valueTasksTask["UpdateTime"].asString(); tasks_.push_back(tasksObject); } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); } +int ListBenchmarkTaskResult::getTotalCount()const +{ + return totalCount_; +} + std::vector ListBenchmarkTaskResult::getTasks()const { return tasks_; } +int ListBenchmarkTaskResult::getPageSize()const +{ + return pageSize_; +} + +int ListBenchmarkTaskResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/eas/src/model/ListGroupsRequest.cc b/eas/src/model/ListGroupsRequest.cc new file mode 100644 index 000000000..c276391d0 --- /dev/null +++ b/eas/src/model/ListGroupsRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::ListGroupsRequest; + +ListGroupsRequest::ListGroupsRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/groups"}; + setMethod(HttpRequest::Method::Get); +} + +ListGroupsRequest::~ListGroupsRequest() {} + +std::string ListGroupsRequest::getFilter() const { + return filter_; +} + +void ListGroupsRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("Filter"), filter); +} + +std::string ListGroupsRequest::getPageSize() const { + return pageSize_; +} + +void ListGroupsRequest::setPageSize(const std::string &pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), pageSize); +} + +std::string ListGroupsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListGroupsRequest::setPageNumber(const std::string &pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), pageNumber); +} + diff --git a/eas/src/model/ListGroupsResult.cc b/eas/src/model/ListGroupsResult.cc new file mode 100644 index 000000000..91bd2d71f --- /dev/null +++ b/eas/src/model/ListGroupsResult.cc @@ -0,0 +1,92 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +ListGroupsResult::ListGroupsResult() : + ServiceResult() +{} + +ListGroupsResult::ListGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListGroupsResult::~ListGroupsResult() +{} + +void ListGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allGroupsNode = value["Groups"]["服务组列表"]; + for (auto valueGroups服务组列表 : allGroupsNode) + { + 服务组列表 groupsObject; + if(!valueGroups服务组列表["Name"].isNull()) + groupsObject.name = valueGroups服务组列表["Name"].asString(); + if(!valueGroups服务组列表["ClusterId"].isNull()) + groupsObject.clusterId = valueGroups服务组列表["ClusterId"].asString(); + if(!valueGroups服务组列表["CreateTime"].isNull()) + groupsObject.createTime = valueGroups服务组列表["CreateTime"].asString(); + if(!valueGroups服务组列表["UpdateTime"].isNull()) + groupsObject.updateTime = valueGroups服务组列表["UpdateTime"].asString(); + if(!valueGroups服务组列表["QueueService"].isNull()) + groupsObject.queueService = valueGroups服务组列表["QueueService"].asString(); + if(!valueGroups服务组列表["InternetEndpoint"].isNull()) + groupsObject.internetEndpoint = valueGroups服务组列表["InternetEndpoint"].asString(); + if(!valueGroups服务组列表["IntranetEndpoint"].isNull()) + groupsObject.intranetEndpoint = valueGroups服务组列表["IntranetEndpoint"].asString(); + if(!valueGroups服务组列表["AccessToken"].isNull()) + groupsObject.accessToken = valueGroups服务组列表["AccessToken"].asString(); + groups_.push_back(groupsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListGroupsResult::getTotalCount()const +{ + return totalCount_; +} + +long ListGroupsResult::getPageSize()const +{ + return pageSize_; +} + +long ListGroupsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListGroupsResult::getGroups()const +{ + return groups_; +} + diff --git a/eas/src/model/ListResourceInstanceWorkerRequest.cc b/eas/src/model/ListResourceInstanceWorkerRequest.cc index e2d038d2f..a8d16c0a0 100644 --- a/eas/src/model/ListResourceInstanceWorkerRequest.cc +++ b/eas/src/model/ListResourceInstanceWorkerRequest.cc @@ -26,47 +26,47 @@ ListResourceInstanceWorkerRequest::ListResourceInstanceWorkerRequest() ListResourceInstanceWorkerRequest::~ListResourceInstanceWorkerRequest() {} -string ListResourceInstanceWorkerRequest::getResourceId() const { +std::string ListResourceInstanceWorkerRequest::getResourceId() const { return resourceId_; } -void ListResourceInstanceWorkerRequest::setResourceId(string resourceId) { +void ListResourceInstanceWorkerRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string ListResourceInstanceWorkerRequest::getInstanceName() const { +std::string ListResourceInstanceWorkerRequest::getInstanceName() const { return instanceName_; } -void ListResourceInstanceWorkerRequest::setInstanceName(string instanceName) { +void ListResourceInstanceWorkerRequest::setInstanceName(const std::string &instanceName) { instanceName_ = instanceName; - setParameter(std::string("InstanceName"), std::to_string(instanceName)); + setParameter(std::string("InstanceName"), instanceName); } -integer ListResourceInstanceWorkerRequest::getPageSize() const { +int ListResourceInstanceWorkerRequest::getPageSize() const { return pageSize_; } -void ListResourceInstanceWorkerRequest::setPageSize(integer pageSize) { +void ListResourceInstanceWorkerRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -string ListResourceInstanceWorkerRequest::getClusterId() const { +std::string ListResourceInstanceWorkerRequest::getClusterId() const { return clusterId_; } -void ListResourceInstanceWorkerRequest::setClusterId(string clusterId) { +void ListResourceInstanceWorkerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -integer ListResourceInstanceWorkerRequest::getPageNumber() const { +int ListResourceInstanceWorkerRequest::getPageNumber() const { return pageNumber_; } -void ListResourceInstanceWorkerRequest::setPageNumber(integer pageNumber) { +void ListResourceInstanceWorkerRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/eas/src/model/ListResourceInstancesRequest.cc b/eas/src/model/ListResourceInstancesRequest.cc index f7ea96072..5cdb4414b 100644 --- a/eas/src/model/ListResourceInstancesRequest.cc +++ b/eas/src/model/ListResourceInstancesRequest.cc @@ -26,47 +26,65 @@ ListResourceInstancesRequest::ListResourceInstancesRequest() ListResourceInstancesRequest::~ListResourceInstancesRequest() {} -string ListResourceInstancesRequest::getResourceId() const { +std::string ListResourceInstancesRequest::getResourceId() const { return resourceId_; } -void ListResourceInstancesRequest::setResourceId(string resourceId) { +void ListResourceInstancesRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -integer ListResourceInstancesRequest::getPageSize() const { +std::string ListResourceInstancesRequest::getInstanceName() const { + return instanceName_; +} + +void ListResourceInstancesRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); +} + +std::string ListResourceInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void ListResourceInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int ListResourceInstancesRequest::getPageSize() const { return pageSize_; } -void ListResourceInstancesRequest::setPageSize(integer pageSize) { +void ListResourceInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -string ListResourceInstancesRequest::getClusterId() const { +std::string ListResourceInstancesRequest::getClusterId() const { return clusterId_; } -void ListResourceInstancesRequest::setClusterId(string clusterId) { +void ListResourceInstancesRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -string ListResourceInstancesRequest::getChargeType() const { +std::string ListResourceInstancesRequest::getChargeType() const { return chargeType_; } -void ListResourceInstancesRequest::setChargeType(string chargeType) { +void ListResourceInstancesRequest::setChargeType(const std::string &chargeType) { chargeType_ = chargeType; - setParameter(std::string("ChargeType"), std::to_string(chargeType)); + setParameter(std::string("ChargeType"), chargeType); } -integer ListResourceInstancesRequest::getPageNumber() const { +int ListResourceInstancesRequest::getPageNumber() const { return pageNumber_; } -void ListResourceInstancesRequest::setPageNumber(integer pageNumber) { +void ListResourceInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/eas/src/model/ListResourceInstancesResult.cc b/eas/src/model/ListResourceInstancesResult.cc index 9e005afd4..509bd4bb1 100644 --- a/eas/src/model/ListResourceInstancesResult.cc +++ b/eas/src/model/ListResourceInstancesResult.cc @@ -57,10 +57,12 @@ void ListResourceInstancesResult::parse(const std::string &payload) instancesObject.instanceGpuCount = std::stoi(valueInstancesInstancesItem["InstanceGpuCount"].asString()); if(!valueInstancesInstancesItem["InstanceMemory"].isNull()) instancesObject.instanceMemory = valueInstancesInstancesItem["InstanceMemory"].asString(); + if(!valueInstancesInstancesItem["InstanceGpuMemory"].isNull()) + instancesObject.instanceGpuMemory = valueInstancesInstancesItem["InstanceGpuMemory"].asString(); if(!valueInstancesInstancesItem["InstanceUsedCpu"].isNull()) instancesObject.instanceUsedCpu = std::stof(valueInstancesInstancesItem["InstanceUsedCpu"].asString()); if(!valueInstancesInstancesItem["InstanceUsedGpu"].isNull()) - instancesObject.instanceUsedGpu = std::stoi(valueInstancesInstancesItem["InstanceUsedGpu"].asString()); + instancesObject.instanceUsedGpu = std::stof(valueInstancesInstancesItem["InstanceUsedGpu"].asString()); if(!valueInstancesInstancesItem["InstanceUsedMemory"].isNull()) instancesObject.instanceUsedMemory = valueInstancesInstancesItem["InstanceUsedMemory"].asString(); if(!valueInstancesInstancesItem["InstanceType"].isNull()) @@ -73,6 +75,16 @@ void ListResourceInstancesResult::parse(const std::string &payload) instancesObject.expiredTime = valueInstancesInstancesItem["ExpiredTime"].asString(); if(!valueInstancesInstancesItem["AutoRenewal"].isNull()) instancesObject.autoRenewal = valueInstancesInstancesItem["AutoRenewal"].asString() == "true"; + if(!valueInstancesInstancesItem["Arch"].isNull()) + instancesObject.arch = valueInstancesInstancesItem["Arch"].asString(); + if(!valueInstancesInstancesItem["Region"].isNull()) + instancesObject.region = valueInstancesInstancesItem["Region"].asString(); + if(!valueInstancesInstancesItem["Zone"].isNull()) + instancesObject.zone = valueInstancesInstancesItem["Zone"].asString(); + if(!valueInstancesInstancesItem["InstanceTenantIp"].isNull()) + instancesObject.instanceTenantIp = valueInstancesInstancesItem["InstanceTenantIp"].asString(); + if(!valueInstancesInstancesItem["InstanceUsedGpuMemory"].isNull()) + instancesObject.instanceUsedGpuMemory = valueInstancesInstancesItem["InstanceUsedGpuMemory"].asString(); instances_.push_back(instancesObject); } if(!value["PageNumber"].isNull()) diff --git a/eas/src/model/ListResourceServicesRequest.cc b/eas/src/model/ListResourceServicesRequest.cc index 2378b767c..9100fd882 100644 --- a/eas/src/model/ListResourceServicesRequest.cc +++ b/eas/src/model/ListResourceServicesRequest.cc @@ -26,38 +26,38 @@ ListResourceServicesRequest::ListResourceServicesRequest() ListResourceServicesRequest::~ListResourceServicesRequest() {} -string ListResourceServicesRequest::getResourceId() const { +std::string ListResourceServicesRequest::getResourceId() const { return resourceId_; } -void ListResourceServicesRequest::setResourceId(string resourceId) { +void ListResourceServicesRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -integer ListResourceServicesRequest::getPageSize() const { +int ListResourceServicesRequest::getPageSize() const { return pageSize_; } -void ListResourceServicesRequest::setPageSize(integer pageSize) { +void ListResourceServicesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -string ListResourceServicesRequest::getClusterId() const { +std::string ListResourceServicesRequest::getClusterId() const { return clusterId_; } -void ListResourceServicesRequest::setClusterId(string clusterId) { +void ListResourceServicesRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -integer ListResourceServicesRequest::getPageNumber() const { +int ListResourceServicesRequest::getPageNumber() const { return pageNumber_; } -void ListResourceServicesRequest::setPageNumber(integer pageNumber) { +void ListResourceServicesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/eas/src/model/ListResourceServicesResult.cc b/eas/src/model/ListResourceServicesResult.cc index 0b914a939..cb1c4426d 100644 --- a/eas/src/model/ListResourceServicesResult.cc +++ b/eas/src/model/ListResourceServicesResult.cc @@ -81,10 +81,14 @@ void ListResourceServicesResult::parse(const std::string &payload) servicesObject.reason = valueServicesServicesItem["Reason"].asString(); if(!valueServicesServicesItem["Resource"].isNull()) servicesObject.resource = valueServicesServicesItem["Resource"].asString(); + if(!valueServicesServicesItem["ResourceAlias"].isNull()) + servicesObject.resourceAlias = valueServicesServicesItem["ResourceAlias"].asString(); if(!valueServicesServicesItem["ServiceConfig"].isNull()) servicesObject.serviceConfig = valueServicesServicesItem["ServiceConfig"].asString(); if(!valueServicesServicesItem["ServiceName"].isNull()) servicesObject.serviceName = valueServicesServicesItem["ServiceName"].asString(); + if(!valueServicesServicesItem["ServiceGroup"].isNull()) + servicesObject.serviceGroup = valueServicesServicesItem["ServiceGroup"].asString(); if(!valueServicesServicesItem["Status"].isNull()) servicesObject.status = valueServicesServicesItem["Status"].asString(); if(!valueServicesServicesItem["CreateTime"].isNull()) @@ -95,10 +99,30 @@ void ListResourceServicesResult::parse(const std::string &payload) servicesObject.weight = std::stoi(valueServicesServicesItem["Weight"].asString()); if(!valueServicesServicesItem["ServiceId"].isNull()) servicesObject.serviceId = valueServicesServicesItem["ServiceId"].asString(); + if(!valueServicesServicesItem["ServiceUid"].isNull()) + servicesObject.serviceUid = valueServicesServicesItem["ServiceUid"].asString(); if(!valueServicesServicesItem["AccessToken"].isNull()) servicesObject.accessToken = valueServicesServicesItem["AccessToken"].asString(); if(!valueServicesServicesItem["Source"].isNull()) servicesObject.source = valueServicesServicesItem["Source"].asString(); + if(!valueServicesServicesItem["ExtraData"].isNull()) + servicesObject.extraData = valueServicesServicesItem["ExtraData"].asString(); + if(!valueServicesServicesItem["Role"].isNull()) + servicesObject.role = valueServicesServicesItem["Role"].asString(); + if(!valueServicesServicesItem["RoleAttrs"].isNull()) + servicesObject.roleAttrs = valueServicesServicesItem["RoleAttrs"].asString(); + if(!valueServicesServicesItem["SafetyLock"].isNull()) + servicesObject.safetyLock = valueServicesServicesItem["SafetyLock"].asString(); + auto allLabelsNode = valueServicesServicesItem["Labels"]["LabelsItem"]; + for (auto valueServicesServicesItemLabelsLabelsItem : allLabelsNode) + { + ServicesItem::LabelsItem labelsObject; + if(!valueServicesServicesItemLabelsLabelsItem["LabelKey"].isNull()) + labelsObject.labelKey = valueServicesServicesItemLabelsLabelsItem["LabelKey"].asString(); + if(!valueServicesServicesItemLabelsLabelsItem["LabelValue"].isNull()) + labelsObject.labelValue = valueServicesServicesItemLabelsLabelsItem["LabelValue"].asString(); + servicesObject.labels.push_back(labelsObject); + } services_.push_back(servicesObject); } if(!value["PageNumber"].isNull()) diff --git a/eas/src/model/ListResourcesRequest.cc b/eas/src/model/ListResourcesRequest.cc index 377c95246..d0ae07533 100644 --- a/eas/src/model/ListResourcesRequest.cc +++ b/eas/src/model/ListResourcesRequest.cc @@ -26,20 +26,38 @@ ListResourcesRequest::ListResourcesRequest() ListResourcesRequest::~ListResourcesRequest() {} -integer ListResourcesRequest::getPageSize() const { +std::string ListResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListResourcesRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +int ListResourcesRequest::getPageSize() const { return pageSize_; } -void ListResourcesRequest::setPageSize(integer pageSize) { +void ListResourcesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -integer ListResourcesRequest::getPageNumber() const { +std::string ListResourcesRequest::getResourceName() const { + return resourceName_; +} + +void ListResourcesRequest::setResourceName(const std::string &resourceName) { + resourceName_ = resourceName; + setParameter(std::string("ResourceName"), resourceName); +} + +int ListResourcesRequest::getPageNumber() const { return pageNumber_; } -void ListResourcesRequest::setPageNumber(integer pageNumber) { +void ListResourcesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/eas/src/model/ListServiceInstancesRequest.cc b/eas/src/model/ListServiceInstancesRequest.cc index e73d26efe..bbdd3ead2 100644 --- a/eas/src/model/ListServiceInstancesRequest.cc +++ b/eas/src/model/ListServiceInstancesRequest.cc @@ -26,38 +26,38 @@ ListServiceInstancesRequest::ListServiceInstancesRequest() ListServiceInstancesRequest::~ListServiceInstancesRequest() {} -integer ListServiceInstancesRequest::getPageSize() const { +int ListServiceInstancesRequest::getPageSize() const { return pageSize_; } -void ListServiceInstancesRequest::setPageSize(integer pageSize) { +void ListServiceInstancesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -string ListServiceInstancesRequest::getServiceName() const { +std::string ListServiceInstancesRequest::getServiceName() const { return serviceName_; } -void ListServiceInstancesRequest::setServiceName(string serviceName) { +void ListServiceInstancesRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string ListServiceInstancesRequest::getClusterId() const { +std::string ListServiceInstancesRequest::getClusterId() const { return clusterId_; } -void ListServiceInstancesRequest::setClusterId(string clusterId) { +void ListServiceInstancesRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -integer ListServiceInstancesRequest::getPageNumber() const { +int ListServiceInstancesRequest::getPageNumber() const { return pageNumber_; } -void ListServiceInstancesRequest::setPageNumber(integer pageNumber) { +void ListServiceInstancesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } diff --git a/eas/src/model/ListServiceInstancesResult.cc b/eas/src/model/ListServiceInstancesResult.cc index 43e8755d3..effdedb0c 100644 --- a/eas/src/model/ListServiceInstancesResult.cc +++ b/eas/src/model/ListServiceInstancesResult.cc @@ -67,6 +67,14 @@ void ListServiceInstancesResult::parse(const std::string &payload) instancesObject.readyProcesses = std::stoi(valueInstancesInstancesItem["ReadyProcesses"].asString()); if(!valueInstancesInstancesItem["StartAt"].isNull()) instancesObject.startAt = valueInstancesInstancesItem["StartAt"].asString(); + if(!valueInstancesInstancesItem["Role"].isNull()) + instancesObject.role = valueInstancesInstancesItem["Role"].asString(); + if(!valueInstancesInstancesItem["ResourceType"].isNull()) + instancesObject.resourceType = valueInstancesInstancesItem["ResourceType"].asString(); + if(!valueInstancesInstancesItem["TenantInstanceIP"].isNull()) + instancesObject.tenantInstanceIP = valueInstancesInstancesItem["TenantInstanceIP"].asString(); + if(!valueInstancesInstancesItem["TenantHostIP"].isNull()) + instancesObject.tenantHostIP = valueInstancesInstancesItem["TenantHostIP"].asString(); auto allLastState = value["LastState"]["null"]; for (auto value : allLastState) instancesObject.lastState.push_back(value.asString()); diff --git a/eas/src/model/ListServiceVersionsRequest.cc b/eas/src/model/ListServiceVersionsRequest.cc new file mode 100644 index 000000000..cd9f54527 --- /dev/null +++ b/eas/src/model/ListServiceVersionsRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Eas::Model::ListServiceVersionsRequest; + +ListServiceVersionsRequest::ListServiceVersionsRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/versions"}; + setMethod(HttpRequest::Method::Get); +} + +ListServiceVersionsRequest::~ListServiceVersionsRequest() {} + +int ListServiceVersionsRequest::getPageSize() const { + return pageSize_; +} + +void ListServiceVersionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListServiceVersionsRequest::getServiceName() const { + return serviceName_; +} + +void ListServiceVersionsRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string ListServiceVersionsRequest::getClusterId() const { + return clusterId_; +} + +void ListServiceVersionsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListServiceVersionsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListServiceVersionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + diff --git a/eas/src/model/ListServiceVersionsResult.cc b/eas/src/model/ListServiceVersionsResult.cc new file mode 100644 index 000000000..a85300384 --- /dev/null +++ b/eas/src/model/ListServiceVersionsResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +ListServiceVersionsResult::ListServiceVersionsResult() : + ServiceResult() +{} + +ListServiceVersionsResult::ListServiceVersionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListServiceVersionsResult::~ListServiceVersionsResult() +{} + +void ListServiceVersionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVersionsNode = value["Versions"]["versionsItem"]; + for (auto valueVersionsversionsItem : allVersionsNode) + { + VersionsItem versionsObject; + if(!valueVersionsversionsItem["BuildTime"].isNull()) + versionsObject.buildTime = valueVersionsversionsItem["BuildTime"].asString(); + if(!valueVersionsversionsItem["ImageAvailable"].isNull()) + versionsObject.imageAvailable = valueVersionsversionsItem["ImageAvailable"].asString(); + if(!valueVersionsversionsItem["ImageId"].isNull()) + versionsObject.imageId = std::stoi(valueVersionsversionsItem["ImageId"].asString()); + if(!valueVersionsversionsItem["Message"].isNull()) + versionsObject.message = valueVersionsversionsItem["Message"].asString(); + if(!valueVersionsversionsItem["ServiceRunnable"].isNull()) + versionsObject.serviceRunnable = valueVersionsversionsItem["ServiceRunnable"].asString(); + versions_.push_back(versionsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stol(value["TotalCount"].asString()); + +} + +long ListServiceVersionsResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListServiceVersionsResult::getVersions()const +{ + return versions_; +} + +int ListServiceVersionsResult::getPageSize()const +{ + return pageSize_; +} + +int ListServiceVersionsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/eas/src/model/ListServicesRequest.cc b/eas/src/model/ListServicesRequest.cc index 26e997177..0650be1e6 100644 --- a/eas/src/model/ListServicesRequest.cc +++ b/eas/src/model/ListServicesRequest.cc @@ -26,48 +26,84 @@ ListServicesRequest::ListServicesRequest() ListServicesRequest::~ListServicesRequest() {} -string ListServicesRequest::getFilter() const { +std::string ListServicesRequest::getFilter() const { return filter_; } -void ListServicesRequest::setFilter(string filter) { +void ListServicesRequest::setFilter(const std::string &filter) { filter_ = filter; - setParameter(std::string("Filter"), std::to_string(filter)); + setParameter(std::string("Filter"), filter); } -integer ListServicesRequest::getPageSize() const { +std::string ListServicesRequest::getServiceType() const { + return serviceType_; +} + +void ListServicesRequest::setServiceType(const std::string &serviceType) { + serviceType_ = serviceType; + setParameter(std::string("ServiceType"), serviceType); +} + +std::string ListServicesRequest::getParentServiceUid() const { + return parentServiceUid_; +} + +void ListServicesRequest::setParentServiceUid(const std::string &parentServiceUid) { + parentServiceUid_ = parentServiceUid; + setParameter(std::string("ParentServiceUid"), parentServiceUid); +} + +int ListServicesRequest::getPageSize() const { return pageSize_; } -void ListServicesRequest::setPageSize(integer pageSize) { +void ListServicesRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter(std::string("PageSize"), std::to_string(pageSize)); } -string ListServicesRequest::getSort() const { +std::string ListServicesRequest::getSort() const { return sort_; } -void ListServicesRequest::setSort(string sort) { +void ListServicesRequest::setSort(const std::string &sort) { sort_ = sort; - setParameter(std::string("Sort"), std::to_string(sort)); + setParameter(std::string("Sort"), sort); } -integer ListServicesRequest::getPageNumber() const { +std::string ListServicesRequest::getLabel() const { + return label_; +} + +void ListServicesRequest::setLabel(const std::string &label) { + label_ = label; + setParameter(std::string("Label"), label); +} + +std::string ListServicesRequest::getGroupName() const { + return groupName_; +} + +void ListServicesRequest::setGroupName(const std::string &groupName) { + groupName_ = groupName; + setParameter(std::string("GroupName"), groupName); +} + +int ListServicesRequest::getPageNumber() const { return pageNumber_; } -void ListServicesRequest::setPageNumber(integer pageNumber) { +void ListServicesRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -string ListServicesRequest::getOrder() const { +std::string ListServicesRequest::getOrder() const { return order_; } -void ListServicesRequest::setOrder(string order) { +void ListServicesRequest::setOrder(const std::string &order) { order_ = order; - setParameter(std::string("Order"), std::to_string(order)); + setParameter(std::string("Order"), order); } diff --git a/eas/src/model/ListServicesResult.cc b/eas/src/model/ListServicesResult.cc index 0aad19fbc..df58216b6 100644 --- a/eas/src/model/ListServicesResult.cc +++ b/eas/src/model/ListServicesResult.cc @@ -81,10 +81,14 @@ void ListServicesResult::parse(const std::string &payload) servicesObject.reason = valueServicesServicesItem["Reason"].asString(); if(!valueServicesServicesItem["Resource"].isNull()) servicesObject.resource = valueServicesServicesItem["Resource"].asString(); + if(!valueServicesServicesItem["ResourceAlias"].isNull()) + servicesObject.resourceAlias = valueServicesServicesItem["ResourceAlias"].asString(); if(!valueServicesServicesItem["ServiceConfig"].isNull()) servicesObject.serviceConfig = valueServicesServicesItem["ServiceConfig"].asString(); if(!valueServicesServicesItem["ServiceName"].isNull()) servicesObject.serviceName = valueServicesServicesItem["ServiceName"].asString(); + if(!valueServicesServicesItem["ServiceGroup"].isNull()) + servicesObject.serviceGroup = valueServicesServicesItem["ServiceGroup"].asString(); if(!valueServicesServicesItem["Status"].isNull()) servicesObject.status = valueServicesServicesItem["Status"].asString(); if(!valueServicesServicesItem["CreateTime"].isNull()) @@ -95,10 +99,30 @@ void ListServicesResult::parse(const std::string &payload) servicesObject.weight = std::stoi(valueServicesServicesItem["Weight"].asString()); if(!valueServicesServicesItem["ServiceId"].isNull()) servicesObject.serviceId = valueServicesServicesItem["ServiceId"].asString(); + if(!valueServicesServicesItem["ServiceUid"].isNull()) + servicesObject.serviceUid = valueServicesServicesItem["ServiceUid"].asString(); if(!valueServicesServicesItem["AccessToken"].isNull()) servicesObject.accessToken = valueServicesServicesItem["AccessToken"].asString(); if(!valueServicesServicesItem["Source"].isNull()) servicesObject.source = valueServicesServicesItem["Source"].asString(); + if(!valueServicesServicesItem["ExtraData"].isNull()) + servicesObject.extraData = valueServicesServicesItem["ExtraData"].asString(); + if(!valueServicesServicesItem["Role"].isNull()) + servicesObject.role = valueServicesServicesItem["Role"].asString(); + if(!valueServicesServicesItem["RoleAttrs"].isNull()) + servicesObject.roleAttrs = valueServicesServicesItem["RoleAttrs"].asString(); + if(!valueServicesServicesItem["SafetyLock"].isNull()) + servicesObject.safetyLock = valueServicesServicesItem["SafetyLock"].asString(); + auto allLabelsNode = valueServicesServicesItem["Labels"]["LabelsItem"]; + for (auto valueServicesServicesItemLabelsLabelsItem : allLabelsNode) + { + ServicesItem::LabelsItem labelsObject; + if(!valueServicesServicesItemLabelsLabelsItem["LabelKey"].isNull()) + labelsObject.labelKey = valueServicesServicesItemLabelsLabelsItem["LabelKey"].asString(); + if(!valueServicesServicesItemLabelsLabelsItem["LabelValue"].isNull()) + labelsObject.labelValue = valueServicesServicesItemLabelsLabelsItem["LabelValue"].asString(); + servicesObject.labels.push_back(labelsObject); + } services_.push_back(servicesObject); } if(!value["PageNumber"].isNull()) diff --git a/eas/src/model/ReleaseServiceRequest.cc b/eas/src/model/ReleaseServiceRequest.cc index b8d9d1f5a..f5cd8afbc 100644 --- a/eas/src/model/ReleaseServiceRequest.cc +++ b/eas/src/model/ReleaseServiceRequest.cc @@ -26,22 +26,22 @@ ReleaseServiceRequest::ReleaseServiceRequest() ReleaseServiceRequest::~ReleaseServiceRequest() {} -string ReleaseServiceRequest::getServiceName() const { +std::string ReleaseServiceRequest::getServiceName() const { return serviceName_; } -void ReleaseServiceRequest::setServiceName(string serviceName) { +void ReleaseServiceRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string ReleaseServiceRequest::getClusterId() const { +std::string ReleaseServiceRequest::getClusterId() const { return clusterId_; } -void ReleaseServiceRequest::setClusterId(string clusterId) { +void ReleaseServiceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string ReleaseServiceRequest::getBody() const { diff --git a/eas/src/model/StartBenchmarkTaskRequest.cc b/eas/src/model/StartBenchmarkTaskRequest.cc index 37f419f90..fd9b32e5a 100644 --- a/eas/src/model/StartBenchmarkTaskRequest.cc +++ b/eas/src/model/StartBenchmarkTaskRequest.cc @@ -26,21 +26,21 @@ StartBenchmarkTaskRequest::StartBenchmarkTaskRequest() StartBenchmarkTaskRequest::~StartBenchmarkTaskRequest() {} -string StartBenchmarkTaskRequest::getTaskName() const { +std::string StartBenchmarkTaskRequest::getTaskName() const { return taskName_; } -void StartBenchmarkTaskRequest::setTaskName(string taskName) { +void StartBenchmarkTaskRequest::setTaskName(const std::string &taskName) { taskName_ = taskName; - setParameter(std::string("TaskName"), std::to_string(taskName)); + setParameter(std::string("TaskName"), taskName); } -string StartBenchmarkTaskRequest::getClusterId() const { +std::string StartBenchmarkTaskRequest::getClusterId() const { return clusterId_; } -void StartBenchmarkTaskRequest::setClusterId(string clusterId) { +void StartBenchmarkTaskRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/StartServiceRequest.cc b/eas/src/model/StartServiceRequest.cc index 4b86a2ff7..92ccbfdb3 100644 --- a/eas/src/model/StartServiceRequest.cc +++ b/eas/src/model/StartServiceRequest.cc @@ -26,21 +26,21 @@ StartServiceRequest::StartServiceRequest() StartServiceRequest::~StartServiceRequest() {} -string StartServiceRequest::getServiceName() const { +std::string StartServiceRequest::getServiceName() const { return serviceName_; } -void StartServiceRequest::setServiceName(string serviceName) { +void StartServiceRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string StartServiceRequest::getClusterId() const { +std::string StartServiceRequest::getClusterId() const { return clusterId_; } -void StartServiceRequest::setClusterId(string clusterId) { +void StartServiceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/StopBenchmarkTaskRequest.cc b/eas/src/model/StopBenchmarkTaskRequest.cc index d216d1d5c..8e4859273 100644 --- a/eas/src/model/StopBenchmarkTaskRequest.cc +++ b/eas/src/model/StopBenchmarkTaskRequest.cc @@ -26,21 +26,21 @@ StopBenchmarkTaskRequest::StopBenchmarkTaskRequest() StopBenchmarkTaskRequest::~StopBenchmarkTaskRequest() {} -string StopBenchmarkTaskRequest::getTaskName() const { +std::string StopBenchmarkTaskRequest::getTaskName() const { return taskName_; } -void StopBenchmarkTaskRequest::setTaskName(string taskName) { +void StopBenchmarkTaskRequest::setTaskName(const std::string &taskName) { taskName_ = taskName; - setParameter(std::string("TaskName"), std::to_string(taskName)); + setParameter(std::string("TaskName"), taskName); } -string StopBenchmarkTaskRequest::getClusterId() const { +std::string StopBenchmarkTaskRequest::getClusterId() const { return clusterId_; } -void StopBenchmarkTaskRequest::setClusterId(string clusterId) { +void StopBenchmarkTaskRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/StopServiceRequest.cc b/eas/src/model/StopServiceRequest.cc index 783d16a9c..e9dd7f5c4 100644 --- a/eas/src/model/StopServiceRequest.cc +++ b/eas/src/model/StopServiceRequest.cc @@ -26,21 +26,21 @@ StopServiceRequest::StopServiceRequest() StopServiceRequest::~StopServiceRequest() {} -string StopServiceRequest::getServiceName() const { +std::string StopServiceRequest::getServiceName() const { return serviceName_; } -void StopServiceRequest::setServiceName(string serviceName) { +void StopServiceRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string StopServiceRequest::getClusterId() const { +std::string StopServiceRequest::getClusterId() const { return clusterId_; } -void StopServiceRequest::setClusterId(string clusterId) { +void StopServiceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } diff --git a/eas/src/model/UpdateBenchmarkTaskRequest.cc b/eas/src/model/UpdateBenchmarkTaskRequest.cc index 3efc6d2aa..e6847cd17 100644 --- a/eas/src/model/UpdateBenchmarkTaskRequest.cc +++ b/eas/src/model/UpdateBenchmarkTaskRequest.cc @@ -26,30 +26,30 @@ UpdateBenchmarkTaskRequest::UpdateBenchmarkTaskRequest() UpdateBenchmarkTaskRequest::~UpdateBenchmarkTaskRequest() {} -string UpdateBenchmarkTaskRequest::getTaskName() const { +std::string UpdateBenchmarkTaskRequest::getTaskName() const { return taskName_; } -void UpdateBenchmarkTaskRequest::setTaskName(string taskName) { +void UpdateBenchmarkTaskRequest::setTaskName(const std::string &taskName) { taskName_ = taskName; - setParameter(std::string("TaskName"), std::to_string(taskName)); + setParameter(std::string("TaskName"), taskName); } -string UpdateBenchmarkTaskRequest::getClusterId() const { +std::string UpdateBenchmarkTaskRequest::getClusterId() const { return clusterId_; } -void UpdateBenchmarkTaskRequest::setClusterId(string clusterId) { +void UpdateBenchmarkTaskRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -string UpdateBenchmarkTaskRequest::getBody() const { +std::string UpdateBenchmarkTaskRequest::getBody() const { return body_; } -void UpdateBenchmarkTaskRequest::setBody(string body) { +void UpdateBenchmarkTaskRequest::setBody(const std::string &body) { body_ = body; - setBodyParameter(std::string("body"), std::to_string(body)); + setBodyParameter(std::string("body"), body); } diff --git a/eas/src/model/UpdateResourceDLinkRequest.cc b/eas/src/model/UpdateResourceDLinkRequest.cc index c3a87ca9b..aeaff4899 100644 --- a/eas/src/model/UpdateResourceDLinkRequest.cc +++ b/eas/src/model/UpdateResourceDLinkRequest.cc @@ -26,22 +26,22 @@ UpdateResourceDLinkRequest::UpdateResourceDLinkRequest() UpdateResourceDLinkRequest::~UpdateResourceDLinkRequest() {} -string UpdateResourceDLinkRequest::getResourceId() const { +std::string UpdateResourceDLinkRequest::getResourceId() const { return resourceId_; } -void UpdateResourceDLinkRequest::setResourceId(string resourceId) { +void UpdateResourceDLinkRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string UpdateResourceDLinkRequest::getClusterId() const { +std::string UpdateResourceDLinkRequest::getClusterId() const { return clusterId_; } -void UpdateResourceDLinkRequest::setClusterId(string clusterId) { +void UpdateResourceDLinkRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string UpdateResourceDLinkRequest::getBody() const { diff --git a/eas/src/model/UpdateResourceInstanceRequest.cc b/eas/src/model/UpdateResourceInstanceRequest.cc new file mode 100644 index 000000000..e7b8cde81 --- /dev/null +++ b/eas/src/model/UpdateResourceInstanceRequest.cc @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 + +using AlibabaCloud::Eas::Model::UpdateResourceInstanceRequest; + +UpdateResourceInstanceRequest::UpdateResourceInstanceRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/resources/[ClusterId]/[ResourceId]/instances/[InstanceId]"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateResourceInstanceRequest::~UpdateResourceInstanceRequest() {} + +std::string UpdateResourceInstanceRequest::getResourceId() const { + return resourceId_; +} + +void UpdateResourceInstanceRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string UpdateResourceInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void UpdateResourceInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string UpdateResourceInstanceRequest::getClusterId() const { + return clusterId_; +} + +void UpdateResourceInstanceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateResourceInstanceRequest::getBody() const { + return body_; +} + +void UpdateResourceInstanceRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/eas/src/model/UpdateResourceInstanceResult.cc b/eas/src/model/UpdateResourceInstanceResult.cc new file mode 100644 index 000000000..0d2330a87 --- /dev/null +++ b/eas/src/model/UpdateResourceInstanceResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +UpdateResourceInstanceResult::UpdateResourceInstanceResult() : + ServiceResult() +{} + +UpdateResourceInstanceResult::UpdateResourceInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateResourceInstanceResult::~UpdateResourceInstanceResult() +{} + +void UpdateResourceInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ResourceId"].isNull()) + resourceId_ = value["ResourceId"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string UpdateResourceInstanceResult::getResourceId()const +{ + return resourceId_; +} + +std::string UpdateResourceInstanceResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/eas/src/model/UpdateResourceRequest.cc b/eas/src/model/UpdateResourceRequest.cc index 67328d324..0ab24e0fd 100644 --- a/eas/src/model/UpdateResourceRequest.cc +++ b/eas/src/model/UpdateResourceRequest.cc @@ -26,22 +26,22 @@ UpdateResourceRequest::UpdateResourceRequest() UpdateResourceRequest::~UpdateResourceRequest() {} -string UpdateResourceRequest::getResourceId() const { +std::string UpdateResourceRequest::getResourceId() const { return resourceId_; } -void UpdateResourceRequest::setResourceId(string resourceId) { +void UpdateResourceRequest::setResourceId(const std::string &resourceId) { resourceId_ = resourceId; - setParameter(std::string("ResourceId"), std::to_string(resourceId)); + setParameter(std::string("ResourceId"), resourceId); } -string UpdateResourceRequest::getClusterId() const { +std::string UpdateResourceRequest::getClusterId() const { return clusterId_; } -void UpdateResourceRequest::setClusterId(string clusterId) { +void UpdateResourceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string UpdateResourceRequest::getBody() const { diff --git a/eas/src/model/UpdateServiceAutoScalerRequest.cc b/eas/src/model/UpdateServiceAutoScalerRequest.cc index da19ba33f..6f7eae92f 100644 --- a/eas/src/model/UpdateServiceAutoScalerRequest.cc +++ b/eas/src/model/UpdateServiceAutoScalerRequest.cc @@ -26,22 +26,22 @@ UpdateServiceAutoScalerRequest::UpdateServiceAutoScalerRequest() UpdateServiceAutoScalerRequest::~UpdateServiceAutoScalerRequest() {} -string UpdateServiceAutoScalerRequest::getServiceName() const { +std::string UpdateServiceAutoScalerRequest::getServiceName() const { return serviceName_; } -void UpdateServiceAutoScalerRequest::setServiceName(string serviceName) { +void UpdateServiceAutoScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string UpdateServiceAutoScalerRequest::getClusterId() const { +std::string UpdateServiceAutoScalerRequest::getClusterId() const { return clusterId_; } -void UpdateServiceAutoScalerRequest::setClusterId(string clusterId) { +void UpdateServiceAutoScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string UpdateServiceAutoScalerRequest::getBody() const { diff --git a/eas/src/model/UpdateServiceCronScalerRequest.cc b/eas/src/model/UpdateServiceCronScalerRequest.cc index 8c3a6dec5..4e420b1d8 100644 --- a/eas/src/model/UpdateServiceCronScalerRequest.cc +++ b/eas/src/model/UpdateServiceCronScalerRequest.cc @@ -26,22 +26,22 @@ UpdateServiceCronScalerRequest::UpdateServiceCronScalerRequest() UpdateServiceCronScalerRequest::~UpdateServiceCronScalerRequest() {} -string UpdateServiceCronScalerRequest::getServiceName() const { +std::string UpdateServiceCronScalerRequest::getServiceName() const { return serviceName_; } -void UpdateServiceCronScalerRequest::setServiceName(string serviceName) { +void UpdateServiceCronScalerRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string UpdateServiceCronScalerRequest::getClusterId() const { +std::string UpdateServiceCronScalerRequest::getClusterId() const { return clusterId_; } -void UpdateServiceCronScalerRequest::setClusterId(string clusterId) { +void UpdateServiceCronScalerRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string UpdateServiceCronScalerRequest::getBody() const { diff --git a/eas/src/model/UpdateServiceLabelRequest.cc b/eas/src/model/UpdateServiceLabelRequest.cc new file mode 100644 index 000000000..3eee80066 --- /dev/null +++ b/eas/src/model/UpdateServiceLabelRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::UpdateServiceLabelRequest; + +UpdateServiceLabelRequest::UpdateServiceLabelRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/label"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateServiceLabelRequest::~UpdateServiceLabelRequest() {} + +std::string UpdateServiceLabelRequest::getServiceName() const { + return serviceName_; +} + +void UpdateServiceLabelRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string UpdateServiceLabelRequest::getClusterId() const { + return clusterId_; +} + +void UpdateServiceLabelRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateServiceLabelRequest::getBody() const { + return body_; +} + +void UpdateServiceLabelRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/eas/src/model/UpdateServiceLabelResult.cc b/eas/src/model/UpdateServiceLabelResult.cc new file mode 100644 index 000000000..52848a7aa --- /dev/null +++ b/eas/src/model/UpdateServiceLabelResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +UpdateServiceLabelResult::UpdateServiceLabelResult() : + ServiceResult() +{} + +UpdateServiceLabelResult::UpdateServiceLabelResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceLabelResult::~UpdateServiceLabelResult() +{} + +void UpdateServiceLabelResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateServiceLabelResult::getMessage()const +{ + return message_; +} + diff --git a/eas/src/model/UpdateServiceMirrorRequest.cc b/eas/src/model/UpdateServiceMirrorRequest.cc index e9ed57afe..76c8dae66 100644 --- a/eas/src/model/UpdateServiceMirrorRequest.cc +++ b/eas/src/model/UpdateServiceMirrorRequest.cc @@ -26,22 +26,22 @@ UpdateServiceMirrorRequest::UpdateServiceMirrorRequest() UpdateServiceMirrorRequest::~UpdateServiceMirrorRequest() {} -string UpdateServiceMirrorRequest::getServiceName() const { +std::string UpdateServiceMirrorRequest::getServiceName() const { return serviceName_; } -void UpdateServiceMirrorRequest::setServiceName(string serviceName) { +void UpdateServiceMirrorRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string UpdateServiceMirrorRequest::getClusterId() const { +std::string UpdateServiceMirrorRequest::getClusterId() const { return clusterId_; } -void UpdateServiceMirrorRequest::setClusterId(string clusterId) { +void UpdateServiceMirrorRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string UpdateServiceMirrorRequest::getBody() const { diff --git a/eas/src/model/UpdateServiceRequest.cc b/eas/src/model/UpdateServiceRequest.cc index 18c0da889..59c0964d9 100644 --- a/eas/src/model/UpdateServiceRequest.cc +++ b/eas/src/model/UpdateServiceRequest.cc @@ -26,30 +26,30 @@ UpdateServiceRequest::UpdateServiceRequest() UpdateServiceRequest::~UpdateServiceRequest() {} -string UpdateServiceRequest::getServiceName() const { +std::string UpdateServiceRequest::getServiceName() const { return serviceName_; } -void UpdateServiceRequest::setServiceName(string serviceName) { +void UpdateServiceRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string UpdateServiceRequest::getClusterId() const { +std::string UpdateServiceRequest::getClusterId() const { return clusterId_; } -void UpdateServiceRequest::setClusterId(string clusterId) { +void UpdateServiceRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } -string UpdateServiceRequest::getBody() const { +std::string UpdateServiceRequest::getBody() const { return body_; } -void UpdateServiceRequest::setBody(string body) { +void UpdateServiceRequest::setBody(const std::string &body) { body_ = body; - setBodyParameter(std::string("body"), std::to_string(body)); + setBodyParameter(std::string("body"), body); } diff --git a/eas/src/model/UpdateServiceSafetyLockRequest.cc b/eas/src/model/UpdateServiceSafetyLockRequest.cc new file mode 100644 index 000000000..e4a060180 --- /dev/null +++ b/eas/src/model/UpdateServiceSafetyLockRequest.cc @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Eas::Model::UpdateServiceSafetyLockRequest; + +UpdateServiceSafetyLockRequest::UpdateServiceSafetyLockRequest() + : RoaServiceRequest("eas", "2021-07-01") { + setResourcePath("/api/v2/services/[ClusterId]/[ServiceName]/lock"}; + setMethod(HttpRequest::Method::Put); +} + +UpdateServiceSafetyLockRequest::~UpdateServiceSafetyLockRequest() {} + +std::string UpdateServiceSafetyLockRequest::getServiceName() const { + return serviceName_; +} + +void UpdateServiceSafetyLockRequest::setServiceName(const std::string &serviceName) { + serviceName_ = serviceName; + setParameter(std::string("ServiceName"), serviceName); +} + +std::string UpdateServiceSafetyLockRequest::getClusterId() const { + return clusterId_; +} + +void UpdateServiceSafetyLockRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateServiceSafetyLockRequest::getBody() const { + return body_; +} + +void UpdateServiceSafetyLockRequest::setBody(const std::string &body) { + body_ = body; + setBodyParameter(std::string("body"), body); +} + diff --git a/eas/src/model/UpdateServiceSafetyLockResult.cc b/eas/src/model/UpdateServiceSafetyLockResult.cc new file mode 100644 index 000000000..508ebd9df --- /dev/null +++ b/eas/src/model/UpdateServiceSafetyLockResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Eas; +using namespace AlibabaCloud::Eas::Model; + +UpdateServiceSafetyLockResult::UpdateServiceSafetyLockResult() : + ServiceResult() +{} + +UpdateServiceSafetyLockResult::UpdateServiceSafetyLockResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateServiceSafetyLockResult::~UpdateServiceSafetyLockResult() +{} + +void UpdateServiceSafetyLockResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string UpdateServiceSafetyLockResult::getMessage()const +{ + return message_; +} + diff --git a/eas/src/model/UpdateServiceVersionRequest.cc b/eas/src/model/UpdateServiceVersionRequest.cc index 956b0887c..87ccc4723 100644 --- a/eas/src/model/UpdateServiceVersionRequest.cc +++ b/eas/src/model/UpdateServiceVersionRequest.cc @@ -26,22 +26,22 @@ UpdateServiceVersionRequest::UpdateServiceVersionRequest() UpdateServiceVersionRequest::~UpdateServiceVersionRequest() {} -string UpdateServiceVersionRequest::getServiceName() const { +std::string UpdateServiceVersionRequest::getServiceName() const { return serviceName_; } -void UpdateServiceVersionRequest::setServiceName(string serviceName) { +void UpdateServiceVersionRequest::setServiceName(const std::string &serviceName) { serviceName_ = serviceName; - setParameter(std::string("ServiceName"), std::to_string(serviceName)); + setParameter(std::string("ServiceName"), serviceName); } -string UpdateServiceVersionRequest::getClusterId() const { +std::string UpdateServiceVersionRequest::getClusterId() const { return clusterId_; } -void UpdateServiceVersionRequest::setClusterId(string clusterId) { +void UpdateServiceVersionRequest::setClusterId(const std::string &clusterId) { clusterId_ = clusterId; - setParameter(std::string("ClusterId"), std::to_string(clusterId)); + setParameter(std::string("ClusterId"), clusterId); } std::string UpdateServiceVersionRequest::getBody() const {