From 250a0529f2bc955968ea2dd383a81619ed983550 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 27 Oct 2022 08:58:34 +0000 Subject: [PATCH] ListNodesByQueue and ListJobsWithFilters add Async. --- VERSION | 2 +- ehpc/CMakeLists.txt | 392 +- ehpc/include/alibabacloud/ehpc/EHPCClient.h | 784 +++- .../ehpc/model/AddContainerAppRequest.h | 57 + .../ehpc/model/AddContainerAppResult.h | 51 + .../ehpc/model/AddExistedNodesRequest.h | 60 + .../ehpc/model/AddExistedNodesResult.h | 51 + .../ehpc/model/AddLocalNodesRequest.h | 51 + .../ehpc/model/AddLocalNodesResult.h | 51 + .../alibabacloud/ehpc/model/AddNodesRequest.h | 98 +- .../alibabacloud/ehpc/model/AddNodesResult.h | 2 + .../alibabacloud/ehpc/model/AddQueueRequest.h | 48 + .../{SetJobUserResult.h => AddQueueResult.h} | 14 +- .../ehpc/model/AddSecurityGroupRequest.h | 51 + .../ehpc/model/AddSecurityGroupResult.h | 49 + .../alibabacloud/ehpc/model/AddUsersRequest.h | 3 - .../ehpc/model/ApplyNodesRequest.h | 136 + .../ehpc/model/ApplyNodesResult.h | 57 + .../ehpc/model/CreateClusterRequest.h | 200 +- .../ehpc/model/CreateClusterResult.h | 2 + .../ehpc/model/CreateGWSClusterRequest.h | 54 + .../ehpc/model/CreateGWSClusterResult.h | 51 + .../ehpc/model/CreateGWSImageRequest.h | 48 + .../ehpc/model/CreateGWSImageResult.h | 51 + .../ehpc/model/CreateGWSInstanceRequest.h | 93 + .../ehpc/model/CreateGWSInstanceResult.h | 51 + .../ehpc/model/CreateHybridClusterRequest.h | 168 + .../ehpc/model/CreateHybridClusterResult.h | 53 + .../ehpc/model/CreateJobFileRequest.h | 57 + .../ehpc/model/CreateJobFileResult.h | 49 + .../ehpc/model/CreateJobTemplateRequest.h | 33 +- .../ehpc/model/DeleteClusterResult.h | 2 + .../ehpc/model/DeleteContainerAppsRequest.h | 48 + .../ehpc/model/DeleteContainerAppsResult.h | 49 + .../ehpc/model/DeleteGWSClusterRequest.h | 45 + .../ehpc/model/DeleteGWSClusterResult.h | 49 + .../ehpc/model/DeleteGWSInstanceRequest.h | 45 + .../ehpc/model/DeleteGWSInstanceResult.h | 49 + .../ehpc/model/DeleteImageRequest.h | 54 + .../ehpc/model/DeleteImageResult.h | 49 + .../ehpc/model/DeleteJobTemplatesRequest.h | 3 - .../ehpc/model/DeleteLocalImageRequest.h | 48 + .../ehpc/model/DeleteLocalImageResult.h | 49 + .../ehpc/model/DeleteNodesRequest.h | 3 + .../ehpc/model/DeleteNodesResult.h | 2 + .../ehpc/model/DeleteQueueRequest.h | 48 + .../ehpc/model/DeleteQueueResult.h | 49 + .../ehpc/model/DeleteSecurityGroupRequest.h | 48 + .../ehpc/model/DeleteSecurityGroupResult.h | 49 + .../model/DescribeAutoScaleConfigRequest.h | 45 + .../model/DescribeAutoScaleConfigResult.h | 79 + .../ehpc/model/DescribeClusterResult.h | 26 +- .../ehpc/model/DescribeContainerAppRequest.h | 45 + .../ehpc/model/DescribeContainerAppResult.h | 61 + .../ehpc/model/DescribeEstackImageRequest.h | 48 + .../ehpc/model/DescribeEstackImageResult.h | 65 + .../model/DescribeGWSClusterPolicyRequest.h | 51 + .../model/DescribeGWSClusterPolicyResult.h | 57 + .../ehpc/model/DescribeGWSClustersRequest.h | 51 + .../ehpc/model/DescribeGWSClustersResult.h | 67 + .../ehpc/model/DescribeGWSImagesRequest.h | 48 + .../ehpc/model/DescribeGWSImagesResult.h | 67 + .../ehpc/model/DescribeGWSInstancesRequest.h | 60 + .../ehpc/model/DescribeGWSInstancesResult.h | 76 + .../model/DescribeImageGatewayConfigRequest.h | 45 + .../model/DescribeImageGatewayConfigResult.h | 67 + .../ehpc/model/DescribeImagePriceRequest.h | 60 + .../ehpc/model/DescribeImagePriceResult.h | 59 + .../ehpc/model/DescribeImageRequest.h | 54 + .../ehpc/model/DescribeImageResult.h | 61 + .../ehpc/model/DescribeJobRequest.h | 48 + .../ehpc/model/DescribeJobResult.h | 55 + .../model/DescribeNFSClientStatusRequest.h | 45 + .../model/DescribeNFSClientStatusResult.h | 59 + .../ehpc/model/DescribePriceRequest.h | 74 + .../ehpc/model/DescribePriceResult.h | 60 + .../ehpc/model/EditJobTemplateRequest.h | 33 +- .../ehpc/model/GetAccountingReportRequest.h | 69 + .../ehpc/model/GetAccountingReportResult.h | 61 + .../ehpc/model/GetAutoScaleConfigResult.h | 48 + .../ehpc/model/GetCloudMetricLogsRequest.h | 69 + .../ehpc/model/GetCloudMetricLogsResult.h | 60 + .../model/GetCloudMetricProfilingRequest.h | 51 + .../model/GetCloudMetricProfilingResult.h | 58 + .../ehpc/model/GetClusterVolumesRequest.h | 45 + .../ehpc/model/GetClusterVolumesResult.h | 70 + .../ehpc/model/GetCommonImageRequest.h | 51 + .../ehpc/model/GetCommonImageResult.h | 49 + .../ehpc/model/GetGWSConnectTicketRequest.h | 48 + .../ehpc/model/GetGWSConnectTicketResult.h | 51 + .../model/GetHybridClusterConfigRequest.h | 48 + .../ehpc/model/GetHybridClusterConfigResult.h | 51 + .../GetIfEcsTypeSupportHtConfigRequest.h | 45 + .../model/GetIfEcsTypeSupportHtConfigResult.h | 55 + .../ehpc/model/GetPostScriptsRequest.h | 48 + .../ehpc/model/GetPostScriptsResult.h | 56 + .../ehpc/model/GetSchedulerInfoRequest.h | 54 + .../ehpc/model/GetSchedulerInfoResult.h | 56 + .../ehpc/model/GetUserImageRequest.h | 57 + .../ehpc/model/GetUserImageResult.h | 49 + .../model/GetVisualServiceStatusRequest.h | 45 + .../ehpc/model/GetVisualServiceStatusResult.h | 51 + .../ehpc/model/InitializeEHPCRequest.h | 42 + .../ehpc/model/InitializeEHPCResult.h | 49 + .../ehpc/model/InspectImageRequest.h | 51 + .../ehpc/model/InspectImageResult.h | 64 + .../ehpc/model/InstallSoftwareRequest.h | 48 + .../ehpc/model/InstallSoftwareResult.h | 49 + .../ehpc/model/InvokeShellCommandRequest.h | 60 + .../ehpc/model/InvokeShellCommandResult.h | 53 + .../ehpc/model/ListAvailableEcsTypesRequest.h | 54 + .../ehpc/model/ListAvailableEcsTypesResult.h | 74 + .../model/ListCloudMetricProfilingsRequest.h | 54 + .../model/ListCloudMetricProfilingsResult.h | 67 + .../ehpc/model/ListClustersMetaRequest.h | 48 + .../ehpc/model/ListClustersMetaResult.h | 73 + .../ehpc/model/ListClustersResult.h | 38 +- .../ehpc/model/ListCommandsRequest.h | 54 + .../ehpc/model/ListCommandsResult.h | 64 + .../ehpc/model/ListCommunityImagesRequest.h | 51 + .../ehpc/model/ListCommunityImagesResult.h | 82 + .../ehpc/model/ListContainerAppsRequest.h | 48 + .../ehpc/model/ListContainerAppsResult.h | 67 + .../ehpc/model/ListContainerImagesRequest.h | 54 + .../ehpc/model/ListContainerImagesResult.h | 69 + .../ehpc/model/ListCpfsFileSystemsRequest.h | 51 + .../ehpc/model/ListCpfsFileSystemsResult.h | 76 + .../ehpc/model/ListCustomImagesRequest.h | 9 +- .../ehpc/model/ListCustomImagesResult.h | 20 +- .../ListFileSystemWithMountTargetsRequest.h | 48 + .../ListFileSystemWithMountTargetsResult.h | 88 + .../ehpc/model/ListImagesRequest.h | 6 + .../ehpc/model/ListImagesResult.h | 2 + .../ehpc/model/ListInstalledSoftwareRequest.h | 45 + .../ehpc/model/ListInstalledSoftwareResult.h | 58 + .../ehpc/model/ListInvocationResultsRequest.h | 63 + .../ehpc/model/ListInvocationResultsResult.h | 67 + .../ehpc/model/ListInvocationStatusRequest.h | 48 + .../ehpc/model/ListInvocationStatusResult.h | 60 + .../ehpc/model/ListJobTemplatesRequest.h | 3 - .../ehpc/model/ListJobTemplatesResult.h | 18 +- .../alibabacloud/ehpc/model/ListJobsResult.h | 3 +- .../ehpc/model/ListJobsWithFiltersRequest.h | 84 + .../ehpc/model/ListJobsWithFiltersResult.h | 85 + .../ehpc/model/ListNodesByQueueRequest.h | 57 + .../ehpc/model/ListNodesByQueueResult.h | 96 + .../ehpc/model/ListNodesNoPagingRequest.h | 3 + .../ehpc/model/ListNodesNoPagingResult.h | 13 +- .../ehpc/model/ListNodesRequest.h | 24 +- .../alibabacloud/ehpc/model/ListNodesResult.h | 26 +- .../ehpc/model/ListPreferredEcsTypesRequest.h | 3 + .../ehpc/model/ListQueuesRequest.h | 48 + .../ehpc/model/ListQueuesResult.h | 69 + .../ehpc/model/ListSecurityGroupsRequest.h | 45 + .../ehpc/model/ListSecurityGroupsResult.h | 53 + .../ehpc/model/ListSoftwaresRequest.h | 3 + .../ehpc/model/ListTagResourcesRequest.h | 58 + .../ehpc/model/ListTagResourcesResult.h | 60 + .../ehpc/model/ListTasksRequest.h | 57 + .../alibabacloud/ehpc/model/ListTasksResult.h | 69 + .../ehpc/model/ListUpgradeClientsRequest.h | 45 + .../ehpc/model/ListUpgradeClientsResult.h | 62 + .../ehpc/model/ListUsersAsyncRequest.h | 54 + .../ehpc/model/ListUsersAsyncResult.h | 69 + .../ehpc/model/ListVolumesResult.h | 13 + .../model/ModifyClusterAttributesRequest.h | 6 + .../ModifyContainerAppAttributesRequest.h | 48 + .../ModifyContainerAppAttributesResult.h | 49 + .../model/ModifyImageGatewayConfigRequest.h | 74 + .../model/ModifyImageGatewayConfigResult.h | 49 + ...t.h => ModifyVisualServicePasswdRequest.h} | 15 +- .../model/ModifyVisualServicePasswdResult.h | 51 + .../alibabacloud/ehpc/model/MountNFSRequest.h | 57 + .../alibabacloud/ehpc/model/MountNFSResult.h | 51 + .../ehpc/model/PullImageRequest.h | 54 + .../alibabacloud/ehpc/model/PullImageResult.h | 49 + .../model/QueryServicePackAndPriceRequest.h | 42 + .../model/QueryServicePackAndPriceResult.h | 72 + .../ehpc/model/RecoverClusterRequest.h | 63 + .../ehpc/model/RecoverClusterResult.h | 51 + .../ehpc/model/ResetNodesResult.h | 2 + .../model/RunCloudMetricProfilingRequest.h | 60 + .../model/RunCloudMetricProfilingResult.h | 49 + .../ehpc/model/SetAutoScaleConfigRequest.h | 47 + .../ehpc/model/SetGWSClusterPolicyRequest.h | 63 + .../ehpc/model/SetGWSClusterPolicyResult.h | 49 + .../ehpc/model/SetGWSInstanceNameRequest.h | 48 + .../ehpc/model/SetGWSInstanceNameResult.h | 49 + .../ehpc/model/SetGWSInstanceUserRequest.h | 51 + .../ehpc/model/SetGWSInstanceUserResult.h | 49 + .../ehpc/model/SetPostScriptsRequest.h | 55 + .../ehpc/model/SetPostScriptsResult.h | 49 + .../alibabacloud/ehpc/model/SetQueueRequest.h | 54 + .../alibabacloud/ehpc/model/SetQueueResult.h | 49 + .../ehpc/model/SetSchedulerInfoRequest.h | 84 + .../ehpc/model/SetSchedulerInfoResult.h | 51 + .../ehpc/model/StartClusterRequest.h | 45 + .../ehpc/model/StartClusterResult.h | 51 + .../ehpc/model/StartGWSInstanceRequest.h | 45 + .../ehpc/model/StartGWSInstanceResult.h | 49 + .../ehpc/model/StartNodesRequest.h | 54 + .../ehpc/model/StartNodesResult.h | 51 + .../ehpc/model/StartVisualServiceRequest.h | 51 + .../ehpc/model/StartVisualServiceResult.h | 51 + .../ehpc/model/StopClusterRequest.h | 45 + .../ehpc/model/StopClusterResult.h | 51 + .../ehpc/model/StopGWSInstanceRequest.h | 45 + .../ehpc/model/StopGWSInstanceResult.h | 49 + .../ehpc/model/StopNodesRequest.h | 54 + .../alibabacloud/ehpc/model/StopNodesResult.h | 51 + .../ehpc/model/StopVisualServiceRequest.h | 51 + .../ehpc/model/StopVisualServiceResult.h | 51 + .../ehpc/model/SubmitJobRequest.h | 33 + .../ehpc/model/SummaryImagesInfoRequest.h | 48 + .../ehpc/model/SummaryImagesInfoResult.h | 51 + .../ehpc/model/SummaryImagesRequest.h | 45 + .../ehpc/model/SummaryImagesResult.h | 51 + .../ehpc/model/SyncUsersRequest.h | 45 + .../alibabacloud/ehpc/model/SyncUsersResult.h | 49 + .../ehpc/model/TagResourcesRequest.h | 55 + .../ehpc/model/TagResourcesResult.h | 49 + .../ehpc/model/UnTagResourcesRequest.h | 54 + .../ehpc/model/UnTagResourcesResult.h | 49 + .../ehpc/model/UninstallSoftwareRequest.h | 48 + .../ehpc/model/UninstallSoftwareResult.h | 49 + .../ehpc/model/UpdateClusterVolumesRequest.h | 62 + .../ehpc/model/UpdateClusterVolumesResult.h | 49 + .../ehpc/model/UpdateQueueConfigRequest.h | 54 + .../ehpc/model/UpdateQueueConfigResult.h | 49 + ehpc/src/EHPCClient.cc | 3474 ++++++++++++++++- ehpc/src/model/AddContainerAppRequest.cc | 81 + ehpc/src/model/AddContainerAppResult.cc | 52 + ehpc/src/model/AddExistedNodesRequest.cc | 85 + ehpc/src/model/AddExistedNodesResult.cc | 51 + ehpc/src/model/AddLocalNodesRequest.cc | 63 + ehpc/src/model/AddLocalNodesResult.cc | 52 + ehpc/src/model/AddNodesRequest.cc | 257 +- ehpc/src/model/AddNodesResult.cc | 7 + ehpc/src/model/AddQueueRequest.cc | 54 + ...{SetJobUserResult.cc => AddQueueResult.cc} | 10 +- ehpc/src/model/AddSecurityGroupRequest.cc | 63 + ehpc/src/model/AddSecurityGroupResult.cc | 44 + ehpc/src/model/AddUsersRequest.cc | 11 +- ehpc/src/model/ApplyNodesRequest.cc | 295 ++ ehpc/src/model/ApplyNodesResult.cc | 73 + ehpc/src/model/CreateClusterRequest.cc | 485 ++- ehpc/src/model/CreateClusterResult.cc | 7 + ehpc/src/model/CreateGWSClusterRequest.cc | 72 + ehpc/src/model/CreateGWSClusterResult.cc | 51 + ehpc/src/model/CreateGWSImageRequest.cc | 54 + ehpc/src/model/CreateGWSImageResult.cc | 51 + ehpc/src/model/CreateGWSInstanceRequest.cc | 189 + ehpc/src/model/CreateGWSInstanceResult.cc | 51 + ehpc/src/model/CreateHybridClusterRequest.cc | 387 ++ ehpc/src/model/CreateHybridClusterResult.cc | 58 + ehpc/src/model/CreateJobFileRequest.cc | 81 + ehpc/src/model/CreateJobFileResult.cc | 44 + ehpc/src/model/CreateJobTemplateRequest.cc | 93 +- ehpc/src/model/DeleteClusterRequest.cc | 2 +- ehpc/src/model/DeleteClusterResult.cc | 7 + ehpc/src/model/DeleteContainerAppsRequest.cc | 49 + ehpc/src/model/DeleteContainerAppsResult.cc | 44 + ehpc/src/model/DeleteGWSClusterRequest.cc | 45 + ehpc/src/model/DeleteGWSClusterResult.cc | 44 + ehpc/src/model/DeleteGWSInstanceRequest.cc | 45 + ehpc/src/model/DeleteGWSInstanceResult.cc | 44 + ehpc/src/model/DeleteImageRequest.cc | 72 + ehpc/src/model/DeleteImageResult.cc | 44 + ehpc/src/model/DeleteJobTemplatesRequest.cc | 11 +- ehpc/src/model/DeleteJobsRequest.cc | 2 +- ehpc/src/model/DeleteLocalImageRequest.cc | 54 + ehpc/src/model/DeleteLocalImageResult.cc | 44 + ehpc/src/model/DeleteNodesRequest.cc | 11 +- ehpc/src/model/DeleteNodesResult.cc | 7 + ehpc/src/model/DeleteQueueRequest.cc | 54 + ehpc/src/model/DeleteQueueResult.cc | 44 + ehpc/src/model/DeleteSecurityGroupRequest.cc | 54 + ehpc/src/model/DeleteSecurityGroupResult.cc | 44 + ehpc/src/model/DeleteUsersRequest.cc | 2 +- .../model/DescribeAutoScaleConfigRequest.cc | 45 + .../model/DescribeAutoScaleConfigResult.cc | 149 + ehpc/src/model/DescribeClusterRequest.cc | 2 +- ehpc/src/model/DescribeClusterResult.cc | 69 +- ehpc/src/model/DescribeContainerAppRequest.cc | 45 + ehpc/src/model/DescribeContainerAppResult.cc | 64 + ehpc/src/model/DescribeEstackImageRequest.cc | 54 + ehpc/src/model/DescribeEstackImageResult.cc | 86 + .../model/DescribeGWSClusterPolicyRequest.cc | 63 + .../model/DescribeGWSClusterPolicyResult.cc | 72 + ehpc/src/model/DescribeGWSClustersRequest.cc | 63 + ehpc/src/model/DescribeGWSClustersResult.cc | 93 + ehpc/src/model/DescribeGWSImagesRequest.cc | 54 + ehpc/src/model/DescribeGWSImagesResult.cc | 90 + ehpc/src/model/DescribeGWSInstancesRequest.cc | 90 + ehpc/src/model/DescribeGWSInstancesResult.cc | 106 + .../DescribeImageGatewayConfigRequest.cc | 45 + .../model/DescribeImageGatewayConfigResult.cc | 74 + ehpc/src/model/DescribeImagePriceRequest.cc | 90 + ehpc/src/model/DescribeImagePriceResult.cc | 79 + ehpc/src/model/DescribeImageRequest.cc | 72 + ehpc/src/model/DescribeImageResult.cc | 64 + ehpc/src/model/DescribeJobRequest.cc | 54 + ehpc/src/model/DescribeJobResult.cc | 52 + .../model/DescribeNFSClientStatusRequest.cc | 45 + .../model/DescribeNFSClientStatusResult.cc | 63 + ehpc/src/model/DescribePriceRequest.cc | 94 + ehpc/src/model/DescribePriceResult.cc | 70 + ehpc/src/model/EditJobTemplateRequest.cc | 93 +- ehpc/src/model/GetAccountingReportRequest.cc | 117 + ehpc/src/model/GetAccountingReportResult.cc | 87 + ehpc/src/model/GetAutoScaleConfigRequest.cc | 2 +- ehpc/src/model/GetAutoScaleConfigResult.cc | 118 +- ehpc/src/model/GetCloudMetricLogsRequest.cc | 117 + ehpc/src/model/GetCloudMetricLogsResult.cc | 67 + .../model/GetCloudMetricProfilingRequest.cc | 63 + .../model/GetCloudMetricProfilingResult.cc | 63 + ehpc/src/model/GetClusterVolumesRequest.cc | 45 + ehpc/src/model/GetClusterVolumesResult.cc | 88 + ehpc/src/model/GetCommonImageRequest.cc | 63 + ehpc/src/model/GetCommonImageResult.cc | 44 + ehpc/src/model/GetGWSConnectTicketRequest.cc | 54 + ehpc/src/model/GetGWSConnectTicketResult.cc | 51 + .../model/GetHybridClusterConfigRequest.cc | 54 + .../src/model/GetHybridClusterConfigResult.cc | 51 + .../GetIfEcsTypeSupportHtConfigRequest.cc | 45 + .../GetIfEcsTypeSupportHtConfigResult.cc | 65 + ehpc/src/model/GetPostScriptsRequest.cc | 54 + ehpc/src/model/GetPostScriptsResult.cc | 59 + ehpc/src/model/GetSchedulerInfoRequest.cc | 67 + ehpc/src/model/GetSchedulerInfoResult.cc | 59 + ehpc/src/model/GetUserImageRequest.cc | 81 + ehpc/src/model/GetUserImageResult.cc | 44 + .../model/GetVisualServiceStatusRequest.cc | 45 + .../src/model/GetVisualServiceStatusResult.cc | 51 + ehpc/src/model/InitializeEHPCRequest.cc | 36 + ehpc/src/model/InitializeEHPCResult.cc | 44 + ehpc/src/model/InspectImageRequest.cc | 63 + ehpc/src/model/InspectImageResult.cc | 63 + ehpc/src/model/InstallSoftwareRequest.cc | 54 + ehpc/src/model/InstallSoftwareResult.cc | 44 + ehpc/src/model/InvokeShellCommandRequest.cc | 85 + ehpc/src/model/InvokeShellCommandResult.cc | 59 + .../src/model/ListAvailableEcsTypesRequest.cc | 72 + ehpc/src/model/ListAvailableEcsTypesResult.cc | 97 + .../model/ListCloudMetricProfilingsRequest.cc | 72 + .../model/ListCloudMetricProfilingsResult.cc | 90 + ehpc/src/model/ListClusterLogsRequest.cc | 2 +- ehpc/src/model/ListClustersMetaRequest.cc | 54 + ehpc/src/model/ListClustersMetaResult.cc | 102 + ehpc/src/model/ListClustersRequest.cc | 2 +- ehpc/src/model/ListClustersResult.cc | 64 +- ehpc/src/model/ListCommandsRequest.cc | 72 + ehpc/src/model/ListCommandsResult.cc | 84 + ehpc/src/model/ListCommunityImagesRequest.cc | 63 + ehpc/src/model/ListCommunityImagesResult.cc | 97 + ehpc/src/model/ListContainerAppsRequest.cc | 54 + ehpc/src/model/ListContainerAppsResult.cc | 90 + ehpc/src/model/ListContainerImagesRequest.cc | 72 + ehpc/src/model/ListContainerImagesResult.cc | 97 + ehpc/src/model/ListCpfsFileSystemsRequest.cc | 63 + ehpc/src/model/ListCpfsFileSystemsResult.cc | 106 + .../model/ListCurrentClientVersionRequest.cc | 2 +- ehpc/src/model/ListCustomImagesRequest.cc | 29 +- ehpc/src/model/ListCustomImagesResult.cc | 33 +- .../ListFileSystemWithMountTargetsRequest.cc | 54 + .../ListFileSystemWithMountTargetsResult.cc | 128 + ehpc/src/model/ListImagesRequest.cc | 20 +- ehpc/src/model/ListImagesResult.cc | 8 +- .../src/model/ListInstalledSoftwareRequest.cc | 45 + ehpc/src/model/ListInstalledSoftwareResult.cc | 63 + .../src/model/ListInvocationResultsRequest.cc | 94 + ehpc/src/model/ListInvocationResultsResult.cc | 90 + ehpc/src/model/ListInvocationStatusRequest.cc | 54 + ehpc/src/model/ListInvocationStatusResult.cc | 73 + ehpc/src/model/ListJobTemplatesRequest.cc | 11 +- ehpc/src/model/ListJobTemplatesResult.cc | 36 +- ehpc/src/model/ListJobsRequest.cc | 2 +- ehpc/src/model/ListJobsResult.cc | 4 +- ehpc/src/model/ListJobsWithFiltersRequest.cc | 168 + ehpc/src/model/ListJobsWithFiltersResult.cc | 122 + ehpc/src/model/ListNodesByQueueRequest.cc | 81 + ehpc/src/model/ListNodesByQueueResult.cc | 134 + ehpc/src/model/ListNodesNoPagingRequest.cc | 11 +- ehpc/src/model/ListNodesNoPagingResult.cc | 36 +- ehpc/src/model/ListNodesRequest.cc | 74 +- ehpc/src/model/ListNodesResult.cc | 33 +- .../src/model/ListPreferredEcsTypesRequest.cc | 11 +- ehpc/src/model/ListQueuesRequest.cc | 54 + ehpc/src/model/ListQueuesResult.cc | 84 + ehpc/src/model/ListRegionsRequest.cc | 2 +- ehpc/src/model/ListSecurityGroupsRequest.cc | 45 + ehpc/src/model/ListSecurityGroupsResult.cc | 59 + ehpc/src/model/ListSoftwaresRequest.cc | 11 +- ehpc/src/model/ListTagResourcesRequest.cc | 76 + ehpc/src/model/ListTagResourcesResult.cc | 70 + ehpc/src/model/ListTasksRequest.cc | 81 + ehpc/src/model/ListTasksResult.cc | 94 + ehpc/src/model/ListUpgradeClientsRequest.cc | 45 + ehpc/src/model/ListUpgradeClientsResult.cc | 77 + ehpc/src/model/ListUsersAsyncRequest.cc | 72 + ehpc/src/model/ListUsersAsyncResult.cc | 100 + ehpc/src/model/ListUsersRequest.cc | 2 +- ehpc/src/model/ListVolumesRequest.cc | 2 +- ehpc/src/model/ListVolumesResult.cc | 24 + .../model/ModifyClusterAttributesRequest.cc | 20 +- .../ModifyContainerAppAttributesRequest.cc | 54 + .../ModifyContainerAppAttributesResult.cc | 44 + .../model/ModifyImageGatewayConfigRequest.cc | 123 + .../model/ModifyImageGatewayConfigResult.cc | 44 + ehpc/src/model/ModifyUserGroupsRequest.cc | 2 +- ehpc/src/model/ModifyUserPasswordsRequest.cc | 2 +- .../model/ModifyVisualServicePasswdRequest.cc | 72 + .../model/ModifyVisualServicePasswdResult.cc | 51 + ehpc/src/model/MountNFSRequest.cc | 81 + ehpc/src/model/MountNFSResult.cc | 51 + ehpc/src/model/PullImageRequest.cc | 72 + ehpc/src/model/PullImageResult.cc | 44 + .../model/QueryServicePackAndPriceRequest.cc | 36 + .../model/QueryServicePackAndPriceResult.cc | 112 + ehpc/src/model/RecoverClusterRequest.cc | 99 + ehpc/src/model/RecoverClusterResult.cc | 51 + ehpc/src/model/RerunJobsRequest.cc | 2 +- ehpc/src/model/ResetNodesRequest.cc | 2 +- ehpc/src/model/ResetNodesResult.cc | 7 + .../model/RunCloudMetricProfilingRequest.cc | 90 + .../model/RunCloudMetricProfilingResult.cc | 44 + ehpc/src/model/SetAutoScaleConfigRequest.cc | 76 +- ehpc/src/model/SetGWSClusterPolicyRequest.cc | 99 + ehpc/src/model/SetGWSClusterPolicyResult.cc | 44 + ehpc/src/model/SetGWSInstanceNameRequest.cc | 54 + ehpc/src/model/SetGWSInstanceNameResult.cc | 44 + ehpc/src/model/SetGWSInstanceUserRequest.cc | 63 + ehpc/src/model/SetGWSInstanceUserResult.cc | 44 + ehpc/src/model/SetJobUserRequest.cc | 63 - ehpc/src/model/SetPostScriptsRequest.cc | 68 + ehpc/src/model/SetPostScriptsResult.cc | 44 + ehpc/src/model/SetQueueRequest.cc | 67 + ehpc/src/model/SetQueueResult.cc | 44 + ehpc/src/model/SetSchedulerInfoRequest.cc | 113 + ehpc/src/model/SetSchedulerInfoResult.cc | 51 + ehpc/src/model/StartClusterRequest.cc | 45 + ehpc/src/model/StartClusterResult.cc | 51 + ehpc/src/model/StartGWSInstanceRequest.cc | 45 + ehpc/src/model/StartGWSInstanceResult.cc | 44 + ehpc/src/model/StartNodesRequest.cc | 67 + ehpc/src/model/StartNodesResult.cc | 51 + ehpc/src/model/StartVisualServiceRequest.cc | 63 + ehpc/src/model/StartVisualServiceResult.cc | 51 + ehpc/src/model/StopClusterRequest.cc | 45 + ehpc/src/model/StopClusterResult.cc | 51 + ehpc/src/model/StopGWSInstanceRequest.cc | 45 + ehpc/src/model/StopGWSInstanceResult.cc | 44 + ehpc/src/model/StopJobsRequest.cc | 2 +- ehpc/src/model/StopNodesRequest.cc | 67 + ehpc/src/model/StopNodesResult.cc | 51 + ehpc/src/model/StopVisualServiceRequest.cc | 63 + ehpc/src/model/StopVisualServiceResult.cc | 51 + ehpc/src/model/SubmitJobRequest.cc | 101 +- ehpc/src/model/SummaryImagesInfoRequest.cc | 54 + ehpc/src/model/SummaryImagesInfoResult.cc | 51 + ehpc/src/model/SummaryImagesRequest.cc | 45 + ehpc/src/model/SummaryImagesResult.cc | 51 + ehpc/src/model/SyncUsersRequest.cc | 45 + ehpc/src/model/SyncUsersResult.cc | 44 + ehpc/src/model/TagResourcesRequest.cc | 67 + ehpc/src/model/TagResourcesResult.cc | 44 + ehpc/src/model/UnTagResourcesRequest.cc | 70 + ehpc/src/model/UnTagResourcesResult.cc | 44 + ehpc/src/model/UninstallSoftwareRequest.cc | 54 + ehpc/src/model/UninstallSoftwareResult.cc | 44 + ehpc/src/model/UpdateClusterVolumesRequest.cc | 70 + ehpc/src/model/UpdateClusterVolumesResult.cc | 44 + ehpc/src/model/UpdateQueueConfigRequest.cc | 72 + ehpc/src/model/UpdateQueueConfigResult.cc | 44 + ehpc/src/model/UpgradeClientRequest.cc | 2 +- 475 files changed, 30793 insertions(+), 508 deletions(-) create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddContainerAppRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddExistedNodesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddLocalNodesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.h rename ehpc/include/alibabacloud/ehpc/model/{SetJobUserResult.h => AddQueueResult.h} (73%) create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateJobFileRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteQueueRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeJobRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetCommonImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetCommonImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetPostScriptsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetPostScriptsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetUserImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetUserImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InitializeEHPCRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InspectImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InspectImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InstallSoftwareRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListContainerAppsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListContainerImagesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListTagResourcesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListTagResourcesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h rename ehpc/include/alibabacloud/ehpc/model/{SetJobUserRequest.h => ModifyVisualServicePasswdRequest.h} (73%) create mode 100644 ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/PullImageRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/PullImageResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/RecoverClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetPostScriptsRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetPostScriptsResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetQueueRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartNodesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartVisualServiceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopClusterRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopVisualServiceRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SummaryImagesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SummaryImagesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SyncUsersRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/SyncUsersResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/TagResourcesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/TagResourcesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UnTagResourcesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UnTagResourcesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h create mode 100644 ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h create mode 100644 ehpc/src/model/AddContainerAppRequest.cc create mode 100644 ehpc/src/model/AddContainerAppResult.cc create mode 100644 ehpc/src/model/AddExistedNodesRequest.cc create mode 100644 ehpc/src/model/AddExistedNodesResult.cc create mode 100644 ehpc/src/model/AddLocalNodesRequest.cc create mode 100644 ehpc/src/model/AddLocalNodesResult.cc create mode 100644 ehpc/src/model/AddQueueRequest.cc rename ehpc/src/model/{SetJobUserResult.cc => AddQueueResult.cc} (78%) create mode 100644 ehpc/src/model/AddSecurityGroupRequest.cc create mode 100644 ehpc/src/model/AddSecurityGroupResult.cc create mode 100644 ehpc/src/model/ApplyNodesRequest.cc create mode 100644 ehpc/src/model/ApplyNodesResult.cc create mode 100644 ehpc/src/model/CreateGWSClusterRequest.cc create mode 100644 ehpc/src/model/CreateGWSClusterResult.cc create mode 100644 ehpc/src/model/CreateGWSImageRequest.cc create mode 100644 ehpc/src/model/CreateGWSImageResult.cc create mode 100644 ehpc/src/model/CreateGWSInstanceRequest.cc create mode 100644 ehpc/src/model/CreateGWSInstanceResult.cc create mode 100644 ehpc/src/model/CreateHybridClusterRequest.cc create mode 100644 ehpc/src/model/CreateHybridClusterResult.cc create mode 100644 ehpc/src/model/CreateJobFileRequest.cc create mode 100644 ehpc/src/model/CreateJobFileResult.cc create mode 100644 ehpc/src/model/DeleteContainerAppsRequest.cc create mode 100644 ehpc/src/model/DeleteContainerAppsResult.cc create mode 100644 ehpc/src/model/DeleteGWSClusterRequest.cc create mode 100644 ehpc/src/model/DeleteGWSClusterResult.cc create mode 100644 ehpc/src/model/DeleteGWSInstanceRequest.cc create mode 100644 ehpc/src/model/DeleteGWSInstanceResult.cc create mode 100644 ehpc/src/model/DeleteImageRequest.cc create mode 100644 ehpc/src/model/DeleteImageResult.cc create mode 100644 ehpc/src/model/DeleteLocalImageRequest.cc create mode 100644 ehpc/src/model/DeleteLocalImageResult.cc create mode 100644 ehpc/src/model/DeleteQueueRequest.cc create mode 100644 ehpc/src/model/DeleteQueueResult.cc create mode 100644 ehpc/src/model/DeleteSecurityGroupRequest.cc create mode 100644 ehpc/src/model/DeleteSecurityGroupResult.cc create mode 100644 ehpc/src/model/DescribeAutoScaleConfigRequest.cc create mode 100644 ehpc/src/model/DescribeAutoScaleConfigResult.cc create mode 100644 ehpc/src/model/DescribeContainerAppRequest.cc create mode 100644 ehpc/src/model/DescribeContainerAppResult.cc create mode 100644 ehpc/src/model/DescribeEstackImageRequest.cc create mode 100644 ehpc/src/model/DescribeEstackImageResult.cc create mode 100644 ehpc/src/model/DescribeGWSClusterPolicyRequest.cc create mode 100644 ehpc/src/model/DescribeGWSClusterPolicyResult.cc create mode 100644 ehpc/src/model/DescribeGWSClustersRequest.cc create mode 100644 ehpc/src/model/DescribeGWSClustersResult.cc create mode 100644 ehpc/src/model/DescribeGWSImagesRequest.cc create mode 100644 ehpc/src/model/DescribeGWSImagesResult.cc create mode 100644 ehpc/src/model/DescribeGWSInstancesRequest.cc create mode 100644 ehpc/src/model/DescribeGWSInstancesResult.cc create mode 100644 ehpc/src/model/DescribeImageGatewayConfigRequest.cc create mode 100644 ehpc/src/model/DescribeImageGatewayConfigResult.cc create mode 100644 ehpc/src/model/DescribeImagePriceRequest.cc create mode 100644 ehpc/src/model/DescribeImagePriceResult.cc create mode 100644 ehpc/src/model/DescribeImageRequest.cc create mode 100644 ehpc/src/model/DescribeImageResult.cc create mode 100644 ehpc/src/model/DescribeJobRequest.cc create mode 100644 ehpc/src/model/DescribeJobResult.cc create mode 100644 ehpc/src/model/DescribeNFSClientStatusRequest.cc create mode 100644 ehpc/src/model/DescribeNFSClientStatusResult.cc create mode 100644 ehpc/src/model/DescribePriceRequest.cc create mode 100644 ehpc/src/model/DescribePriceResult.cc create mode 100644 ehpc/src/model/GetAccountingReportRequest.cc create mode 100644 ehpc/src/model/GetAccountingReportResult.cc create mode 100644 ehpc/src/model/GetCloudMetricLogsRequest.cc create mode 100644 ehpc/src/model/GetCloudMetricLogsResult.cc create mode 100644 ehpc/src/model/GetCloudMetricProfilingRequest.cc create mode 100644 ehpc/src/model/GetCloudMetricProfilingResult.cc create mode 100644 ehpc/src/model/GetClusterVolumesRequest.cc create mode 100644 ehpc/src/model/GetClusterVolumesResult.cc create mode 100644 ehpc/src/model/GetCommonImageRequest.cc create mode 100644 ehpc/src/model/GetCommonImageResult.cc create mode 100644 ehpc/src/model/GetGWSConnectTicketRequest.cc create mode 100644 ehpc/src/model/GetGWSConnectTicketResult.cc create mode 100644 ehpc/src/model/GetHybridClusterConfigRequest.cc create mode 100644 ehpc/src/model/GetHybridClusterConfigResult.cc create mode 100644 ehpc/src/model/GetIfEcsTypeSupportHtConfigRequest.cc create mode 100644 ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc create mode 100644 ehpc/src/model/GetPostScriptsRequest.cc create mode 100644 ehpc/src/model/GetPostScriptsResult.cc create mode 100644 ehpc/src/model/GetSchedulerInfoRequest.cc create mode 100644 ehpc/src/model/GetSchedulerInfoResult.cc create mode 100644 ehpc/src/model/GetUserImageRequest.cc create mode 100644 ehpc/src/model/GetUserImageResult.cc create mode 100644 ehpc/src/model/GetVisualServiceStatusRequest.cc create mode 100644 ehpc/src/model/GetVisualServiceStatusResult.cc create mode 100644 ehpc/src/model/InitializeEHPCRequest.cc create mode 100644 ehpc/src/model/InitializeEHPCResult.cc create mode 100644 ehpc/src/model/InspectImageRequest.cc create mode 100644 ehpc/src/model/InspectImageResult.cc create mode 100644 ehpc/src/model/InstallSoftwareRequest.cc create mode 100644 ehpc/src/model/InstallSoftwareResult.cc create mode 100644 ehpc/src/model/InvokeShellCommandRequest.cc create mode 100644 ehpc/src/model/InvokeShellCommandResult.cc create mode 100644 ehpc/src/model/ListAvailableEcsTypesRequest.cc create mode 100644 ehpc/src/model/ListAvailableEcsTypesResult.cc create mode 100644 ehpc/src/model/ListCloudMetricProfilingsRequest.cc create mode 100644 ehpc/src/model/ListCloudMetricProfilingsResult.cc create mode 100644 ehpc/src/model/ListClustersMetaRequest.cc create mode 100644 ehpc/src/model/ListClustersMetaResult.cc create mode 100644 ehpc/src/model/ListCommandsRequest.cc create mode 100644 ehpc/src/model/ListCommandsResult.cc create mode 100644 ehpc/src/model/ListCommunityImagesRequest.cc create mode 100644 ehpc/src/model/ListCommunityImagesResult.cc create mode 100644 ehpc/src/model/ListContainerAppsRequest.cc create mode 100644 ehpc/src/model/ListContainerAppsResult.cc create mode 100644 ehpc/src/model/ListContainerImagesRequest.cc create mode 100644 ehpc/src/model/ListContainerImagesResult.cc create mode 100644 ehpc/src/model/ListCpfsFileSystemsRequest.cc create mode 100644 ehpc/src/model/ListCpfsFileSystemsResult.cc create mode 100644 ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc create mode 100644 ehpc/src/model/ListFileSystemWithMountTargetsResult.cc create mode 100644 ehpc/src/model/ListInstalledSoftwareRequest.cc create mode 100644 ehpc/src/model/ListInstalledSoftwareResult.cc create mode 100644 ehpc/src/model/ListInvocationResultsRequest.cc create mode 100644 ehpc/src/model/ListInvocationResultsResult.cc create mode 100644 ehpc/src/model/ListInvocationStatusRequest.cc create mode 100644 ehpc/src/model/ListInvocationStatusResult.cc create mode 100644 ehpc/src/model/ListJobsWithFiltersRequest.cc create mode 100644 ehpc/src/model/ListJobsWithFiltersResult.cc create mode 100644 ehpc/src/model/ListNodesByQueueRequest.cc create mode 100644 ehpc/src/model/ListNodesByQueueResult.cc create mode 100644 ehpc/src/model/ListQueuesRequest.cc create mode 100644 ehpc/src/model/ListQueuesResult.cc create mode 100644 ehpc/src/model/ListSecurityGroupsRequest.cc create mode 100644 ehpc/src/model/ListSecurityGroupsResult.cc create mode 100644 ehpc/src/model/ListTagResourcesRequest.cc create mode 100644 ehpc/src/model/ListTagResourcesResult.cc create mode 100644 ehpc/src/model/ListTasksRequest.cc create mode 100644 ehpc/src/model/ListTasksResult.cc create mode 100644 ehpc/src/model/ListUpgradeClientsRequest.cc create mode 100644 ehpc/src/model/ListUpgradeClientsResult.cc create mode 100644 ehpc/src/model/ListUsersAsyncRequest.cc create mode 100644 ehpc/src/model/ListUsersAsyncResult.cc create mode 100644 ehpc/src/model/ModifyContainerAppAttributesRequest.cc create mode 100644 ehpc/src/model/ModifyContainerAppAttributesResult.cc create mode 100644 ehpc/src/model/ModifyImageGatewayConfigRequest.cc create mode 100644 ehpc/src/model/ModifyImageGatewayConfigResult.cc create mode 100644 ehpc/src/model/ModifyVisualServicePasswdRequest.cc create mode 100644 ehpc/src/model/ModifyVisualServicePasswdResult.cc create mode 100644 ehpc/src/model/MountNFSRequest.cc create mode 100644 ehpc/src/model/MountNFSResult.cc create mode 100644 ehpc/src/model/PullImageRequest.cc create mode 100644 ehpc/src/model/PullImageResult.cc create mode 100644 ehpc/src/model/QueryServicePackAndPriceRequest.cc create mode 100644 ehpc/src/model/QueryServicePackAndPriceResult.cc create mode 100644 ehpc/src/model/RecoverClusterRequest.cc create mode 100644 ehpc/src/model/RecoverClusterResult.cc create mode 100644 ehpc/src/model/RunCloudMetricProfilingRequest.cc create mode 100644 ehpc/src/model/RunCloudMetricProfilingResult.cc create mode 100644 ehpc/src/model/SetGWSClusterPolicyRequest.cc create mode 100644 ehpc/src/model/SetGWSClusterPolicyResult.cc create mode 100644 ehpc/src/model/SetGWSInstanceNameRequest.cc create mode 100644 ehpc/src/model/SetGWSInstanceNameResult.cc create mode 100644 ehpc/src/model/SetGWSInstanceUserRequest.cc create mode 100644 ehpc/src/model/SetGWSInstanceUserResult.cc delete mode 100644 ehpc/src/model/SetJobUserRequest.cc create mode 100644 ehpc/src/model/SetPostScriptsRequest.cc create mode 100644 ehpc/src/model/SetPostScriptsResult.cc create mode 100644 ehpc/src/model/SetQueueRequest.cc create mode 100644 ehpc/src/model/SetQueueResult.cc create mode 100644 ehpc/src/model/SetSchedulerInfoRequest.cc create mode 100644 ehpc/src/model/SetSchedulerInfoResult.cc create mode 100644 ehpc/src/model/StartClusterRequest.cc create mode 100644 ehpc/src/model/StartClusterResult.cc create mode 100644 ehpc/src/model/StartGWSInstanceRequest.cc create mode 100644 ehpc/src/model/StartGWSInstanceResult.cc create mode 100644 ehpc/src/model/StartNodesRequest.cc create mode 100644 ehpc/src/model/StartNodesResult.cc create mode 100644 ehpc/src/model/StartVisualServiceRequest.cc create mode 100644 ehpc/src/model/StartVisualServiceResult.cc create mode 100644 ehpc/src/model/StopClusterRequest.cc create mode 100644 ehpc/src/model/StopClusterResult.cc create mode 100644 ehpc/src/model/StopGWSInstanceRequest.cc create mode 100644 ehpc/src/model/StopGWSInstanceResult.cc create mode 100644 ehpc/src/model/StopNodesRequest.cc create mode 100644 ehpc/src/model/StopNodesResult.cc create mode 100644 ehpc/src/model/StopVisualServiceRequest.cc create mode 100644 ehpc/src/model/StopVisualServiceResult.cc create mode 100644 ehpc/src/model/SummaryImagesInfoRequest.cc create mode 100644 ehpc/src/model/SummaryImagesInfoResult.cc create mode 100644 ehpc/src/model/SummaryImagesRequest.cc create mode 100644 ehpc/src/model/SummaryImagesResult.cc create mode 100644 ehpc/src/model/SyncUsersRequest.cc create mode 100644 ehpc/src/model/SyncUsersResult.cc create mode 100644 ehpc/src/model/TagResourcesRequest.cc create mode 100644 ehpc/src/model/TagResourcesResult.cc create mode 100644 ehpc/src/model/UnTagResourcesRequest.cc create mode 100644 ehpc/src/model/UnTagResourcesResult.cc create mode 100644 ehpc/src/model/UninstallSoftwareRequest.cc create mode 100644 ehpc/src/model/UninstallSoftwareResult.cc create mode 100644 ehpc/src/model/UpdateClusterVolumesRequest.cc create mode 100644 ehpc/src/model/UpdateClusterVolumesResult.cc create mode 100644 ehpc/src/model/UpdateQueueConfigRequest.cc create mode 100644 ehpc/src/model/UpdateQueueConfigResult.cc diff --git a/VERSION b/VERSION index 7c1e53c3c..c3110e624 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1313 \ No newline at end of file +1.36.1314 \ No newline at end of file diff --git a/ehpc/CMakeLists.txt b/ehpc/CMakeLists.txt index 3373003e6..939f57486 100644 --- a/ehpc/CMakeLists.txt +++ b/ehpc/CMakeLists.txt @@ -21,151 +21,535 @@ set(ehpc_public_header include/alibabacloud/ehpc/EHPCExport.h ) set(ehpc_public_header_model + include/alibabacloud/ehpc/model/AddContainerAppRequest.h + include/alibabacloud/ehpc/model/AddContainerAppResult.h + include/alibabacloud/ehpc/model/AddExistedNodesRequest.h + include/alibabacloud/ehpc/model/AddExistedNodesResult.h + include/alibabacloud/ehpc/model/AddLocalNodesRequest.h + include/alibabacloud/ehpc/model/AddLocalNodesResult.h include/alibabacloud/ehpc/model/AddNodesRequest.h include/alibabacloud/ehpc/model/AddNodesResult.h + include/alibabacloud/ehpc/model/AddQueueRequest.h + include/alibabacloud/ehpc/model/AddQueueResult.h + include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h + include/alibabacloud/ehpc/model/AddSecurityGroupResult.h include/alibabacloud/ehpc/model/AddUsersRequest.h include/alibabacloud/ehpc/model/AddUsersResult.h + include/alibabacloud/ehpc/model/ApplyNodesRequest.h + include/alibabacloud/ehpc/model/ApplyNodesResult.h include/alibabacloud/ehpc/model/CreateClusterRequest.h include/alibabacloud/ehpc/model/CreateClusterResult.h + include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h + include/alibabacloud/ehpc/model/CreateGWSClusterResult.h + include/alibabacloud/ehpc/model/CreateGWSImageRequest.h + include/alibabacloud/ehpc/model/CreateGWSImageResult.h + include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h + include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h + include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h + include/alibabacloud/ehpc/model/CreateHybridClusterResult.h + include/alibabacloud/ehpc/model/CreateJobFileRequest.h + include/alibabacloud/ehpc/model/CreateJobFileResult.h include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h include/alibabacloud/ehpc/model/CreateJobTemplateResult.h include/alibabacloud/ehpc/model/DeleteClusterRequest.h include/alibabacloud/ehpc/model/DeleteClusterResult.h + include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.h + include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h + include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h + include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h + include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h + include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h + include/alibabacloud/ehpc/model/DeleteImageRequest.h + include/alibabacloud/ehpc/model/DeleteImageResult.h include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h include/alibabacloud/ehpc/model/DeleteJobTemplatesResult.h include/alibabacloud/ehpc/model/DeleteJobsRequest.h include/alibabacloud/ehpc/model/DeleteJobsResult.h + include/alibabacloud/ehpc/model/DeleteLocalImageRequest.h + include/alibabacloud/ehpc/model/DeleteLocalImageResult.h include/alibabacloud/ehpc/model/DeleteNodesRequest.h include/alibabacloud/ehpc/model/DeleteNodesResult.h + include/alibabacloud/ehpc/model/DeleteQueueRequest.h + include/alibabacloud/ehpc/model/DeleteQueueResult.h + include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h + include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h include/alibabacloud/ehpc/model/DeleteUsersRequest.h include/alibabacloud/ehpc/model/DeleteUsersResult.h + include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h + include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h include/alibabacloud/ehpc/model/DescribeClusterRequest.h include/alibabacloud/ehpc/model/DescribeClusterResult.h + include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h + include/alibabacloud/ehpc/model/DescribeContainerAppResult.h + include/alibabacloud/ehpc/model/DescribeEstackImageRequest.h + include/alibabacloud/ehpc/model/DescribeEstackImageResult.h + include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h + include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h + include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h + include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h + include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h + include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h + include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h + include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h + include/alibabacloud/ehpc/model/DescribeImageRequest.h + include/alibabacloud/ehpc/model/DescribeImageResult.h + include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h + include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h + include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h + include/alibabacloud/ehpc/model/DescribeImagePriceResult.h + include/alibabacloud/ehpc/model/DescribeJobRequest.h + include/alibabacloud/ehpc/model/DescribeJobResult.h + include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h + include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h + include/alibabacloud/ehpc/model/DescribePriceRequest.h + include/alibabacloud/ehpc/model/DescribePriceResult.h include/alibabacloud/ehpc/model/EditJobTemplateRequest.h include/alibabacloud/ehpc/model/EditJobTemplateResult.h + include/alibabacloud/ehpc/model/GetAccountingReportRequest.h + include/alibabacloud/ehpc/model/GetAccountingReportResult.h include/alibabacloud/ehpc/model/GetAutoScaleConfigRequest.h include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h + include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h + include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h + include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h + include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h + include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h + include/alibabacloud/ehpc/model/GetClusterVolumesResult.h + include/alibabacloud/ehpc/model/GetCommonImageRequest.h + include/alibabacloud/ehpc/model/GetCommonImageResult.h + include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h + include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h + include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h + include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h + include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h + include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h + include/alibabacloud/ehpc/model/GetPostScriptsRequest.h + include/alibabacloud/ehpc/model/GetPostScriptsResult.h + include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h + include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h + include/alibabacloud/ehpc/model/GetUserImageRequest.h + include/alibabacloud/ehpc/model/GetUserImageResult.h + include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h + include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h + include/alibabacloud/ehpc/model/InitializeEHPCRequest.h + include/alibabacloud/ehpc/model/InitializeEHPCResult.h + include/alibabacloud/ehpc/model/InspectImageRequest.h + include/alibabacloud/ehpc/model/InspectImageResult.h + include/alibabacloud/ehpc/model/InstallSoftwareRequest.h + include/alibabacloud/ehpc/model/InstallSoftwareResult.h + include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h + include/alibabacloud/ehpc/model/InvokeShellCommandResult.h + include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h + include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h + include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h + include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h include/alibabacloud/ehpc/model/ListClusterLogsRequest.h include/alibabacloud/ehpc/model/ListClusterLogsResult.h include/alibabacloud/ehpc/model/ListClustersRequest.h include/alibabacloud/ehpc/model/ListClustersResult.h + include/alibabacloud/ehpc/model/ListClustersMetaRequest.h + include/alibabacloud/ehpc/model/ListClustersMetaResult.h + include/alibabacloud/ehpc/model/ListCommandsRequest.h + include/alibabacloud/ehpc/model/ListCommandsResult.h + include/alibabacloud/ehpc/model/ListCommunityImagesRequest.h + include/alibabacloud/ehpc/model/ListCommunityImagesResult.h + include/alibabacloud/ehpc/model/ListContainerAppsRequest.h + include/alibabacloud/ehpc/model/ListContainerAppsResult.h + include/alibabacloud/ehpc/model/ListContainerImagesRequest.h + include/alibabacloud/ehpc/model/ListContainerImagesResult.h + include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h + include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h include/alibabacloud/ehpc/model/ListCurrentClientVersionRequest.h include/alibabacloud/ehpc/model/ListCurrentClientVersionResult.h include/alibabacloud/ehpc/model/ListCustomImagesRequest.h include/alibabacloud/ehpc/model/ListCustomImagesResult.h + include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h + include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h include/alibabacloud/ehpc/model/ListImagesRequest.h include/alibabacloud/ehpc/model/ListImagesResult.h + include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h + include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h + include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h + include/alibabacloud/ehpc/model/ListInvocationResultsResult.h + include/alibabacloud/ehpc/model/ListInvocationStatusRequest.h + include/alibabacloud/ehpc/model/ListInvocationStatusResult.h include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h include/alibabacloud/ehpc/model/ListJobTemplatesResult.h include/alibabacloud/ehpc/model/ListJobsRequest.h include/alibabacloud/ehpc/model/ListJobsResult.h + include/alibabacloud/ehpc/model/ListJobsWithFiltersRequest.h + include/alibabacloud/ehpc/model/ListJobsWithFiltersResult.h include/alibabacloud/ehpc/model/ListNodesRequest.h include/alibabacloud/ehpc/model/ListNodesResult.h + include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h + include/alibabacloud/ehpc/model/ListNodesByQueueResult.h include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h include/alibabacloud/ehpc/model/ListPreferredEcsTypesResult.h + include/alibabacloud/ehpc/model/ListQueuesRequest.h + include/alibabacloud/ehpc/model/ListQueuesResult.h include/alibabacloud/ehpc/model/ListRegionsRequest.h include/alibabacloud/ehpc/model/ListRegionsResult.h + include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h + include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h include/alibabacloud/ehpc/model/ListSoftwaresRequest.h include/alibabacloud/ehpc/model/ListSoftwaresResult.h + include/alibabacloud/ehpc/model/ListTagResourcesRequest.h + include/alibabacloud/ehpc/model/ListTagResourcesResult.h + include/alibabacloud/ehpc/model/ListTasksRequest.h + include/alibabacloud/ehpc/model/ListTasksResult.h + include/alibabacloud/ehpc/model/ListUpgradeClientsRequest.h + include/alibabacloud/ehpc/model/ListUpgradeClientsResult.h include/alibabacloud/ehpc/model/ListUsersRequest.h include/alibabacloud/ehpc/model/ListUsersResult.h + include/alibabacloud/ehpc/model/ListUsersAsyncRequest.h + include/alibabacloud/ehpc/model/ListUsersAsyncResult.h include/alibabacloud/ehpc/model/ListVolumesRequest.h include/alibabacloud/ehpc/model/ListVolumesResult.h include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h include/alibabacloud/ehpc/model/ModifyClusterAttributesResult.h + include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h + include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h + include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h + include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h include/alibabacloud/ehpc/model/ModifyUserGroupsRequest.h include/alibabacloud/ehpc/model/ModifyUserGroupsResult.h include/alibabacloud/ehpc/model/ModifyUserPasswordsRequest.h include/alibabacloud/ehpc/model/ModifyUserPasswordsResult.h + include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h + include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h + include/alibabacloud/ehpc/model/MountNFSRequest.h + include/alibabacloud/ehpc/model/MountNFSResult.h + include/alibabacloud/ehpc/model/PullImageRequest.h + include/alibabacloud/ehpc/model/PullImageResult.h + include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h + include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h + include/alibabacloud/ehpc/model/RecoverClusterRequest.h + include/alibabacloud/ehpc/model/RecoverClusterResult.h include/alibabacloud/ehpc/model/RerunJobsRequest.h include/alibabacloud/ehpc/model/RerunJobsResult.h include/alibabacloud/ehpc/model/ResetNodesRequest.h include/alibabacloud/ehpc/model/ResetNodesResult.h + include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h + include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h include/alibabacloud/ehpc/model/SetAutoScaleConfigResult.h - include/alibabacloud/ehpc/model/SetJobUserRequest.h - include/alibabacloud/ehpc/model/SetJobUserResult.h + include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h + include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h + include/alibabacloud/ehpc/model/SetGWSInstanceNameRequest.h + include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h + include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h + include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h + include/alibabacloud/ehpc/model/SetPostScriptsRequest.h + include/alibabacloud/ehpc/model/SetPostScriptsResult.h + include/alibabacloud/ehpc/model/SetQueueRequest.h + include/alibabacloud/ehpc/model/SetQueueResult.h + include/alibabacloud/ehpc/model/SetSchedulerInfoRequest.h + include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h + include/alibabacloud/ehpc/model/StartClusterRequest.h + include/alibabacloud/ehpc/model/StartClusterResult.h + include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h + include/alibabacloud/ehpc/model/StartGWSInstanceResult.h + include/alibabacloud/ehpc/model/StartNodesRequest.h + include/alibabacloud/ehpc/model/StartNodesResult.h + include/alibabacloud/ehpc/model/StartVisualServiceRequest.h + include/alibabacloud/ehpc/model/StartVisualServiceResult.h + include/alibabacloud/ehpc/model/StopClusterRequest.h + include/alibabacloud/ehpc/model/StopClusterResult.h + include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h + include/alibabacloud/ehpc/model/StopGWSInstanceResult.h include/alibabacloud/ehpc/model/StopJobsRequest.h include/alibabacloud/ehpc/model/StopJobsResult.h + include/alibabacloud/ehpc/model/StopNodesRequest.h + include/alibabacloud/ehpc/model/StopNodesResult.h + include/alibabacloud/ehpc/model/StopVisualServiceRequest.h + include/alibabacloud/ehpc/model/StopVisualServiceResult.h include/alibabacloud/ehpc/model/SubmitJobRequest.h include/alibabacloud/ehpc/model/SubmitJobResult.h + include/alibabacloud/ehpc/model/SummaryImagesRequest.h + include/alibabacloud/ehpc/model/SummaryImagesResult.h + include/alibabacloud/ehpc/model/SummaryImagesInfoRequest.h + include/alibabacloud/ehpc/model/SummaryImagesInfoResult.h + include/alibabacloud/ehpc/model/SyncUsersRequest.h + include/alibabacloud/ehpc/model/SyncUsersResult.h + include/alibabacloud/ehpc/model/TagResourcesRequest.h + include/alibabacloud/ehpc/model/TagResourcesResult.h + include/alibabacloud/ehpc/model/UnTagResourcesRequest.h + include/alibabacloud/ehpc/model/UnTagResourcesResult.h + include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h + include/alibabacloud/ehpc/model/UninstallSoftwareResult.h + include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h + include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h + include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h + include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h include/alibabacloud/ehpc/model/UpgradeClientRequest.h include/alibabacloud/ehpc/model/UpgradeClientResult.h ) set(ehpc_src src/EHPCClient.cc + src/model/AddContainerAppRequest.cc + src/model/AddContainerAppResult.cc + src/model/AddExistedNodesRequest.cc + src/model/AddExistedNodesResult.cc + src/model/AddLocalNodesRequest.cc + src/model/AddLocalNodesResult.cc src/model/AddNodesRequest.cc src/model/AddNodesResult.cc + src/model/AddQueueRequest.cc + src/model/AddQueueResult.cc + src/model/AddSecurityGroupRequest.cc + src/model/AddSecurityGroupResult.cc src/model/AddUsersRequest.cc src/model/AddUsersResult.cc + src/model/ApplyNodesRequest.cc + src/model/ApplyNodesResult.cc src/model/CreateClusterRequest.cc src/model/CreateClusterResult.cc + src/model/CreateGWSClusterRequest.cc + src/model/CreateGWSClusterResult.cc + src/model/CreateGWSImageRequest.cc + src/model/CreateGWSImageResult.cc + src/model/CreateGWSInstanceRequest.cc + src/model/CreateGWSInstanceResult.cc + src/model/CreateHybridClusterRequest.cc + src/model/CreateHybridClusterResult.cc + src/model/CreateJobFileRequest.cc + src/model/CreateJobFileResult.cc src/model/CreateJobTemplateRequest.cc src/model/CreateJobTemplateResult.cc src/model/DeleteClusterRequest.cc src/model/DeleteClusterResult.cc + src/model/DeleteContainerAppsRequest.cc + src/model/DeleteContainerAppsResult.cc + src/model/DeleteGWSClusterRequest.cc + src/model/DeleteGWSClusterResult.cc + src/model/DeleteGWSInstanceRequest.cc + src/model/DeleteGWSInstanceResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc src/model/DeleteJobTemplatesRequest.cc src/model/DeleteJobTemplatesResult.cc src/model/DeleteJobsRequest.cc src/model/DeleteJobsResult.cc + src/model/DeleteLocalImageRequest.cc + src/model/DeleteLocalImageResult.cc src/model/DeleteNodesRequest.cc src/model/DeleteNodesResult.cc + src/model/DeleteQueueRequest.cc + src/model/DeleteQueueResult.cc + src/model/DeleteSecurityGroupRequest.cc + src/model/DeleteSecurityGroupResult.cc src/model/DeleteUsersRequest.cc src/model/DeleteUsersResult.cc + src/model/DescribeAutoScaleConfigRequest.cc + src/model/DescribeAutoScaleConfigResult.cc src/model/DescribeClusterRequest.cc src/model/DescribeClusterResult.cc + src/model/DescribeContainerAppRequest.cc + src/model/DescribeContainerAppResult.cc + src/model/DescribeEstackImageRequest.cc + src/model/DescribeEstackImageResult.cc + src/model/DescribeGWSClusterPolicyRequest.cc + src/model/DescribeGWSClusterPolicyResult.cc + src/model/DescribeGWSClustersRequest.cc + src/model/DescribeGWSClustersResult.cc + src/model/DescribeGWSImagesRequest.cc + src/model/DescribeGWSImagesResult.cc + src/model/DescribeGWSInstancesRequest.cc + src/model/DescribeGWSInstancesResult.cc + src/model/DescribeImageRequest.cc + src/model/DescribeImageResult.cc + src/model/DescribeImageGatewayConfigRequest.cc + src/model/DescribeImageGatewayConfigResult.cc + src/model/DescribeImagePriceRequest.cc + src/model/DescribeImagePriceResult.cc + src/model/DescribeJobRequest.cc + src/model/DescribeJobResult.cc + src/model/DescribeNFSClientStatusRequest.cc + src/model/DescribeNFSClientStatusResult.cc + src/model/DescribePriceRequest.cc + src/model/DescribePriceResult.cc src/model/EditJobTemplateRequest.cc src/model/EditJobTemplateResult.cc + src/model/GetAccountingReportRequest.cc + src/model/GetAccountingReportResult.cc src/model/GetAutoScaleConfigRequest.cc src/model/GetAutoScaleConfigResult.cc + src/model/GetCloudMetricLogsRequest.cc + src/model/GetCloudMetricLogsResult.cc + src/model/GetCloudMetricProfilingRequest.cc + src/model/GetCloudMetricProfilingResult.cc + src/model/GetClusterVolumesRequest.cc + src/model/GetClusterVolumesResult.cc + src/model/GetCommonImageRequest.cc + src/model/GetCommonImageResult.cc + src/model/GetGWSConnectTicketRequest.cc + src/model/GetGWSConnectTicketResult.cc + src/model/GetHybridClusterConfigRequest.cc + src/model/GetHybridClusterConfigResult.cc + src/model/GetIfEcsTypeSupportHtConfigRequest.cc + src/model/GetIfEcsTypeSupportHtConfigResult.cc + src/model/GetPostScriptsRequest.cc + src/model/GetPostScriptsResult.cc + src/model/GetSchedulerInfoRequest.cc + src/model/GetSchedulerInfoResult.cc + src/model/GetUserImageRequest.cc + src/model/GetUserImageResult.cc + src/model/GetVisualServiceStatusRequest.cc + src/model/GetVisualServiceStatusResult.cc + src/model/InitializeEHPCRequest.cc + src/model/InitializeEHPCResult.cc + src/model/InspectImageRequest.cc + src/model/InspectImageResult.cc + src/model/InstallSoftwareRequest.cc + src/model/InstallSoftwareResult.cc + src/model/InvokeShellCommandRequest.cc + src/model/InvokeShellCommandResult.cc + src/model/ListAvailableEcsTypesRequest.cc + src/model/ListAvailableEcsTypesResult.cc + src/model/ListCloudMetricProfilingsRequest.cc + src/model/ListCloudMetricProfilingsResult.cc src/model/ListClusterLogsRequest.cc src/model/ListClusterLogsResult.cc src/model/ListClustersRequest.cc src/model/ListClustersResult.cc + src/model/ListClustersMetaRequest.cc + src/model/ListClustersMetaResult.cc + src/model/ListCommandsRequest.cc + src/model/ListCommandsResult.cc + src/model/ListCommunityImagesRequest.cc + src/model/ListCommunityImagesResult.cc + src/model/ListContainerAppsRequest.cc + src/model/ListContainerAppsResult.cc + src/model/ListContainerImagesRequest.cc + src/model/ListContainerImagesResult.cc + src/model/ListCpfsFileSystemsRequest.cc + src/model/ListCpfsFileSystemsResult.cc src/model/ListCurrentClientVersionRequest.cc src/model/ListCurrentClientVersionResult.cc src/model/ListCustomImagesRequest.cc src/model/ListCustomImagesResult.cc + src/model/ListFileSystemWithMountTargetsRequest.cc + src/model/ListFileSystemWithMountTargetsResult.cc src/model/ListImagesRequest.cc src/model/ListImagesResult.cc + src/model/ListInstalledSoftwareRequest.cc + src/model/ListInstalledSoftwareResult.cc + src/model/ListInvocationResultsRequest.cc + src/model/ListInvocationResultsResult.cc + src/model/ListInvocationStatusRequest.cc + src/model/ListInvocationStatusResult.cc src/model/ListJobTemplatesRequest.cc src/model/ListJobTemplatesResult.cc src/model/ListJobsRequest.cc src/model/ListJobsResult.cc + src/model/ListJobsWithFiltersRequest.cc + src/model/ListJobsWithFiltersResult.cc src/model/ListNodesRequest.cc src/model/ListNodesResult.cc + src/model/ListNodesByQueueRequest.cc + src/model/ListNodesByQueueResult.cc src/model/ListNodesNoPagingRequest.cc src/model/ListNodesNoPagingResult.cc src/model/ListPreferredEcsTypesRequest.cc src/model/ListPreferredEcsTypesResult.cc + src/model/ListQueuesRequest.cc + src/model/ListQueuesResult.cc src/model/ListRegionsRequest.cc src/model/ListRegionsResult.cc + src/model/ListSecurityGroupsRequest.cc + src/model/ListSecurityGroupsResult.cc src/model/ListSoftwaresRequest.cc src/model/ListSoftwaresResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ListTasksRequest.cc + src/model/ListTasksResult.cc + src/model/ListUpgradeClientsRequest.cc + src/model/ListUpgradeClientsResult.cc src/model/ListUsersRequest.cc src/model/ListUsersResult.cc + src/model/ListUsersAsyncRequest.cc + src/model/ListUsersAsyncResult.cc src/model/ListVolumesRequest.cc src/model/ListVolumesResult.cc src/model/ModifyClusterAttributesRequest.cc src/model/ModifyClusterAttributesResult.cc + src/model/ModifyContainerAppAttributesRequest.cc + src/model/ModifyContainerAppAttributesResult.cc + src/model/ModifyImageGatewayConfigRequest.cc + src/model/ModifyImageGatewayConfigResult.cc src/model/ModifyUserGroupsRequest.cc src/model/ModifyUserGroupsResult.cc src/model/ModifyUserPasswordsRequest.cc src/model/ModifyUserPasswordsResult.cc + src/model/ModifyVisualServicePasswdRequest.cc + src/model/ModifyVisualServicePasswdResult.cc + src/model/MountNFSRequest.cc + src/model/MountNFSResult.cc + src/model/PullImageRequest.cc + src/model/PullImageResult.cc + src/model/QueryServicePackAndPriceRequest.cc + src/model/QueryServicePackAndPriceResult.cc + src/model/RecoverClusterRequest.cc + src/model/RecoverClusterResult.cc src/model/RerunJobsRequest.cc src/model/RerunJobsResult.cc src/model/ResetNodesRequest.cc src/model/ResetNodesResult.cc + src/model/RunCloudMetricProfilingRequest.cc + src/model/RunCloudMetricProfilingResult.cc src/model/SetAutoScaleConfigRequest.cc src/model/SetAutoScaleConfigResult.cc - src/model/SetJobUserRequest.cc - src/model/SetJobUserResult.cc + src/model/SetGWSClusterPolicyRequest.cc + src/model/SetGWSClusterPolicyResult.cc + src/model/SetGWSInstanceNameRequest.cc + src/model/SetGWSInstanceNameResult.cc + src/model/SetGWSInstanceUserRequest.cc + src/model/SetGWSInstanceUserResult.cc + src/model/SetPostScriptsRequest.cc + src/model/SetPostScriptsResult.cc + src/model/SetQueueRequest.cc + src/model/SetQueueResult.cc + src/model/SetSchedulerInfoRequest.cc + src/model/SetSchedulerInfoResult.cc + src/model/StartClusterRequest.cc + src/model/StartClusterResult.cc + src/model/StartGWSInstanceRequest.cc + src/model/StartGWSInstanceResult.cc + src/model/StartNodesRequest.cc + src/model/StartNodesResult.cc + src/model/StartVisualServiceRequest.cc + src/model/StartVisualServiceResult.cc + src/model/StopClusterRequest.cc + src/model/StopClusterResult.cc + src/model/StopGWSInstanceRequest.cc + src/model/StopGWSInstanceResult.cc src/model/StopJobsRequest.cc src/model/StopJobsResult.cc + src/model/StopNodesRequest.cc + src/model/StopNodesResult.cc + src/model/StopVisualServiceRequest.cc + src/model/StopVisualServiceResult.cc src/model/SubmitJobRequest.cc src/model/SubmitJobResult.cc + src/model/SummaryImagesRequest.cc + src/model/SummaryImagesResult.cc + src/model/SummaryImagesInfoRequest.cc + src/model/SummaryImagesInfoResult.cc + src/model/SyncUsersRequest.cc + src/model/SyncUsersResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UnTagResourcesRequest.cc + src/model/UnTagResourcesResult.cc + src/model/UninstallSoftwareRequest.cc + src/model/UninstallSoftwareResult.cc + src/model/UpdateClusterVolumesRequest.cc + src/model/UpdateClusterVolumesResult.cc + src/model/UpdateQueueConfigRequest.cc + src/model/UpdateQueueConfigResult.cc src/model/UpgradeClientRequest.cc src/model/UpgradeClientResult.cc ) diff --git a/ehpc/include/alibabacloud/ehpc/EHPCClient.h b/ehpc/include/alibabacloud/ehpc/EHPCClient.h index 89207294d..1e98c4007 100644 --- a/ehpc/include/alibabacloud/ehpc/EHPCClient.h +++ b/ehpc/include/alibabacloud/ehpc/EHPCClient.h @@ -22,76 +22,268 @@ #include #include #include "EHPCExport.h" +#include "model/AddContainerAppRequest.h" +#include "model/AddContainerAppResult.h" +#include "model/AddExistedNodesRequest.h" +#include "model/AddExistedNodesResult.h" +#include "model/AddLocalNodesRequest.h" +#include "model/AddLocalNodesResult.h" #include "model/AddNodesRequest.h" #include "model/AddNodesResult.h" +#include "model/AddQueueRequest.h" +#include "model/AddQueueResult.h" +#include "model/AddSecurityGroupRequest.h" +#include "model/AddSecurityGroupResult.h" #include "model/AddUsersRequest.h" #include "model/AddUsersResult.h" +#include "model/ApplyNodesRequest.h" +#include "model/ApplyNodesResult.h" #include "model/CreateClusterRequest.h" #include "model/CreateClusterResult.h" +#include "model/CreateGWSClusterRequest.h" +#include "model/CreateGWSClusterResult.h" +#include "model/CreateGWSImageRequest.h" +#include "model/CreateGWSImageResult.h" +#include "model/CreateGWSInstanceRequest.h" +#include "model/CreateGWSInstanceResult.h" +#include "model/CreateHybridClusterRequest.h" +#include "model/CreateHybridClusterResult.h" +#include "model/CreateJobFileRequest.h" +#include "model/CreateJobFileResult.h" #include "model/CreateJobTemplateRequest.h" #include "model/CreateJobTemplateResult.h" #include "model/DeleteClusterRequest.h" #include "model/DeleteClusterResult.h" +#include "model/DeleteContainerAppsRequest.h" +#include "model/DeleteContainerAppsResult.h" +#include "model/DeleteGWSClusterRequest.h" +#include "model/DeleteGWSClusterResult.h" +#include "model/DeleteGWSInstanceRequest.h" +#include "model/DeleteGWSInstanceResult.h" +#include "model/DeleteImageRequest.h" +#include "model/DeleteImageResult.h" #include "model/DeleteJobTemplatesRequest.h" #include "model/DeleteJobTemplatesResult.h" #include "model/DeleteJobsRequest.h" #include "model/DeleteJobsResult.h" +#include "model/DeleteLocalImageRequest.h" +#include "model/DeleteLocalImageResult.h" #include "model/DeleteNodesRequest.h" #include "model/DeleteNodesResult.h" +#include "model/DeleteQueueRequest.h" +#include "model/DeleteQueueResult.h" +#include "model/DeleteSecurityGroupRequest.h" +#include "model/DeleteSecurityGroupResult.h" #include "model/DeleteUsersRequest.h" #include "model/DeleteUsersResult.h" +#include "model/DescribeAutoScaleConfigRequest.h" +#include "model/DescribeAutoScaleConfigResult.h" #include "model/DescribeClusterRequest.h" #include "model/DescribeClusterResult.h" +#include "model/DescribeContainerAppRequest.h" +#include "model/DescribeContainerAppResult.h" +#include "model/DescribeEstackImageRequest.h" +#include "model/DescribeEstackImageResult.h" +#include "model/DescribeGWSClusterPolicyRequest.h" +#include "model/DescribeGWSClusterPolicyResult.h" +#include "model/DescribeGWSClustersRequest.h" +#include "model/DescribeGWSClustersResult.h" +#include "model/DescribeGWSImagesRequest.h" +#include "model/DescribeGWSImagesResult.h" +#include "model/DescribeGWSInstancesRequest.h" +#include "model/DescribeGWSInstancesResult.h" +#include "model/DescribeImageRequest.h" +#include "model/DescribeImageResult.h" +#include "model/DescribeImageGatewayConfigRequest.h" +#include "model/DescribeImageGatewayConfigResult.h" +#include "model/DescribeImagePriceRequest.h" +#include "model/DescribeImagePriceResult.h" +#include "model/DescribeJobRequest.h" +#include "model/DescribeJobResult.h" +#include "model/DescribeNFSClientStatusRequest.h" +#include "model/DescribeNFSClientStatusResult.h" +#include "model/DescribePriceRequest.h" +#include "model/DescribePriceResult.h" #include "model/EditJobTemplateRequest.h" #include "model/EditJobTemplateResult.h" +#include "model/GetAccountingReportRequest.h" +#include "model/GetAccountingReportResult.h" #include "model/GetAutoScaleConfigRequest.h" #include "model/GetAutoScaleConfigResult.h" +#include "model/GetCloudMetricLogsRequest.h" +#include "model/GetCloudMetricLogsResult.h" +#include "model/GetCloudMetricProfilingRequest.h" +#include "model/GetCloudMetricProfilingResult.h" +#include "model/GetClusterVolumesRequest.h" +#include "model/GetClusterVolumesResult.h" +#include "model/GetCommonImageRequest.h" +#include "model/GetCommonImageResult.h" +#include "model/GetGWSConnectTicketRequest.h" +#include "model/GetGWSConnectTicketResult.h" +#include "model/GetHybridClusterConfigRequest.h" +#include "model/GetHybridClusterConfigResult.h" +#include "model/GetIfEcsTypeSupportHtConfigRequest.h" +#include "model/GetIfEcsTypeSupportHtConfigResult.h" +#include "model/GetPostScriptsRequest.h" +#include "model/GetPostScriptsResult.h" +#include "model/GetSchedulerInfoRequest.h" +#include "model/GetSchedulerInfoResult.h" +#include "model/GetUserImageRequest.h" +#include "model/GetUserImageResult.h" +#include "model/GetVisualServiceStatusRequest.h" +#include "model/GetVisualServiceStatusResult.h" +#include "model/InitializeEHPCRequest.h" +#include "model/InitializeEHPCResult.h" +#include "model/InspectImageRequest.h" +#include "model/InspectImageResult.h" +#include "model/InstallSoftwareRequest.h" +#include "model/InstallSoftwareResult.h" +#include "model/InvokeShellCommandRequest.h" +#include "model/InvokeShellCommandResult.h" +#include "model/ListAvailableEcsTypesRequest.h" +#include "model/ListAvailableEcsTypesResult.h" +#include "model/ListCloudMetricProfilingsRequest.h" +#include "model/ListCloudMetricProfilingsResult.h" #include "model/ListClusterLogsRequest.h" #include "model/ListClusterLogsResult.h" #include "model/ListClustersRequest.h" #include "model/ListClustersResult.h" +#include "model/ListClustersMetaRequest.h" +#include "model/ListClustersMetaResult.h" +#include "model/ListCommandsRequest.h" +#include "model/ListCommandsResult.h" +#include "model/ListCommunityImagesRequest.h" +#include "model/ListCommunityImagesResult.h" +#include "model/ListContainerAppsRequest.h" +#include "model/ListContainerAppsResult.h" +#include "model/ListContainerImagesRequest.h" +#include "model/ListContainerImagesResult.h" +#include "model/ListCpfsFileSystemsRequest.h" +#include "model/ListCpfsFileSystemsResult.h" #include "model/ListCurrentClientVersionRequest.h" #include "model/ListCurrentClientVersionResult.h" #include "model/ListCustomImagesRequest.h" #include "model/ListCustomImagesResult.h" +#include "model/ListFileSystemWithMountTargetsRequest.h" +#include "model/ListFileSystemWithMountTargetsResult.h" #include "model/ListImagesRequest.h" #include "model/ListImagesResult.h" +#include "model/ListInstalledSoftwareRequest.h" +#include "model/ListInstalledSoftwareResult.h" +#include "model/ListInvocationResultsRequest.h" +#include "model/ListInvocationResultsResult.h" +#include "model/ListInvocationStatusRequest.h" +#include "model/ListInvocationStatusResult.h" #include "model/ListJobTemplatesRequest.h" #include "model/ListJobTemplatesResult.h" #include "model/ListJobsRequest.h" #include "model/ListJobsResult.h" +#include "model/ListJobsWithFiltersRequest.h" +#include "model/ListJobsWithFiltersResult.h" #include "model/ListNodesRequest.h" #include "model/ListNodesResult.h" +#include "model/ListNodesByQueueRequest.h" +#include "model/ListNodesByQueueResult.h" #include "model/ListNodesNoPagingRequest.h" #include "model/ListNodesNoPagingResult.h" #include "model/ListPreferredEcsTypesRequest.h" #include "model/ListPreferredEcsTypesResult.h" +#include "model/ListQueuesRequest.h" +#include "model/ListQueuesResult.h" #include "model/ListRegionsRequest.h" #include "model/ListRegionsResult.h" +#include "model/ListSecurityGroupsRequest.h" +#include "model/ListSecurityGroupsResult.h" #include "model/ListSoftwaresRequest.h" #include "model/ListSoftwaresResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ListTasksRequest.h" +#include "model/ListTasksResult.h" +#include "model/ListUpgradeClientsRequest.h" +#include "model/ListUpgradeClientsResult.h" #include "model/ListUsersRequest.h" #include "model/ListUsersResult.h" +#include "model/ListUsersAsyncRequest.h" +#include "model/ListUsersAsyncResult.h" #include "model/ListVolumesRequest.h" #include "model/ListVolumesResult.h" #include "model/ModifyClusterAttributesRequest.h" #include "model/ModifyClusterAttributesResult.h" +#include "model/ModifyContainerAppAttributesRequest.h" +#include "model/ModifyContainerAppAttributesResult.h" +#include "model/ModifyImageGatewayConfigRequest.h" +#include "model/ModifyImageGatewayConfigResult.h" #include "model/ModifyUserGroupsRequest.h" #include "model/ModifyUserGroupsResult.h" #include "model/ModifyUserPasswordsRequest.h" #include "model/ModifyUserPasswordsResult.h" +#include "model/ModifyVisualServicePasswdRequest.h" +#include "model/ModifyVisualServicePasswdResult.h" +#include "model/MountNFSRequest.h" +#include "model/MountNFSResult.h" +#include "model/PullImageRequest.h" +#include "model/PullImageResult.h" +#include "model/QueryServicePackAndPriceRequest.h" +#include "model/QueryServicePackAndPriceResult.h" +#include "model/RecoverClusterRequest.h" +#include "model/RecoverClusterResult.h" #include "model/RerunJobsRequest.h" #include "model/RerunJobsResult.h" #include "model/ResetNodesRequest.h" #include "model/ResetNodesResult.h" +#include "model/RunCloudMetricProfilingRequest.h" +#include "model/RunCloudMetricProfilingResult.h" #include "model/SetAutoScaleConfigRequest.h" #include "model/SetAutoScaleConfigResult.h" -#include "model/SetJobUserRequest.h" -#include "model/SetJobUserResult.h" +#include "model/SetGWSClusterPolicyRequest.h" +#include "model/SetGWSClusterPolicyResult.h" +#include "model/SetGWSInstanceNameRequest.h" +#include "model/SetGWSInstanceNameResult.h" +#include "model/SetGWSInstanceUserRequest.h" +#include "model/SetGWSInstanceUserResult.h" +#include "model/SetPostScriptsRequest.h" +#include "model/SetPostScriptsResult.h" +#include "model/SetQueueRequest.h" +#include "model/SetQueueResult.h" +#include "model/SetSchedulerInfoRequest.h" +#include "model/SetSchedulerInfoResult.h" +#include "model/StartClusterRequest.h" +#include "model/StartClusterResult.h" +#include "model/StartGWSInstanceRequest.h" +#include "model/StartGWSInstanceResult.h" +#include "model/StartNodesRequest.h" +#include "model/StartNodesResult.h" +#include "model/StartVisualServiceRequest.h" +#include "model/StartVisualServiceResult.h" +#include "model/StopClusterRequest.h" +#include "model/StopClusterResult.h" +#include "model/StopGWSInstanceRequest.h" +#include "model/StopGWSInstanceResult.h" #include "model/StopJobsRequest.h" #include "model/StopJobsResult.h" +#include "model/StopNodesRequest.h" +#include "model/StopNodesResult.h" +#include "model/StopVisualServiceRequest.h" +#include "model/StopVisualServiceResult.h" #include "model/SubmitJobRequest.h" #include "model/SubmitJobResult.h" +#include "model/SummaryImagesRequest.h" +#include "model/SummaryImagesResult.h" +#include "model/SummaryImagesInfoRequest.h" +#include "model/SummaryImagesInfoResult.h" +#include "model/SyncUsersRequest.h" +#include "model/SyncUsersResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UnTagResourcesRequest.h" +#include "model/UnTagResourcesResult.h" +#include "model/UninstallSoftwareRequest.h" +#include "model/UninstallSoftwareResult.h" +#include "model/UpdateClusterVolumesRequest.h" +#include "model/UpdateClusterVolumesResult.h" +#include "model/UpdateQueueConfigRequest.h" +#include "model/UpdateQueueConfigResult.h" #include "model/UpgradeClientRequest.h" #include "model/UpgradeClientResult.h" @@ -103,111 +295,399 @@ namespace AlibabaCloud class ALIBABACLOUD_EHPC_EXPORT EHPCClient : public RpcServiceClient { public: + typedef Outcome AddContainerAppOutcome; + typedef std::future AddContainerAppOutcomeCallable; + typedef std::function&)> AddContainerAppAsyncHandler; + typedef Outcome AddExistedNodesOutcome; + typedef std::future AddExistedNodesOutcomeCallable; + typedef std::function&)> AddExistedNodesAsyncHandler; + typedef Outcome AddLocalNodesOutcome; + typedef std::future AddLocalNodesOutcomeCallable; + typedef std::function&)> AddLocalNodesAsyncHandler; typedef Outcome AddNodesOutcome; typedef std::future AddNodesOutcomeCallable; typedef std::function&)> AddNodesAsyncHandler; + typedef Outcome AddQueueOutcome; + typedef std::future AddQueueOutcomeCallable; + typedef std::function&)> AddQueueAsyncHandler; + typedef Outcome AddSecurityGroupOutcome; + typedef std::future AddSecurityGroupOutcomeCallable; + typedef std::function&)> AddSecurityGroupAsyncHandler; typedef Outcome AddUsersOutcome; typedef std::future AddUsersOutcomeCallable; typedef std::function&)> AddUsersAsyncHandler; + typedef Outcome ApplyNodesOutcome; + typedef std::future ApplyNodesOutcomeCallable; + typedef std::function&)> ApplyNodesAsyncHandler; typedef Outcome CreateClusterOutcome; typedef std::future CreateClusterOutcomeCallable; typedef std::function&)> CreateClusterAsyncHandler; + typedef Outcome CreateGWSClusterOutcome; + typedef std::future CreateGWSClusterOutcomeCallable; + typedef std::function&)> CreateGWSClusterAsyncHandler; + typedef Outcome CreateGWSImageOutcome; + typedef std::future CreateGWSImageOutcomeCallable; + typedef std::function&)> CreateGWSImageAsyncHandler; + typedef Outcome CreateGWSInstanceOutcome; + typedef std::future CreateGWSInstanceOutcomeCallable; + typedef std::function&)> CreateGWSInstanceAsyncHandler; + typedef Outcome CreateHybridClusterOutcome; + typedef std::future CreateHybridClusterOutcomeCallable; + typedef std::function&)> CreateHybridClusterAsyncHandler; + typedef Outcome CreateJobFileOutcome; + typedef std::future CreateJobFileOutcomeCallable; + typedef std::function&)> CreateJobFileAsyncHandler; typedef Outcome CreateJobTemplateOutcome; typedef std::future CreateJobTemplateOutcomeCallable; typedef std::function&)> CreateJobTemplateAsyncHandler; typedef Outcome DeleteClusterOutcome; typedef std::future DeleteClusterOutcomeCallable; typedef std::function&)> DeleteClusterAsyncHandler; + typedef Outcome DeleteContainerAppsOutcome; + typedef std::future DeleteContainerAppsOutcomeCallable; + typedef std::function&)> DeleteContainerAppsAsyncHandler; + typedef Outcome DeleteGWSClusterOutcome; + typedef std::future DeleteGWSClusterOutcomeCallable; + typedef std::function&)> DeleteGWSClusterAsyncHandler; + typedef Outcome DeleteGWSInstanceOutcome; + typedef std::future DeleteGWSInstanceOutcomeCallable; + typedef std::function&)> DeleteGWSInstanceAsyncHandler; + typedef Outcome DeleteImageOutcome; + typedef std::future DeleteImageOutcomeCallable; + typedef std::function&)> DeleteImageAsyncHandler; typedef Outcome DeleteJobTemplatesOutcome; typedef std::future DeleteJobTemplatesOutcomeCallable; typedef std::function&)> DeleteJobTemplatesAsyncHandler; typedef Outcome DeleteJobsOutcome; typedef std::future DeleteJobsOutcomeCallable; typedef std::function&)> DeleteJobsAsyncHandler; + typedef Outcome DeleteLocalImageOutcome; + typedef std::future DeleteLocalImageOutcomeCallable; + typedef std::function&)> DeleteLocalImageAsyncHandler; typedef Outcome DeleteNodesOutcome; typedef std::future DeleteNodesOutcomeCallable; typedef std::function&)> DeleteNodesAsyncHandler; + typedef Outcome DeleteQueueOutcome; + typedef std::future DeleteQueueOutcomeCallable; + typedef std::function&)> DeleteQueueAsyncHandler; + typedef Outcome DeleteSecurityGroupOutcome; + typedef std::future DeleteSecurityGroupOutcomeCallable; + typedef std::function&)> DeleteSecurityGroupAsyncHandler; typedef Outcome DeleteUsersOutcome; typedef std::future DeleteUsersOutcomeCallable; typedef std::function&)> DeleteUsersAsyncHandler; + typedef Outcome DescribeAutoScaleConfigOutcome; + typedef std::future DescribeAutoScaleConfigOutcomeCallable; + typedef std::function&)> DescribeAutoScaleConfigAsyncHandler; typedef Outcome DescribeClusterOutcome; typedef std::future DescribeClusterOutcomeCallable; typedef std::function&)> DescribeClusterAsyncHandler; + typedef Outcome DescribeContainerAppOutcome; + typedef std::future DescribeContainerAppOutcomeCallable; + typedef std::function&)> DescribeContainerAppAsyncHandler; + typedef Outcome DescribeEstackImageOutcome; + typedef std::future DescribeEstackImageOutcomeCallable; + typedef std::function&)> DescribeEstackImageAsyncHandler; + typedef Outcome DescribeGWSClusterPolicyOutcome; + typedef std::future DescribeGWSClusterPolicyOutcomeCallable; + typedef std::function&)> DescribeGWSClusterPolicyAsyncHandler; + typedef Outcome DescribeGWSClustersOutcome; + typedef std::future DescribeGWSClustersOutcomeCallable; + typedef std::function&)> DescribeGWSClustersAsyncHandler; + typedef Outcome DescribeGWSImagesOutcome; + typedef std::future DescribeGWSImagesOutcomeCallable; + typedef std::function&)> DescribeGWSImagesAsyncHandler; + typedef Outcome DescribeGWSInstancesOutcome; + typedef std::future DescribeGWSInstancesOutcomeCallable; + typedef std::function&)> DescribeGWSInstancesAsyncHandler; + typedef Outcome DescribeImageOutcome; + typedef std::future DescribeImageOutcomeCallable; + typedef std::function&)> DescribeImageAsyncHandler; + typedef Outcome DescribeImageGatewayConfigOutcome; + typedef std::future DescribeImageGatewayConfigOutcomeCallable; + typedef std::function&)> DescribeImageGatewayConfigAsyncHandler; + typedef Outcome DescribeImagePriceOutcome; + typedef std::future DescribeImagePriceOutcomeCallable; + typedef std::function&)> DescribeImagePriceAsyncHandler; + typedef Outcome DescribeJobOutcome; + typedef std::future DescribeJobOutcomeCallable; + typedef std::function&)> DescribeJobAsyncHandler; + typedef Outcome DescribeNFSClientStatusOutcome; + typedef std::future DescribeNFSClientStatusOutcomeCallable; + typedef std::function&)> DescribeNFSClientStatusAsyncHandler; + typedef Outcome DescribePriceOutcome; + typedef std::future DescribePriceOutcomeCallable; + typedef std::function&)> DescribePriceAsyncHandler; typedef Outcome EditJobTemplateOutcome; typedef std::future EditJobTemplateOutcomeCallable; typedef std::function&)> EditJobTemplateAsyncHandler; + typedef Outcome GetAccountingReportOutcome; + typedef std::future GetAccountingReportOutcomeCallable; + typedef std::function&)> GetAccountingReportAsyncHandler; typedef Outcome GetAutoScaleConfigOutcome; typedef std::future GetAutoScaleConfigOutcomeCallable; typedef std::function&)> GetAutoScaleConfigAsyncHandler; + typedef Outcome GetCloudMetricLogsOutcome; + typedef std::future GetCloudMetricLogsOutcomeCallable; + typedef std::function&)> GetCloudMetricLogsAsyncHandler; + typedef Outcome GetCloudMetricProfilingOutcome; + typedef std::future GetCloudMetricProfilingOutcomeCallable; + typedef std::function&)> GetCloudMetricProfilingAsyncHandler; + typedef Outcome GetClusterVolumesOutcome; + typedef std::future GetClusterVolumesOutcomeCallable; + typedef std::function&)> GetClusterVolumesAsyncHandler; + typedef Outcome GetCommonImageOutcome; + typedef std::future GetCommonImageOutcomeCallable; + typedef std::function&)> GetCommonImageAsyncHandler; + typedef Outcome GetGWSConnectTicketOutcome; + typedef std::future GetGWSConnectTicketOutcomeCallable; + typedef std::function&)> GetGWSConnectTicketAsyncHandler; + typedef Outcome GetHybridClusterConfigOutcome; + typedef std::future GetHybridClusterConfigOutcomeCallable; + typedef std::function&)> GetHybridClusterConfigAsyncHandler; + typedef Outcome GetIfEcsTypeSupportHtConfigOutcome; + typedef std::future GetIfEcsTypeSupportHtConfigOutcomeCallable; + typedef std::function&)> GetIfEcsTypeSupportHtConfigAsyncHandler; + typedef Outcome GetPostScriptsOutcome; + typedef std::future GetPostScriptsOutcomeCallable; + typedef std::function&)> GetPostScriptsAsyncHandler; + typedef Outcome GetSchedulerInfoOutcome; + typedef std::future GetSchedulerInfoOutcomeCallable; + typedef std::function&)> GetSchedulerInfoAsyncHandler; + typedef Outcome GetUserImageOutcome; + typedef std::future GetUserImageOutcomeCallable; + typedef std::function&)> GetUserImageAsyncHandler; + typedef Outcome GetVisualServiceStatusOutcome; + typedef std::future GetVisualServiceStatusOutcomeCallable; + typedef std::function&)> GetVisualServiceStatusAsyncHandler; + typedef Outcome InitializeEHPCOutcome; + typedef std::future InitializeEHPCOutcomeCallable; + typedef std::function&)> InitializeEHPCAsyncHandler; + typedef Outcome InspectImageOutcome; + typedef std::future InspectImageOutcomeCallable; + typedef std::function&)> InspectImageAsyncHandler; + typedef Outcome InstallSoftwareOutcome; + typedef std::future InstallSoftwareOutcomeCallable; + typedef std::function&)> InstallSoftwareAsyncHandler; + typedef Outcome InvokeShellCommandOutcome; + typedef std::future InvokeShellCommandOutcomeCallable; + typedef std::function&)> InvokeShellCommandAsyncHandler; + typedef Outcome ListAvailableEcsTypesOutcome; + typedef std::future ListAvailableEcsTypesOutcomeCallable; + typedef std::function&)> ListAvailableEcsTypesAsyncHandler; + typedef Outcome ListCloudMetricProfilingsOutcome; + typedef std::future ListCloudMetricProfilingsOutcomeCallable; + typedef std::function&)> ListCloudMetricProfilingsAsyncHandler; typedef Outcome ListClusterLogsOutcome; typedef std::future ListClusterLogsOutcomeCallable; typedef std::function&)> ListClusterLogsAsyncHandler; typedef Outcome ListClustersOutcome; typedef std::future ListClustersOutcomeCallable; typedef std::function&)> ListClustersAsyncHandler; + typedef Outcome ListClustersMetaOutcome; + typedef std::future ListClustersMetaOutcomeCallable; + typedef std::function&)> ListClustersMetaAsyncHandler; + typedef Outcome ListCommandsOutcome; + typedef std::future ListCommandsOutcomeCallable; + typedef std::function&)> ListCommandsAsyncHandler; + typedef Outcome ListCommunityImagesOutcome; + typedef std::future ListCommunityImagesOutcomeCallable; + typedef std::function&)> ListCommunityImagesAsyncHandler; + typedef Outcome ListContainerAppsOutcome; + typedef std::future ListContainerAppsOutcomeCallable; + typedef std::function&)> ListContainerAppsAsyncHandler; + typedef Outcome ListContainerImagesOutcome; + typedef std::future ListContainerImagesOutcomeCallable; + typedef std::function&)> ListContainerImagesAsyncHandler; + typedef Outcome ListCpfsFileSystemsOutcome; + typedef std::future ListCpfsFileSystemsOutcomeCallable; + typedef std::function&)> ListCpfsFileSystemsAsyncHandler; typedef Outcome ListCurrentClientVersionOutcome; typedef std::future ListCurrentClientVersionOutcomeCallable; typedef std::function&)> ListCurrentClientVersionAsyncHandler; typedef Outcome ListCustomImagesOutcome; typedef std::future ListCustomImagesOutcomeCallable; typedef std::function&)> ListCustomImagesAsyncHandler; + typedef Outcome ListFileSystemWithMountTargetsOutcome; + typedef std::future ListFileSystemWithMountTargetsOutcomeCallable; + typedef std::function&)> ListFileSystemWithMountTargetsAsyncHandler; typedef Outcome ListImagesOutcome; typedef std::future ListImagesOutcomeCallable; typedef std::function&)> ListImagesAsyncHandler; + typedef Outcome ListInstalledSoftwareOutcome; + typedef std::future ListInstalledSoftwareOutcomeCallable; + typedef std::function&)> ListInstalledSoftwareAsyncHandler; + typedef Outcome ListInvocationResultsOutcome; + typedef std::future ListInvocationResultsOutcomeCallable; + typedef std::function&)> ListInvocationResultsAsyncHandler; + typedef Outcome ListInvocationStatusOutcome; + typedef std::future ListInvocationStatusOutcomeCallable; + typedef std::function&)> ListInvocationStatusAsyncHandler; typedef Outcome ListJobTemplatesOutcome; typedef std::future ListJobTemplatesOutcomeCallable; typedef std::function&)> ListJobTemplatesAsyncHandler; typedef Outcome ListJobsOutcome; typedef std::future ListJobsOutcomeCallable; typedef std::function&)> ListJobsAsyncHandler; + typedef Outcome ListJobsWithFiltersOutcome; + typedef std::future ListJobsWithFiltersOutcomeCallable; + typedef std::function&)> ListJobsWithFiltersAsyncHandler; typedef Outcome ListNodesOutcome; typedef std::future ListNodesOutcomeCallable; typedef std::function&)> ListNodesAsyncHandler; + typedef Outcome ListNodesByQueueOutcome; + typedef std::future ListNodesByQueueOutcomeCallable; + typedef std::function&)> ListNodesByQueueAsyncHandler; typedef Outcome ListNodesNoPagingOutcome; typedef std::future ListNodesNoPagingOutcomeCallable; typedef std::function&)> ListNodesNoPagingAsyncHandler; typedef Outcome ListPreferredEcsTypesOutcome; typedef std::future ListPreferredEcsTypesOutcomeCallable; typedef std::function&)> ListPreferredEcsTypesAsyncHandler; + typedef Outcome ListQueuesOutcome; + typedef std::future ListQueuesOutcomeCallable; + typedef std::function&)> ListQueuesAsyncHandler; typedef Outcome ListRegionsOutcome; typedef std::future ListRegionsOutcomeCallable; typedef std::function&)> ListRegionsAsyncHandler; + typedef Outcome ListSecurityGroupsOutcome; + typedef std::future ListSecurityGroupsOutcomeCallable; + typedef std::function&)> ListSecurityGroupsAsyncHandler; typedef Outcome ListSoftwaresOutcome; typedef std::future ListSoftwaresOutcomeCallable; typedef std::function&)> ListSoftwaresAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ListTasksOutcome; + typedef std::future ListTasksOutcomeCallable; + typedef std::function&)> ListTasksAsyncHandler; + typedef Outcome ListUpgradeClientsOutcome; + typedef std::future ListUpgradeClientsOutcomeCallable; + typedef std::function&)> ListUpgradeClientsAsyncHandler; typedef Outcome ListUsersOutcome; typedef std::future ListUsersOutcomeCallable; typedef std::function&)> ListUsersAsyncHandler; + typedef Outcome ListUsersAsyncOutcome; + typedef std::future ListUsersAsyncOutcomeCallable; + typedef std::function&)> ListUsersAsyncAsyncHandler; typedef Outcome ListVolumesOutcome; typedef std::future ListVolumesOutcomeCallable; typedef std::function&)> ListVolumesAsyncHandler; typedef Outcome ModifyClusterAttributesOutcome; typedef std::future ModifyClusterAttributesOutcomeCallable; typedef std::function&)> ModifyClusterAttributesAsyncHandler; + typedef Outcome ModifyContainerAppAttributesOutcome; + typedef std::future ModifyContainerAppAttributesOutcomeCallable; + typedef std::function&)> ModifyContainerAppAttributesAsyncHandler; + typedef Outcome ModifyImageGatewayConfigOutcome; + typedef std::future ModifyImageGatewayConfigOutcomeCallable; + typedef std::function&)> ModifyImageGatewayConfigAsyncHandler; typedef Outcome ModifyUserGroupsOutcome; typedef std::future ModifyUserGroupsOutcomeCallable; typedef std::function&)> ModifyUserGroupsAsyncHandler; typedef Outcome ModifyUserPasswordsOutcome; typedef std::future ModifyUserPasswordsOutcomeCallable; typedef std::function&)> ModifyUserPasswordsAsyncHandler; + typedef Outcome ModifyVisualServicePasswdOutcome; + typedef std::future ModifyVisualServicePasswdOutcomeCallable; + typedef std::function&)> ModifyVisualServicePasswdAsyncHandler; + typedef Outcome MountNFSOutcome; + typedef std::future MountNFSOutcomeCallable; + typedef std::function&)> MountNFSAsyncHandler; + typedef Outcome PullImageOutcome; + typedef std::future PullImageOutcomeCallable; + typedef std::function&)> PullImageAsyncHandler; + typedef Outcome QueryServicePackAndPriceOutcome; + typedef std::future QueryServicePackAndPriceOutcomeCallable; + typedef std::function&)> QueryServicePackAndPriceAsyncHandler; + typedef Outcome RecoverClusterOutcome; + typedef std::future RecoverClusterOutcomeCallable; + typedef std::function&)> RecoverClusterAsyncHandler; typedef Outcome RerunJobsOutcome; typedef std::future RerunJobsOutcomeCallable; typedef std::function&)> RerunJobsAsyncHandler; typedef Outcome ResetNodesOutcome; typedef std::future ResetNodesOutcomeCallable; typedef std::function&)> ResetNodesAsyncHandler; + typedef Outcome RunCloudMetricProfilingOutcome; + typedef std::future RunCloudMetricProfilingOutcomeCallable; + typedef std::function&)> RunCloudMetricProfilingAsyncHandler; typedef Outcome SetAutoScaleConfigOutcome; typedef std::future SetAutoScaleConfigOutcomeCallable; typedef std::function&)> SetAutoScaleConfigAsyncHandler; - typedef Outcome SetJobUserOutcome; - typedef std::future SetJobUserOutcomeCallable; - typedef std::function&)> SetJobUserAsyncHandler; + typedef Outcome SetGWSClusterPolicyOutcome; + typedef std::future SetGWSClusterPolicyOutcomeCallable; + typedef std::function&)> SetGWSClusterPolicyAsyncHandler; + typedef Outcome SetGWSInstanceNameOutcome; + typedef std::future SetGWSInstanceNameOutcomeCallable; + typedef std::function&)> SetGWSInstanceNameAsyncHandler; + typedef Outcome SetGWSInstanceUserOutcome; + typedef std::future SetGWSInstanceUserOutcomeCallable; + typedef std::function&)> SetGWSInstanceUserAsyncHandler; + typedef Outcome SetPostScriptsOutcome; + typedef std::future SetPostScriptsOutcomeCallable; + typedef std::function&)> SetPostScriptsAsyncHandler; + typedef Outcome SetQueueOutcome; + typedef std::future SetQueueOutcomeCallable; + typedef std::function&)> SetQueueAsyncHandler; + typedef Outcome SetSchedulerInfoOutcome; + typedef std::future SetSchedulerInfoOutcomeCallable; + typedef std::function&)> SetSchedulerInfoAsyncHandler; + typedef Outcome StartClusterOutcome; + typedef std::future StartClusterOutcomeCallable; + typedef std::function&)> StartClusterAsyncHandler; + typedef Outcome StartGWSInstanceOutcome; + typedef std::future StartGWSInstanceOutcomeCallable; + typedef std::function&)> StartGWSInstanceAsyncHandler; + typedef Outcome StartNodesOutcome; + typedef std::future StartNodesOutcomeCallable; + typedef std::function&)> StartNodesAsyncHandler; + typedef Outcome StartVisualServiceOutcome; + typedef std::future StartVisualServiceOutcomeCallable; + typedef std::function&)> StartVisualServiceAsyncHandler; + typedef Outcome StopClusterOutcome; + typedef std::future StopClusterOutcomeCallable; + typedef std::function&)> StopClusterAsyncHandler; + typedef Outcome StopGWSInstanceOutcome; + typedef std::future StopGWSInstanceOutcomeCallable; + typedef std::function&)> StopGWSInstanceAsyncHandler; typedef Outcome StopJobsOutcome; typedef std::future StopJobsOutcomeCallable; typedef std::function&)> StopJobsAsyncHandler; + typedef Outcome StopNodesOutcome; + typedef std::future StopNodesOutcomeCallable; + typedef std::function&)> StopNodesAsyncHandler; + typedef Outcome StopVisualServiceOutcome; + typedef std::future StopVisualServiceOutcomeCallable; + typedef std::function&)> StopVisualServiceAsyncHandler; typedef Outcome SubmitJobOutcome; typedef std::future SubmitJobOutcomeCallable; typedef std::function&)> SubmitJobAsyncHandler; + typedef Outcome SummaryImagesOutcome; + typedef std::future SummaryImagesOutcomeCallable; + typedef std::function&)> SummaryImagesAsyncHandler; + typedef Outcome SummaryImagesInfoOutcome; + typedef std::future SummaryImagesInfoOutcomeCallable; + typedef std::function&)> SummaryImagesInfoAsyncHandler; + typedef Outcome SyncUsersOutcome; + typedef std::future SyncUsersOutcomeCallable; + typedef std::function&)> SyncUsersAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UnTagResourcesOutcome; + typedef std::future UnTagResourcesOutcomeCallable; + typedef std::function&)> UnTagResourcesAsyncHandler; + typedef Outcome UninstallSoftwareOutcome; + typedef std::future UninstallSoftwareOutcomeCallable; + typedef std::function&)> UninstallSoftwareAsyncHandler; + typedef Outcome UpdateClusterVolumesOutcome; + typedef std::future UpdateClusterVolumesOutcomeCallable; + typedef std::function&)> UpdateClusterVolumesAsyncHandler; + typedef Outcome UpdateQueueConfigOutcome; + typedef std::future UpdateQueueConfigOutcomeCallable; + typedef std::function&)> UpdateQueueConfigAsyncHandler; typedef Outcome UpgradeClientOutcome; typedef std::future UpgradeClientOutcomeCallable; typedef std::function&)> UpgradeClientAsyncHandler; @@ -216,111 +696,399 @@ namespace AlibabaCloud EHPCClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); EHPCClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~EHPCClient(); + AddContainerAppOutcome addContainerApp(const Model::AddContainerAppRequest &request)const; + void addContainerAppAsync(const Model::AddContainerAppRequest& request, const AddContainerAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddContainerAppOutcomeCallable addContainerAppCallable(const Model::AddContainerAppRequest& request) const; + AddExistedNodesOutcome addExistedNodes(const Model::AddExistedNodesRequest &request)const; + void addExistedNodesAsync(const Model::AddExistedNodesRequest& request, const AddExistedNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddExistedNodesOutcomeCallable addExistedNodesCallable(const Model::AddExistedNodesRequest& request) const; + AddLocalNodesOutcome addLocalNodes(const Model::AddLocalNodesRequest &request)const; + void addLocalNodesAsync(const Model::AddLocalNodesRequest& request, const AddLocalNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddLocalNodesOutcomeCallable addLocalNodesCallable(const Model::AddLocalNodesRequest& request) const; AddNodesOutcome addNodes(const Model::AddNodesRequest &request)const; void addNodesAsync(const Model::AddNodesRequest& request, const AddNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddNodesOutcomeCallable addNodesCallable(const Model::AddNodesRequest& request) const; + AddQueueOutcome addQueue(const Model::AddQueueRequest &request)const; + void addQueueAsync(const Model::AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddQueueOutcomeCallable addQueueCallable(const Model::AddQueueRequest& request) const; + AddSecurityGroupOutcome addSecurityGroup(const Model::AddSecurityGroupRequest &request)const; + void addSecurityGroupAsync(const Model::AddSecurityGroupRequest& request, const AddSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSecurityGroupOutcomeCallable addSecurityGroupCallable(const Model::AddSecurityGroupRequest& request) const; AddUsersOutcome addUsers(const Model::AddUsersRequest &request)const; void addUsersAsync(const Model::AddUsersRequest& request, const AddUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddUsersOutcomeCallable addUsersCallable(const Model::AddUsersRequest& request) const; + ApplyNodesOutcome applyNodes(const Model::ApplyNodesRequest &request)const; + void applyNodesAsync(const Model::ApplyNodesRequest& request, const ApplyNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ApplyNodesOutcomeCallable applyNodesCallable(const Model::ApplyNodesRequest& request) const; CreateClusterOutcome createCluster(const Model::CreateClusterRequest &request)const; void createClusterAsync(const Model::CreateClusterRequest& request, const CreateClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateClusterOutcomeCallable createClusterCallable(const Model::CreateClusterRequest& request) const; + CreateGWSClusterOutcome createGWSCluster(const Model::CreateGWSClusterRequest &request)const; + void createGWSClusterAsync(const Model::CreateGWSClusterRequest& request, const CreateGWSClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGWSClusterOutcomeCallable createGWSClusterCallable(const Model::CreateGWSClusterRequest& request) const; + CreateGWSImageOutcome createGWSImage(const Model::CreateGWSImageRequest &request)const; + void createGWSImageAsync(const Model::CreateGWSImageRequest& request, const CreateGWSImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGWSImageOutcomeCallable createGWSImageCallable(const Model::CreateGWSImageRequest& request) const; + CreateGWSInstanceOutcome createGWSInstance(const Model::CreateGWSInstanceRequest &request)const; + void createGWSInstanceAsync(const Model::CreateGWSInstanceRequest& request, const CreateGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGWSInstanceOutcomeCallable createGWSInstanceCallable(const Model::CreateGWSInstanceRequest& request) const; + CreateHybridClusterOutcome createHybridCluster(const Model::CreateHybridClusterRequest &request)const; + void createHybridClusterAsync(const Model::CreateHybridClusterRequest& request, const CreateHybridClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHybridClusterOutcomeCallable createHybridClusterCallable(const Model::CreateHybridClusterRequest& request) const; + CreateJobFileOutcome createJobFile(const Model::CreateJobFileRequest &request)const; + void createJobFileAsync(const Model::CreateJobFileRequest& request, const CreateJobFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobFileOutcomeCallable createJobFileCallable(const Model::CreateJobFileRequest& request) const; CreateJobTemplateOutcome createJobTemplate(const Model::CreateJobTemplateRequest &request)const; void createJobTemplateAsync(const Model::CreateJobTemplateRequest& request, const CreateJobTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateJobTemplateOutcomeCallable createJobTemplateCallable(const Model::CreateJobTemplateRequest& request) const; DeleteClusterOutcome deleteCluster(const Model::DeleteClusterRequest &request)const; void deleteClusterAsync(const Model::DeleteClusterRequest& request, const DeleteClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteClusterOutcomeCallable deleteClusterCallable(const Model::DeleteClusterRequest& request) const; + DeleteContainerAppsOutcome deleteContainerApps(const Model::DeleteContainerAppsRequest &request)const; + void deleteContainerAppsAsync(const Model::DeleteContainerAppsRequest& request, const DeleteContainerAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContainerAppsOutcomeCallable deleteContainerAppsCallable(const Model::DeleteContainerAppsRequest& request) const; + DeleteGWSClusterOutcome deleteGWSCluster(const Model::DeleteGWSClusterRequest &request)const; + void deleteGWSClusterAsync(const Model::DeleteGWSClusterRequest& request, const DeleteGWSClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGWSClusterOutcomeCallable deleteGWSClusterCallable(const Model::DeleteGWSClusterRequest& request) const; + DeleteGWSInstanceOutcome deleteGWSInstance(const Model::DeleteGWSInstanceRequest &request)const; + void deleteGWSInstanceAsync(const Model::DeleteGWSInstanceRequest& request, const DeleteGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGWSInstanceOutcomeCallable deleteGWSInstanceCallable(const Model::DeleteGWSInstanceRequest& request) const; + DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; + void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const; DeleteJobTemplatesOutcome deleteJobTemplates(const Model::DeleteJobTemplatesRequest &request)const; void deleteJobTemplatesAsync(const Model::DeleteJobTemplatesRequest& request, const DeleteJobTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteJobTemplatesOutcomeCallable deleteJobTemplatesCallable(const Model::DeleteJobTemplatesRequest& request) const; DeleteJobsOutcome deleteJobs(const Model::DeleteJobsRequest &request)const; void deleteJobsAsync(const Model::DeleteJobsRequest& request, const DeleteJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteJobsOutcomeCallable deleteJobsCallable(const Model::DeleteJobsRequest& request) const; + DeleteLocalImageOutcome deleteLocalImage(const Model::DeleteLocalImageRequest &request)const; + void deleteLocalImageAsync(const Model::DeleteLocalImageRequest& request, const DeleteLocalImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteLocalImageOutcomeCallable deleteLocalImageCallable(const Model::DeleteLocalImageRequest& request) const; DeleteNodesOutcome deleteNodes(const Model::DeleteNodesRequest &request)const; void deleteNodesAsync(const Model::DeleteNodesRequest& request, const DeleteNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteNodesOutcomeCallable deleteNodesCallable(const Model::DeleteNodesRequest& request) const; + DeleteQueueOutcome deleteQueue(const Model::DeleteQueueRequest &request)const; + void deleteQueueAsync(const Model::DeleteQueueRequest& request, const DeleteQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteQueueOutcomeCallable deleteQueueCallable(const Model::DeleteQueueRequest& request) const; + DeleteSecurityGroupOutcome deleteSecurityGroup(const Model::DeleteSecurityGroupRequest &request)const; + void deleteSecurityGroupAsync(const Model::DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSecurityGroupOutcomeCallable deleteSecurityGroupCallable(const Model::DeleteSecurityGroupRequest& request) const; DeleteUsersOutcome deleteUsers(const Model::DeleteUsersRequest &request)const; void deleteUsersAsync(const Model::DeleteUsersRequest& request, const DeleteUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteUsersOutcomeCallable deleteUsersCallable(const Model::DeleteUsersRequest& request) const; + DescribeAutoScaleConfigOutcome describeAutoScaleConfig(const Model::DescribeAutoScaleConfigRequest &request)const; + void describeAutoScaleConfigAsync(const Model::DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAutoScaleConfigOutcomeCallable describeAutoScaleConfigCallable(const Model::DescribeAutoScaleConfigRequest& request) const; DescribeClusterOutcome describeCluster(const Model::DescribeClusterRequest &request)const; void describeClusterAsync(const Model::DescribeClusterRequest& request, const DescribeClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeClusterOutcomeCallable describeClusterCallable(const Model::DescribeClusterRequest& request) const; + DescribeContainerAppOutcome describeContainerApp(const Model::DescribeContainerAppRequest &request)const; + void describeContainerAppAsync(const Model::DescribeContainerAppRequest& request, const DescribeContainerAppAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeContainerAppOutcomeCallable describeContainerAppCallable(const Model::DescribeContainerAppRequest& request) const; + DescribeEstackImageOutcome describeEstackImage(const Model::DescribeEstackImageRequest &request)const; + void describeEstackImageAsync(const Model::DescribeEstackImageRequest& request, const DescribeEstackImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEstackImageOutcomeCallable describeEstackImageCallable(const Model::DescribeEstackImageRequest& request) const; + DescribeGWSClusterPolicyOutcome describeGWSClusterPolicy(const Model::DescribeGWSClusterPolicyRequest &request)const; + void describeGWSClusterPolicyAsync(const Model::DescribeGWSClusterPolicyRequest& request, const DescribeGWSClusterPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSClusterPolicyOutcomeCallable describeGWSClusterPolicyCallable(const Model::DescribeGWSClusterPolicyRequest& request) const; + DescribeGWSClustersOutcome describeGWSClusters(const Model::DescribeGWSClustersRequest &request)const; + void describeGWSClustersAsync(const Model::DescribeGWSClustersRequest& request, const DescribeGWSClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSClustersOutcomeCallable describeGWSClustersCallable(const Model::DescribeGWSClustersRequest& request) const; + DescribeGWSImagesOutcome describeGWSImages(const Model::DescribeGWSImagesRequest &request)const; + void describeGWSImagesAsync(const Model::DescribeGWSImagesRequest& request, const DescribeGWSImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSImagesOutcomeCallable describeGWSImagesCallable(const Model::DescribeGWSImagesRequest& request) const; + DescribeGWSInstancesOutcome describeGWSInstances(const Model::DescribeGWSInstancesRequest &request)const; + void describeGWSInstancesAsync(const Model::DescribeGWSInstancesRequest& request, const DescribeGWSInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGWSInstancesOutcomeCallable describeGWSInstancesCallable(const Model::DescribeGWSInstancesRequest& request) const; + DescribeImageOutcome describeImage(const Model::DescribeImageRequest &request)const; + void describeImageAsync(const Model::DescribeImageRequest& request, const DescribeImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageOutcomeCallable describeImageCallable(const Model::DescribeImageRequest& request) const; + DescribeImageGatewayConfigOutcome describeImageGatewayConfig(const Model::DescribeImageGatewayConfigRequest &request)const; + void describeImageGatewayConfigAsync(const Model::DescribeImageGatewayConfigRequest& request, const DescribeImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImageGatewayConfigOutcomeCallable describeImageGatewayConfigCallable(const Model::DescribeImageGatewayConfigRequest& request) const; + DescribeImagePriceOutcome describeImagePrice(const Model::DescribeImagePriceRequest &request)const; + void describeImagePriceAsync(const Model::DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeImagePriceOutcomeCallable describeImagePriceCallable(const Model::DescribeImagePriceRequest& request) const; + DescribeJobOutcome describeJob(const Model::DescribeJobRequest &request)const; + void describeJobAsync(const Model::DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeJobOutcomeCallable describeJobCallable(const Model::DescribeJobRequest& request) const; + DescribeNFSClientStatusOutcome describeNFSClientStatus(const Model::DescribeNFSClientStatusRequest &request)const; + void describeNFSClientStatusAsync(const Model::DescribeNFSClientStatusRequest& request, const DescribeNFSClientStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeNFSClientStatusOutcomeCallable describeNFSClientStatusCallable(const Model::DescribeNFSClientStatusRequest& request) const; + DescribePriceOutcome describePrice(const Model::DescribePriceRequest &request)const; + void describePriceAsync(const Model::DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribePriceOutcomeCallable describePriceCallable(const Model::DescribePriceRequest& request) const; EditJobTemplateOutcome editJobTemplate(const Model::EditJobTemplateRequest &request)const; void editJobTemplateAsync(const Model::EditJobTemplateRequest& request, const EditJobTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EditJobTemplateOutcomeCallable editJobTemplateCallable(const Model::EditJobTemplateRequest& request) const; + GetAccountingReportOutcome getAccountingReport(const Model::GetAccountingReportRequest &request)const; + void getAccountingReportAsync(const Model::GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAccountingReportOutcomeCallable getAccountingReportCallable(const Model::GetAccountingReportRequest& request) const; GetAutoScaleConfigOutcome getAutoScaleConfig(const Model::GetAutoScaleConfigRequest &request)const; void getAutoScaleConfigAsync(const Model::GetAutoScaleConfigRequest& request, const GetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetAutoScaleConfigOutcomeCallable getAutoScaleConfigCallable(const Model::GetAutoScaleConfigRequest& request) const; + GetCloudMetricLogsOutcome getCloudMetricLogs(const Model::GetCloudMetricLogsRequest &request)const; + void getCloudMetricLogsAsync(const Model::GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCloudMetricLogsOutcomeCallable getCloudMetricLogsCallable(const Model::GetCloudMetricLogsRequest& request) const; + GetCloudMetricProfilingOutcome getCloudMetricProfiling(const Model::GetCloudMetricProfilingRequest &request)const; + void getCloudMetricProfilingAsync(const Model::GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCloudMetricProfilingOutcomeCallable getCloudMetricProfilingCallable(const Model::GetCloudMetricProfilingRequest& request) const; + GetClusterVolumesOutcome getClusterVolumes(const Model::GetClusterVolumesRequest &request)const; + void getClusterVolumesAsync(const Model::GetClusterVolumesRequest& request, const GetClusterVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetClusterVolumesOutcomeCallable getClusterVolumesCallable(const Model::GetClusterVolumesRequest& request) const; + GetCommonImageOutcome getCommonImage(const Model::GetCommonImageRequest &request)const; + void getCommonImageAsync(const Model::GetCommonImageRequest& request, const GetCommonImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetCommonImageOutcomeCallable getCommonImageCallable(const Model::GetCommonImageRequest& request) const; + GetGWSConnectTicketOutcome getGWSConnectTicket(const Model::GetGWSConnectTicketRequest &request)const; + void getGWSConnectTicketAsync(const Model::GetGWSConnectTicketRequest& request, const GetGWSConnectTicketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetGWSConnectTicketOutcomeCallable getGWSConnectTicketCallable(const Model::GetGWSConnectTicketRequest& request) const; + GetHybridClusterConfigOutcome getHybridClusterConfig(const Model::GetHybridClusterConfigRequest &request)const; + void getHybridClusterConfigAsync(const Model::GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetHybridClusterConfigOutcomeCallable getHybridClusterConfigCallable(const Model::GetHybridClusterConfigRequest& request) const; + GetIfEcsTypeSupportHtConfigOutcome getIfEcsTypeSupportHtConfig(const Model::GetIfEcsTypeSupportHtConfigRequest &request)const; + void getIfEcsTypeSupportHtConfigAsync(const Model::GetIfEcsTypeSupportHtConfigRequest& request, const GetIfEcsTypeSupportHtConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetIfEcsTypeSupportHtConfigOutcomeCallable getIfEcsTypeSupportHtConfigCallable(const Model::GetIfEcsTypeSupportHtConfigRequest& request) const; + GetPostScriptsOutcome getPostScripts(const Model::GetPostScriptsRequest &request)const; + void getPostScriptsAsync(const Model::GetPostScriptsRequest& request, const GetPostScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPostScriptsOutcomeCallable getPostScriptsCallable(const Model::GetPostScriptsRequest& request) const; + GetSchedulerInfoOutcome getSchedulerInfo(const Model::GetSchedulerInfoRequest &request)const; + void getSchedulerInfoAsync(const Model::GetSchedulerInfoRequest& request, const GetSchedulerInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSchedulerInfoOutcomeCallable getSchedulerInfoCallable(const Model::GetSchedulerInfoRequest& request) const; + GetUserImageOutcome getUserImage(const Model::GetUserImageRequest &request)const; + void getUserImageAsync(const Model::GetUserImageRequest& request, const GetUserImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetUserImageOutcomeCallable getUserImageCallable(const Model::GetUserImageRequest& request) const; + GetVisualServiceStatusOutcome getVisualServiceStatus(const Model::GetVisualServiceStatusRequest &request)const; + void getVisualServiceStatusAsync(const Model::GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVisualServiceStatusOutcomeCallable getVisualServiceStatusCallable(const Model::GetVisualServiceStatusRequest& request) const; + InitializeEHPCOutcome initializeEHPC(const Model::InitializeEHPCRequest &request)const; + void initializeEHPCAsync(const Model::InitializeEHPCRequest& request, const InitializeEHPCAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InitializeEHPCOutcomeCallable initializeEHPCCallable(const Model::InitializeEHPCRequest& request) const; + InspectImageOutcome inspectImage(const Model::InspectImageRequest &request)const; + void inspectImageAsync(const Model::InspectImageRequest& request, const InspectImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InspectImageOutcomeCallable inspectImageCallable(const Model::InspectImageRequest& request) const; + InstallSoftwareOutcome installSoftware(const Model::InstallSoftwareRequest &request)const; + void installSoftwareAsync(const Model::InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallSoftwareOutcomeCallable installSoftwareCallable(const Model::InstallSoftwareRequest& request) const; + InvokeShellCommandOutcome invokeShellCommand(const Model::InvokeShellCommandRequest &request)const; + void invokeShellCommandAsync(const Model::InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InvokeShellCommandOutcomeCallable invokeShellCommandCallable(const Model::InvokeShellCommandRequest& request) const; + ListAvailableEcsTypesOutcome listAvailableEcsTypes(const Model::ListAvailableEcsTypesRequest &request)const; + void listAvailableEcsTypesAsync(const Model::ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListAvailableEcsTypesOutcomeCallable listAvailableEcsTypesCallable(const Model::ListAvailableEcsTypesRequest& request) const; + ListCloudMetricProfilingsOutcome listCloudMetricProfilings(const Model::ListCloudMetricProfilingsRequest &request)const; + void listCloudMetricProfilingsAsync(const Model::ListCloudMetricProfilingsRequest& request, const ListCloudMetricProfilingsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCloudMetricProfilingsOutcomeCallable listCloudMetricProfilingsCallable(const Model::ListCloudMetricProfilingsRequest& request) const; ListClusterLogsOutcome listClusterLogs(const Model::ListClusterLogsRequest &request)const; void listClusterLogsAsync(const Model::ListClusterLogsRequest& request, const ListClusterLogsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClusterLogsOutcomeCallable listClusterLogsCallable(const Model::ListClusterLogsRequest& request) const; ListClustersOutcome listClusters(const Model::ListClustersRequest &request)const; void listClustersAsync(const Model::ListClustersRequest& request, const ListClustersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListClustersOutcomeCallable listClustersCallable(const Model::ListClustersRequest& request) const; + ListClustersMetaOutcome listClustersMeta(const Model::ListClustersMetaRequest &request)const; + void listClustersMetaAsync(const Model::ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListClustersMetaOutcomeCallable listClustersMetaCallable(const Model::ListClustersMetaRequest& request) const; + ListCommandsOutcome listCommands(const Model::ListCommandsRequest &request)const; + void listCommandsAsync(const Model::ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCommandsOutcomeCallable listCommandsCallable(const Model::ListCommandsRequest& request) const; + ListCommunityImagesOutcome listCommunityImages(const Model::ListCommunityImagesRequest &request)const; + void listCommunityImagesAsync(const Model::ListCommunityImagesRequest& request, const ListCommunityImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCommunityImagesOutcomeCallable listCommunityImagesCallable(const Model::ListCommunityImagesRequest& request) const; + ListContainerAppsOutcome listContainerApps(const Model::ListContainerAppsRequest &request)const; + void listContainerAppsAsync(const Model::ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListContainerAppsOutcomeCallable listContainerAppsCallable(const Model::ListContainerAppsRequest& request) const; + ListContainerImagesOutcome listContainerImages(const Model::ListContainerImagesRequest &request)const; + void listContainerImagesAsync(const Model::ListContainerImagesRequest& request, const ListContainerImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListContainerImagesOutcomeCallable listContainerImagesCallable(const Model::ListContainerImagesRequest& request) const; + ListCpfsFileSystemsOutcome listCpfsFileSystems(const Model::ListCpfsFileSystemsRequest &request)const; + void listCpfsFileSystemsAsync(const Model::ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCpfsFileSystemsOutcomeCallable listCpfsFileSystemsCallable(const Model::ListCpfsFileSystemsRequest& request) const; ListCurrentClientVersionOutcome listCurrentClientVersion(const Model::ListCurrentClientVersionRequest &request)const; void listCurrentClientVersionAsync(const Model::ListCurrentClientVersionRequest& request, const ListCurrentClientVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCurrentClientVersionOutcomeCallable listCurrentClientVersionCallable(const Model::ListCurrentClientVersionRequest& request) const; ListCustomImagesOutcome listCustomImages(const Model::ListCustomImagesRequest &request)const; void listCustomImagesAsync(const Model::ListCustomImagesRequest& request, const ListCustomImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCustomImagesOutcomeCallable listCustomImagesCallable(const Model::ListCustomImagesRequest& request) const; + ListFileSystemWithMountTargetsOutcome listFileSystemWithMountTargets(const Model::ListFileSystemWithMountTargetsRequest &request)const; + void listFileSystemWithMountTargetsAsync(const Model::ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFileSystemWithMountTargetsOutcomeCallable listFileSystemWithMountTargetsCallable(const Model::ListFileSystemWithMountTargetsRequest& request) const; ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const; + ListInstalledSoftwareOutcome listInstalledSoftware(const Model::ListInstalledSoftwareRequest &request)const; + void listInstalledSoftwareAsync(const Model::ListInstalledSoftwareRequest& request, const ListInstalledSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInstalledSoftwareOutcomeCallable listInstalledSoftwareCallable(const Model::ListInstalledSoftwareRequest& request) const; + ListInvocationResultsOutcome listInvocationResults(const Model::ListInvocationResultsRequest &request)const; + void listInvocationResultsAsync(const Model::ListInvocationResultsRequest& request, const ListInvocationResultsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInvocationResultsOutcomeCallable listInvocationResultsCallable(const Model::ListInvocationResultsRequest& request) const; + ListInvocationStatusOutcome listInvocationStatus(const Model::ListInvocationStatusRequest &request)const; + void listInvocationStatusAsync(const Model::ListInvocationStatusRequest& request, const ListInvocationStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInvocationStatusOutcomeCallable listInvocationStatusCallable(const Model::ListInvocationStatusRequest& request) const; ListJobTemplatesOutcome listJobTemplates(const Model::ListJobTemplatesRequest &request)const; void listJobTemplatesAsync(const Model::ListJobTemplatesRequest& request, const ListJobTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobTemplatesOutcomeCallable listJobTemplatesCallable(const Model::ListJobTemplatesRequest& request) const; ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; + ListJobsWithFiltersOutcome listJobsWithFilters(const Model::ListJobsWithFiltersRequest &request)const; + void listJobsWithFiltersAsync(const Model::ListJobsWithFiltersRequest& request, const ListJobsWithFiltersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobsWithFiltersOutcomeCallable listJobsWithFiltersCallable(const Model::ListJobsWithFiltersRequest& request) const; ListNodesOutcome listNodes(const Model::ListNodesRequest &request)const; void listNodesAsync(const Model::ListNodesRequest& request, const ListNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNodesOutcomeCallable listNodesCallable(const Model::ListNodesRequest& request) const; + ListNodesByQueueOutcome listNodesByQueue(const Model::ListNodesByQueueRequest &request)const; + void listNodesByQueueAsync(const Model::ListNodesByQueueRequest& request, const ListNodesByQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListNodesByQueueOutcomeCallable listNodesByQueueCallable(const Model::ListNodesByQueueRequest& request) const; ListNodesNoPagingOutcome listNodesNoPaging(const Model::ListNodesNoPagingRequest &request)const; void listNodesNoPagingAsync(const Model::ListNodesNoPagingRequest& request, const ListNodesNoPagingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListNodesNoPagingOutcomeCallable listNodesNoPagingCallable(const Model::ListNodesNoPagingRequest& request) const; ListPreferredEcsTypesOutcome listPreferredEcsTypes(const Model::ListPreferredEcsTypesRequest &request)const; void listPreferredEcsTypesAsync(const Model::ListPreferredEcsTypesRequest& request, const ListPreferredEcsTypesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListPreferredEcsTypesOutcomeCallable listPreferredEcsTypesCallable(const Model::ListPreferredEcsTypesRequest& request) const; + ListQueuesOutcome listQueues(const Model::ListQueuesRequest &request)const; + void listQueuesAsync(const Model::ListQueuesRequest& request, const ListQueuesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListQueuesOutcomeCallable listQueuesCallable(const Model::ListQueuesRequest& request) const; ListRegionsOutcome listRegions(const Model::ListRegionsRequest &request)const; void listRegionsAsync(const Model::ListRegionsRequest& request, const ListRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListRegionsOutcomeCallable listRegionsCallable(const Model::ListRegionsRequest& request) const; + ListSecurityGroupsOutcome listSecurityGroups(const Model::ListSecurityGroupsRequest &request)const; + void listSecurityGroupsAsync(const Model::ListSecurityGroupsRequest& request, const ListSecurityGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSecurityGroupsOutcomeCallable listSecurityGroupsCallable(const Model::ListSecurityGroupsRequest& request) const; ListSoftwaresOutcome listSoftwares(const Model::ListSoftwaresRequest &request)const; void listSoftwaresAsync(const Model::ListSoftwaresRequest& request, const ListSoftwaresAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSoftwaresOutcomeCallable listSoftwaresCallable(const Model::ListSoftwaresRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; + ListTasksOutcome listTasks(const Model::ListTasksRequest &request)const; + void listTasksAsync(const Model::ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTasksOutcomeCallable listTasksCallable(const Model::ListTasksRequest& request) const; + ListUpgradeClientsOutcome listUpgradeClients(const Model::ListUpgradeClientsRequest &request)const; + void listUpgradeClientsAsync(const Model::ListUpgradeClientsRequest& request, const ListUpgradeClientsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUpgradeClientsOutcomeCallable listUpgradeClientsCallable(const Model::ListUpgradeClientsRequest& request) const; ListUsersOutcome listUsers(const Model::ListUsersRequest &request)const; void listUsersAsync(const Model::ListUsersRequest& request, const ListUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListUsersOutcomeCallable listUsersCallable(const Model::ListUsersRequest& request) const; + ListUsersAsyncOutcome listUsersAsync(const Model::ListUsersAsyncRequest &request)const; + void listUsersAsyncAsync(const Model::ListUsersAsyncRequest& request, const ListUsersAsyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListUsersAsyncOutcomeCallable listUsersAsyncCallable(const Model::ListUsersAsyncRequest& request) const; ListVolumesOutcome listVolumes(const Model::ListVolumesRequest &request)const; void listVolumesAsync(const Model::ListVolumesRequest& request, const ListVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListVolumesOutcomeCallable listVolumesCallable(const Model::ListVolumesRequest& request) const; ModifyClusterAttributesOutcome modifyClusterAttributes(const Model::ModifyClusterAttributesRequest &request)const; void modifyClusterAttributesAsync(const Model::ModifyClusterAttributesRequest& request, const ModifyClusterAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyClusterAttributesOutcomeCallable modifyClusterAttributesCallable(const Model::ModifyClusterAttributesRequest& request) const; + ModifyContainerAppAttributesOutcome modifyContainerAppAttributes(const Model::ModifyContainerAppAttributesRequest &request)const; + void modifyContainerAppAttributesAsync(const Model::ModifyContainerAppAttributesRequest& request, const ModifyContainerAppAttributesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyContainerAppAttributesOutcomeCallable modifyContainerAppAttributesCallable(const Model::ModifyContainerAppAttributesRequest& request) const; + ModifyImageGatewayConfigOutcome modifyImageGatewayConfig(const Model::ModifyImageGatewayConfigRequest &request)const; + void modifyImageGatewayConfigAsync(const Model::ModifyImageGatewayConfigRequest& request, const ModifyImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyImageGatewayConfigOutcomeCallable modifyImageGatewayConfigCallable(const Model::ModifyImageGatewayConfigRequest& request) const; ModifyUserGroupsOutcome modifyUserGroups(const Model::ModifyUserGroupsRequest &request)const; void modifyUserGroupsAsync(const Model::ModifyUserGroupsRequest& request, const ModifyUserGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUserGroupsOutcomeCallable modifyUserGroupsCallable(const Model::ModifyUserGroupsRequest& request) const; ModifyUserPasswordsOutcome modifyUserPasswords(const Model::ModifyUserPasswordsRequest &request)const; void modifyUserPasswordsAsync(const Model::ModifyUserPasswordsRequest& request, const ModifyUserPasswordsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyUserPasswordsOutcomeCallable modifyUserPasswordsCallable(const Model::ModifyUserPasswordsRequest& request) const; + ModifyVisualServicePasswdOutcome modifyVisualServicePasswd(const Model::ModifyVisualServicePasswdRequest &request)const; + void modifyVisualServicePasswdAsync(const Model::ModifyVisualServicePasswdRequest& request, const ModifyVisualServicePasswdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVisualServicePasswdOutcomeCallable modifyVisualServicePasswdCallable(const Model::ModifyVisualServicePasswdRequest& request) const; + MountNFSOutcome mountNFS(const Model::MountNFSRequest &request)const; + void mountNFSAsync(const Model::MountNFSRequest& request, const MountNFSAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + MountNFSOutcomeCallable mountNFSCallable(const Model::MountNFSRequest& request) const; + PullImageOutcome pullImage(const Model::PullImageRequest &request)const; + void pullImageAsync(const Model::PullImageRequest& request, const PullImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PullImageOutcomeCallable pullImageCallable(const Model::PullImageRequest& request) const; + QueryServicePackAndPriceOutcome queryServicePackAndPrice(const Model::QueryServicePackAndPriceRequest &request)const; + void queryServicePackAndPriceAsync(const Model::QueryServicePackAndPriceRequest& request, const QueryServicePackAndPriceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryServicePackAndPriceOutcomeCallable queryServicePackAndPriceCallable(const Model::QueryServicePackAndPriceRequest& request) const; + RecoverClusterOutcome recoverCluster(const Model::RecoverClusterRequest &request)const; + void recoverClusterAsync(const Model::RecoverClusterRequest& request, const RecoverClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RecoverClusterOutcomeCallable recoverClusterCallable(const Model::RecoverClusterRequest& request) const; RerunJobsOutcome rerunJobs(const Model::RerunJobsRequest &request)const; void rerunJobsAsync(const Model::RerunJobsRequest& request, const RerunJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RerunJobsOutcomeCallable rerunJobsCallable(const Model::RerunJobsRequest& request) const; ResetNodesOutcome resetNodes(const Model::ResetNodesRequest &request)const; void resetNodesAsync(const Model::ResetNodesRequest& request, const ResetNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ResetNodesOutcomeCallable resetNodesCallable(const Model::ResetNodesRequest& request) const; + RunCloudMetricProfilingOutcome runCloudMetricProfiling(const Model::RunCloudMetricProfilingRequest &request)const; + void runCloudMetricProfilingAsync(const Model::RunCloudMetricProfilingRequest& request, const RunCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RunCloudMetricProfilingOutcomeCallable runCloudMetricProfilingCallable(const Model::RunCloudMetricProfilingRequest& request) const; SetAutoScaleConfigOutcome setAutoScaleConfig(const Model::SetAutoScaleConfigRequest &request)const; void setAutoScaleConfigAsync(const Model::SetAutoScaleConfigRequest& request, const SetAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetAutoScaleConfigOutcomeCallable setAutoScaleConfigCallable(const Model::SetAutoScaleConfigRequest& request) const; - SetJobUserOutcome setJobUser(const Model::SetJobUserRequest &request)const; - void setJobUserAsync(const Model::SetJobUserRequest& request, const SetJobUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetJobUserOutcomeCallable setJobUserCallable(const Model::SetJobUserRequest& request) const; + SetGWSClusterPolicyOutcome setGWSClusterPolicy(const Model::SetGWSClusterPolicyRequest &request)const; + void setGWSClusterPolicyAsync(const Model::SetGWSClusterPolicyRequest& request, const SetGWSClusterPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGWSClusterPolicyOutcomeCallable setGWSClusterPolicyCallable(const Model::SetGWSClusterPolicyRequest& request) const; + SetGWSInstanceNameOutcome setGWSInstanceName(const Model::SetGWSInstanceNameRequest &request)const; + void setGWSInstanceNameAsync(const Model::SetGWSInstanceNameRequest& request, const SetGWSInstanceNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGWSInstanceNameOutcomeCallable setGWSInstanceNameCallable(const Model::SetGWSInstanceNameRequest& request) const; + SetGWSInstanceUserOutcome setGWSInstanceUser(const Model::SetGWSInstanceUserRequest &request)const; + void setGWSInstanceUserAsync(const Model::SetGWSInstanceUserRequest& request, const SetGWSInstanceUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetGWSInstanceUserOutcomeCallable setGWSInstanceUserCallable(const Model::SetGWSInstanceUserRequest& request) const; + SetPostScriptsOutcome setPostScripts(const Model::SetPostScriptsRequest &request)const; + void setPostScriptsAsync(const Model::SetPostScriptsRequest& request, const SetPostScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetPostScriptsOutcomeCallable setPostScriptsCallable(const Model::SetPostScriptsRequest& request) const; + SetQueueOutcome setQueue(const Model::SetQueueRequest &request)const; + void setQueueAsync(const Model::SetQueueRequest& request, const SetQueueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetQueueOutcomeCallable setQueueCallable(const Model::SetQueueRequest& request) const; + SetSchedulerInfoOutcome setSchedulerInfo(const Model::SetSchedulerInfoRequest &request)const; + void setSchedulerInfoAsync(const Model::SetSchedulerInfoRequest& request, const SetSchedulerInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetSchedulerInfoOutcomeCallable setSchedulerInfoCallable(const Model::SetSchedulerInfoRequest& request) const; + StartClusterOutcome startCluster(const Model::StartClusterRequest &request)const; + void startClusterAsync(const Model::StartClusterRequest& request, const StartClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartClusterOutcomeCallable startClusterCallable(const Model::StartClusterRequest& request) const; + StartGWSInstanceOutcome startGWSInstance(const Model::StartGWSInstanceRequest &request)const; + void startGWSInstanceAsync(const Model::StartGWSInstanceRequest& request, const StartGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartGWSInstanceOutcomeCallable startGWSInstanceCallable(const Model::StartGWSInstanceRequest& request) const; + StartNodesOutcome startNodes(const Model::StartNodesRequest &request)const; + void startNodesAsync(const Model::StartNodesRequest& request, const StartNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartNodesOutcomeCallable startNodesCallable(const Model::StartNodesRequest& request) const; + StartVisualServiceOutcome startVisualService(const Model::StartVisualServiceRequest &request)const; + void startVisualServiceAsync(const Model::StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartVisualServiceOutcomeCallable startVisualServiceCallable(const Model::StartVisualServiceRequest& request) const; + StopClusterOutcome stopCluster(const Model::StopClusterRequest &request)const; + void stopClusterAsync(const Model::StopClusterRequest& request, const StopClusterAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopClusterOutcomeCallable stopClusterCallable(const Model::StopClusterRequest& request) const; + StopGWSInstanceOutcome stopGWSInstance(const Model::StopGWSInstanceRequest &request)const; + void stopGWSInstanceAsync(const Model::StopGWSInstanceRequest& request, const StopGWSInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopGWSInstanceOutcomeCallable stopGWSInstanceCallable(const Model::StopGWSInstanceRequest& request) const; StopJobsOutcome stopJobs(const Model::StopJobsRequest &request)const; void stopJobsAsync(const Model::StopJobsRequest& request, const StopJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StopJobsOutcomeCallable stopJobsCallable(const Model::StopJobsRequest& request) const; + StopNodesOutcome stopNodes(const Model::StopNodesRequest &request)const; + void stopNodesAsync(const Model::StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopNodesOutcomeCallable stopNodesCallable(const Model::StopNodesRequest& request) const; + StopVisualServiceOutcome stopVisualService(const Model::StopVisualServiceRequest &request)const; + void stopVisualServiceAsync(const Model::StopVisualServiceRequest& request, const StopVisualServiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopVisualServiceOutcomeCallable stopVisualServiceCallable(const Model::StopVisualServiceRequest& request) const; SubmitJobOutcome submitJob(const Model::SubmitJobRequest &request)const; void submitJobAsync(const Model::SubmitJobRequest& request, const SubmitJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitJobOutcomeCallable submitJobCallable(const Model::SubmitJobRequest& request) const; + SummaryImagesOutcome summaryImages(const Model::SummaryImagesRequest &request)const; + void summaryImagesAsync(const Model::SummaryImagesRequest& request, const SummaryImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SummaryImagesOutcomeCallable summaryImagesCallable(const Model::SummaryImagesRequest& request) const; + SummaryImagesInfoOutcome summaryImagesInfo(const Model::SummaryImagesInfoRequest &request)const; + void summaryImagesInfoAsync(const Model::SummaryImagesInfoRequest& request, const SummaryImagesInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SummaryImagesInfoOutcomeCallable summaryImagesInfoCallable(const Model::SummaryImagesInfoRequest& request) const; + SyncUsersOutcome syncUsers(const Model::SyncUsersRequest &request)const; + void syncUsersAsync(const Model::SyncUsersRequest& request, const SyncUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SyncUsersOutcomeCallable syncUsersCallable(const Model::SyncUsersRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; + UnTagResourcesOutcome unTagResources(const Model::UnTagResourcesRequest &request)const; + void unTagResourcesAsync(const Model::UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnTagResourcesOutcomeCallable unTagResourcesCallable(const Model::UnTagResourcesRequest& request) const; + UninstallSoftwareOutcome uninstallSoftware(const Model::UninstallSoftwareRequest &request)const; + void uninstallSoftwareAsync(const Model::UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UninstallSoftwareOutcomeCallable uninstallSoftwareCallable(const Model::UninstallSoftwareRequest& request) const; + UpdateClusterVolumesOutcome updateClusterVolumes(const Model::UpdateClusterVolumesRequest &request)const; + void updateClusterVolumesAsync(const Model::UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateClusterVolumesOutcomeCallable updateClusterVolumesCallable(const Model::UpdateClusterVolumesRequest& request) const; + UpdateQueueConfigOutcome updateQueueConfig(const Model::UpdateQueueConfigRequest &request)const; + void updateQueueConfigAsync(const Model::UpdateQueueConfigRequest& request, const UpdateQueueConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateQueueConfigOutcomeCallable updateQueueConfigCallable(const Model::UpdateQueueConfigRequest& request) const; UpgradeClientOutcome upgradeClient(const Model::UpgradeClientRequest &request)const; void upgradeClientAsync(const Model::UpgradeClientRequest& request, const UpgradeClientAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpgradeClientOutcomeCallable upgradeClientCallable(const Model::UpgradeClientRequest& request) const; diff --git a/ehpc/include/alibabacloud/ehpc/model/AddContainerAppRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddContainerAppRequest.h new file mode 100644 index 000000000..c5647927d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddContainerAppRequest.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_EHPC_MODEL_ADDCONTAINERAPPREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddContainerAppRequest : public RpcServiceRequest { +public: + AddContainerAppRequest(); + ~AddContainerAppRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRepository() const; + void setRepository(const std::string &repository); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getName() const; + void setName(const std::string &name); + std::string getImageTag() const; + void setImageTag(const std::string &imageTag); + +private: + std::string description_; + std::string repository_; + std::string accessKeyId_; + std::string containerType_; + std::string name_; + std::string imageTag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.h b/ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.h new file mode 100644 index 000000000..43b95a1d3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddContainerAppResult.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_EHPC_MODEL_ADDCONTAINERAPPRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT AddContainerAppResult : public ServiceResult + { + public: + + + AddContainerAppResult(); + explicit AddContainerAppResult(const std::string &payload); + ~AddContainerAppResult(); + std::vector getContainerId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector containerId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDCONTAINERAPPRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesRequest.h new file mode 100644 index 000000000..1a2cca23b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddExistedNodesRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + AddExistedNodesRequest(); + ~AddExistedNodesRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::vector getInstance() const; + void setInstance(const std::vector &instance); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getJobQueue() const; + void setJobQueue(const std::string &jobQueue); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + +private: + std::string imageId_; + std::vector instance_; + std::string clusterId_; + std::string jobQueue_; + std::string accessKeyId_; + std::string imageOwnerAlias_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.h new file mode 100644 index 000000000..588154eae --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddExistedNodesResult.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_EHPC_MODEL_ADDEXISTEDNODESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT AddExistedNodesResult : public ServiceResult + { + public: + + + AddExistedNodesResult(); + explicit AddExistedNodesResult(const std::string &payload); + ~AddExistedNodesResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDEXISTEDNODESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesRequest.h new file mode 100644 index 000000000..03f41393e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesRequest.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_EHPC_MODEL_ADDLOCALNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddLocalNodesRequest : public RpcServiceRequest { +public: + AddLocalNodesRequest(); + ~AddLocalNodesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNodes() const; + void setNodes(const std::string &nodes); + std::string getQueue() const; + void setQueue(const std::string &queue); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string nodes_; + std::string queue_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.h new file mode 100644 index 000000000..b307d845d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddLocalNodesResult.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_EHPC_MODEL_ADDLOCALNODESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT AddLocalNodesResult : public ServiceResult + { + public: + + + AddLocalNodesResult(); + explicit AddLocalNodesResult(const std::string &payload); + ~AddLocalNodesResult(); + std::vector getInstanceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDLOCALNODESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h index f47063902..9af84f182 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesRequest.h @@ -28,31 +28,111 @@ namespace EHPC { namespace Model { class ALIBABACLOUD_EHPC_EXPORT AddNodesRequest : public RpcServiceRequest { public: + struct DataDisks { + bool dataDiskDeleteWithInstance; + bool dataDiskEncrypted; + std::string dataDiskKMSKeyId; + int dataDiskSize; + std::string dataDiskCategory; + std::string dataDiskPerformanceLevel; + }; AddNodesRequest(); ~AddNodesRequest(); std::string getImageId() const; void setImageId(const std::string &imageId); + std::string getSystemDiskLevel() const; + void setSystemDiskLevel(const std::string &systemDiskLevel); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + bool getAllocatePublicAddress() const; + void setAllocatePublicAddress(bool allocatePublicAddress); + int getInternetMaxBandWidthOut() const; + void setInternetMaxBandWidthOut(int internetMaxBandWidthOut); + std::string getJobQueue() const; + void setJobQueue(const std::string &jobQueue); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getSystemDiskType() const; + void setSystemDiskType(const std::string &systemDiskType); + std::vector getDataDisks() const; + void setDataDisks(const std::vector &dataDisks); + int getMinCount() const; + void setMinCount(int minCount); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getHostNamePrefix() const; + void setHostNamePrefix(const std::string &hostNamePrefix); + std::string getComputeSpotPriceLimit() const; + void setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); int getCount() const; void setCount(int count); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getComputeSpotStrategy() const; void setComputeSpotStrategy(const std::string &computeSpotStrategy); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getImageOwnerAlias() const; - void setImageOwnerAlias(const std::string &imageOwnerAlias); - std::string getComputeSpotPriceLimit() const; - void setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit); + std::string getHostNameSuffix() const; + void setHostNameSuffix(const std::string &hostNameSuffix); + bool getSync() const; + void setSync(bool sync); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + bool getComputeEnableHt() const; + void setComputeEnableHt(bool computeEnableHt); + std::string getAutoRenew() const; + void setAutoRenew(const std::string &autoRenew); + std::string getEcsChargeType() const; + void setEcsChargeType(const std::string &ecsChargeType); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getCreateMode() const; + void setCreateMode(const std::string &createMode); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + int getInternetMaxBandWidthIn() const; + void setInternetMaxBandWidthIn(int internetMaxBandWidthIn); private: std::string imageId_; + std::string systemDiskLevel_; + std::string clientToken_; + bool allocatePublicAddress_; + int internetMaxBandWidthOut_; + std::string jobQueue_; + std::string accessKeyId_; + std::string imageOwnerAlias_; + std::string systemDiskType_; + std::vector dataDisks_; + int minCount_; + int systemDiskSize_; + std::string instanceType_; + std::string hostNamePrefix_; + std::string computeSpotPriceLimit_; + int autoRenewPeriod_; + int period_; int count_; std::string clusterId_; std::string computeSpotStrategy_; - std::string accessKeyId_; - std::string imageOwnerAlias_; - std::string computeSpotPriceLimit_; + std::string hostNameSuffix_; + bool sync_; + std::string vSwitchId_; + std::string periodUnit_; + bool computeEnableHt_; + std::string autoRenew_; + std::string ecsChargeType_; + std::string internetChargeType_; + std::string createMode_; + std::string zoneId_; + int internetMaxBandWidthIn_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h index dee5294d9..431c5b9fe 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddNodesResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud AddNodesResult(); explicit AddNodesResult(const std::string &payload); ~AddNodesResult(); + std::string getTaskId()const; std::vector getInstanceIds()const; protected: void parse(const std::string &payload); private: + std::string taskId_; std::vector instanceIds_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.h new file mode 100644 index 000000000..31a8d9b3d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddQueueRequest.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_EHPC_MODEL_ADDQUEUEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddQueueRequest : public RpcServiceRequest { +public: + AddQueueRequest(); + ~AddQueueRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string queueName_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDQUEUEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetJobUserResult.h b/ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h similarity index 73% rename from ehpc/include/alibabacloud/ehpc/model/SetJobUserResult.h rename to ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h index 3a0ea4da2..412975054 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetJobUserResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddQueueResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_ +#ifndef ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_EHPC_EXPORT SetJobUserResult : public ServiceResult + class ALIBABACLOUD_EHPC_EXPORT AddQueueResult : public ServiceResult { public: - SetJobUserResult(); - explicit SetJobUserResult(const std::string &payload); - ~SetJobUserResult(); + AddQueueResult(); + explicit AddQueueResult(const std::string &payload); + ~AddQueueResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_EHPC_MODEL_SETJOBUSERRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDQUEUERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.h new file mode 100644 index 000000000..e34c1fff9 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupRequest.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_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT AddSecurityGroupRequest : public RpcServiceRequest { +public: + AddSecurityGroupRequest(); + ~AddSecurityGroupRequest(); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clientToken_; + std::string securityGroupId_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h new file mode 100644 index 000000000..760a4af7e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/AddSecurityGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT AddSecurityGroupResult : public ServiceResult + { + public: + + + AddSecurityGroupResult(); + explicit AddSecurityGroupResult(const std::string &payload); + ~AddSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_ADDSECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/AddUsersRequest.h b/ehpc/include/alibabacloud/ehpc/model/AddUsersRequest.h index 2aa281b93..666dc07d1 100644 --- a/ehpc/include/alibabacloud/ehpc/model/AddUsersRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/AddUsersRequest.h @@ -39,15 +39,12 @@ public: void setClusterId(const std::string &clusterId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); - bool getReleaseInstance() const; - void setReleaseInstance(bool releaseInstance); std::vector getUser() const; void setUser(const std::vector &user); private: std::string clusterId_; std::string accessKeyId_; - bool releaseInstance_; std::vector user_; }; } // namespace Model diff --git a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h new file mode 100644 index 000000000..70e2a521c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesRequest.h @@ -0,0 +1,136 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_APPLYNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ApplyNodesRequest : public RpcServiceRequest { +public: + struct ZoneInfos { + std::string vSwitchId; + std::string zoneId; + }; + struct Tag { + std::string value; + std::string key; + }; + struct InstanceTypeModel { + float maxPrice; + std::string targetImageId; + std::string instanceType; + }; + ApplyNodesRequest(); + ~ApplyNodesRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + int getMemory() const; + void setMemory(int memory); + std::string getSystemDiskLevel() const; + void setSystemDiskLevel(const std::string &systemDiskLevel); + bool getAllocatePublicAddress() const; + void setAllocatePublicAddress(bool allocatePublicAddress); + int getInternetMaxBandWidthOut() const; + void setInternetMaxBandWidthOut(int internetMaxBandWidthOut); + std::string getResourceAmountType() const; + void setResourceAmountType(const std::string &resourceAmountType); + bool getStrictResourceProvision() const; + void setStrictResourceProvision(bool strictResourceProvision); + std::string getJobQueue() const; + void setJobQueue(const std::string &jobQueue); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSystemDiskType() const; + void setSystemDiskType(const std::string &systemDiskType); + int getCores() const; + void setCores(int cores); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::vector getZoneInfos() const; + void setZoneInfos(const std::vector &zoneInfos); + std::string getHostNamePrefix() const; + void setHostNamePrefix(const std::string &hostNamePrefix); + std::vector getTag() const; + void setTag(const std::vector &tag); + float getComputeSpotPriceLimit() const; + void setComputeSpotPriceLimit(float computeSpotPriceLimit); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getComputeSpotStrategy() const; + void setComputeSpotStrategy(const std::string &computeSpotStrategy); + std::string getHostNameSuffix() const; + void setHostNameSuffix(const std::string &hostNameSuffix); + std::string getPriorityStrategy() const; + void setPriorityStrategy(const std::string &priorityStrategy); + std::string getInstanceFamilyLevel() const; + void setInstanceFamilyLevel(const std::string &instanceFamilyLevel); + int getRound() const; + void setRound(int round); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + int getInterval() const; + void setInterval(int interval); + std::vector getInstanceTypeModel() const; + void setInstanceTypeModel(const std::vector &instanceTypeModel); + int getInternetMaxBandWidthIn() const; + void setInternetMaxBandWidthIn(int internetMaxBandWidthIn); + int getTargetCapacity() const; + void setTargetCapacity(int targetCapacity); + bool getStrictSatisfiedTargetCapacity() const; + void setStrictSatisfiedTargetCapacity(bool strictSatisfiedTargetCapacity); + +private: + std::string imageId_; + int memory_; + std::string systemDiskLevel_; + bool allocatePublicAddress_; + int internetMaxBandWidthOut_; + std::string resourceAmountType_; + bool strictResourceProvision_; + std::string jobQueue_; + std::string accessKeyId_; + std::string systemDiskType_; + int cores_; + int systemDiskSize_; + std::vector zoneInfos_; + std::string hostNamePrefix_; + std::vector tag_; + float computeSpotPriceLimit_; + std::string clusterId_; + std::string computeSpotStrategy_; + std::string hostNameSuffix_; + std::string priorityStrategy_; + std::string instanceFamilyLevel_; + int round_; + std::string internetChargeType_; + int interval_; + std::vector instanceTypeModel_; + int internetMaxBandWidthIn_; + int targetCapacity_; + bool strictSatisfiedTargetCapacity_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.h new file mode 100644 index 000000000..58015f656 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ApplyNodesResult.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_EHPC_MODEL_APPLYNODESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ApplyNodesResult : public ServiceResult + { + public: + + + ApplyNodesResult(); + explicit ApplyNodesResult(const std::string &payload); + ~ApplyNodesResult(); + std::string getTaskId()const; + int getSatisfiedAmount()const; + std::vector getInstanceIds()const; + std::string getDetail()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + int satisfiedAmount_; + std::vector instanceIds_; + std::string detail_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_APPLYNODESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h index d5967e5b8..75ffdee73 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterRequest.h @@ -28,17 +28,104 @@ namespace EHPC { namespace Model { class ALIBABACLOUD_EHPC_EXPORT CreateClusterRequest : public RpcServiceRequest { public: + struct AdditionalVolumes { + std::string volumeType; + std::string volumeMountOption; + std::string volumeProtocol; + std::string localDirectory; + std::string remoteDirectory; + struct Roles { + std::string name; + }; + std::vector roles; + std::string volumeId; + std::string volumeMountpoint; + std::string location; + std::string jobQueue; + }; + struct Tag { + std::string value; + std::string key; + }; + struct PostInstallScript { + std::string args; + std::string url; + }; struct Application { std::string tag; }; CreateClusterRequest(); ~CreateClusterRequest(); - std::string getSccClusterId() const; - void setSccClusterId(const std::string &sccClusterId); - std::string getImageId() const; - void setImageId(const std::string &imageId); + std::vector getAdditionalVolumes() const; + void setAdditionalVolumes(const std::vector &additionalVolumes); std::string getEcsOrderManagerInstanceType() const; void setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getDeployMode() const; + void setDeployMode(const std::string &deployMode); + int getEcsOrderManagerCount() const; + void setEcsOrderManagerCount(int ecsOrderManagerCount); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPassword() const; + void setPassword(const std::string &password); + int getEcsOrderLoginCount() const; + void setEcsOrderLoginCount(int ecsOrderLoginCount); + bool getWithoutElasticIp() const; + void setWithoutElasticIp(bool withoutElasticIp); + std::string getRemoteVisEnable() const; + void setRemoteVisEnable(const std::string &remoteVisEnable); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getComputeSpotPriceLimit() const; + void setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + int getPeriod() const; + void setPeriod(int period); + std::string getRemoteDirectory() const; + void setRemoteDirectory(const std::string &remoteDirectory); + int getEcsOrderComputeCount() const; + void setEcsOrderComputeCount(int ecsOrderComputeCount); + std::string getComputeSpotStrategy() const; + void setComputeSpotStrategy(const std::string &computeSpotStrategy); + std::vector getPostInstallScript() const; + void setPostInstallScript(const std::vector &postInstallScript); + std::vector getRamNodeTypes() const; + void setRamNodeTypes(const std::vector &ramNodeTypes); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + bool getComputeEnableHt() const; + void setComputeEnableHt(bool computeEnableHt); + std::string getAutoRenew() const; + void setAutoRenew(const std::string &autoRenew); + std::string getDomain() const; + void setDomain(const std::string &domain); + std::string getName() const; + void setName(const std::string &name); + std::string getVolumeId() const; + void setVolumeId(const std::string &volumeId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getSccClusterId() const; + void setSccClusterId(const std::string &sccClusterId); + std::string getVolumeMountOption() const; + void setVolumeMountOption(const std::string &volumeMountOption); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getSystemDiskLevel() const; + void setSystemDiskLevel(const std::string &systemDiskLevel); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); std::string getEhpcVersion() const; void setEhpcVersion(const std::string &ehpcVersion); std::string getAccountType() const; @@ -47,93 +134,110 @@ public: void setSecurityGroupId(const std::string &securityGroupId); std::string getDescription() const; void setDescription(const std::string &description); - std::string getKeyPairName() const; - void setKeyPairName(const std::string &keyPairName); - std::string getSecurityGroupName() const; - void setSecurityGroupName(const std::string &securityGroupName); std::string getEcsOrderComputeInstanceType() const; void setEcsOrderComputeInstanceType(const std::string &ecsOrderComputeInstanceType); + std::string getJobQueue() const; + void setJobQueue(const std::string &jobQueue); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); - std::string getImageOwnerAlias() const; - void setImageOwnerAlias(const std::string &imageOwnerAlias); std::string getVolumeType() const; void setVolumeType(const std::string &volumeType); - int getEcsOrderManagerCount() const; - void setEcsOrderManagerCount(int ecsOrderManagerCount); - std::string getPassword() const; - void setPassword(const std::string &password); - int getEcsOrderLoginCount() const; - void setEcsOrderLoginCount(int ecsOrderLoginCount); - std::string getComputeSpotPriceLimit() const; - void setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit); + std::string getSystemDiskType() const; + void setSystemDiskType(const std::string &systemDiskType); std::string getVolumeProtocol() const; void setVolumeProtocol(const std::string &volumeProtocol); + std::string getClientVersion() const; + void setClientVersion(const std::string &clientVersion); std::string getOsTag() const; void setOsTag(const std::string &osTag); - std::string getRemoteDirectory() const; - void setRemoteDirectory(const std::string &remoteDirectory); - int getEcsOrderComputeCount() const; - void setEcsOrderComputeCount(int ecsOrderComputeCount); - std::string getComputeSpotStrategy() const; - void setComputeSpotStrategy(const std::string &computeSpotStrategy); - std::string getVSwitchId() const; - void setVSwitchId(const std::string &vSwitchId); + std::string getClusterVersion() const; + void setClusterVersion(const std::string &clusterVersion); + bool getIsComputeEss() const; + void setIsComputeEss(bool isComputeEss); + std::string getRamRoleName() const; + void setRamRoleName(const std::string &ramRoleName); + std::string getPlugin() const; + void setPlugin(const std::string &plugin); std::vector getApplication() const; void setApplication(const std::vector &application); std::string getEcsChargeType() const; void setEcsChargeType(const std::string &ecsChargeType); + std::string getInputFileUrl() const; + void setInputFileUrl(const std::string &inputFileUrl); std::string getVpcId() const; void setVpcId(const std::string &vpcId); bool getHaEnable() const; void setHaEnable(bool haEnable); - std::string getName() const; - void setName(const std::string &name); + bool getWithoutAgent() const; + void setWithoutAgent(bool withoutAgent); std::string getSchedulerType() const; void setSchedulerType(const std::string &schedulerType); - std::string getVolumeId() const; - void setVolumeId(const std::string &volumeId); std::string getVolumeMountpoint() const; void setVolumeMountpoint(const std::string &volumeMountpoint); std::string getEcsOrderLoginInstanceType() const; void setEcsOrderLoginInstanceType(const std::string &ecsOrderLoginInstanceType); - std::string getZoneId() const; - void setZoneId(const std::string &zoneId); private: - std::string sccClusterId_; - std::string imageId_; + std::vector additionalVolumes_; std::string ecsOrderManagerInstanceType_; + std::string keyPairName_; + std::string securityGroupName_; + std::string imageOwnerAlias_; + std::string deployMode_; + int ecsOrderManagerCount_; + std::string resourceGroupId_; + std::string password_; + int ecsOrderLoginCount_; + bool withoutElasticIp_; + std::string remoteVisEnable_; + int systemDiskSize_; + std::vector tag_; + std::string computeSpotPriceLimit_; + int autoRenewPeriod_; + int period_; + std::string remoteDirectory_; + int ecsOrderComputeCount_; + std::string computeSpotStrategy_; + std::vector postInstallScript_; + std::vector ramNodeTypes_; + std::string vSwitchId_; + std::string periodUnit_; + bool computeEnableHt_; + std::string autoRenew_; + std::string domain_; + std::string name_; + std::string volumeId_; + std::string zoneId_; + std::string sccClusterId_; + std::string volumeMountOption_; + std::string imageId_; + std::string systemDiskLevel_; + std::string clientToken_; std::string ehpcVersion_; std::string accountType_; std::string securityGroupId_; std::string description_; - std::string keyPairName_; - std::string securityGroupName_; std::string ecsOrderComputeInstanceType_; + std::string jobQueue_; std::string accessKeyId_; - std::string imageOwnerAlias_; std::string volumeType_; - int ecsOrderManagerCount_; - std::string password_; - int ecsOrderLoginCount_; - std::string computeSpotPriceLimit_; + std::string systemDiskType_; std::string volumeProtocol_; + std::string clientVersion_; std::string osTag_; - std::string remoteDirectory_; - int ecsOrderComputeCount_; - std::string computeSpotStrategy_; - std::string vSwitchId_; + std::string clusterVersion_; + bool isComputeEss_; + std::string ramRoleName_; + std::string plugin_; std::vector application_; std::string ecsChargeType_; + std::string inputFileUrl_; std::string vpcId_; bool haEnable_; - std::string name_; + bool withoutAgent_; std::string schedulerType_; - std::string volumeId_; std::string volumeMountpoint_; std::string ecsOrderLoginInstanceType_; - std::string zoneId_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h index c2938017b..c7f460fe5 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateClusterResult.h @@ -37,11 +37,13 @@ namespace AlibabaCloud CreateClusterResult(); explicit CreateClusterResult(const std::string &payload); ~CreateClusterResult(); + std::string getTaskId()const; std::string getClusterId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; std::string clusterId_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h new file mode 100644 index 000000000..3ad96e4c0 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateGWSClusterRequest : public RpcServiceRequest { +public: + CreateGWSClusterRequest(); + ~CreateGWSClusterRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getClusterType() const; + void setClusterType(const std::string &clusterType); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string accessKeyId_; + std::string clusterType_; + std::string vSwitchId_; + std::string vpcId_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.h new file mode 100644 index 000000000..e3d439201 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSClusterResult.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_EHPC_MODEL_CREATEGWSCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSClusterResult : public ServiceResult + { + public: + + + CreateGWSClusterResult(); + explicit CreateGWSClusterResult(const std::string &payload); + ~CreateGWSClusterResult(); + std::string getClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.h new file mode 100644 index 000000000..4b5d3970d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageRequest.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_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateGWSImageRequest : public RpcServiceRequest { +public: + CreateGWSImageRequest(); + ~CreateGWSImageRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string accessKeyId_; + std::string instanceId_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.h new file mode 100644 index 000000000..ce77bb535 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSImageResult.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_EHPC_MODEL_CREATEGWSIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSImageResult : public ServiceResult + { + public: + + + CreateGWSImageResult(); + explicit CreateGWSImageResult(const std::string &payload); + ~CreateGWSImageResult(); + std::string getImageId()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h new file mode 100644 index 000000000..56a37e5a7 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceRequest.h @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateGWSInstanceRequest : public RpcServiceRequest { +public: + CreateGWSInstanceRequest(); + ~CreateGWSInstanceRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + bool getAllocatePublicAddress() const; + void setAllocatePublicAddress(bool allocatePublicAddress); + std::string getAppList() const; + void setAppList(const std::string &appList); + int getInternetMaxBandwidthOut() const; + void setInternetMaxBandwidthOut(int internetMaxBandwidthOut); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSystemDiskCategory() const; + void setSystemDiskCategory(const std::string &systemDiskCategory); + int getSystemDiskSize() const; + void setSystemDiskSize(int systemDiskSize); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getPeriod() const; + void setPeriod(const std::string &period); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getWorkMode() const; + void setWorkMode(const std::string &workMode); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getPeriodUnit() const; + void setPeriodUnit(const std::string &periodUnit); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getName() const; + void setName(const std::string &name); + int getInternetMaxBandwidthIn() const; + void setInternetMaxBandwidthIn(int internetMaxBandwidthIn); + +private: + std::string imageId_; + bool allocatePublicAddress_; + std::string appList_; + int internetMaxBandwidthOut_; + std::string accessKeyId_; + std::string systemDiskCategory_; + int systemDiskSize_; + std::string instanceType_; + std::string instanceChargeType_; + std::string period_; + std::string clusterId_; + std::string workMode_; + std::string vSwitchId_; + std::string periodUnit_; + bool autoRenew_; + std::string internetChargeType_; + std::string name_; + int internetMaxBandwidthIn_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.h new file mode 100644 index 000000000..4998e54b1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateGWSInstanceResult.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_EHPC_MODEL_CREATEGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateGWSInstanceResult : public ServiceResult + { + public: + + + CreateGWSInstanceResult(); + explicit CreateGWSInstanceResult(const std::string &payload); + ~CreateGWSInstanceResult(); + std::string getInstanceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h new file mode 100644 index 000000000..321fd84dd --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterRequest.h @@ -0,0 +1,168 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_CREATEHYBRIDCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateHybridClusterRequest : public RpcServiceRequest { +public: + struct PostInstallScript { + std::string args; + std::string url; + }; + struct Nodes { + std::string ipAddress; + std::string hostName; + std::string role; + std::string schedulerType; + std::string accountType; + std::string dir; + }; + struct Application { + std::string tag; + }; + CreateHybridClusterRequest(); + ~CreateHybridClusterRequest(); + std::string getEcsOrderManagerInstanceType() const; + void setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType); + std::string getKeyPairName() const; + void setKeyPairName(const std::string &keyPairName); + bool getMultiOs() const; + void setMultiOs(bool multiOs); + std::string getSecurityGroupName() const; + void setSecurityGroupName(const std::string &securityGroupName); + std::string getOnPremiseVolumeRemotePath() const; + void setOnPremiseVolumeRemotePath(const std::string &onPremiseVolumeRemotePath); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getPassword() const; + void setPassword(const std::string &password); + float getComputeSpotPriceLimit() const; + void setComputeSpotPriceLimit(float computeSpotPriceLimit); + std::string getOnPremiseVolumeLocalPath() const; + void setOnPremiseVolumeLocalPath(const std::string &onPremiseVolumeLocalPath); + std::string getRemoteDirectory() const; + void setRemoteDirectory(const std::string &remoteDirectory); + std::string getComputeSpotStrategy() const; + void setComputeSpotStrategy(const std::string &computeSpotStrategy); + std::vector getPostInstallScript() const; + void setPostInstallScript(const std::vector &postInstallScript); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getDomain() const; + void setDomain(const std::string &domain); + std::string getName() const; + void setName(const std::string &name); + std::string getVolumeId() const; + void setVolumeId(const std::string &volumeId); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getEhpcVersion() const; + void setEhpcVersion(const std::string &ehpcVersion); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getEcsOrderComputeInstanceType() const; + void setEcsOrderComputeInstanceType(const std::string &ecsOrderComputeInstanceType); + std::string getJobQueue() const; + void setJobQueue(const std::string &jobQueue); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getVolumeType() const; + void setVolumeType(const std::string &volumeType); + std::string getOnPremiseVolumeMountPoint() const; + void setOnPremiseVolumeMountPoint(const std::string &onPremiseVolumeMountPoint); + std::string getOnPremiseVolumeProtocol() const; + void setOnPremiseVolumeProtocol(const std::string &onPremiseVolumeProtocol); + std::string getVolumeProtocol() const; + void setVolumeProtocol(const std::string &volumeProtocol); + std::string getClientVersion() const; + void setClientVersion(const std::string &clientVersion); + std::string getOsTag() const; + void setOsTag(const std::string &osTag); + std::vector getNodes() const; + void setNodes(const std::vector &nodes); + std::vector getApplication() const; + void setApplication(const std::vector &application); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getVolumeMountpoint() const; + void setVolumeMountpoint(const std::string &volumeMountpoint); + bool getSchedulerPreInstall() const; + void setSchedulerPreInstall(bool schedulerPreInstall); + std::string getLocation() const; + void setLocation(const std::string &location); + +private: + std::string ecsOrderManagerInstanceType_; + std::string keyPairName_; + bool multiOs_; + std::string securityGroupName_; + std::string onPremiseVolumeRemotePath_; + std::string imageOwnerAlias_; + std::string resourceGroupId_; + std::string password_; + float computeSpotPriceLimit_; + std::string onPremiseVolumeLocalPath_; + std::string remoteDirectory_; + std::string computeSpotStrategy_; + std::vector postInstallScript_; + std::string vSwitchId_; + std::string domain_; + std::string name_; + std::string volumeId_; + std::string zoneId_; + std::string imageId_; + std::string clientToken_; + std::string ehpcVersion_; + std::string securityGroupId_; + std::string description_; + std::string ecsOrderComputeInstanceType_; + std::string jobQueue_; + std::string accessKeyId_; + std::string volumeType_; + std::string onPremiseVolumeMountPoint_; + std::string onPremiseVolumeProtocol_; + std::string volumeProtocol_; + std::string clientVersion_; + std::string osTag_; + std::vector nodes_; + std::vector application_; + std::string vpcId_; + std::string volumeMountpoint_; + bool schedulerPreInstall_; + std::string location_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.h new file mode 100644 index 000000000..56368d814 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateHybridClusterResult.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_EHPC_MODEL_CREATEHYBRIDCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateHybridClusterResult : public ServiceResult + { + public: + + + CreateHybridClusterResult(); + explicit CreateHybridClusterResult(const std::string &payload); + ~CreateHybridClusterResult(); + std::string getTaskId()const; + std::string getClusterId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string clusterId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEHYBRIDCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateJobFileRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateJobFileRequest.h new file mode 100644 index 000000000..9b86f8b48 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateJobFileRequest.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_EHPC_MODEL_CREATEJOBFILEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT CreateJobFileRequest : public RpcServiceRequest { +public: + CreateJobFileRequest(); + ~CreateJobFileRequest(); + std::string getTargetFile() const; + void setTargetFile(const std::string &targetFile); + std::string getRunasUserPassword() const; + void setRunasUserPassword(const std::string &runasUserPassword); + std::string getRunasUser() const; + void setRunasUser(const std::string &runasUser); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getContent() const; + void setContent(const std::string &content); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string targetFile_; + std::string runasUserPassword_; + std::string runasUser_; + std::string clusterId_; + std::string content_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h b/ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h new file mode 100644 index 000000000..ca31492b4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/CreateJobFileResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_CREATEJOBFILERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT CreateJobFileResult : public ServiceResult + { + public: + + + CreateJobFileResult(); + explicit CreateJobFileResult(const std::string &payload); + ~CreateJobFileResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_CREATEJOBFILERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h b/ehpc/include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h index 2275acc22..30105c504 100644 --- a/ehpc/include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/CreateJobTemplateRequest.h @@ -32,16 +32,20 @@ public: ~CreateJobTemplateRequest(); std::string getStderrRedirectPath() const; void setStderrRedirectPath(const std::string &stderrRedirectPath); + std::string getClockTime() const; + void setClockTime(const std::string &clockTime); std::string getCommandLine() const; void setCommandLine(const std::string &commandLine); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getArrayRequest() const; void setArrayRequest(const std::string &arrayRequest); + std::string getUnzipCmd() const; + void setUnzipCmd(const std::string &unzipCmd); std::string getPackagePath() const; void setPackagePath(const std::string &packagePath); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); + std::string getMem() const; + void setMem(const std::string &mem); std::string getStdoutRedirectPath() const; void setStdoutRedirectPath(const std::string &stdoutRedirectPath); std::string getVariables() const; @@ -50,24 +54,47 @@ public: void setRunasUser(const std::string &runasUser); bool getReRunable() const; void setReRunable(bool reRunable); + int getThread() const; + void setThread(int thread); int getPriority() const; void setPriority(int priority); + int getGpu() const; + void setGpu(int gpu); + bool getWithUnzipCmd() const; + void setWithUnzipCmd(bool withUnzipCmd); + int getNode() const; + void setNode(int node); + int getTask() const; + void setTask(int task); + std::string getInputFileUrl() const; + void setInputFileUrl(const std::string &inputFileUrl); std::string getName() const; void setName(const std::string &name); + std::string getQueue() const; + void setQueue(const std::string &queue); private: std::string stderrRedirectPath_; + std::string clockTime_; std::string commandLine_; std::string accessKeyId_; std::string arrayRequest_; + std::string unzipCmd_; std::string packagePath_; - std::string regionId_; + std::string mem_; std::string stdoutRedirectPath_; std::string variables_; std::string runasUser_; bool reRunable_; + int thread_; int priority_; + int gpu_; + bool withUnzipCmd_; + int node_; + int task_; + std::string inputFileUrl_; std::string name_; + std::string queue_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h index 70d23101d..be7fe8207 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteClusterResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud DeleteClusterResult(); explicit DeleteClusterResult(const std::string &payload); ~DeleteClusterResult(); + std::string getTaskId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.h new file mode 100644 index 000000000..e9ece0072 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsRequest.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_EHPC_MODEL_DELETECONTAINERAPPSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteContainerAppsRequest : public RpcServiceRequest { +public: + struct ContainerApp { + std::string id; + }; + DeleteContainerAppsRequest(); + ~DeleteContainerAppsRequest(); + std::vector getContainerApp() const; + void setContainerApp(const std::vector &containerApp); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::vector containerApp_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h new file mode 100644 index 000000000..698457c6c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteContainerAppsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETECONTAINERAPPSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteContainerAppsResult : public ServiceResult + { + public: + + + DeleteContainerAppsResult(); + explicit DeleteContainerAppsResult(const std::string &payload); + ~DeleteContainerAppsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETECONTAINERAPPSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.h new file mode 100644 index 000000000..c6dc877aa --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterRequest.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_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteGWSClusterRequest : public RpcServiceRequest { +public: + DeleteGWSClusterRequest(); + ~DeleteGWSClusterRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h new file mode 100644 index 000000000..3b34c2dd6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSClusterResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETEGWSCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteGWSClusterResult : public ServiceResult + { + public: + + + DeleteGWSClusterResult(); + explicit DeleteGWSClusterResult(const std::string &payload); + ~DeleteGWSClusterResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.h new file mode 100644 index 000000000..d51690fc2 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceRequest.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_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteGWSInstanceRequest : public RpcServiceRequest { +public: + DeleteGWSInstanceRequest(); + ~DeleteGWSInstanceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string accessKeyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h new file mode 100644 index 000000000..4e505d7f5 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteGWSInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETEGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteGWSInstanceResult : public ServiceResult + { + public: + + + DeleteGWSInstanceResult(); + explicit DeleteGWSInstanceResult(const std::string &payload); + ~DeleteGWSInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteImageRequest.h new file mode 100644 index 000000000..ed036e002 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteImageRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteImageRequest : public RpcServiceRequest { +public: + DeleteImageRequest(); + ~DeleteImageRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRepository() const; + void setRepository(const std::string &repository); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImageTag() const; + void setImageTag(const std::string &imageTag); + +private: + std::string clusterId_; + std::string repository_; + std::string accessKeyId_; + std::string containerType_; + std::string imageTag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h new file mode 100644 index 000000000..f6fff0d92 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteImageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETEIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteImageResult : public ServiceResult + { + public: + + + DeleteImageResult(); + explicit DeleteImageResult(const std::string &payload); + ~DeleteImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h index 2507d20a6..2ccee7315 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteJobTemplatesRequest.h @@ -34,13 +34,10 @@ public: void setTemplates(const std::string &templates); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); private: std::string templates_; std::string accessKeyId_; - std::string regionId_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageRequest.h new file mode 100644 index 000000000..473c4576b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageRequest.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_EHPC_MODEL_DELETELOCALIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETELOCALIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteLocalImageRequest : public RpcServiceRequest { +public: + DeleteLocalImageRequest(); + ~DeleteLocalImageRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImageName() const; + void setImageName(const std::string &imageName); + +private: + std::string clusterId_; + std::string containerType_; + std::string imageName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETELOCALIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageResult.h new file mode 100644 index 000000000..19ca633b7 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteLocalImageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETELOCALIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETELOCALIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteLocalImageResult : public ServiceResult + { + public: + + + DeleteLocalImageResult(); + explicit DeleteLocalImageResult(const std::string &payload); + ~DeleteLocalImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETELOCALIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h index a6743edd5..182b07ecb 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesRequest.h @@ -37,6 +37,8 @@ public: void setInstance(const std::vector &instance); std::string getClusterId() const; void setClusterId(const std::string &clusterId); + bool getSync() const; + void setSync(bool sync); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); bool getReleaseInstance() const; @@ -45,6 +47,7 @@ public: private: std::vector instance_; std::string clusterId_; + bool sync_; std::string accessKeyId_; bool releaseInstance_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h index ac55d32a1..dfe385c74 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteNodesResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud DeleteNodesResult(); explicit DeleteNodesResult(const std::string &payload); ~DeleteNodesResult(); + std::string getTaskId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteQueueRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteQueueRequest.h new file mode 100644 index 000000000..81f70e210 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteQueueRequest.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_EHPC_MODEL_DELETEQUEUEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteQueueRequest : public RpcServiceRequest { +public: + DeleteQueueRequest(); + ~DeleteQueueRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string queueName_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEQUEUEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h new file mode 100644 index 000000000..61dd9f664 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteQueueResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETEQUEUERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETEQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteQueueResult : public ServiceResult + { + public: + + + DeleteQueueResult(); + explicit DeleteQueueResult(const std::string &payload); + ~DeleteQueueResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETEQUEUERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.h new file mode 100644 index 000000000..578aa0548 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupRequest.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_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DeleteSecurityGroupRequest : public RpcServiceRequest { +public: + DeleteSecurityGroupRequest(); + ~DeleteSecurityGroupRequest(); + std::string getSecurityGroupId() const; + void setSecurityGroupId(const std::string &securityGroupId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string securityGroupId_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h new file mode 100644 index 000000000..dcf257177 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DeleteSecurityGroupResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DeleteSecurityGroupResult : public ServiceResult + { + public: + + + DeleteSecurityGroupResult(); + explicit DeleteSecurityGroupResult(const std::string &payload); + ~DeleteSecurityGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DELETESECURITYGROUPRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.h new file mode 100644 index 000000000..059d78590 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigRequest.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_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeAutoScaleConfigRequest : public RpcServiceRequest { +public: + DescribeAutoScaleConfigRequest(); + ~DescribeAutoScaleConfigRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h new file mode 100644 index 000000000..e385b58e5 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeAutoScaleConfigResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeAutoScaleConfigResult : public ServiceResult + { + public: + + + DescribeAutoScaleConfigResult(); + explicit DescribeAutoScaleConfigResult(const std::string &payload); + ~DescribeAutoScaleConfigResult(); + int getExtraNodesGrowRatio()const; + bool getEnableAutoGrow()const; + std::string getClusterId()const; + int getMaxNodesInCluster()const; + int getShrinkIdleTimes()const; + bool getEnableAutoShrink()const; + std::string getClusterType()const; + int getGrowRatio()const; + int getGrowIntervalInMinutes()const; + std::string getUid()const; + int getGrowTimeoutInMinutes()const; + int getShrinkIntervalInMinutes()const; + std::string getSpotPriceLimit()const; + std::string getExcludeNodes()const; + std::string getSpotStrategy()const; + + protected: + void parse(const std::string &payload); + private: + int extraNodesGrowRatio_; + bool enableAutoGrow_; + std::string clusterId_; + int maxNodesInCluster_; + int shrinkIdleTimes_; + bool enableAutoShrink_; + std::string clusterType_; + int growRatio_; + int growIntervalInMinutes_; + std::string uid_; + int growTimeoutInMinutes_; + int shrinkIntervalInMinutes_; + std::string spotPriceLimit_; + std::string excludeNodes_; + std::string spotStrategy_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEAUTOSCALECONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h index 2ff306cb0..4842b23e1 100644 --- a/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeClusterResult.h @@ -51,8 +51,14 @@ namespace AlibabaCloud int count; std::string instanceType; }; + struct ProxyMgr + { + int count; + std::string instanceType; + }; Compute compute; Login login; + ProxyMgr proxyMgr; Manager manager; }; struct ApplicationInfo @@ -61,31 +67,49 @@ namespace AlibabaCloud std::string tag; std::string name; }; - std::string imageOwnerAlias; + struct PostInstallScriptInfo + { + std::string args; + std::string url; + }; + struct OnPremiseInfoItem + { + std::string type; + std::string iP; + std::string hostName; + }; std::string volumeProtocol; + std::string imageOwnerAlias; std::string description; std::string clientVersion; + std::vector onPremiseInfo; std::string name; std::string volumeId; std::string volumeType; + std::string deployMode; std::string imageId; std::string status; std::string keyPairName; std::string remoteDirectory; std::string sccClusterId; std::vector applications; + std::vector postInstallScripts; std::string securityGroupId; std::string createTime; std::string vSwitchId; std::string schedulerType; std::string accountType; + std::string baseOsTag; std::string volumeMountpoint; + std::string imageName; + std::string vpcId; EcsInfo ecsInfo; bool haEnable; std::string osTag; std::string ecsChargeType; std::string regionId; std::string id; + std::string location; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.h new file mode 100644 index 000000000..b16c2f712 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppRequest.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_EHPC_MODEL_DESCRIBECONTAINERAPPREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeContainerAppRequest : public RpcServiceRequest { +public: + DescribeContainerAppRequest(); + ~DescribeContainerAppRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerId() const; + void setContainerId(const std::string &containerId); + +private: + std::string accessKeyId_; + std::string containerId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h new file mode 100644 index 000000000..324e25497 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeContainerAppResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeContainerAppResult : public ServiceResult + { + public: + struct ContainerAppInfo + { + std::string type; + std::string repository; + std::string imageTag; + std::string description; + std::string createTime; + std::string id; + std::string name; + }; + + + DescribeContainerAppResult(); + explicit DescribeContainerAppResult(const std::string &payload); + ~DescribeContainerAppResult(); + ContainerAppInfo getContainerAppInfo()const; + + protected: + void parse(const std::string &payload); + private: + ContainerAppInfo containerAppInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBECONTAINERAPPRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageRequest.h new file mode 100644 index 000000000..e9d406e63 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageRequest.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_EHPC_MODEL_DESCRIBEESTACKIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEESTACKIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeEstackImageRequest : public RpcServiceRequest { +public: + DescribeEstackImageRequest(); + ~DescribeEstackImageRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEESTACKIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageResult.h new file mode 100644 index 000000000..94cfa1203 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeEstackImageResult.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_EHPC_MODEL_DESCRIBEESTACKIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEESTACKIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeEstackImageResult : public ServiceResult + { + public: + struct ImageListInfo + { + std::string imageName; + int imageSize; + std::string recentUpdateTime; + std::string imageUrl; + std::string imageType; + }; + + + DescribeEstackImageResult(); + explicit DescribeEstackImageResult(const std::string &payload); + ~DescribeEstackImageResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getImageList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector imageList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEESTACKIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.h new file mode 100644 index 000000000..3171f0a11 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyRequest.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_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeGWSClusterPolicyRequest : public RpcServiceRequest { +public: + DescribeGWSClusterPolicyRequest(); + ~DescribeGWSClusterPolicyRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getAsyncMode() const; + void setAsyncMode(bool asyncMode); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clusterId_; + std::string accessKeyId_; + bool asyncMode_; + std::string taskId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.h new file mode 100644 index 000000000..3e40c29fd --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClusterPolicyResult.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_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSClusterPolicyResult : public ServiceResult + { + public: + + + DescribeGWSClusterPolicyResult(); + explicit DescribeGWSClusterPolicyResult(const std::string &payload); + ~DescribeGWSClusterPolicyResult(); + std::string getLocalDrive()const; + std::string getUsbRedirect()const; + std::string getClipboard()const; + std::string getWatermark()const; + + protected: + void parse(const std::string &payload); + private: + std::string localDrive_; + std::string usbRedirect_; + std::string clipboard_; + std::string watermark_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERPOLICYRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.h new file mode 100644 index 000000000..28c80fc86 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersRequest.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_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeGWSClustersRequest : public RpcServiceRequest { +public: + DescribeGWSClustersRequest(); + ~DescribeGWSClustersRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h new file mode 100644 index 000000000..fdfab592a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSClustersResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSClustersResult : public ServiceResult + { + public: + struct ClusterInfo + { + std::string status; + int instanceCount; + std::string vpcId; + std::string clusterId; + std::string createTime; + }; + + + DescribeGWSClustersResult(); + explicit DescribeGWSClustersResult(const std::string &payload); + ~DescribeGWSClustersResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getClusters()const; + std::string getCallerType()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector clusters_; + std::string callerType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSCLUSTERSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.h new file mode 100644 index 000000000..aa5e216ea --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesRequest.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_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeGWSImagesRequest : public RpcServiceRequest { +public: + DescribeGWSImagesRequest(); + ~DescribeGWSImagesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h new file mode 100644 index 000000000..4194418e4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSImagesResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSImagesResult : public ServiceResult + { + public: + struct ImageInfo + { + std::string status; + std::string progress; + int size; + std::string createTime; + std::string imageId; + std::string imageType; + std::string name; + }; + + + DescribeGWSImagesResult(); + explicit DescribeGWSImagesResult(const std::string &payload); + ~DescribeGWSImagesResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getImages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector images_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSIMAGESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h new file mode 100644 index 000000000..1324567da --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeGWSInstancesRequest : public RpcServiceRequest { +public: + DescribeGWSInstancesRequest(); + ~DescribeGWSInstancesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + long getUserUid() const; + void setUserUid(long userUid); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + std::string instanceId_; + int pageSize_; + long userUid_; + std::string userName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h new file mode 100644 index 000000000..24cd71f35 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeGWSInstancesResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeGWSInstancesResult : public ServiceResult + { + public: + struct InstanceInfo + { + struct AppInfo + { + std::string appArgs; + std::string appPath; + std::string appName; + }; + std::string status; + std::string userName; + std::string instanceId; + std::string clusterId; + std::string createTime; + std::string expireTime; + std::string instanceType; + std::vector appList; + std::string workMode; + std::string name; + }; + + + DescribeGWSInstancesResult(); + explicit DescribeGWSInstancesResult(const std::string &payload); + ~DescribeGWSInstancesResult(); + std::vector getInstances()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector instances_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEGWSINSTANCESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.h new file mode 100644 index 000000000..4d44958df --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigRequest.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_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeImageGatewayConfigRequest : public RpcServiceRequest { +public: + DescribeImageGatewayConfigRequest(); + ~DescribeImageGatewayConfigRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h new file mode 100644 index 000000000..f2e921045 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeImageGatewayConfigResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeImageGatewayConfigResult : public ServiceResult + { + public: + struct Imagegw + { + struct LocationInfo + { + std::string remoteType; + std::string authentication; + std::string uRL; + std::string location; + }; + std::string defaultImageLocation; + long pullUpdateTimeout; + std::string mongoDBURI; + std::vector locations; + std::string imageExpirationTimeout; + std::string updateDateTime; + }; + + + DescribeImageGatewayConfigResult(); + explicit DescribeImageGatewayConfigResult(const std::string &payload); + ~DescribeImageGatewayConfigResult(); + Imagegw getImagegw()const; + + protected: + void parse(const std::string &payload); + private: + Imagegw imagegw_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEGATEWAYCONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h new file mode 100644 index 000000000..a7f590748 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeImagePriceRequest : public RpcServiceRequest { +public: + DescribeImagePriceRequest(); + ~DescribeImagePriceRequest(); + int getPeriod() const; + void setPeriod(int period); + int getAmount() const; + void setAmount(int amount); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getSkuCode() const; + void setSkuCode(const std::string &skuCode); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPriceUnit() const; + void setPriceUnit(const std::string &priceUnit); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + int period_; + int amount_; + std::string imageId_; + std::string skuCode_; + std::string accessKeyId_; + std::string priceUnit_; + std::string orderType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h new file mode 100644 index 000000000..4bde1a6f2 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeImagePriceResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeImagePriceResult : public ServiceResult + { + public: + + + DescribeImagePriceResult(); + explicit DescribeImagePriceResult(const std::string &payload); + ~DescribeImagePriceResult(); + float getOriginalPrice()const; + int getAmount()const; + float getDiscountPrice()const; + std::string getImageId()const; + float getTradePrice()const; + + protected: + void parse(const std::string &payload); + private: + float originalPrice_; + int amount_; + float discountPrice_; + std::string imageId_; + float tradePrice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEPRICERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImageRequest.h new file mode 100644 index 000000000..3141f2264 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeImageRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeImageRequest : public RpcServiceRequest { +public: + DescribeImageRequest(); + ~DescribeImageRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRepository() const; + void setRepository(const std::string &repository); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImageTag() const; + void setImageTag(const std::string &imageTag); + +private: + std::string clusterId_; + std::string repository_; + std::string accessKeyId_; + std::string containerType_; + std::string imageTag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h new file mode 100644 index 000000000..52f9c01c8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeImageResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeImageResult : public ServiceResult + { + public: + struct ImageInfo + { + std::string status; + std::string type; + std::string repository; + std::string imageId; + std::string updateDateTime; + std::string tag; + std::string system; + }; + + + DescribeImageResult(); + explicit DescribeImageResult(const std::string &payload); + ~DescribeImageResult(); + ImageInfo getImageInfo()const; + + protected: + void parse(const std::string &payload); + private: + ImageInfo imageInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeJobRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeJobRequest.h new file mode 100644 index 000000000..83a2bb00a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeJobRequest.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_EHPC_MODEL_DESCRIBEJOBREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeJobRequest : public RpcServiceRequest { +public: + DescribeJobRequest(); + ~DescribeJobRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string jobId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h new file mode 100644 index 000000000..d628577a8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeJobResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeJobResult : public ServiceResult + { + public: + struct Message + { + std::string jobInfo; + }; + + + DescribeJobResult(); + explicit DescribeJobResult(const std::string &payload); + ~DescribeJobResult(); + Message getMessage()const; + + protected: + void parse(const std::string &payload); + private: + Message message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEJOBRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.h new file mode 100644 index 000000000..b8d8438c9 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusRequest.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_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribeNFSClientStatusRequest : public RpcServiceRequest { +public: + DescribeNFSClientStatusRequest(); + ~DescribeNFSClientStatusRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string accessKeyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h new file mode 100644 index 000000000..ecba88c56 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribeNFSClientStatusResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribeNFSClientStatusResult : public ServiceResult + { + public: + struct Result + { + std::string output; + int exitCode; + std::string invokeRecordStatus; + }; + + + DescribeNFSClientStatusResult(); + explicit DescribeNFSClientStatusResult(const std::string &payload); + ~DescribeNFSClientStatusResult(); + std::string getStatus()const; + Result getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + Result result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBENFSCLIENTSTATUSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h b/ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h new file mode 100644 index 000000000..9a95e9de1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribePriceRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT DescribePriceRequest : public RpcServiceRequest { +public: + struct Commodities { + int amount; + int period; + std::string nodeType; + struct DataDisks { + int size; + bool encrypted; + std::string performanceLevel; + std::string category; + bool deleteWithInstance; + }; + std::vector dataDisks; + std::string systemDiskCategory; + std::string internetChargeType; + std::string systemDiskPerformanceLevel; + int systemDiskSize; + int internetMaxBandWidthOut; + std::string instanceType; + std::string networkType; + }; + DescribePriceRequest(); + ~DescribePriceRequest(); + std::vector getCommodities() const; + void setCommodities(const std::vector &commodities); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPriceUnit() const; + void setPriceUnit(const std::string &priceUnit); + std::string getChargeType() const; + void setChargeType(const std::string &chargeType); + std::string getOrderType() const; + void setOrderType(const std::string &orderType); + +private: + std::vector commodities_; + std::string accessKeyId_; + std::string priceUnit_; + std::string chargeType_; + std::string orderType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h b/ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h new file mode 100644 index 000000000..d50c1d599 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/DescribePriceResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT DescribePriceResult : public ServiceResult + { + public: + struct PriceInfo + { + float originalPrice; + std::string nodeType; + std::string currency; + float tradePrice; + }; + + + DescribePriceResult(); + explicit DescribePriceResult(const std::string &payload); + ~DescribePriceResult(); + std::vector getPrices()const; + float getTotalTradePrice()const; + + protected: + void parse(const std::string &payload); + private: + std::vector prices_; + float totalTradePrice_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_DESCRIBEPRICERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/EditJobTemplateRequest.h b/ehpc/include/alibabacloud/ehpc/model/EditJobTemplateRequest.h index 5e53707d7..a325a2209 100644 --- a/ehpc/include/alibabacloud/ehpc/model/EditJobTemplateRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/EditJobTemplateRequest.h @@ -32,16 +32,20 @@ public: ~EditJobTemplateRequest(); std::string getStderrRedirectPath() const; void setStderrRedirectPath(const std::string &stderrRedirectPath); + std::string getClockTime() const; + void setClockTime(const std::string &clockTime); std::string getCommandLine() const; void setCommandLine(const std::string &commandLine); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getArrayRequest() const; void setArrayRequest(const std::string &arrayRequest); + std::string getUnzipCmd() const; + void setUnzipCmd(const std::string &unzipCmd); std::string getPackagePath() const; void setPackagePath(const std::string &packagePath); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); + std::string getMem() const; + void setMem(const std::string &mem); std::string getStdoutRedirectPath() const; void setStdoutRedirectPath(const std::string &stdoutRedirectPath); std::string getVariables() const; @@ -50,27 +54,50 @@ public: void setRunasUser(const std::string &runasUser); bool getReRunable() const; void setReRunable(bool reRunable); + int getThread() const; + void setThread(int thread); std::string getTemplateId() const; void setTemplateId(const std::string &templateId); int getPriority() const; void setPriority(int priority); + int getGpu() const; + void setGpu(int gpu); + bool getWithUnzipCmd() const; + void setWithUnzipCmd(bool withUnzipCmd); + int getNode() const; + void setNode(int node); + int getTask() const; + void setTask(int task); + std::string getInputFileUrl() const; + void setInputFileUrl(const std::string &inputFileUrl); std::string getName() const; void setName(const std::string &name); + std::string getQueue() const; + void setQueue(const std::string &queue); private: std::string stderrRedirectPath_; + std::string clockTime_; std::string commandLine_; std::string accessKeyId_; std::string arrayRequest_; + std::string unzipCmd_; std::string packagePath_; - std::string regionId_; + std::string mem_; std::string stdoutRedirectPath_; std::string variables_; std::string runasUser_; bool reRunable_; + int thread_; std::string templateId_; int priority_; + int gpu_; + bool withUnzipCmd_; + int node_; + int task_; + std::string inputFileUrl_; std::string name_; + std::string queue_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h new file mode 100644 index 000000000..5f569b82a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetAccountingReportRequest : public RpcServiceRequest { +public: + GetAccountingReportRequest(); + ~GetAccountingReportRequest(); + std::string getReportType() const; + void setReportType(const std::string &reportType); + int getEndTime() const; + void setEndTime(int endTime); + std::string getFilterValue() const; + void setFilterValue(const std::string &filterValue); + std::string getDim() const; + void setDim(const std::string &dim); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getStartTime() const; + void setStartTime(int startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string reportType_; + int endTime_; + std::string filterValue_; + std::string dim_; + std::string clusterId_; + int startTime_; + int pageNumber_; + std::string accessKeyId_; + std::string jobId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h b/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h new file mode 100644 index 000000000..bc6cc1bca --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetAccountingReportResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetAccountingReportResult : public ServiceResult + { + public: + + + GetAccountingReportResult(); + explicit GetAccountingReportResult(const std::string &payload); + ~GetAccountingReportResult(); + std::string getMetrics()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getData()const; + int getTotalCoreTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string metrics_; + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector data_; + int totalCoreTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETACCOUNTINGREPORTRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h index fc564bb98..77e0b741e 100644 --- a/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/GetAutoScaleConfigResult.h @@ -32,6 +32,46 @@ namespace AlibabaCloud class ALIBABACLOUD_EHPC_EXPORT GetAutoScaleConfigResult : public ServiceResult { public: + struct QueueInfo + { + struct InstanceTypeInfo + { + std::string zoneId; + std::string vSwitchId; + std::string hostNamePrefix; + float spotPriceLimit; + std::string instanceType; + std::string spotStrategy; + }; + struct DataDisksInfo + { + std::string dataDiskPerformanceLevel; + std::string dataDiskKMSKeyId; + bool dataDiskDeleteWithInstance; + bool dataDiskEncrypted; + int dataDiskSize; + std::string dataDiskCategory; + }; + std::string hostNameSuffix; + int minNodesInQueue; + int maxNodesInQueue; + std::vector dataDisks; + bool enableAutoGrow; + std::string resourceGroupId; + std::string queueImageId; + int systemDiskSize; + std::string systemDiskLevel; + long minNodesPerCycle; + long maxNodesPerCycle; + bool enableAutoShrink; + std::string systemDiskCategory; + std::string hostNamePrefix; + float spotPriceLimit; + std::vector instanceTypes; + std::string instanceType; + std::string queueName; + std::string spotStrategy; + }; GetAutoScaleConfigResult(); @@ -48,8 +88,12 @@ namespace AlibabaCloud int getGrowIntervalInMinutes()const; std::string getUid()const; int getGrowTimeoutInMinutes()const; + std::string getImageId()const; int getShrinkIntervalInMinutes()const; + float getSpotPriceLimit()const; + std::vector getQueues()const; std::string getExcludeNodes()const; + std::string getSpotStrategy()const; protected: void parse(const std::string &payload); @@ -65,8 +109,12 @@ namespace AlibabaCloud int growIntervalInMinutes_; std::string uid_; int growTimeoutInMinutes_; + std::string imageId_; int shrinkIntervalInMinutes_; + float spotPriceLimit_; + std::vector queues_; std::string excludeNodes_; + std::string spotStrategy_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h new file mode 100644 index 000000000..03e7d0371 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetCloudMetricLogsRequest : public RpcServiceRequest { +public: + GetCloudMetricLogsRequest(); + ~GetCloudMetricLogsRequest(); + std::string getMetricScope() const; + void setMetricScope(const std::string &metricScope); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getAggregationInterval() const; + void setAggregationInterval(int aggregationInterval); + bool getReverse() const; + void setReverse(bool reverse); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAggregationType() const; + void setAggregationType(const std::string &aggregationType); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getMetricCategories() const; + void setMetricCategories(const std::string &metricCategories); + int getFrom() const; + void setFrom(int from); + int getTo() const; + void setTo(int to); + +private: + std::string metricScope_; + std::string clusterId_; + int aggregationInterval_; + bool reverse_; + std::string accessKeyId_; + std::string aggregationType_; + std::string filter_; + std::string metricCategories_; + int from_; + int to_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h new file mode 100644 index 000000000..141ce2880 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricLogsResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetCloudMetricLogsResult : public ServiceResult + { + public: + struct MetricLog + { + std::string instanceId; + std::string diskDevice; + std::string hostname; + std::string networkInterface; + int time; + std::string metricData; + }; + + + GetCloudMetricLogsResult(); + explicit GetCloudMetricLogsResult(const std::string &payload); + ~GetCloudMetricLogsResult(); + std::vector getMetricLogs()const; + + protected: + void parse(const std::string &payload); + private: + std::vector metricLogs_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICLOGSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.h new file mode 100644 index 000000000..e3612aa11 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingRequest.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_EHPC_MODEL_GETCLOUDMETRICPROFILINGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetCloudMetricProfilingRequest : public RpcServiceRequest { +public: + GetCloudMetricProfilingRequest(); + ~GetCloudMetricProfilingRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getProfilingId() const; + void setProfilingId(const std::string &profilingId); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string regionId_; + std::string profilingId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h new file mode 100644 index 000000000..e7d58c291 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetCloudMetricProfilingResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetCloudMetricProfilingResult : public ServiceResult + { + public: + struct SvgInfo + { + std::string type; + int size; + std::string url; + std::string name; + }; + + + GetCloudMetricProfilingResult(); + explicit GetCloudMetricProfilingResult(const std::string &payload); + ~GetCloudMetricProfilingResult(); + std::vector getSvgUrls()const; + + protected: + void parse(const std::string &payload); + private: + std::vector svgUrls_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLOUDMETRICPROFILINGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesRequest.h new file mode 100644 index 000000000..0366b8edc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesRequest.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_EHPC_MODEL_GETCLUSTERVOLUMESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetClusterVolumesRequest : public RpcServiceRequest { +public: + GetClusterVolumesRequest(); + ~GetClusterVolumesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h b/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h new file mode 100644 index 000000000..ccdcb571b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetClusterVolumesResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetClusterVolumesResult : public ServiceResult + { + public: + struct VolumeInfo + { + struct RoleInfo + { + std::string name; + }; + std::string volumeProtocol; + std::string volumeId; + std::string remoteDirectory; + std::string localDirectory; + std::string volumeType; + std::string jobQueue; + bool mustKeep; + std::vector roles; + std::string volumeMountpoint; + std::string location; + }; + + + GetClusterVolumesResult(); + explicit GetClusterVolumesResult(const std::string &payload); + ~GetClusterVolumesResult(); + std::vector getVolumes()const; + std::string getRegionId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector volumes_; + std::string regionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCLUSTERVOLUMESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCommonImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetCommonImageRequest.h new file mode 100644 index 000000000..ce092da8f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetCommonImageRequest.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_EHPC_MODEL_GETCOMMONIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCOMMONIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetCommonImageRequest : public RpcServiceRequest { +public: + GetCommonImageRequest(); + ~GetCommonImageRequest(); + std::string getContainType() const; + void setContainType(const std::string &containType); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getImageName() const; + void setImageName(const std::string &imageName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string containType_; + std::string clusterId_; + std::string imageName_; + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCOMMONIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetCommonImageResult.h b/ehpc/include/alibabacloud/ehpc/model/GetCommonImageResult.h new file mode 100644 index 000000000..f6a5709d4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetCommonImageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_GETCOMMONIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETCOMMONIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetCommonImageResult : public ServiceResult + { + public: + + + GetCommonImageResult(); + explicit GetCommonImageResult(const std::string &payload); + ~GetCommonImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETCOMMONIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.h new file mode 100644 index 000000000..7ce88b6a6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketRequest.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_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetGWSConnectTicketRequest : public RpcServiceRequest { +public: + GetGWSConnectTicketRequest(); + ~GetGWSConnectTicketRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAppName() const; + void setAppName(const std::string &appName); + +private: + std::string accessKeyId_; + std::string instanceId_; + std::string appName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.h new file mode 100644 index 000000000..f9233f2bc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetGWSConnectTicketResult.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_EHPC_MODEL_GETGWSCONNECTTICKETRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetGWSConnectTicketResult : public ServiceResult + { + public: + + + GetGWSConnectTicketResult(); + explicit GetGWSConnectTicketResult(const std::string &payload); + ~GetGWSConnectTicketResult(); + std::string getTicket()const; + + protected: + void parse(const std::string &payload); + private: + std::string ticket_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETGWSCONNECTTICKETRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.h new file mode 100644 index 000000000..f3c7fe6d8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigRequest.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_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetHybridClusterConfigRequest : public RpcServiceRequest { +public: + GetHybridClusterConfigRequest(); + ~GetHybridClusterConfigRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getNode() const; + void setNode(const std::string &node); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string node_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.h new file mode 100644 index 000000000..612f1acf7 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetHybridClusterConfigResult.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_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetHybridClusterConfigResult : public ServiceResult + { + public: + + + GetHybridClusterConfigResult(); + explicit GetHybridClusterConfigResult(const std::string &payload); + ~GetHybridClusterConfigResult(); + std::string getClusterConfig()const; + + protected: + void parse(const std::string &payload); + private: + std::string clusterConfig_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETHYBRIDCLUSTERCONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.h new file mode 100644 index 000000000..7f667861d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigRequest.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_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetIfEcsTypeSupportHtConfigRequest : public RpcServiceRequest { +public: + GetIfEcsTypeSupportHtConfigRequest(); + ~GetIfEcsTypeSupportHtConfigRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + +private: + std::string accessKeyId_; + std::string instanceType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h new file mode 100644 index 000000000..fdfd3c21f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetIfEcsTypeSupportHtConfigResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetIfEcsTypeSupportHtConfigResult : public ServiceResult + { + public: + + + GetIfEcsTypeSupportHtConfigResult(); + explicit GetIfEcsTypeSupportHtConfigResult(const std::string &payload); + ~GetIfEcsTypeSupportHtConfigResult(); + bool getDefaultHtEnabled()const; + bool getSupportHtConfig()const; + std::string getInstanceType()const; + + protected: + void parse(const std::string &payload); + private: + bool defaultHtEnabled_; + bool supportHtConfig_; + std::string instanceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETIFECSTYPESUPPORTHTCONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetPostScriptsRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetPostScriptsRequest.h new file mode 100644 index 000000000..22c7e2a8c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetPostScriptsRequest.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_EHPC_MODEL_GETPOSTSCRIPTSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETPOSTSCRIPTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetPostScriptsRequest : public RpcServiceRequest { +public: + GetPostScriptsRequest(); + ~GetPostScriptsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETPOSTSCRIPTSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetPostScriptsResult.h b/ehpc/include/alibabacloud/ehpc/model/GetPostScriptsResult.h new file mode 100644 index 000000000..40fce0bb2 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetPostScriptsResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETPOSTSCRIPTSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETPOSTSCRIPTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetPostScriptsResult : public ServiceResult + { + public: + struct PostInstallScriptsItem + { + std::string args; + std::string url; + }; + + + GetPostScriptsResult(); + explicit GetPostScriptsResult(const std::string &payload); + ~GetPostScriptsResult(); + std::vector getPostInstallScripts()const; + + protected: + void parse(const std::string &payload); + private: + std::vector postInstallScripts_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETPOSTSCRIPTSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h new file mode 100644 index 000000000..bf3387177 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFOREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetSchedulerInfoRequest : public RpcServiceRequest { +public: + struct Scheduler { + std::string schedName; + }; + GetSchedulerInfoRequest(); + ~GetSchedulerInfoRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::vector getScheduler() const; + void setScheduler(const std::vector &scheduler); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::vector scheduler_; + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFOREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h b/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h new file mode 100644 index 000000000..c33827e5d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetSchedulerInfoResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFORESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetSchedulerInfoResult : public ServiceResult + { + public: + struct SchedInfoItem + { + std::string configuration; + std::string schedName; + }; + + + GetSchedulerInfoResult(); + explicit GetSchedulerInfoResult(const std::string &payload); + ~GetSchedulerInfoResult(); + std::vector getSchedInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::vector schedInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETSCHEDULERINFORESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetUserImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetUserImageRequest.h new file mode 100644 index 000000000..8b8202824 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetUserImageRequest.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_EHPC_MODEL_GETUSERIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETUSERIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetUserImageRequest : public RpcServiceRequest { +public: + GetUserImageRequest(); + ~GetUserImageRequest(); + std::string getOSSBucket() const; + void setOSSBucket(const std::string &oSSBucket); + std::string getOSSEndPoint() const; + void setOSSEndPoint(const std::string &oSSEndPoint); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImagePath() const; + void setImagePath(const std::string &imagePath); + std::string getImageName() const; + void setImageName(const std::string &imageName); + +private: + std::string oSSBucket_; + std::string oSSEndPoint_; + std::string clusterId_; + std::string containerType_; + std::string imagePath_; + std::string imageName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETUSERIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetUserImageResult.h b/ehpc/include/alibabacloud/ehpc/model/GetUserImageResult.h new file mode 100644 index 000000000..d12e04af3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetUserImageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_GETUSERIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETUSERIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetUserImageResult : public ServiceResult + { + public: + + + GetUserImageResult(); + explicit GetUserImageResult(const std::string &payload); + ~GetUserImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETUSERIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h b/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.h new file mode 100644 index 000000000..7c5ac73fe --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusRequest.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_EHPC_MODEL_GETVISUALSERVICESTATUSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT GetVisualServiceStatusRequest : public RpcServiceRequest { +public: + GetVisualServiceStatusRequest(); + ~GetVisualServiceStatusRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.h new file mode 100644 index 000000000..d584362b0 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/GetVisualServiceStatusResult.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_EHPC_MODEL_GETVISUALSERVICESTATUSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT GetVisualServiceStatusResult : public ServiceResult + { + public: + + + GetVisualServiceStatusResult(); + explicit GetVisualServiceStatusResult(const std::string &payload); + ~GetVisualServiceStatusResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_GETVISUALSERVICESTATUSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCRequest.h b/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCRequest.h new file mode 100644 index 000000000..972515b98 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT InitializeEHPCRequest : public RpcServiceRequest { +public: + InitializeEHPCRequest(); + ~InitializeEHPCRequest(); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h b/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h new file mode 100644 index 000000000..36f6528c7 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InitializeEHPCResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_INITIALIZEEHPCRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT InitializeEHPCResult : public ServiceResult + { + public: + + + InitializeEHPCResult(); + explicit InitializeEHPCResult(const std::string &payload); + ~InitializeEHPCResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_INITIALIZEEHPCRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InspectImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/InspectImageRequest.h new file mode 100644 index 000000000..3eb281dd3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InspectImageRequest.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_EHPC_MODEL_INSPECTIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_INSPECTIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT InspectImageRequest : public RpcServiceRequest { +public: + InspectImageRequest(); + ~InspectImageRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImageName() const; + void setImageName(const std::string &imageName); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string containerType_; + std::string imageName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_INSPECTIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/InspectImageResult.h b/ehpc/include/alibabacloud/ehpc/model/InspectImageResult.h new file mode 100644 index 000000000..1d204a295 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InspectImageResult.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_EHPC_MODEL_INSPECTIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_INSPECTIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT InspectImageResult : public ServiceResult + { + public: + struct ImageStatus + { + struct ImageInspectInfo + { + std::string schemaVersion; + std::string buildDate; + std::string bootStrap; + std::string buildArch; + std::string containerVersion; + std::string defFrom; + }; + ImageInspectInfo imageInspectInfo; + }; + + + InspectImageResult(); + explicit InspectImageResult(const std::string &payload); + ~InspectImageResult(); + ImageStatus getImageStatus()const; + + protected: + void parse(const std::string &payload); + private: + ImageStatus imageStatus_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_INSPECTIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareRequest.h b/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareRequest.h new file mode 100644 index 000000000..0b8b066f0 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareRequest.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_EHPC_MODEL_INSTALLSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWAREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT InstallSoftwareRequest : public RpcServiceRequest { +public: + InstallSoftwareRequest(); + ~InstallSoftwareRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getApplication() const; + void setApplication(const std::string &application); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string application_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWAREREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h b/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h new file mode 100644 index 000000000..f9805c3f6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InstallSoftwareResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_INSTALLSOFTWARERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT InstallSoftwareResult : public ServiceResult + { + public: + + + InstallSoftwareResult(); + explicit InstallSoftwareResult(const std::string &payload); + ~InstallSoftwareResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_INSTALLSOFTWARERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h b/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h new file mode 100644 index 000000000..bfbdd5566 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT InvokeShellCommandRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + InvokeShellCommandRequest(); + ~InvokeShellCommandRequest(); + std::vector getInstance() const; + void setInstance(const std::vector &instance); + std::string getWorkingDir() const; + void setWorkingDir(const std::string &workingDir); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getCommand() const; + void setCommand(const std::string &command); + int getTimeout() const; + void setTimeout(int timeout); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::vector instance_; + std::string workingDir_; + std::string clusterId_; + std::string command_; + int timeout_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.h b/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.h new file mode 100644 index 000000000..e40da9239 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/InvokeShellCommandResult.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_EHPC_MODEL_INVOKESHELLCOMMANDRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT InvokeShellCommandResult : public ServiceResult + { + public: + + + InvokeShellCommandResult(); + explicit InvokeShellCommandResult(const std::string &payload); + ~InvokeShellCommandResult(); + std::string getCommandId()const; + std::vector getInstanceIds()const; + + protected: + void parse(const std::string &payload); + private: + std::string commandId_; + std::vector instanceIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_INVOKESHELLCOMMANDRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h new file mode 100644 index 000000000..8fca31fdc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListAvailableEcsTypesRequest : public RpcServiceRequest { +public: + ListAvailableEcsTypesRequest(); + ~ListAvailableEcsTypesRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); + std::string getZoneId() const; + void setZoneId(const std::string &zoneId); + bool getShowSoldOut() const; + void setShowSoldOut(bool showSoldOut); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + +private: + std::string accessKeyId_; + std::string spotStrategy_; + std::string zoneId_; + bool showSoldOut_; + std::string instanceChargeType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h new file mode 100644 index 000000000..b2a2c0b12 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListAvailableEcsTypesResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListAvailableEcsTypesResult : public ServiceResult + { + public: + struct InstanceTypeFamilyInfo + { + struct TypesInfo + { + std::string status; + int instancePpsTx; + int memorySize; + std::string gPUSpec; + int cpuCoreCount; + int instancePpsRx; + std::string instanceTypeId; + std::vector zoneIds; + int instanceBandwidthRx; + int eniQuantity; + int gPUAmount; + int instanceBandwidthTx; + }; + std::string instanceTypeFamilyId; + std::vector types; + std::string generation; + }; + + + ListAvailableEcsTypesResult(); + explicit ListAvailableEcsTypesResult(const std::string &payload); + ~ListAvailableEcsTypesResult(); + bool getSupportSpotInstance()const; + std::vector getInstanceTypeFamilies()const; + + protected: + void parse(const std::string &payload); + private: + bool supportSpotInstance_; + std::vector instanceTypeFamilies_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTAVAILABLEECSTYPESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h new file mode 100644 index 000000000..59b2e0571 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListCloudMetricProfilingsRequest : public RpcServiceRequest { +public: + ListCloudMetricProfilingsRequest(); + ~ListCloudMetricProfilingsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h new file mode 100644 index 000000000..789d4406e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCloudMetricProfilingsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListCloudMetricProfilingsResult : public ServiceResult + { + public: + struct ProfilingInfo + { + std::string profilingId; + std::string instanceId; + std::string triggerTime; + int freq; + int pid; + int duration; + std::string hostName; + }; + + + ListCloudMetricProfilingsResult(); + explicit ListCloudMetricProfilingsResult(const std::string &payload); + ~ListCloudMetricProfilingsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getProfilings()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector profilings_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLOUDMETRICPROFILINGSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.h new file mode 100644 index 000000000..66907631c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaRequest.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_EHPC_MODEL_LISTCLUSTERSMETAREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListClustersMetaRequest : public RpcServiceRequest { +public: + ListClustersMetaRequest(); + ~ListClustersMetaRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETAREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h new file mode 100644 index 000000000..b3a8d4d8e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListClustersMetaResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETARESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListClustersMetaResult : public ServiceResult + { + public: + struct ClusterInfoSimple + { + std::string status; + bool isComputeEss; + std::string description; + bool hasPlugin; + std::string schedulerType; + std::string clientVersion; + std::string accountType; + std::string name; + std::string vpcId; + std::string deployMode; + std::string osTag; + std::string id; + std::string location; + }; + + + ListClustersMetaResult(); + explicit ListClustersMetaResult(const std::string &payload); + ~ListClustersMetaResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getClusters()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector clusters_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCLUSTERSMETARESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h b/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h index cd974a7ca..329fb3a58 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListClustersResult.h @@ -37,12 +37,16 @@ namespace AlibabaCloud struct Managers { int normalCount; + int operatingCount; + int stoppedCount; int total; int exceptionCount; }; struct Computes { int normalCount; + int operatingCount; + int stoppedCount; int total; int exceptionCount; }; @@ -58,25 +62,39 @@ namespace AlibabaCloud int cpu; int gpu; }; - std::string status; std::string imageOwnerAlias; std::string description; - std::string zoneId; - std::string createTime; - std::string schedulerType; + std::string nodePrefix; + std::string instanceChargeType; + float computeSpotPriceLimit; + std::string nodeSuffix; int count; - std::string accountType; + std::string clientVersion; std::string name; - UsedResources usedResources; - Managers managers; + std::string deployMode; TotalResources totalResources; - std::string osTag; std::string imageId; - std::string regionId; - std::string id; std::string instanceType; std::string loginNodes; Computes computes; + std::string status; + bool isComputeEss; + std::string zoneId; + std::string createTime; + std::string vSwitchId; + bool hasPlugin; + std::string schedulerType; + std::string computeSpotStrategy; + std::string accountType; + std::string ehpcVersion; + std::string baseOsTag; + UsedResources usedResources; + std::string vpcId; + Managers managers; + std::string osTag; + std::string regionId; + std::string id; + std::string location; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h new file mode 100644 index 000000000..af78c9261 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCommandsRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListCommandsRequest : public RpcServiceRequest { +public: + ListCommandsRequest(); + ~ListCommandsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clusterId_; + std::string commandId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.h new file mode 100644 index 000000000..57a23c5d4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCommandsResult.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_EHPC_MODEL_LISTCOMMANDSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListCommandsResult : public ServiceResult + { + public: + struct Command + { + std::string workingDir; + std::string commandContent; + std::string timeout; + std::string commandId; + }; + + + ListCommandsResult(); + explicit ListCommandsResult(const std::string &payload); + ~ListCommandsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getCommands()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector commands_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCOMMANDSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesRequest.h new file mode 100644 index 000000000..efe24f4bf --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesRequest.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_EHPC_MODEL_LISTCOMMUNITYIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCOMMUNITYIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListCommunityImagesRequest : public RpcServiceRequest { +public: + ListCommunityImagesRequest(); + ~ListCommunityImagesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getBaseOsTag() const; + void setBaseOsTag(const std::string &baseOsTag); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string baseOsTag_; + std::string instanceType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCOMMUNITYIMAGESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesResult.h new file mode 100644 index 000000000..e8f0e296f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCommunityImagesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCOMMUNITYIMAGESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCOMMUNITYIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListCommunityImagesResult : public ServiceResult + { + public: + struct ImageInfo + { + struct BaseOsTag + { + std::string platform; + std::string architecture; + std::string version; + std::string osTag; + }; + struct OsTag + { + std::string platform; + std::string architecture; + std::string version; + std::string osTag; + std::string baseOsTag; + }; + std::string status; + std::string imageOwnerAlias; + std::string description; + std::string productCode; + int size; + std::string skuCode; + std::string pricingCycle; + BaseOsTag baseOsTag; + std::string imageName; + std::string uid; + std::string postInstallScript; + OsTag osTag; + std::string imageId; + }; + + + ListCommunityImagesResult(); + explicit ListCommunityImagesResult(const std::string &payload); + ~ListCommunityImagesResult(); + std::vector getImages()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCOMMUNITYIMAGESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsRequest.h new file mode 100644 index 000000000..f092e9e88 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsRequest.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_EHPC_MODEL_LISTCONTAINERAPPSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListContainerAppsRequest : public RpcServiceRequest { +public: + ListContainerAppsRequest(); + ~ListContainerAppsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h new file mode 100644 index 000000000..51b929f50 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListContainerAppsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListContainerAppsResult : public ServiceResult + { + public: + struct ContainerAppsItem + { + std::string type; + std::string repository; + std::string imageTag; + std::string description; + std::string createTime; + std::string id; + std::string name; + }; + + + ListContainerAppsResult(); + explicit ListContainerAppsResult(const std::string &payload); + ~ListContainerAppsResult(); + std::vector getContainerApps()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector containerApps_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERAPPSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesRequest.h new file mode 100644 index 000000000..70cb3b83b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListContainerImagesRequest : public RpcServiceRequest { +public: + ListContainerImagesRequest(); + ~ListContainerImagesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + std::string containerType_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h new file mode 100644 index 000000000..22801ad4a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListContainerImagesResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListContainerImagesResult : public ServiceResult + { + public: + struct ImagesItem + { + std::string status; + std::string type; + std::string repository; + std::string imageId; + std::string updateDateTime; + std::string tag; + std::string system; + }; + + + ListContainerImagesResult(); + explicit ListContainerImagesResult(const std::string &payload); + ~ListContainerImagesResult(); + int getTotalCount()const; + std::string getDBInfo()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getImages()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string dBInfo_; + int pageSize_; + int pageNumber_; + std::vector images_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCONTAINERIMAGESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.h new file mode 100644 index 000000000..2d3cb0cde --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsRequest.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_EHPC_MODEL_LISTCPFSFILESYSTEMSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListCpfsFileSystemsRequest : public RpcServiceRequest { +public: + ListCpfsFileSystemsRequest(); + ~ListCpfsFileSystemsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getFileSystemId() const; + void setFileSystemId(const std::string &fileSystemId); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; + std::string fileSystemId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h new file mode 100644 index 000000000..458db2abe --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListCpfsFileSystemsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListCpfsFileSystemsResult : public ServiceResult + { + public: + struct FileSystems + { + struct MountTargets + { + std::string status; + std::string vpcId; + std::string vswId; + std::string mountTargetDomain; + std::string networkType; + }; + std::string zoneId; + std::string capacity; + std::string protocolType; + std::string createTime; + std::vector mountTargetList; + std::string destription; + std::string fileSystemId; + std::string regionId; + }; + + + ListCpfsFileSystemsResult(); + explicit ListCpfsFileSystemsResult(const std::string &payload); + ~ListCpfsFileSystemsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getFileSystemList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector fileSystemList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTCPFSFILESYSTEMSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h index 10f301f0f..d717d5dc1 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesRequest.h @@ -30,20 +30,23 @@ class ALIBABACLOUD_EHPC_EXPORT ListCustomImagesRequest : public RpcServiceReques public: ListCustomImagesRequest(); ~ListCustomImagesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getImageOwnerAlias() const; void setImageOwnerAlias(const std::string &imageOwnerAlias); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getBaseOsTag() const; void setBaseOsTag(const std::string &baseOsTag); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); private: + std::string clusterId_; std::string accessKeyId_; std::string imageOwnerAlias_; - std::string regionId_; std::string baseOsTag_; + std::string instanceType_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h index 3a8f447fc..83afb2df3 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListCustomImagesResult.h @@ -41,11 +41,27 @@ namespace AlibabaCloud std::string version; std::string osTag; }; + struct OsTag + { + std::string platform; + std::string architecture; + std::string version; + std::string osTag; + std::string baseOsTag; + }; + std::string status; std::string imageOwnerAlias; - std::string imageName; std::string description; - std::string imageId; + std::string productCode; + int size; + std::string skuCode; + std::string pricingCycle; BaseOsTag baseOsTag; + std::string imageName; + std::string uid; + std::string postInstallScript; + OsTag osTag; + std::string imageId; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.h new file mode 100644 index 000000000..1350460cc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsRequest.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_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListFileSystemWithMountTargetsRequest : public RpcServiceRequest { +public: + ListFileSystemWithMountTargetsRequest(); + ~ListFileSystemWithMountTargetsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h new file mode 100644 index 000000000..56e8cffe3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListFileSystemWithMountTargetsResult.h @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListFileSystemWithMountTargetsResult : public ServiceResult + { + public: + struct FileSystems + { + struct Packages + { + std::string packageId; + }; + struct MountTargets + { + std::string status; + std::string vpcId; + std::string vswId; + std::string mountTargetDomain; + std::string accessGroup; + std::string networkType; + }; + std::string status; + std::string storageType; + std::string createTime; + int meteredSize; + int bandWidth; + int encryptType; + std::string vpcId; + int capacity; + std::string protocolType; + std::vector packageList; + std::string fileSystemType; + std::vector mountTargetList; + std::string destription; + std::string fileSystemId; + std::string regionId; + }; + + + ListFileSystemWithMountTargetsResult(); + explicit ListFileSystemWithMountTargetsResult(const std::string &payload); + ~ListFileSystemWithMountTargetsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getFileSystemList()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector fileSystemList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTFILESYSTEMWITHMOUNTTARGETSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListImagesRequest.h index d8fccc50d..26766fb36 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListImagesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListImagesRequest.h @@ -32,9 +32,15 @@ public: ~ListImagesRequest(); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getBaseOsTag() const; + void setBaseOsTag(const std::string &baseOsTag); + std::string getInstanceType() const; + void setInstanceType(const std::string &instanceType); private: std::string accessKeyId_; + std::string baseOsTag_; + std::string instanceType_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h index e18a72000..bf3873492 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListImagesResult.h @@ -38,6 +38,8 @@ namespace AlibabaCloud std::string architecture; std::string version; std::string osTag; + std::string imageId; + std::string baseOsTag; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.h new file mode 100644 index 000000000..c1e55ef1f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareRequest.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_EHPC_MODEL_LISTINSTALLEDSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWAREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListInstalledSoftwareRequest : public RpcServiceRequest { +public: + ListInstalledSoftwareRequest(); + ~ListInstalledSoftwareRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWAREREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h b/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h new file mode 100644 index 000000000..89fd6c9c1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListInstalledSoftwareResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWARERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListInstalledSoftwareResult : public ServiceResult + { + public: + struct SoftwareListItem + { + std::string softwareId; + std::string softwareVersion; + std::string softwareStatus; + std::string softwareName; + }; + + + ListInstalledSoftwareResult(); + explicit ListInstalledSoftwareResult(const std::string &payload); + ~ListInstalledSoftwareResult(); + std::vector getSoftwareList()const; + + protected: + void parse(const std::string &payload); + private: + std::vector softwareList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINSTALLEDSOFTWARERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h new file mode 100644 index 000000000..d47592a64 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_LISTINVOCATIONRESULTSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListInvocationResultsRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + ListInvocationResultsRequest(); + ~ListInvocationResultsRequest(); + std::vector getInstance() const; + void setInstance(const std::vector &instance); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInvokeRecordStatus() const; + void setInvokeRecordStatus(const std::string &invokeRecordStatus); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::vector instance_; + std::string clusterId_; + std::string commandId_; + int pageNumber_; + std::string accessKeyId_; + std::string invokeRecordStatus_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h new file mode 100644 index 000000000..b6e47c772 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListInvocationResultsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListInvocationResultsResult : public ServiceResult + { + public: + struct InvocationResult + { + std::string message; + std::string instanceId; + int exitCode; + std::string commandId; + std::string invokeRecordStatus; + std::string finishedTime; + bool success; + }; + + + ListInvocationResultsResult(); + explicit ListInvocationResultsResult(const std::string &payload); + ~ListInvocationResultsResult(); + std::vector getInvocationResults()const; + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + + protected: + void parse(const std::string &payload); + private: + std::vector invocationResults_; + int totalCount_; + int pageSize_; + int pageNumber_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONRESULTSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusRequest.h new file mode 100644 index 000000000..23dd848ad --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusRequest.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_EHPC_MODEL_LISTINVOCATIONSTATUSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListInvocationStatusRequest : public RpcServiceRequest { +public: + ListInvocationStatusRequest(); + ~ListInvocationStatusRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getCommandId() const; + void setCommandId(const std::string &commandId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string commandId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h b/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h new file mode 100644 index 000000000..83d2ce4c4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListInvocationStatusResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListInvocationStatusResult : public ServiceResult + { + public: + struct InvokeInstance + { + std::string instanceId; + std::string instanceInvokeStatus; + }; + + + ListInvocationStatusResult(); + explicit ListInvocationStatusResult(const std::string &payload); + ~ListInvocationStatusResult(); + std::string getInvokeStatus()const; + std::string getCommandId()const; + std::vector getInvokeInstances()const; + + protected: + void parse(const std::string &payload); + private: + std::string invokeStatus_; + std::string commandId_; + std::vector invokeInstances_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTINVOCATIONSTATUSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h index 24b3fa6da..1db381171 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesRequest.h @@ -34,8 +34,6 @@ public: void setPageNumber(int pageNumber); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); std::string getName() const; void setName(const std::string &name); int getPageSize() const; @@ -44,7 +42,6 @@ public: private: int pageNumber_; std::string accessKeyId_; - std::string regionId_; std::string name_; int pageSize_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h index 4fdd3bc47..26f9043f5 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobTemplatesResult.h @@ -34,17 +34,27 @@ namespace AlibabaCloud public: struct JobTemplates { + int task; + bool withUnzipCmd; + int priority; + std::string stderrRedirectPath; + int node; + std::string clockTime; + int gpu; + std::string runasUser; + std::string unzipCmd; + int thread; + std::string name; std::string variables; bool reRunable; std::string commandLine; - int priority; - std::string stderrRedirectPath; + std::string mem; + std::string inputFileUrl; std::string stdoutRedirectPath; std::string id; std::string arrayRequest; - std::string runasUser; + std::string queue; std::string packagePath; - std::string name; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h index 91e3cb86d..d845a2889 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobsResult.h @@ -42,7 +42,8 @@ namespace AlibabaCloud std::string comment; std::string owner; std::string _stderr; - int priority; + std::string priority; + std::string nodeList; std::string startTime; std::string lastModifyTime; std::string submitTime; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersRequest.h new file mode 100644 index 000000000..93367eefb --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBSWITHFILTERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTJOBSWITHFILTERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListJobsWithFiltersRequest : public RpcServiceRequest { +public: + ListJobsWithFiltersRequest(); + ~ListJobsWithFiltersRequest(); + std::string getJobStatus() const; + void setJobStatus(const std::string &jobStatus); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getExecuteOrder() const; + void setExecuteOrder(const std::string &executeOrder); + std::string getJobName() const; + void setJobName(const std::string &jobName); + std::string getSubmitOrder() const; + void setSubmitOrder(const std::string &submitOrder); + std::string getPendOrder() const; + void setPendOrder(const std::string &pendOrder); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::vector getUsers() const; + void setUsers(const std::vector &users); + std::string getCreateTimeEnd() const; + void setCreateTimeEnd(const std::string &createTimeEnd); + bool getAsync() const; + void setAsync(bool async); + std::vector getNodes() const; + void setNodes(const std::vector &nodes); + std::vector getQueues() const; + void setQueues(const std::vector &queues); + std::string getCreateTimeStart() const; + void setCreateTimeStart(const std::string &createTimeStart); + +private: + std::string jobStatus_; + long pageNumber_; + std::string regionId_; + long pageSize_; + std::string executeOrder_; + std::string jobName_; + std::string submitOrder_; + std::string pendOrder_; + std::string clusterId_; + std::vector users_; + std::string createTimeEnd_; + bool async_; + std::vector nodes_; + std::vector queues_; + std::string createTimeStart_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBSWITHFILTERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersResult.h b/ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersResult.h new file mode 100644 index 000000000..32727a6a8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListJobsWithFiltersResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTJOBSWITHFILTERSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTJOBSWITHFILTERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListJobsWithFiltersResult : public ServiceResult + { + public: + struct JobInfo + { + struct Resources + { + long cores; + long nodes; + }; + std::string comment; + std::string owner; + std::string _stderr; + std::string priority; + std::string nodeList; + std::string startTime; + std::string lastModifyTime; + std::string submitTime; + std::string _stdout; + std::string name; + std::string variableList; + std::string state; + std::string shellPath; + bool rerunable; + Resources resources; + std::string id; + std::string arrayRequest; + std::string queue; + }; + + + ListJobsWithFiltersResult(); + explicit ListJobsWithFiltersResult(const std::string &payload); + ~ListJobsWithFiltersResult(); + int getTotalCount()const; + long getPageSize()const; + std::vector getJobs()const; + long getPageNumber()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + long pageSize_; + std::vector jobs_; + long pageNumber_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTJOBSWITHFILTERSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.h new file mode 100644 index 000000000..596842291 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueRequest.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_EHPC_MODEL_LISTNODESBYQUEUEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListNodesByQueueRequest : public RpcServiceRequest { +public: + ListNodesByQueueRequest(); + ~ListNodesByQueueRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getAsync() const; + void setAsync(bool async); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string queueName_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + bool async_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h new file mode 100644 index 000000000..ca64f1bbf --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesByQueueResult.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_LISTNODESBYQUEUERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListNodesByQueueResult : public ServiceResult + { + public: + struct NodeInfo + { + struct TotalResources + { + int memory; + int cpu; + int gpu; + }; + struct UsedResources + { + int memory; + int cpu; + int gpu; + }; + std::string status; + std::string imageOwnerAlias; + std::string stateInSched; + std::string zoneId; + std::string vSwitchId; + bool expired; + std::string addTime; + UsedResources usedResources; + std::string publicIpAddress; + bool createdByEhpc; + std::string vpcId; + std::string createMode; + std::string version; + TotalResources totalResources; + std::string expiredTime; + std::string imageId; + bool htEnabled; + std::string ipAddress; + std::string regionId; + std::string id; + std::string lockReason; + std::string hostName; + std::string spotStrategy; + std::string location; + }; + + + ListNodesByQueueResult(); + explicit ListNodesByQueueResult(const std::string &payload); + ~ListNodesByQueueResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getNodes()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector nodes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTNODESBYQUEUERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h index 8419046a4..a0c7d108d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingRequest.h @@ -36,6 +36,8 @@ public: void setClusterId(const std::string &clusterId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getSequence() const; + void setSequence(const std::string &sequence); std::string getHostName() const; void setHostName(const std::string &hostName); bool getOnlyDetached() const; @@ -45,6 +47,7 @@ private: std::string role_; std::string clusterId_; std::string accessKeyId_; + std::string sequence_; std::string hostName_; bool onlyDetached_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h index 880283c9d..4d88ee293 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesNoPagingResult.h @@ -49,16 +49,19 @@ namespace AlibabaCloud std::string status; std::string imageOwnerAlias; bool expired; + std::vector roles; std::string addTime; UsedResources usedResources; - std::string role; bool createdByEhpc; + std::string version; TotalResources totalResources; std::string expiredTime; std::string imageId; - std::string regionId; + bool htEnabled; std::string id; std::string lockReason; + std::string instanceType; + std::string hostName; std::string spotStrategy; }; @@ -66,17 +69,11 @@ namespace AlibabaCloud ListNodesNoPagingResult(); explicit ListNodesNoPagingResult(const std::string &payload); ~ListNodesNoPagingResult(); - int getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; std::vector getNodes()const; protected: void parse(const std::string &payload); private: - int totalCount_; - int pageSize_; - int pageNumber_; std::vector nodes_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesRequest.h index f21af03af..2c944432d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesRequest.h @@ -32,8 +32,6 @@ public: ~ListNodesRequest(); std::string getRole() const; void setRole(const std::string &role); - std::string getClusterId() const; - void setClusterId(const std::string &clusterId); int getPageNumber() const; void setPageNumber(int pageNumber); std::string getAccessKeyId() const; @@ -42,14 +40,34 @@ public: void setHostName(const std::string &hostName); int getPageSize() const; void setPageSize(int pageSize); + std::string getHostNamePrefix() const; + void setHostNamePrefix(const std::string &hostNamePrefix); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getHostNameSuffix() const; + void setHostNameSuffix(const std::string &hostNameSuffix); + std::string getFilter() const; + void setFilter(const std::string &filter); + std::string getPrivateIpAddress() const; + void setPrivateIpAddress(const std::string &privateIpAddress); + std::string getSequence() const; + void setSequence(const std::string &sequence); + std::string getSortBy() const; + void setSortBy(const std::string &sortBy); private: std::string role_; - std::string clusterId_; int pageNumber_; std::string accessKeyId_; std::string hostName_; int pageSize_; + std::string hostNamePrefix_; + std::string clusterId_; + std::string hostNameSuffix_; + std::string filter_; + std::string privateIpAddress_; + std::string sequence_; + std::string sortBy_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h index cd8685f7f..d9e21484e 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListNodesResult.h @@ -46,20 +46,32 @@ namespace AlibabaCloud int cpu; int gpu; }; - std::string status; std::string imageOwnerAlias; - bool expired; - std::string addTime; - UsedResources usedResources; - std::string role; + std::string publicIpAddress; bool createdByEhpc; + std::string version; TotalResources totalResources; std::string expiredTime; std::string imageId; + std::string lockReason; + std::string instanceType; + std::string hostName; + std::string spotStrategy; + std::string status; + std::string stateInSched; + std::string zoneId; + std::string vSwitchId; + bool expired; + std::vector roles; + std::string addTime; + UsedResources usedResources; + std::string vpcId; + std::string createMode; + bool htEnabled; + std::string ipAddress; std::string regionId; std::string id; - std::string lockReason; - std::string spotStrategy; + std::string location; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h index bbdc9c3ab..61e0aa639 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListPreferredEcsTypesRequest.h @@ -36,11 +36,14 @@ public: void setSpotStrategy(const std::string &spotStrategy); std::string getZoneId() const; void setZoneId(const std::string &zoneId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); private: std::string accessKeyId_; std::string spotStrategy_; std::string zoneId_; + std::string instanceChargeType_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.h new file mode 100644 index 000000000..374e7427a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListQueuesRequest.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_EHPC_MODEL_LISTQUEUESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListQueuesRequest : public RpcServiceRequest { +public: + ListQueuesRequest(); + ~ListQueuesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getAsync() const; + void setAsync(bool async); + +private: + std::string clusterId_; + std::string accessKeyId_; + bool async_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTQUEUESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h new file mode 100644 index 000000000..4b85d1a69 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListQueuesResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTQUEUESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTQUEUESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListQueuesResult : public ServiceResult + { + public: + struct QueueInfo + { + struct Instance + { + float spotPriceLimit; + std::string instanceType; + }; + std::string hostNameSuffix; + std::string type; + std::vector spotInstanceTypes; + bool enableAutoGrow; + std::string resourceGroupId; + std::string imageId; + std::string hostNamePrefix; + std::string queueName; + std::string spotStrategy; + std::vector computeInstanceType; + }; + + + ListQueuesResult(); + explicit ListQueuesResult(const std::string &payload); + ~ListQueuesResult(); + std::vector getQueues()const; + + protected: + void parse(const std::string &payload); + private: + std::vector queues_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTQUEUESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.h new file mode 100644 index 000000000..9959fc875 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsRequest.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_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListSecurityGroupsRequest : public RpcServiceRequest { +public: + ListSecurityGroupsRequest(); + ~ListSecurityGroupsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.h new file mode 100644 index 000000000..629dc01b4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListSecurityGroupsResult.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_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListSecurityGroupsResult : public ServiceResult + { + public: + + + ListSecurityGroupsResult(); + explicit ListSecurityGroupsResult(const std::string &payload); + ~ListSecurityGroupsResult(); + std::vector getSecurityGroups()const; + int getTotalCount()const; + + protected: + void parse(const std::string &payload); + private: + std::vector securityGroups_; + int totalCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTSECURITYGROUPSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresRequest.h index 9b48e7c48..9c41eebb9 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListSoftwaresRequest.h @@ -30,12 +30,15 @@ class ALIBABACLOUD_EHPC_EXPORT ListSoftwaresRequest : public RpcServiceRequest { public: ListSoftwaresRequest(); ~ListSoftwaresRequest(); + std::string getOsTag() const; + void setOsTag(const std::string &osTag); std::string getEhpcVersion() const; void setEhpcVersion(const std::string &ehpcVersion); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); private: + std::string osTag_; std::string ehpcVersion_; std::string accessKeyId_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTagResourcesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..88dac39e1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListTagResourcesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTagResourcesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListTagResourcesResult.h new file mode 100644 index 000000000..73795cb8f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListTagResourcesResult.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.h new file mode 100644 index 000000000..0b4117bff --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListTasksRequest.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_EHPC_MODEL_LISTTASKSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListTasksRequest : public RpcServiceRequest { +public: + ListTasksRequest(); + ~ListTasksRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + bool getArchived() const; + void setArchived(bool archived); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + bool archived_; + int pageSize_; + std::string taskId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h b/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h new file mode 100644 index 000000000..c3c374425 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListTasksResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListTasksResult : public ServiceResult + { + public: + struct TaskInfo + { + std::string status; + std::string errors; + std::string taskId; + std::string clusterId; + std::string taskType; + std::string request; + int currentStep; + int totalSteps; + std::string result; + }; + + + ListTasksResult(); + explicit ListTasksResult(const std::string &payload); + ~ListTasksResult(); + 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_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTTASKSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsRequest.h new file mode 100644 index 000000000..52816008d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsRequest.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_EHPC_MODEL_LISTUPGRADECLIENTSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTUPGRADECLIENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListUpgradeClientsRequest : public RpcServiceRequest { +public: + ListUpgradeClientsRequest(); + ~ListUpgradeClientsRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clusterId_; + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUPGRADECLIENTSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsResult.h b/ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsResult.h new file mode 100644 index 000000000..60e151b8f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListUpgradeClientsResult.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTUPGRADECLIENTSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTUPGRADECLIENTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListUpgradeClientsResult : public ServiceResult + { + public: + struct ClientRecordsItem + { + std::string subUid; + std::string newVersion; + std::string updateTime; + std::string oldVersion; + }; + + + ListUpgradeClientsResult(); + explicit ListUpgradeClientsResult(const std::string &payload); + ~ListUpgradeClientsResult(); + std::vector getClientRecords()const; + std::string getLatestVersion()const; + std::string getCurrentVersion()const; + + protected: + void parse(const std::string &payload); + private: + std::vector clientRecords_; + std::string latestVersion_; + std::string currentVersion_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUPGRADECLIENTSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncRequest.h b/ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncRequest.h new file mode 100644 index 000000000..608da671a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTUSERSASYNCREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTUSERSASYNCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ListUsersAsyncRequest : public RpcServiceRequest { +public: + ListUsersAsyncRequest(); + ~ListUsersAsyncRequest(); + std::string getAsyncId() const; + void setAsyncId(const std::string &asyncId); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string asyncId_; + std::string clusterId_; + int pageNumber_; + std::string accessKeyId_; + int pageSize_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUSERSASYNCREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncResult.h b/ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncResult.h new file mode 100644 index 000000000..67b5bfdf7 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ListUsersAsyncResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_LISTUSERSASYNCRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_LISTUSERSASYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ListUsersAsyncResult : public ServiceResult + { + public: + struct UserInfo + { + std::string group; + std::string userId; + std::string addTime; + std::string name; + std::string groupId; + }; + + + ListUsersAsyncResult(); + explicit ListUsersAsyncResult(const std::string &payload); + ~ListUsersAsyncResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::string getAsyncId()const; + std::string getAsyncStatus()const; + std::vector getUsers()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::string asyncId_; + std::string asyncStatus_; + std::vector users_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_LISTUSERSASYNCRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h b/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h index e3f2141fd..752c5452d 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ListVolumesResult.h @@ -34,11 +34,24 @@ namespace AlibabaCloud public: struct VolumeInfo { + struct VolumeInfo1 + { + std::string role; + std::string volumeProtocol; + std::string volumeId; + std::string remoteDirectory; + std::string localDirectory; + std::string volumeType; + std::string jobQueue; + std::string volumeMountpoint; + std::string location; + }; std::string volumeProtocol; std::string volumeId; std::string remoteDirectory; std::string volumeType; std::string clusterId; + std::vector additionalVolumes; std::string clusterName; std::string regionId; std::string volumeMountpoint; diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h index f75733b5d..b04f7136e 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyClusterAttributesRequest.h @@ -30,19 +30,25 @@ class ALIBABACLOUD_EHPC_EXPORT ModifyClusterAttributesRequest : public RpcServic public: ModifyClusterAttributesRequest(); ~ModifyClusterAttributesRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); std::string getDescription() const; void setDescription(const std::string &description); std::string getClusterId() const; void setClusterId(const std::string &clusterId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); std::string getName() const; void setName(const std::string &name); private: + std::string imageId_; std::string description_; std::string clusterId_; std::string accessKeyId_; + std::string imageOwnerAlias_; std::string name_; }; } // namespace Model diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.h new file mode 100644 index 000000000..5a5bda3d3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesRequest.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_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ModifyContainerAppAttributesRequest : public RpcServiceRequest { +public: + ModifyContainerAppAttributesRequest(); + ~ModifyContainerAppAttributesRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerId() const; + void setContainerId(const std::string &containerId); + +private: + std::string description_; + std::string accessKeyId_; + std::string containerId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h b/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h new file mode 100644 index 000000000..20fd380d7 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyContainerAppAttributesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ModifyContainerAppAttributesResult : public ServiceResult + { + public: + + + ModifyContainerAppAttributesResult(); + explicit ModifyContainerAppAttributesResult(const std::string &payload); + ~ModifyContainerAppAttributesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYCONTAINERAPPATTRIBUTESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h new file mode 100644 index 000000000..0a0a32e75 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigRequest.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT ModifyImageGatewayConfigRequest : public RpcServiceRequest { +public: + struct Repo { + std::string auth; + std::string location; + std::string uRL; + }; + ModifyImageGatewayConfigRequest(); + ~ModifyImageGatewayConfigRequest(); + std::vector getRepo() const; + void setRepo(const std::vector &repo); + std::string getDBServerInfo() const; + void setDBServerInfo(const std::string &dBServerInfo); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getDefaultRepoLocation() const; + void setDefaultRepoLocation(const std::string &defaultRepoLocation); + std::string getDBPassword() const; + void setDBPassword(const std::string &dBPassword); + std::string getDBType() const; + void setDBType(const std::string &dBType); + std::string getDBUsername() const; + void setDBUsername(const std::string &dBUsername); + int getPullUpdateTimeout() const; + void setPullUpdateTimeout(int pullUpdateTimeout); + std::string getImageExpirationTimeout() const; + void setImageExpirationTimeout(const std::string &imageExpirationTimeout); + +private: + std::vector repo_; + std::string dBServerInfo_; + std::string clusterId_; + std::string accessKeyId_; + std::string defaultRepoLocation_; + std::string dBPassword_; + std::string dBType_; + std::string dBUsername_; + int pullUpdateTimeout_; + std::string imageExpirationTimeout_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h new file mode 100644 index 000000000..c007ee319 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyImageGatewayConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ModifyImageGatewayConfigResult : public ServiceResult + { + public: + + + ModifyImageGatewayConfigResult(); + explicit ModifyImageGatewayConfigResult(const std::string &payload); + ~ModifyImageGatewayConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYIMAGEGATEWAYCONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetJobUserRequest.h b/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h similarity index 73% rename from ehpc/include/alibabacloud/ehpc/model/SetJobUserRequest.h rename to ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h index b9cd2c5be..5477d5810 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetJobUserRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_ -#define ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_ +#ifndef ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDREQUEST_H_ #include #include @@ -26,10 +26,10 @@ namespace AlibabaCloud { namespace EHPC { namespace Model { -class ALIBABACLOUD_EHPC_EXPORT SetJobUserRequest : public RpcServiceRequest { +class ALIBABACLOUD_EHPC_EXPORT ModifyVisualServicePasswdRequest : public RpcServiceRequest { public: - SetJobUserRequest(); - ~SetJobUserRequest(); + ModifyVisualServicePasswdRequest(); + ~ModifyVisualServicePasswdRequest(); std::string getRunasUserPassword() const; void setRunasUserPassword(const std::string &runasUserPassword); std::string getRunasUser() const; @@ -38,14 +38,17 @@ public: void setClusterId(const std::string &clusterId); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); + std::string getPasswd() const; + void setPasswd(const std::string &passwd); private: std::string runasUserPassword_; std::string runasUser_; std::string clusterId_; std::string accessKeyId_; + std::string passwd_; }; } // namespace Model } // namespace EHPC } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_EHPC_MODEL_SETJOBUSERREQUEST_H_ +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h b/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.h new file mode 100644 index 000000000..985e10077 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/ModifyVisualServicePasswdResult.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_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT ModifyVisualServicePasswdResult : public ServiceResult + { + public: + + + ModifyVisualServicePasswdResult(); + explicit ModifyVisualServicePasswdResult(const std::string &payload); + ~ModifyVisualServicePasswdResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_MODIFYVISUALSERVICEPASSWDRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h b/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.h new file mode 100644 index 000000000..33a85349c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/MountNFSRequest.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_EHPC_MODEL_MOUNTNFSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT MountNFSRequest : public RpcServiceRequest { +public: + MountNFSRequest(); + ~MountNFSRequest(); + std::string getMountDir() const; + void setMountDir(const std::string &mountDir); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRemoteDir() const; + void setRemoteDir(const std::string &remoteDir); + std::string getNfsDir() const; + void setNfsDir(const std::string &nfsDir); + std::string getProtocolType() const; + void setProtocolType(const std::string &protocolType); + +private: + std::string mountDir_; + std::string accessKeyId_; + std::string instanceId_; + std::string remoteDir_; + std::string nfsDir_; + std::string protocolType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_MOUNTNFSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h b/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.h new file mode 100644 index 000000000..d7af49fdc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/MountNFSResult.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_EHPC_MODEL_MOUNTNFSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_MOUNTNFSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT MountNFSResult : public ServiceResult + { + public: + + + MountNFSResult(); + explicit MountNFSResult(const std::string &payload); + ~MountNFSResult(); + std::string getInvokeId()const; + + protected: + void parse(const std::string &payload); + private: + std::string invokeId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_MOUNTNFSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/PullImageRequest.h b/ehpc/include/alibabacloud/ehpc/model/PullImageRequest.h new file mode 100644 index 000000000..86dd69b1b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/PullImageRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_PULLIMAGEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_PULLIMAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT PullImageRequest : public RpcServiceRequest { +public: + PullImageRequest(); + ~PullImageRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRepository() const; + void setRepository(const std::string &repository); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImageTag() const; + void setImageTag(const std::string &imageTag); + +private: + std::string clusterId_; + std::string repository_; + std::string accessKeyId_; + std::string containerType_; + std::string imageTag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_PULLIMAGEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/PullImageResult.h b/ehpc/include/alibabacloud/ehpc/model/PullImageResult.h new file mode 100644 index 000000000..bec034241 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/PullImageResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_PULLIMAGERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_PULLIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT PullImageResult : public ServiceResult + { + public: + + + PullImageResult(); + explicit PullImageResult(const std::string &payload); + ~PullImageResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_PULLIMAGERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h new file mode 100644 index 000000000..c7e4d0a1f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT QueryServicePackAndPriceRequest : public RpcServiceRequest { +public: + QueryServicePackAndPriceRequest(); + ~QueryServicePackAndPriceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h new file mode 100644 index 000000000..870b22e7d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/QueryServicePackAndPriceResult.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT QueryServicePackAndPriceResult : public ServiceResult + { + public: + struct ServicePackInfo + { + std::string instanceName; + int endTime; + int capacity; + int startTime; + }; + + + QueryServicePackAndPriceResult(); + explicit QueryServicePackAndPriceResult(const std::string &payload); + ~QueryServicePackAndPriceResult(); + float getOriginalPrice()const; + float getDiscountPrice()const; + std::string getCurrency()const; + std::vector getServicePack()const; + std::string getRegionId()const; + float getTradePrice()const; + int getOriginalAmount()const; + int getChargeAmount()const; + + protected: + void parse(const std::string &payload); + private: + float originalPrice_; + float discountPrice_; + std::string currency_; + std::vector servicePack_; + std::string regionId_; + float tradePrice_; + int originalAmount_; + int chargeAmount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_QUERYSERVICEPACKANDPRICERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterRequest.h new file mode 100644 index 000000000..560c3ad1b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_RECOVERCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT RecoverClusterRequest : public RpcServiceRequest { +public: + RecoverClusterRequest(); + ~RecoverClusterRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + std::string getOsTag() const; + void setOsTag(const std::string &osTag); + std::string getClientVersion() const; + void setClientVersion(const std::string &clientVersion); + std::string getAccountType() const; + void setAccountType(const std::string &accountType); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getImageOwnerAlias() const; + void setImageOwnerAlias(const std::string &imageOwnerAlias); + std::string getSchedulerType() const; + void setSchedulerType(const std::string &schedulerType); + +private: + std::string imageId_; + std::string osTag_; + std::string clientVersion_; + std::string accountType_; + std::string clusterId_; + std::string accessKeyId_; + std::string imageOwnerAlias_; + std::string schedulerType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.h new file mode 100644 index 000000000..817d7c81e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/RecoverClusterResult.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_EHPC_MODEL_RECOVERCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT RecoverClusterResult : public ServiceResult + { + public: + + + RecoverClusterResult(); + explicit RecoverClusterResult(const std::string &payload); + ~RecoverClusterResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_RECOVERCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h index e367f8048..f6b56c03a 100644 --- a/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h +++ b/ehpc/include/alibabacloud/ehpc/model/ResetNodesResult.h @@ -37,10 +37,12 @@ namespace AlibabaCloud ResetNodesResult(); explicit ResetNodesResult(const std::string &payload); ~ResetNodesResult(); + std::string getTaskId()const; protected: void parse(const std::string &payload); private: + std::string taskId_; }; } diff --git a/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h b/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h new file mode 100644 index 000000000..b59ddfa1d --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingRequest.h @@ -0,0 +1,60 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT RunCloudMetricProfilingRequest : public RpcServiceRequest { +public: + RunCloudMetricProfilingRequest(); + ~RunCloudMetricProfilingRequest(); + int getFreq() const; + void setFreq(int freq); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getDuration() const; + void setDuration(int duration); + std::string getHostName() const; + void setHostName(const std::string &hostName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getProcessId() const; + void setProcessId(int processId); + +private: + int freq_; + std::string clusterId_; + std::string accessKeyId_; + int duration_; + std::string hostName_; + std::string regionId_; + int processId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h b/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h new file mode 100644 index 000000000..acdadce5c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/RunCloudMetricProfilingResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_RUNCLOUDMETRICPROFILINGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT RunCloudMetricProfilingResult : public ServiceResult + { + public: + + + RunCloudMetricProfilingResult(); + explicit RunCloudMetricProfilingResult(const std::string &payload); + ~RunCloudMetricProfilingResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_RUNCLOUDMETRICPROFILINGRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h index c5cd47d25..e699b3dd6 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/SetAutoScaleConfigRequest.h @@ -28,8 +28,47 @@ namespace EHPC { namespace Model { class ALIBABACLOUD_EHPC_EXPORT SetAutoScaleConfigRequest : public RpcServiceRequest { public: + struct Queues { + std::string queueName; + std::string systemDiskLevel; + struct InstanceTypes { + std::string vSwitchId; + std::string spotStrategy; + std::string zoneId; + std::string instanceType; + float spotPriceLimit; + }; + std::vector instanceTypes; + bool enableAutoGrow; + std::string hostNameSuffix; + float spotPriceLimit; + bool enableAutoShrink; + std::string spotStrategy; + struct DataDisks { + bool dataDiskDeleteWithInstance; + bool dataDiskEncrypted; + std::string dataDiskKMSKeyId; + int dataDiskSize; + std::string dataDiskCategory; + std::string dataDiskPerformanceLevel; + }; + std::vector dataDisks; + int minNodesInQueue; + long maxNodesPerCycle; + std::string systemDiskCategory; + int maxNodesInQueue; + int systemDiskSize; + std::string queueImageId; + std::string instanceType; + std::string hostNamePrefix; + long minNodesPerCycle; + }; SetAutoScaleConfigRequest(); ~SetAutoScaleConfigRequest(); + std::string getImageId() const; + void setImageId(const std::string &imageId); + float getSpotPriceLimit() const; + void setSpotPriceLimit(float spotPriceLimit); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getExcludeNodes() const; @@ -46,16 +85,22 @@ public: void setEnableAutoGrow(bool enableAutoGrow); bool getEnableAutoShrink() const; void setEnableAutoShrink(bool enableAutoShrink); + std::string getSpotStrategy() const; + void setSpotStrategy(const std::string &spotStrategy); int getMaxNodesInCluster() const; void setMaxNodesInCluster(int maxNodesInCluster); int getShrinkIntervalInMinutes() const; void setShrinkIntervalInMinutes(int shrinkIntervalInMinutes); + std::vector getQueues() const; + void setQueues(const std::vector &queues); int getGrowIntervalInMinutes() const; void setGrowIntervalInMinutes(int growIntervalInMinutes); int getGrowRatio() const; void setGrowRatio(int growRatio); private: + std::string imageId_; + float spotPriceLimit_; std::string accessKeyId_; std::string excludeNodes_; int extraNodesGrowRatio_; @@ -64,8 +109,10 @@ private: std::string clusterId_; bool enableAutoGrow_; bool enableAutoShrink_; + std::string spotStrategy_; int maxNodesInCluster_; int shrinkIntervalInMinutes_; + std::vector queues_; int growIntervalInMinutes_; int growRatio_; }; diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h new file mode 100644 index 000000000..822dcf239 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SETGWSCLUSTERPOLICYREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetGWSClusterPolicyRequest : public RpcServiceRequest { +public: + SetGWSClusterPolicyRequest(); + ~SetGWSClusterPolicyRequest(); + std::string getWatermark() const; + void setWatermark(const std::string &watermark); + std::string getLocalDrive() const; + void setLocalDrive(const std::string &localDrive); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getClipboard() const; + void setClipboard(const std::string &clipboard); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUsbRedirect() const; + void setUsbRedirect(const std::string &usbRedirect); + bool getAsyncMode() const; + void setAsyncMode(bool asyncMode); + std::string getUdpPort() const; + void setUdpPort(const std::string &udpPort); + +private: + std::string watermark_; + std::string localDrive_; + std::string clusterId_; + std::string clipboard_; + std::string accessKeyId_; + std::string usbRedirect_; + bool asyncMode_; + std::string udpPort_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h new file mode 100644 index 000000000..40abe83cd --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSClusterPolicyResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SETGWSCLUSTERPOLICYRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetGWSClusterPolicyResult : public ServiceResult + { + public: + + + SetGWSClusterPolicyResult(); + explicit SetGWSClusterPolicyResult(const std::string &payload); + ~SetGWSClusterPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSCLUSTERPOLICYRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameRequest.h new file mode 100644 index 000000000..5817e473b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameRequest.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_EHPC_MODEL_SETGWSINSTANCENAMEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetGWSInstanceNameRequest : public RpcServiceRequest { +public: + SetGWSInstanceNameRequest(); + ~SetGWSInstanceNameRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string accessKeyId_; + std::string instanceId_; + std::string name_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h new file mode 100644 index 000000000..7c02100f3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceNameResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SETGWSINSTANCENAMERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetGWSInstanceNameResult : public ServiceResult + { + public: + + + SetGWSInstanceNameResult(); + explicit SetGWSInstanceNameResult(const std::string &payload); + ~SetGWSInstanceNameResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCENAMERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.h new file mode 100644 index 000000000..340356c62 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserRequest.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_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetGWSInstanceUserRequest : public RpcServiceRequest { +public: + SetGWSInstanceUserRequest(); + ~SetGWSInstanceUserRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getUserUid() const; + void setUserUid(const std::string &userUid); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + std::string accessKeyId_; + std::string instanceId_; + std::string userUid_; + std::string userName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h new file mode 100644 index 000000000..1d3d2f7d6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetGWSInstanceUserResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SETGWSINSTANCEUSERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetGWSInstanceUserResult : public ServiceResult + { + public: + + + SetGWSInstanceUserResult(); + explicit SetGWSInstanceUserResult(const std::string &payload); + ~SetGWSInstanceUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETGWSINSTANCEUSERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetPostScriptsRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetPostScriptsRequest.h new file mode 100644 index 000000000..b8dc5d6a6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetPostScriptsRequest.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_SETPOSTSCRIPTSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETPOSTSCRIPTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetPostScriptsRequest : public RpcServiceRequest { +public: + struct PostInstallScripts { + std::string args; + std::string url; + }; + SetPostScriptsRequest(); + ~SetPostScriptsRequest(); + std::vector getPostInstallScripts() const; + void setPostInstallScripts(const std::vector &postInstallScripts); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::vector postInstallScripts_; + std::string clusterId_; + std::string accessKeyId_; + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETPOSTSCRIPTSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetPostScriptsResult.h b/ehpc/include/alibabacloud/ehpc/model/SetPostScriptsResult.h new file mode 100644 index 000000000..2b60f7a23 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetPostScriptsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SETPOSTSCRIPTSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETPOSTSCRIPTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetPostScriptsResult : public ServiceResult + { + public: + + + SetPostScriptsResult(); + explicit SetPostScriptsResult(const std::string &payload); + ~SetPostScriptsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETPOSTSCRIPTSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetQueueRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetQueueRequest.h new file mode 100644 index 000000000..65c32de06 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetQueueRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_SETQUEUEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETQUEUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetQueueRequest : public RpcServiceRequest { +public: + struct Node { + std::string name; + }; + SetQueueRequest(); + ~SetQueueRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::vector getNode() const; + void setNode(const std::vector &node); + +private: + std::string queueName_; + std::string clusterId_; + std::string accessKeyId_; + std::vector node_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETQUEUEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h b/ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h new file mode 100644 index 000000000..7043a5ddc --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetQueueResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SETQUEUERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETQUEUERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetQueueResult : public ServiceResult + { + public: + + + SetQueueResult(); + explicit SetQueueResult(const std::string &payload); + ~SetQueueResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETQUEUERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoRequest.h b/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoRequest.h new file mode 100644 index 000000000..adb677646 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFOREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SetSchedulerInfoRequest : public RpcServiceRequest { +public: + struct SlurmInfo { + int schedInterval; + int backfillInterval; + }; + struct Scheduler { + std::string schedName; + }; + struct PbsInfo { + int schedInterval; + int schedMaxJobs; + struct AclLimit { + std::string aclUsers; + std::string queue; + }; + std::vector aclLimit; + struct ResourceLimit { + int maxJobs; + int nodes; + std::string mem; + int cpus; + std::string user; + std::string queue; + }; + std::vector resourceLimit; + int schedMaxQueuedJobs; + int jobHistoryDuration; + }; + SetSchedulerInfoRequest(); + ~SetSchedulerInfoRequest(); + std::vector getSlurmInfo() const; + void setSlurmInfo(const std::vector &slurmInfo); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::vector getScheduler() const; + void setScheduler(const std::vector &scheduler); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getPbsInfo() const; + void setPbsInfo(const std::vector &pbsInfo); + +private: + std::vector slurmInfo_; + std::string clusterId_; + std::string accessKeyId_; + std::vector scheduler_; + std::string regionId_; + std::vector pbsInfo_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFOREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h b/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.h new file mode 100644 index 000000000..7db393db6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SetSchedulerInfoResult.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_EHPC_MODEL_SETSCHEDULERINFORESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SetSchedulerInfoResult : public ServiceResult + { + public: + + + SetSchedulerInfoResult(); + explicit SetSchedulerInfoResult(const std::string &payload); + ~SetSchedulerInfoResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SETSCHEDULERINFORESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/StartClusterRequest.h new file mode 100644 index 000000000..4db6f266c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartClusterRequest.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_EHPC_MODEL_STARTCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StartClusterRequest : public RpcServiceRequest { +public: + StartClusterRequest(); + ~StartClusterRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.h new file mode 100644 index 000000000..7a332fe6c --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartClusterResult.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_EHPC_MODEL_STARTCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StartClusterResult : public ServiceResult + { + public: + + + StartClusterResult(); + explicit StartClusterResult(const std::string &payload); + ~StartClusterResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.h new file mode 100644 index 000000000..901c44370 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceRequest.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_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StartGWSInstanceRequest : public RpcServiceRequest { +public: + StartGWSInstanceRequest(); + ~StartGWSInstanceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string accessKeyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h new file mode 100644 index 000000000..fd3f680cf --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartGWSInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_STARTGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StartGWSInstanceResult : public ServiceResult + { + public: + + + StartGWSInstanceResult(); + explicit StartGWSInstanceResult(const std::string &payload); + ~StartGWSInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/StartNodesRequest.h new file mode 100644 index 000000000..346b5b128 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartNodesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_STARTNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StartNodesRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + StartNodesRequest(); + ~StartNodesRequest(); + std::string getRole() const; + void setRole(const std::string &role); + std::vector getInstance() const; + void setInstance(const std::vector &instance); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string role_; + std::vector instance_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.h new file mode 100644 index 000000000..609da3298 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartNodesResult.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_EHPC_MODEL_STARTNODESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StartNodesResult : public ServiceResult + { + public: + + + StartNodesResult(); + explicit StartNodesResult(const std::string &payload); + ~StartNodesResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTNODESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceRequest.h b/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceRequest.h new file mode 100644 index 000000000..b3f6c0ad4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceRequest.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_EHPC_MODEL_STARTVISUALSERVICEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StartVisualServiceRequest : public RpcServiceRequest { +public: + StartVisualServiceRequest(); + ~StartVisualServiceRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPort() const; + void setPort(int port); + std::string getCidrIp() const; + void setCidrIp(const std::string &cidrIp); + +private: + std::string clusterId_; + std::string accessKeyId_; + int port_; + std::string cidrIp_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.h b/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.h new file mode 100644 index 000000000..8d12d67fd --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StartVisualServiceResult.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_EHPC_MODEL_STARTVISUALSERVICERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StartVisualServiceResult : public ServiceResult + { + public: + + + StartVisualServiceResult(); + explicit StartVisualServiceResult(const std::string &payload); + ~StartVisualServiceResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STARTVISUALSERVICERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopClusterRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopClusterRequest.h new file mode 100644 index 000000000..a2cf388c1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopClusterRequest.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_EHPC_MODEL_STOPCLUSTERREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StopClusterRequest : public RpcServiceRequest { +public: + StopClusterRequest(); + ~StopClusterRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h b/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.h new file mode 100644 index 000000000..a101d0482 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopClusterResult.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_EHPC_MODEL_STOPCLUSTERRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StopClusterResult : public ServiceResult + { + public: + + + StopClusterResult(); + explicit StopClusterResult(const std::string &payload); + ~StopClusterResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPCLUSTERRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.h new file mode 100644 index 000000000..69011ca84 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceRequest.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_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StopGWSInstanceRequest : public RpcServiceRequest { +public: + StopGWSInstanceRequest(); + ~StopGWSInstanceRequest(); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string accessKeyId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h new file mode 100644 index 000000000..e158989c8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopGWSInstanceResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_STOPGWSINSTANCERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StopGWSInstanceResult : public ServiceResult + { + public: + + + StopGWSInstanceResult(); + explicit StopGWSInstanceResult(const std::string &payload); + ~StopGWSInstanceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPGWSINSTANCERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h new file mode 100644 index 000000000..747d829c1 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopNodesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_STOPNODESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPNODESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StopNodesRequest : public RpcServiceRequest { +public: + struct Instance { + std::string id; + }; + StopNodesRequest(); + ~StopNodesRequest(); + std::string getRole() const; + void setRole(const std::string &role); + std::vector getInstance() const; + void setInstance(const std::vector &instance); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string role_; + std::vector instance_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPNODESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h b/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.h new file mode 100644 index 000000000..c9dd46029 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopNodesResult.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_EHPC_MODEL_STOPNODESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPNODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StopNodesResult : public ServiceResult + { + public: + + + StopNodesResult(); + explicit StopNodesResult(const std::string &payload); + ~StopNodesResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPNODESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceRequest.h b/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceRequest.h new file mode 100644 index 000000000..b8e77ffce --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceRequest.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_EHPC_MODEL_STOPVISUALSERVICEREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT StopVisualServiceRequest : public RpcServiceRequest { +public: + StopVisualServiceRequest(); + ~StopVisualServiceRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPort() const; + void setPort(int port); + std::string getCidrIp() const; + void setCidrIp(const std::string &cidrIp); + +private: + std::string clusterId_; + std::string accessKeyId_; + int port_; + std::string cidrIp_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICEREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.h b/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.h new file mode 100644 index 000000000..a44cc0da8 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/StopVisualServiceResult.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_EHPC_MODEL_STOPVISUALSERVICERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT StopVisualServiceResult : public ServiceResult + { + public: + + + StopVisualServiceResult(); + explicit StopVisualServiceResult(const std::string &payload); + ~StopVisualServiceResult(); + std::string getMessage()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_STOPVISUALSERVICERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SubmitJobRequest.h b/ehpc/include/alibabacloud/ehpc/model/SubmitJobRequest.h index 3184fda69..d9d53e176 100644 --- a/ehpc/include/alibabacloud/ehpc/model/SubmitJobRequest.h +++ b/ehpc/include/alibabacloud/ehpc/model/SubmitJobRequest.h @@ -34,43 +34,76 @@ public: void setStderrRedirectPath(const std::string &stderrRedirectPath); std::string getRunasUserPassword() const; void setRunasUserPassword(const std::string &runasUserPassword); + std::string getClockTime() const; + void setClockTime(const std::string &clockTime); std::string getCommandLine() const; void setCommandLine(const std::string &commandLine); + std::string getJobQueue() const; + void setJobQueue(const std::string &jobQueue); std::string getAccessKeyId() const; void setAccessKeyId(const std::string &accessKeyId); std::string getArrayRequest() const; void setArrayRequest(const std::string &arrayRequest); + std::string getUnzipCmd() const; + void setUnzipCmd(const std::string &unzipCmd); std::string getPackagePath() const; void setPackagePath(const std::string &packagePath); + std::string getMem() const; + void setMem(const std::string &mem); std::string getStdoutRedirectPath() const; void setStdoutRedirectPath(const std::string &stdoutRedirectPath); std::string getVariables() const; void setVariables(const std::string &variables); + std::string getPostCmdLine() const; + void setPostCmdLine(const std::string &postCmdLine); std::string getRunasUser() const; void setRunasUser(const std::string &runasUser); std::string getClusterId() const; void setClusterId(const std::string &clusterId); bool getReRunable() const; void setReRunable(bool reRunable); + int getThread() const; + void setThread(int thread); int getPriority() const; void setPriority(int priority); + int getGpu() const; + void setGpu(int gpu); + int getNode() const; + void setNode(int node); + int getTask() const; + void setTask(int task); + std::string getInputFileUrl() const; + void setInputFileUrl(const std::string &inputFileUrl); std::string getName() const; void setName(const std::string &name); + std::string getContainerId() const; + void setContainerId(const std::string &containerId); private: std::string stderrRedirectPath_; std::string runasUserPassword_; + std::string clockTime_; std::string commandLine_; + std::string jobQueue_; std::string accessKeyId_; std::string arrayRequest_; + std::string unzipCmd_; std::string packagePath_; + std::string mem_; std::string stdoutRedirectPath_; std::string variables_; + std::string postCmdLine_; std::string runasUser_; std::string clusterId_; bool reRunable_; + int thread_; int priority_; + int gpu_; + int node_; + int task_; + std::string inputFileUrl_; std::string name_; + std::string containerId_; }; } // namespace Model } // namespace EHPC diff --git a/ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoRequest.h b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoRequest.h new file mode 100644 index 000000000..56f09ca84 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoRequest.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_EHPC_MODEL_SUMMARYIMAGESINFOREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SummaryImagesInfoRequest : public RpcServiceRequest { +public: + SummaryImagesInfoRequest(); + ~SummaryImagesInfoRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + std::string getImageName() const; + void setImageName(const std::string &imageName); + +private: + std::string clusterId_; + std::string containerType_; + std::string imageName_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESINFOREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoResult.h b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoResult.h new file mode 100644 index 000000000..d67a1deae --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesInfoResult.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_EHPC_MODEL_SUMMARYIMAGESINFORESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SummaryImagesInfoResult : public ServiceResult + { + public: + + + SummaryImagesInfoResult(); + explicit SummaryImagesInfoResult(const std::string &payload); + ~SummaryImagesInfoResult(); + std::string getImagesInfo()const; + + protected: + void parse(const std::string &payload); + private: + std::string imagesInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESINFORESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SummaryImagesRequest.h b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesRequest.h new file mode 100644 index 000000000..1ecc34aa4 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesRequest.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_EHPC_MODEL_SUMMARYIMAGESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SummaryImagesRequest : public RpcServiceRequest { +public: + SummaryImagesRequest(); + ~SummaryImagesRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getContainerType() const; + void setContainerType(const std::string &containerType); + +private: + std::string clusterId_; + std::string containerType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SummaryImagesResult.h b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesResult.h new file mode 100644 index 000000000..300be93df --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SummaryImagesResult.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_EHPC_MODEL_SUMMARYIMAGESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SummaryImagesResult : public ServiceResult + { + public: + + + SummaryImagesResult(); + explicit SummaryImagesResult(const std::string &payload); + ~SummaryImagesResult(); + std::string getImagesName()const; + + protected: + void parse(const std::string &payload); + private: + std::string imagesName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SUMMARYIMAGESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/SyncUsersRequest.h b/ehpc/include/alibabacloud/ehpc/model/SyncUsersRequest.h new file mode 100644 index 000000000..f5104b5c6 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SyncUsersRequest.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_EHPC_MODEL_SYNCUSERSREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_SYNCUSERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT SyncUsersRequest : public RpcServiceRequest { +public: + SyncUsersRequest(); + ~SyncUsersRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + +private: + std::string clusterId_; + std::string regionId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_SYNCUSERSREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/SyncUsersResult.h b/ehpc/include/alibabacloud/ehpc/model/SyncUsersResult.h new file mode 100644 index 000000000..19cf6cdc2 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/SyncUsersResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_SYNCUSERSRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_SYNCUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT SyncUsersResult : public ServiceResult + { + public: + + + SyncUsersResult(); + explicit SyncUsersResult(const std::string &payload); + ~SyncUsersResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_SYNCUSERSRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/TagResourcesRequest.h b/ehpc/include/alibabacloud/ehpc/model/TagResourcesRequest.h new file mode 100644 index 000000000..5a677daa3 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/TagResourcesRequest.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tag_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/TagResourcesResult.h b/ehpc/include/alibabacloud/ehpc/model/TagResourcesResult.h new file mode 100644 index 000000000..b7f335a5f --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/TagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UnTagResourcesRequest.h b/ehpc/include/alibabacloud/ehpc/model/UnTagResourcesRequest.h new file mode 100644 index 000000000..dd457a814 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UnTagResourcesRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT UnTagResourcesRequest : public RpcServiceRequest { +public: + UnTagResourcesRequest(); + ~UnTagResourcesRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/UnTagResourcesResult.h b/ehpc/include/alibabacloud/ehpc/model/UnTagResourcesResult.h new file mode 100644 index 000000000..5c6a1f5e9 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UnTagResourcesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT UnTagResourcesResult : public ServiceResult + { + public: + + + UnTagResourcesResult(); + explicit UnTagResourcesResult(const std::string &payload); + ~UnTagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h b/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.h new file mode 100644 index 000000000..7ada113c5 --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareRequest.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_EHPC_MODEL_UNINSTALLSOFTWAREREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWAREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT UninstallSoftwareRequest : public RpcServiceRequest { +public: + UninstallSoftwareRequest(); + ~UninstallSoftwareRequest(); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getApplication() const; + void setApplication(const std::string &application); + +private: + std::string clusterId_; + std::string accessKeyId_; + std::string application_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWAREREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h b/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h new file mode 100644 index 000000000..0de9d660b --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UninstallSoftwareResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_UNINSTALLSOFTWARERESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWARERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT UninstallSoftwareResult : public ServiceResult + { + public: + + + UninstallSoftwareResult(); + explicit UninstallSoftwareResult(const std::string &payload); + ~UninstallSoftwareResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_UNINSTALLSOFTWARERESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h b/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h new file mode 100644 index 000000000..42f0156bb --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesRequest.h @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT UpdateClusterVolumesRequest : public RpcServiceRequest { +public: + struct AdditionalVolumes { + std::string volumeType; + std::string volumeProtocol; + std::string localDirectory; + std::string remoteDirectory; + struct Roles { + std::string name; + }; + std::vector roles; + std::string volumeId; + std::string volumeMountpoint; + std::string location; + std::string jobQueue; + }; + UpdateClusterVolumesRequest(); + ~UpdateClusterVolumesRequest(); + std::vector getAdditionalVolumes() const; + void setAdditionalVolumes(const std::vector &additionalVolumes); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::vector additionalVolumes_; + std::string clusterId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h b/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h new file mode 100644 index 000000000..c8fa3c09a --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UpdateClusterVolumesResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_UPDATECLUSTERVOLUMESRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT UpdateClusterVolumesResult : public ServiceResult + { + public: + + + UpdateClusterVolumesResult(); + explicit UpdateClusterVolumesResult(const std::string &payload); + ~UpdateClusterVolumesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATECLUSTERVOLUMESRESULT_H_ \ No newline at end of file diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h new file mode 100644 index 000000000..becc602fb --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace EHPC { +namespace Model { +class ALIBABACLOUD_EHPC_EXPORT UpdateQueueConfigRequest : public RpcServiceRequest { +public: + UpdateQueueConfigRequest(); + ~UpdateQueueConfigRequest(); + std::string getQueueName() const; + void setQueueName(const std::string &queueName); + std::string getClusterId() const; + void setClusterId(const std::string &clusterId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getComputeInstanceType() const; + void setComputeInstanceType(const std::string &computeInstanceType); + +private: + std::string queueName_; + std::string clusterId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string computeInstanceType_; +}; +} // namespace Model +} // namespace EHPC +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGREQUEST_H_ diff --git a/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h new file mode 100644 index 000000000..88cb5ed9e --- /dev/null +++ b/ehpc/include/alibabacloud/ehpc/model/UpdateQueueConfigResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_EHPC_MODEL_UPDATEQUEUECONFIGRESULT_H_ +#define ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace EHPC + { + namespace Model + { + class ALIBABACLOUD_EHPC_EXPORT UpdateQueueConfigResult : public ServiceResult + { + public: + + + UpdateQueueConfigResult(); + explicit UpdateQueueConfigResult(const std::string &payload); + ~UpdateQueueConfigResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_EHPC_MODEL_UPDATEQUEUECONFIGRESULT_H_ \ No newline at end of file diff --git a/ehpc/src/EHPCClient.cc b/ehpc/src/EHPCClient.cc index 29b06d20c..747affdf8 100644 --- a/ehpc/src/EHPCClient.cc +++ b/ehpc/src/EHPCClient.cc @@ -51,6 +51,114 @@ EHPCClient::EHPCClient(const std::string & accessKeyId, const std::string & acce EHPCClient::~EHPCClient() {} +EHPCClient::AddContainerAppOutcome EHPCClient::addContainerApp(const AddContainerAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddContainerAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddContainerAppOutcome(AddContainerAppResult(outcome.result())); + else + return AddContainerAppOutcome(outcome.error()); +} + +void EHPCClient::addContainerAppAsync(const AddContainerAppRequest& request, const AddContainerAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addContainerApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddContainerAppOutcomeCallable EHPCClient::addContainerAppCallable(const AddContainerAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addContainerApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::AddExistedNodesOutcome EHPCClient::addExistedNodes(const AddExistedNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddExistedNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddExistedNodesOutcome(AddExistedNodesResult(outcome.result())); + else + return AddExistedNodesOutcome(outcome.error()); +} + +void EHPCClient::addExistedNodesAsync(const AddExistedNodesRequest& request, const AddExistedNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addExistedNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddExistedNodesOutcomeCallable EHPCClient::addExistedNodesCallable(const AddExistedNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addExistedNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::AddLocalNodesOutcome EHPCClient::addLocalNodes(const AddLocalNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddLocalNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddLocalNodesOutcome(AddLocalNodesResult(outcome.result())); + else + return AddLocalNodesOutcome(outcome.error()); +} + +void EHPCClient::addLocalNodesAsync(const AddLocalNodesRequest& request, const AddLocalNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addLocalNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddLocalNodesOutcomeCallable EHPCClient::addLocalNodesCallable(const AddLocalNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addLocalNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::AddNodesOutcome EHPCClient::addNodes(const AddNodesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +195,78 @@ EHPCClient::AddNodesOutcomeCallable EHPCClient::addNodesCallable(const AddNodesR return task->get_future(); } +EHPCClient::AddQueueOutcome EHPCClient::addQueue(const AddQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddQueueOutcome(AddQueueResult(outcome.result())); + else + return AddQueueOutcome(outcome.error()); +} + +void EHPCClient::addQueueAsync(const AddQueueRequest& request, const AddQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddQueueOutcomeCallable EHPCClient::addQueueCallable(const AddQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::AddSecurityGroupOutcome EHPCClient::addSecurityGroup(const AddSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSecurityGroupOutcome(AddSecurityGroupResult(outcome.result())); + else + return AddSecurityGroupOutcome(outcome.error()); +} + +void EHPCClient::addSecurityGroupAsync(const AddSecurityGroupRequest& request, const AddSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::AddSecurityGroupOutcomeCallable EHPCClient::addSecurityGroupCallable(const AddSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::AddUsersOutcome EHPCClient::addUsers(const AddUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -123,6 +303,42 @@ EHPCClient::AddUsersOutcomeCallable EHPCClient::addUsersCallable(const AddUsersR return task->get_future(); } +EHPCClient::ApplyNodesOutcome EHPCClient::applyNodes(const ApplyNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ApplyNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ApplyNodesOutcome(ApplyNodesResult(outcome.result())); + else + return ApplyNodesOutcome(outcome.error()); +} + +void EHPCClient::applyNodesAsync(const ApplyNodesRequest& request, const ApplyNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, applyNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ApplyNodesOutcomeCallable EHPCClient::applyNodesCallable(const ApplyNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->applyNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::CreateClusterOutcome EHPCClient::createCluster(const CreateClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +375,186 @@ EHPCClient::CreateClusterOutcomeCallable EHPCClient::createClusterCallable(const return task->get_future(); } +EHPCClient::CreateGWSClusterOutcome EHPCClient::createGWSCluster(const CreateGWSClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGWSClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGWSClusterOutcome(CreateGWSClusterResult(outcome.result())); + else + return CreateGWSClusterOutcome(outcome.error()); +} + +void EHPCClient::createGWSClusterAsync(const CreateGWSClusterRequest& request, const CreateGWSClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGWSCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateGWSClusterOutcomeCallable EHPCClient::createGWSClusterCallable(const CreateGWSClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGWSCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateGWSImageOutcome EHPCClient::createGWSImage(const CreateGWSImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGWSImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGWSImageOutcome(CreateGWSImageResult(outcome.result())); + else + return CreateGWSImageOutcome(outcome.error()); +} + +void EHPCClient::createGWSImageAsync(const CreateGWSImageRequest& request, const CreateGWSImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGWSImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateGWSImageOutcomeCallable EHPCClient::createGWSImageCallable(const CreateGWSImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGWSImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateGWSInstanceOutcome EHPCClient::createGWSInstance(const CreateGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGWSInstanceOutcome(CreateGWSInstanceResult(outcome.result())); + else + return CreateGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::createGWSInstanceAsync(const CreateGWSInstanceRequest& request, const CreateGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateGWSInstanceOutcomeCallable EHPCClient::createGWSInstanceCallable(const CreateGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGWSInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateHybridClusterOutcome EHPCClient::createHybridCluster(const CreateHybridClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateHybridClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateHybridClusterOutcome(CreateHybridClusterResult(outcome.result())); + else + return CreateHybridClusterOutcome(outcome.error()); +} + +void EHPCClient::createHybridClusterAsync(const CreateHybridClusterRequest& request, const CreateHybridClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createHybridCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateHybridClusterOutcomeCallable EHPCClient::createHybridClusterCallable(const CreateHybridClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createHybridCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::CreateJobFileOutcome EHPCClient::createJobFile(const CreateJobFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobFileOutcome(CreateJobFileResult(outcome.result())); + else + return CreateJobFileOutcome(outcome.error()); +} + +void EHPCClient::createJobFileAsync(const CreateJobFileRequest& request, const CreateJobFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJobFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::CreateJobFileOutcomeCallable EHPCClient::createJobFileCallable(const CreateJobFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJobFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::CreateJobTemplateOutcome EHPCClient::createJobTemplate(const CreateJobTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -231,6 +627,150 @@ EHPCClient::DeleteClusterOutcomeCallable EHPCClient::deleteClusterCallable(const return task->get_future(); } +EHPCClient::DeleteContainerAppsOutcome EHPCClient::deleteContainerApps(const DeleteContainerAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContainerAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContainerAppsOutcome(DeleteContainerAppsResult(outcome.result())); + else + return DeleteContainerAppsOutcome(outcome.error()); +} + +void EHPCClient::deleteContainerAppsAsync(const DeleteContainerAppsRequest& request, const DeleteContainerAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContainerApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteContainerAppsOutcomeCallable EHPCClient::deleteContainerAppsCallable(const DeleteContainerAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContainerApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteGWSClusterOutcome EHPCClient::deleteGWSCluster(const DeleteGWSClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGWSClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGWSClusterOutcome(DeleteGWSClusterResult(outcome.result())); + else + return DeleteGWSClusterOutcome(outcome.error()); +} + +void EHPCClient::deleteGWSClusterAsync(const DeleteGWSClusterRequest& request, const DeleteGWSClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGWSCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteGWSClusterOutcomeCallable EHPCClient::deleteGWSClusterCallable(const DeleteGWSClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGWSCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteGWSInstanceOutcome EHPCClient::deleteGWSInstance(const DeleteGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteGWSInstanceOutcome(DeleteGWSInstanceResult(outcome.result())); + else + return DeleteGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::deleteGWSInstanceAsync(const DeleteGWSInstanceRequest& request, const DeleteGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteGWSInstanceOutcomeCallable EHPCClient::deleteGWSInstanceCallable(const DeleteGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteGWSInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteImageOutcome EHPCClient::deleteImage(const DeleteImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageOutcome(DeleteImageResult(outcome.result())); + else + return DeleteImageOutcome(outcome.error()); +} + +void EHPCClient::deleteImageAsync(const DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteImageOutcomeCallable EHPCClient::deleteImageCallable(const DeleteImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DeleteJobTemplatesOutcome EHPCClient::deleteJobTemplates(const DeleteJobTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +843,42 @@ EHPCClient::DeleteJobsOutcomeCallable EHPCClient::deleteJobsCallable(const Delet return task->get_future(); } +EHPCClient::DeleteLocalImageOutcome EHPCClient::deleteLocalImage(const DeleteLocalImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteLocalImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteLocalImageOutcome(DeleteLocalImageResult(outcome.result())); + else + return DeleteLocalImageOutcome(outcome.error()); +} + +void EHPCClient::deleteLocalImageAsync(const DeleteLocalImageRequest& request, const DeleteLocalImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteLocalImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteLocalImageOutcomeCallable EHPCClient::deleteLocalImageCallable(const DeleteLocalImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteLocalImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DeleteNodesOutcome EHPCClient::deleteNodes(const DeleteNodesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +915,78 @@ EHPCClient::DeleteNodesOutcomeCallable EHPCClient::deleteNodesCallable(const Del return task->get_future(); } +EHPCClient::DeleteQueueOutcome EHPCClient::deleteQueue(const DeleteQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteQueueOutcome(DeleteQueueResult(outcome.result())); + else + return DeleteQueueOutcome(outcome.error()); +} + +void EHPCClient::deleteQueueAsync(const DeleteQueueRequest& request, const DeleteQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteQueueOutcomeCallable EHPCClient::deleteQueueCallable(const DeleteQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DeleteSecurityGroupOutcome EHPCClient::deleteSecurityGroup(const DeleteSecurityGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSecurityGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSecurityGroupOutcome(DeleteSecurityGroupResult(outcome.result())); + else + return DeleteSecurityGroupOutcome(outcome.error()); +} + +void EHPCClient::deleteSecurityGroupAsync(const DeleteSecurityGroupRequest& request, const DeleteSecurityGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSecurityGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DeleteSecurityGroupOutcomeCallable EHPCClient::deleteSecurityGroupCallable(const DeleteSecurityGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSecurityGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DeleteUsersOutcome EHPCClient::deleteUsers(const DeleteUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -375,6 +1023,42 @@ EHPCClient::DeleteUsersOutcomeCallable EHPCClient::deleteUsersCallable(const Del return task->get_future(); } +EHPCClient::DescribeAutoScaleConfigOutcome EHPCClient::describeAutoScaleConfig(const DescribeAutoScaleConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAutoScaleConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAutoScaleConfigOutcome(DescribeAutoScaleConfigResult(outcome.result())); + else + return DescribeAutoScaleConfigOutcome(outcome.error()); +} + +void EHPCClient::describeAutoScaleConfigAsync(const DescribeAutoScaleConfigRequest& request, const DescribeAutoScaleConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAutoScaleConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeAutoScaleConfigOutcomeCallable EHPCClient::describeAutoScaleConfigCallable(const DescribeAutoScaleConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAutoScaleConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::DescribeClusterOutcome EHPCClient::describeCluster(const DescribeClusterRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +1095,438 @@ EHPCClient::DescribeClusterOutcomeCallable EHPCClient::describeClusterCallable(c return task->get_future(); } +EHPCClient::DescribeContainerAppOutcome EHPCClient::describeContainerApp(const DescribeContainerAppRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeContainerAppOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeContainerAppOutcome(DescribeContainerAppResult(outcome.result())); + else + return DescribeContainerAppOutcome(outcome.error()); +} + +void EHPCClient::describeContainerAppAsync(const DescribeContainerAppRequest& request, const DescribeContainerAppAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeContainerApp(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeContainerAppOutcomeCallable EHPCClient::describeContainerAppCallable(const DescribeContainerAppRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeContainerApp(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeEstackImageOutcome EHPCClient::describeEstackImage(const DescribeEstackImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEstackImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEstackImageOutcome(DescribeEstackImageResult(outcome.result())); + else + return DescribeEstackImageOutcome(outcome.error()); +} + +void EHPCClient::describeEstackImageAsync(const DescribeEstackImageRequest& request, const DescribeEstackImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEstackImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeEstackImageOutcomeCallable EHPCClient::describeEstackImageCallable(const DescribeEstackImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEstackImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeGWSClusterPolicyOutcome EHPCClient::describeGWSClusterPolicy(const DescribeGWSClusterPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSClusterPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSClusterPolicyOutcome(DescribeGWSClusterPolicyResult(outcome.result())); + else + return DescribeGWSClusterPolicyOutcome(outcome.error()); +} + +void EHPCClient::describeGWSClusterPolicyAsync(const DescribeGWSClusterPolicyRequest& request, const DescribeGWSClusterPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSClusterPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSClusterPolicyOutcomeCallable EHPCClient::describeGWSClusterPolicyCallable(const DescribeGWSClusterPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSClusterPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeGWSClustersOutcome EHPCClient::describeGWSClusters(const DescribeGWSClustersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSClustersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSClustersOutcome(DescribeGWSClustersResult(outcome.result())); + else + return DescribeGWSClustersOutcome(outcome.error()); +} + +void EHPCClient::describeGWSClustersAsync(const DescribeGWSClustersRequest& request, const DescribeGWSClustersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSClusters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSClustersOutcomeCallable EHPCClient::describeGWSClustersCallable(const DescribeGWSClustersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSClusters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeGWSImagesOutcome EHPCClient::describeGWSImages(const DescribeGWSImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSImagesOutcome(DescribeGWSImagesResult(outcome.result())); + else + return DescribeGWSImagesOutcome(outcome.error()); +} + +void EHPCClient::describeGWSImagesAsync(const DescribeGWSImagesRequest& request, const DescribeGWSImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSImagesOutcomeCallable EHPCClient::describeGWSImagesCallable(const DescribeGWSImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeGWSInstancesOutcome EHPCClient::describeGWSInstances(const DescribeGWSInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGWSInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGWSInstancesOutcome(DescribeGWSInstancesResult(outcome.result())); + else + return DescribeGWSInstancesOutcome(outcome.error()); +} + +void EHPCClient::describeGWSInstancesAsync(const DescribeGWSInstancesRequest& request, const DescribeGWSInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGWSInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeGWSInstancesOutcomeCallable EHPCClient::describeGWSInstancesCallable(const DescribeGWSInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGWSInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeImageOutcome EHPCClient::describeImage(const DescribeImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageOutcome(DescribeImageResult(outcome.result())); + else + return DescribeImageOutcome(outcome.error()); +} + +void EHPCClient::describeImageAsync(const DescribeImageRequest& request, const DescribeImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeImageOutcomeCallable EHPCClient::describeImageCallable(const DescribeImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeImageGatewayConfigOutcome EHPCClient::describeImageGatewayConfig(const DescribeImageGatewayConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImageGatewayConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImageGatewayConfigOutcome(DescribeImageGatewayConfigResult(outcome.result())); + else + return DescribeImageGatewayConfigOutcome(outcome.error()); +} + +void EHPCClient::describeImageGatewayConfigAsync(const DescribeImageGatewayConfigRequest& request, const DescribeImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImageGatewayConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeImageGatewayConfigOutcomeCallable EHPCClient::describeImageGatewayConfigCallable(const DescribeImageGatewayConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImageGatewayConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeImagePriceOutcome EHPCClient::describeImagePrice(const DescribeImagePriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeImagePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeImagePriceOutcome(DescribeImagePriceResult(outcome.result())); + else + return DescribeImagePriceOutcome(outcome.error()); +} + +void EHPCClient::describeImagePriceAsync(const DescribeImagePriceRequest& request, const DescribeImagePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeImagePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeImagePriceOutcomeCallable EHPCClient::describeImagePriceCallable(const DescribeImagePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeImagePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeJobOutcome EHPCClient::describeJob(const DescribeJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeJobOutcome(DescribeJobResult(outcome.result())); + else + return DescribeJobOutcome(outcome.error()); +} + +void EHPCClient::describeJobAsync(const DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeJobOutcomeCallable EHPCClient::describeJobCallable(const DescribeJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribeNFSClientStatusOutcome EHPCClient::describeNFSClientStatus(const DescribeNFSClientStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeNFSClientStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeNFSClientStatusOutcome(DescribeNFSClientStatusResult(outcome.result())); + else + return DescribeNFSClientStatusOutcome(outcome.error()); +} + +void EHPCClient::describeNFSClientStatusAsync(const DescribeNFSClientStatusRequest& request, const DescribeNFSClientStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeNFSClientStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribeNFSClientStatusOutcomeCallable EHPCClient::describeNFSClientStatusCallable(const DescribeNFSClientStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeNFSClientStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::DescribePriceOutcome EHPCClient::describePrice(const DescribePriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribePriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribePriceOutcome(DescribePriceResult(outcome.result())); + else + return DescribePriceOutcome(outcome.error()); +} + +void EHPCClient::describePriceAsync(const DescribePriceRequest& request, const DescribePriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describePrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::DescribePriceOutcomeCallable EHPCClient::describePriceCallable(const DescribePriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describePrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::EditJobTemplateOutcome EHPCClient::editJobTemplate(const EditJobTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +1563,42 @@ EHPCClient::EditJobTemplateOutcomeCallable EHPCClient::editJobTemplateCallable(c return task->get_future(); } +EHPCClient::GetAccountingReportOutcome EHPCClient::getAccountingReport(const GetAccountingReportRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAccountingReportOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAccountingReportOutcome(GetAccountingReportResult(outcome.result())); + else + return GetAccountingReportOutcome(outcome.error()); +} + +void EHPCClient::getAccountingReportAsync(const GetAccountingReportRequest& request, const GetAccountingReportAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAccountingReport(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetAccountingReportOutcomeCallable EHPCClient::getAccountingReportCallable(const GetAccountingReportRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAccountingReport(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::GetAutoScaleConfigOutcome EHPCClient::getAutoScaleConfig(const GetAutoScaleConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +1635,618 @@ EHPCClient::GetAutoScaleConfigOutcomeCallable EHPCClient::getAutoScaleConfigCall return task->get_future(); } +EHPCClient::GetCloudMetricLogsOutcome EHPCClient::getCloudMetricLogs(const GetCloudMetricLogsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudMetricLogsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudMetricLogsOutcome(GetCloudMetricLogsResult(outcome.result())); + else + return GetCloudMetricLogsOutcome(outcome.error()); +} + +void EHPCClient::getCloudMetricLogsAsync(const GetCloudMetricLogsRequest& request, const GetCloudMetricLogsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudMetricLogs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetCloudMetricLogsOutcomeCallable EHPCClient::getCloudMetricLogsCallable(const GetCloudMetricLogsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudMetricLogs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetCloudMetricProfilingOutcome EHPCClient::getCloudMetricProfiling(const GetCloudMetricProfilingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCloudMetricProfilingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCloudMetricProfilingOutcome(GetCloudMetricProfilingResult(outcome.result())); + else + return GetCloudMetricProfilingOutcome(outcome.error()); +} + +void EHPCClient::getCloudMetricProfilingAsync(const GetCloudMetricProfilingRequest& request, const GetCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCloudMetricProfiling(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetCloudMetricProfilingOutcomeCallable EHPCClient::getCloudMetricProfilingCallable(const GetCloudMetricProfilingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCloudMetricProfiling(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetClusterVolumesOutcome EHPCClient::getClusterVolumes(const GetClusterVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetClusterVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetClusterVolumesOutcome(GetClusterVolumesResult(outcome.result())); + else + return GetClusterVolumesOutcome(outcome.error()); +} + +void EHPCClient::getClusterVolumesAsync(const GetClusterVolumesRequest& request, const GetClusterVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getClusterVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetClusterVolumesOutcomeCallable EHPCClient::getClusterVolumesCallable(const GetClusterVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getClusterVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetCommonImageOutcome EHPCClient::getCommonImage(const GetCommonImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetCommonImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetCommonImageOutcome(GetCommonImageResult(outcome.result())); + else + return GetCommonImageOutcome(outcome.error()); +} + +void EHPCClient::getCommonImageAsync(const GetCommonImageRequest& request, const GetCommonImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getCommonImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetCommonImageOutcomeCallable EHPCClient::getCommonImageCallable(const GetCommonImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getCommonImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetGWSConnectTicketOutcome EHPCClient::getGWSConnectTicket(const GetGWSConnectTicketRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetGWSConnectTicketOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetGWSConnectTicketOutcome(GetGWSConnectTicketResult(outcome.result())); + else + return GetGWSConnectTicketOutcome(outcome.error()); +} + +void EHPCClient::getGWSConnectTicketAsync(const GetGWSConnectTicketRequest& request, const GetGWSConnectTicketAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getGWSConnectTicket(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetGWSConnectTicketOutcomeCallable EHPCClient::getGWSConnectTicketCallable(const GetGWSConnectTicketRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getGWSConnectTicket(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetHybridClusterConfigOutcome EHPCClient::getHybridClusterConfig(const GetHybridClusterConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetHybridClusterConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetHybridClusterConfigOutcome(GetHybridClusterConfigResult(outcome.result())); + else + return GetHybridClusterConfigOutcome(outcome.error()); +} + +void EHPCClient::getHybridClusterConfigAsync(const GetHybridClusterConfigRequest& request, const GetHybridClusterConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getHybridClusterConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetHybridClusterConfigOutcomeCallable EHPCClient::getHybridClusterConfigCallable(const GetHybridClusterConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getHybridClusterConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetIfEcsTypeSupportHtConfigOutcome EHPCClient::getIfEcsTypeSupportHtConfig(const GetIfEcsTypeSupportHtConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetIfEcsTypeSupportHtConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetIfEcsTypeSupportHtConfigOutcome(GetIfEcsTypeSupportHtConfigResult(outcome.result())); + else + return GetIfEcsTypeSupportHtConfigOutcome(outcome.error()); +} + +void EHPCClient::getIfEcsTypeSupportHtConfigAsync(const GetIfEcsTypeSupportHtConfigRequest& request, const GetIfEcsTypeSupportHtConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getIfEcsTypeSupportHtConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetIfEcsTypeSupportHtConfigOutcomeCallable EHPCClient::getIfEcsTypeSupportHtConfigCallable(const GetIfEcsTypeSupportHtConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getIfEcsTypeSupportHtConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetPostScriptsOutcome EHPCClient::getPostScripts(const GetPostScriptsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPostScriptsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPostScriptsOutcome(GetPostScriptsResult(outcome.result())); + else + return GetPostScriptsOutcome(outcome.error()); +} + +void EHPCClient::getPostScriptsAsync(const GetPostScriptsRequest& request, const GetPostScriptsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPostScripts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetPostScriptsOutcomeCallable EHPCClient::getPostScriptsCallable(const GetPostScriptsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPostScripts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetSchedulerInfoOutcome EHPCClient::getSchedulerInfo(const GetSchedulerInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSchedulerInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSchedulerInfoOutcome(GetSchedulerInfoResult(outcome.result())); + else + return GetSchedulerInfoOutcome(outcome.error()); +} + +void EHPCClient::getSchedulerInfoAsync(const GetSchedulerInfoRequest& request, const GetSchedulerInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSchedulerInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetSchedulerInfoOutcomeCallable EHPCClient::getSchedulerInfoCallable(const GetSchedulerInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSchedulerInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetUserImageOutcome EHPCClient::getUserImage(const GetUserImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetUserImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetUserImageOutcome(GetUserImageResult(outcome.result())); + else + return GetUserImageOutcome(outcome.error()); +} + +void EHPCClient::getUserImageAsync(const GetUserImageRequest& request, const GetUserImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getUserImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetUserImageOutcomeCallable EHPCClient::getUserImageCallable(const GetUserImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getUserImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::GetVisualServiceStatusOutcome EHPCClient::getVisualServiceStatus(const GetVisualServiceStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVisualServiceStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVisualServiceStatusOutcome(GetVisualServiceStatusResult(outcome.result())); + else + return GetVisualServiceStatusOutcome(outcome.error()); +} + +void EHPCClient::getVisualServiceStatusAsync(const GetVisualServiceStatusRequest& request, const GetVisualServiceStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVisualServiceStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::GetVisualServiceStatusOutcomeCallable EHPCClient::getVisualServiceStatusCallable(const GetVisualServiceStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVisualServiceStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InitializeEHPCOutcome EHPCClient::initializeEHPC(const InitializeEHPCRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InitializeEHPCOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InitializeEHPCOutcome(InitializeEHPCResult(outcome.result())); + else + return InitializeEHPCOutcome(outcome.error()); +} + +void EHPCClient::initializeEHPCAsync(const InitializeEHPCRequest& request, const InitializeEHPCAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, initializeEHPC(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InitializeEHPCOutcomeCallable EHPCClient::initializeEHPCCallable(const InitializeEHPCRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->initializeEHPC(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InspectImageOutcome EHPCClient::inspectImage(const InspectImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InspectImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InspectImageOutcome(InspectImageResult(outcome.result())); + else + return InspectImageOutcome(outcome.error()); +} + +void EHPCClient::inspectImageAsync(const InspectImageRequest& request, const InspectImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, inspectImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InspectImageOutcomeCallable EHPCClient::inspectImageCallable(const InspectImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->inspectImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InstallSoftwareOutcome EHPCClient::installSoftware(const InstallSoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InstallSoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InstallSoftwareOutcome(InstallSoftwareResult(outcome.result())); + else + return InstallSoftwareOutcome(outcome.error()); +} + +void EHPCClient::installSoftwareAsync(const InstallSoftwareRequest& request, const InstallSoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, installSoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InstallSoftwareOutcomeCallable EHPCClient::installSoftwareCallable(const InstallSoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->installSoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::InvokeShellCommandOutcome EHPCClient::invokeShellCommand(const InvokeShellCommandRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return InvokeShellCommandOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return InvokeShellCommandOutcome(InvokeShellCommandResult(outcome.result())); + else + return InvokeShellCommandOutcome(outcome.error()); +} + +void EHPCClient::invokeShellCommandAsync(const InvokeShellCommandRequest& request, const InvokeShellCommandAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, invokeShellCommand(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::InvokeShellCommandOutcomeCallable EHPCClient::invokeShellCommandCallable(const InvokeShellCommandRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->invokeShellCommand(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListAvailableEcsTypesOutcome EHPCClient::listAvailableEcsTypes(const ListAvailableEcsTypesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListAvailableEcsTypesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListAvailableEcsTypesOutcome(ListAvailableEcsTypesResult(outcome.result())); + else + return ListAvailableEcsTypesOutcome(outcome.error()); +} + +void EHPCClient::listAvailableEcsTypesAsync(const ListAvailableEcsTypesRequest& request, const ListAvailableEcsTypesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listAvailableEcsTypes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListAvailableEcsTypesOutcomeCallable EHPCClient::listAvailableEcsTypesCallable(const ListAvailableEcsTypesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listAvailableEcsTypes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCloudMetricProfilingsOutcome EHPCClient::listCloudMetricProfilings(const ListCloudMetricProfilingsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCloudMetricProfilingsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCloudMetricProfilingsOutcome(ListCloudMetricProfilingsResult(outcome.result())); + else + return ListCloudMetricProfilingsOutcome(outcome.error()); +} + +void EHPCClient::listCloudMetricProfilingsAsync(const ListCloudMetricProfilingsRequest& request, const ListCloudMetricProfilingsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCloudMetricProfilings(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCloudMetricProfilingsOutcomeCallable EHPCClient::listCloudMetricProfilingsCallable(const ListCloudMetricProfilingsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCloudMetricProfilings(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListClusterLogsOutcome EHPCClient::listClusterLogs(const ListClusterLogsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,6 +2319,222 @@ EHPCClient::ListClustersOutcomeCallable EHPCClient::listClustersCallable(const L return task->get_future(); } +EHPCClient::ListClustersMetaOutcome EHPCClient::listClustersMeta(const ListClustersMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListClustersMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListClustersMetaOutcome(ListClustersMetaResult(outcome.result())); + else + return ListClustersMetaOutcome(outcome.error()); +} + +void EHPCClient::listClustersMetaAsync(const ListClustersMetaRequest& request, const ListClustersMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listClustersMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListClustersMetaOutcomeCallable EHPCClient::listClustersMetaCallable(const ListClustersMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listClustersMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCommandsOutcome EHPCClient::listCommands(const ListCommandsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCommandsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCommandsOutcome(ListCommandsResult(outcome.result())); + else + return ListCommandsOutcome(outcome.error()); +} + +void EHPCClient::listCommandsAsync(const ListCommandsRequest& request, const ListCommandsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCommands(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCommandsOutcomeCallable EHPCClient::listCommandsCallable(const ListCommandsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCommands(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCommunityImagesOutcome EHPCClient::listCommunityImages(const ListCommunityImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCommunityImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCommunityImagesOutcome(ListCommunityImagesResult(outcome.result())); + else + return ListCommunityImagesOutcome(outcome.error()); +} + +void EHPCClient::listCommunityImagesAsync(const ListCommunityImagesRequest& request, const ListCommunityImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCommunityImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCommunityImagesOutcomeCallable EHPCClient::listCommunityImagesCallable(const ListCommunityImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCommunityImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListContainerAppsOutcome EHPCClient::listContainerApps(const ListContainerAppsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContainerAppsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContainerAppsOutcome(ListContainerAppsResult(outcome.result())); + else + return ListContainerAppsOutcome(outcome.error()); +} + +void EHPCClient::listContainerAppsAsync(const ListContainerAppsRequest& request, const ListContainerAppsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContainerApps(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListContainerAppsOutcomeCallable EHPCClient::listContainerAppsCallable(const ListContainerAppsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContainerApps(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListContainerImagesOutcome EHPCClient::listContainerImages(const ListContainerImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListContainerImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListContainerImagesOutcome(ListContainerImagesResult(outcome.result())); + else + return ListContainerImagesOutcome(outcome.error()); +} + +void EHPCClient::listContainerImagesAsync(const ListContainerImagesRequest& request, const ListContainerImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listContainerImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListContainerImagesOutcomeCallable EHPCClient::listContainerImagesCallable(const ListContainerImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listContainerImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListCpfsFileSystemsOutcome EHPCClient::listCpfsFileSystems(const ListCpfsFileSystemsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCpfsFileSystemsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCpfsFileSystemsOutcome(ListCpfsFileSystemsResult(outcome.result())); + else + return ListCpfsFileSystemsOutcome(outcome.error()); +} + +void EHPCClient::listCpfsFileSystemsAsync(const ListCpfsFileSystemsRequest& request, const ListCpfsFileSystemsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCpfsFileSystems(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListCpfsFileSystemsOutcomeCallable EHPCClient::listCpfsFileSystemsCallable(const ListCpfsFileSystemsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCpfsFileSystems(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListCurrentClientVersionOutcome EHPCClient::listCurrentClientVersion(const ListCurrentClientVersionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -627,6 +2607,42 @@ EHPCClient::ListCustomImagesOutcomeCallable EHPCClient::listCustomImagesCallable return task->get_future(); } +EHPCClient::ListFileSystemWithMountTargetsOutcome EHPCClient::listFileSystemWithMountTargets(const ListFileSystemWithMountTargetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFileSystemWithMountTargetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFileSystemWithMountTargetsOutcome(ListFileSystemWithMountTargetsResult(outcome.result())); + else + return ListFileSystemWithMountTargetsOutcome(outcome.error()); +} + +void EHPCClient::listFileSystemWithMountTargetsAsync(const ListFileSystemWithMountTargetsRequest& request, const ListFileSystemWithMountTargetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFileSystemWithMountTargets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListFileSystemWithMountTargetsOutcomeCallable EHPCClient::listFileSystemWithMountTargetsCallable(const ListFileSystemWithMountTargetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFileSystemWithMountTargets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListImagesOutcome EHPCClient::listImages(const ListImagesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -663,6 +2679,114 @@ EHPCClient::ListImagesOutcomeCallable EHPCClient::listImagesCallable(const ListI return task->get_future(); } +EHPCClient::ListInstalledSoftwareOutcome EHPCClient::listInstalledSoftware(const ListInstalledSoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInstalledSoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInstalledSoftwareOutcome(ListInstalledSoftwareResult(outcome.result())); + else + return ListInstalledSoftwareOutcome(outcome.error()); +} + +void EHPCClient::listInstalledSoftwareAsync(const ListInstalledSoftwareRequest& request, const ListInstalledSoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInstalledSoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListInstalledSoftwareOutcomeCallable EHPCClient::listInstalledSoftwareCallable(const ListInstalledSoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInstalledSoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListInvocationResultsOutcome EHPCClient::listInvocationResults(const ListInvocationResultsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInvocationResultsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInvocationResultsOutcome(ListInvocationResultsResult(outcome.result())); + else + return ListInvocationResultsOutcome(outcome.error()); +} + +void EHPCClient::listInvocationResultsAsync(const ListInvocationResultsRequest& request, const ListInvocationResultsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInvocationResults(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListInvocationResultsOutcomeCallable EHPCClient::listInvocationResultsCallable(const ListInvocationResultsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInvocationResults(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListInvocationStatusOutcome EHPCClient::listInvocationStatus(const ListInvocationStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInvocationStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInvocationStatusOutcome(ListInvocationStatusResult(outcome.result())); + else + return ListInvocationStatusOutcome(outcome.error()); +} + +void EHPCClient::listInvocationStatusAsync(const ListInvocationStatusRequest& request, const ListInvocationStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInvocationStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListInvocationStatusOutcomeCallable EHPCClient::listInvocationStatusCallable(const ListInvocationStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInvocationStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListJobTemplatesOutcome EHPCClient::listJobTemplates(const ListJobTemplatesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -735,6 +2859,42 @@ EHPCClient::ListJobsOutcomeCallable EHPCClient::listJobsCallable(const ListJobsR return task->get_future(); } +EHPCClient::ListJobsWithFiltersOutcome EHPCClient::listJobsWithFilters(const ListJobsWithFiltersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobsWithFiltersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobsWithFiltersOutcome(ListJobsWithFiltersResult(outcome.result())); + else + return ListJobsWithFiltersOutcome(outcome.error()); +} + +void EHPCClient::listJobsWithFiltersAsync(const ListJobsWithFiltersRequest& request, const ListJobsWithFiltersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobsWithFilters(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListJobsWithFiltersOutcomeCallable EHPCClient::listJobsWithFiltersCallable(const ListJobsWithFiltersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobsWithFilters(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListNodesOutcome EHPCClient::listNodes(const ListNodesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +2931,42 @@ EHPCClient::ListNodesOutcomeCallable EHPCClient::listNodesCallable(const ListNod return task->get_future(); } +EHPCClient::ListNodesByQueueOutcome EHPCClient::listNodesByQueue(const ListNodesByQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListNodesByQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListNodesByQueueOutcome(ListNodesByQueueResult(outcome.result())); + else + return ListNodesByQueueOutcome(outcome.error()); +} + +void EHPCClient::listNodesByQueueAsync(const ListNodesByQueueRequest& request, const ListNodesByQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listNodesByQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListNodesByQueueOutcomeCallable EHPCClient::listNodesByQueueCallable(const ListNodesByQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listNodesByQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListNodesNoPagingOutcome EHPCClient::listNodesNoPaging(const ListNodesNoPagingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -843,6 +3039,42 @@ EHPCClient::ListPreferredEcsTypesOutcomeCallable EHPCClient::listPreferredEcsTyp return task->get_future(); } +EHPCClient::ListQueuesOutcome EHPCClient::listQueues(const ListQueuesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListQueuesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListQueuesOutcome(ListQueuesResult(outcome.result())); + else + return ListQueuesOutcome(outcome.error()); +} + +void EHPCClient::listQueuesAsync(const ListQueuesRequest& request, const ListQueuesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listQueues(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListQueuesOutcomeCallable EHPCClient::listQueuesCallable(const ListQueuesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listQueues(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListRegionsOutcome EHPCClient::listRegions(const ListRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +3111,42 @@ EHPCClient::ListRegionsOutcomeCallable EHPCClient::listRegionsCallable(const Lis return task->get_future(); } +EHPCClient::ListSecurityGroupsOutcome EHPCClient::listSecurityGroups(const ListSecurityGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSecurityGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSecurityGroupsOutcome(ListSecurityGroupsResult(outcome.result())); + else + return ListSecurityGroupsOutcome(outcome.error()); +} + +void EHPCClient::listSecurityGroupsAsync(const ListSecurityGroupsRequest& request, const ListSecurityGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSecurityGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListSecurityGroupsOutcomeCallable EHPCClient::listSecurityGroupsCallable(const ListSecurityGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSecurityGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListSoftwaresOutcome EHPCClient::listSoftwares(const ListSoftwaresRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +3183,114 @@ EHPCClient::ListSoftwaresOutcomeCallable EHPCClient::listSoftwaresCallable(const return task->get_future(); } +EHPCClient::ListTagResourcesOutcome EHPCClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void EHPCClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListTagResourcesOutcomeCallable EHPCClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListTasksOutcome EHPCClient::listTasks(const ListTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTasksOutcome(ListTasksResult(outcome.result())); + else + return ListTasksOutcome(outcome.error()); +} + +void EHPCClient::listTasksAsync(const ListTasksRequest& request, const ListTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListTasksOutcomeCallable EHPCClient::listTasksCallable(const ListTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ListUpgradeClientsOutcome EHPCClient::listUpgradeClients(const ListUpgradeClientsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUpgradeClientsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUpgradeClientsOutcome(ListUpgradeClientsResult(outcome.result())); + else + return ListUpgradeClientsOutcome(outcome.error()); +} + +void EHPCClient::listUpgradeClientsAsync(const ListUpgradeClientsRequest& request, const ListUpgradeClientsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUpgradeClients(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListUpgradeClientsOutcomeCallable EHPCClient::listUpgradeClientsCallable(const ListUpgradeClientsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUpgradeClients(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListUsersOutcome EHPCClient::listUsers(const ListUsersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +3327,42 @@ EHPCClient::ListUsersOutcomeCallable EHPCClient::listUsersCallable(const ListUse return task->get_future(); } +EHPCClient::ListUsersAsyncOutcome EHPCClient::listUsersAsync(const ListUsersAsyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListUsersAsyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListUsersAsyncOutcome(ListUsersAsyncResult(outcome.result())); + else + return ListUsersAsyncOutcome(outcome.error()); +} + +void EHPCClient::listUsersAsyncAsync(const ListUsersAsyncRequest& request, const ListUsersAsyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listUsersAsync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ListUsersAsyncOutcomeCallable EHPCClient::listUsersAsyncCallable(const ListUsersAsyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listUsersAsync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ListVolumesOutcome EHPCClient::listVolumes(const ListVolumesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1023,6 +3435,78 @@ EHPCClient::ModifyClusterAttributesOutcomeCallable EHPCClient::modifyClusterAttr return task->get_future(); } +EHPCClient::ModifyContainerAppAttributesOutcome EHPCClient::modifyContainerAppAttributes(const ModifyContainerAppAttributesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyContainerAppAttributesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyContainerAppAttributesOutcome(ModifyContainerAppAttributesResult(outcome.result())); + else + return ModifyContainerAppAttributesOutcome(outcome.error()); +} + +void EHPCClient::modifyContainerAppAttributesAsync(const ModifyContainerAppAttributesRequest& request, const ModifyContainerAppAttributesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyContainerAppAttributes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ModifyContainerAppAttributesOutcomeCallable EHPCClient::modifyContainerAppAttributesCallable(const ModifyContainerAppAttributesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyContainerAppAttributes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::ModifyImageGatewayConfigOutcome EHPCClient::modifyImageGatewayConfig(const ModifyImageGatewayConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyImageGatewayConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyImageGatewayConfigOutcome(ModifyImageGatewayConfigResult(outcome.result())); + else + return ModifyImageGatewayConfigOutcome(outcome.error()); +} + +void EHPCClient::modifyImageGatewayConfigAsync(const ModifyImageGatewayConfigRequest& request, const ModifyImageGatewayConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyImageGatewayConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ModifyImageGatewayConfigOutcomeCallable EHPCClient::modifyImageGatewayConfigCallable(const ModifyImageGatewayConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyImageGatewayConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::ModifyUserGroupsOutcome EHPCClient::modifyUserGroups(const ModifyUserGroupsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1095,6 +3579,186 @@ EHPCClient::ModifyUserPasswordsOutcomeCallable EHPCClient::modifyUserPasswordsCa return task->get_future(); } +EHPCClient::ModifyVisualServicePasswdOutcome EHPCClient::modifyVisualServicePasswd(const ModifyVisualServicePasswdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVisualServicePasswdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVisualServicePasswdOutcome(ModifyVisualServicePasswdResult(outcome.result())); + else + return ModifyVisualServicePasswdOutcome(outcome.error()); +} + +void EHPCClient::modifyVisualServicePasswdAsync(const ModifyVisualServicePasswdRequest& request, const ModifyVisualServicePasswdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVisualServicePasswd(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::ModifyVisualServicePasswdOutcomeCallable EHPCClient::modifyVisualServicePasswdCallable(const ModifyVisualServicePasswdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVisualServicePasswd(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::MountNFSOutcome EHPCClient::mountNFS(const MountNFSRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return MountNFSOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return MountNFSOutcome(MountNFSResult(outcome.result())); + else + return MountNFSOutcome(outcome.error()); +} + +void EHPCClient::mountNFSAsync(const MountNFSRequest& request, const MountNFSAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, mountNFS(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::MountNFSOutcomeCallable EHPCClient::mountNFSCallable(const MountNFSRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->mountNFS(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::PullImageOutcome EHPCClient::pullImage(const PullImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PullImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PullImageOutcome(PullImageResult(outcome.result())); + else + return PullImageOutcome(outcome.error()); +} + +void EHPCClient::pullImageAsync(const PullImageRequest& request, const PullImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, pullImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::PullImageOutcomeCallable EHPCClient::pullImageCallable(const PullImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->pullImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::QueryServicePackAndPriceOutcome EHPCClient::queryServicePackAndPrice(const QueryServicePackAndPriceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryServicePackAndPriceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryServicePackAndPriceOutcome(QueryServicePackAndPriceResult(outcome.result())); + else + return QueryServicePackAndPriceOutcome(outcome.error()); +} + +void EHPCClient::queryServicePackAndPriceAsync(const QueryServicePackAndPriceRequest& request, const QueryServicePackAndPriceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryServicePackAndPrice(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::QueryServicePackAndPriceOutcomeCallable EHPCClient::queryServicePackAndPriceCallable(const QueryServicePackAndPriceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryServicePackAndPrice(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::RecoverClusterOutcome EHPCClient::recoverCluster(const RecoverClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RecoverClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RecoverClusterOutcome(RecoverClusterResult(outcome.result())); + else + return RecoverClusterOutcome(outcome.error()); +} + +void EHPCClient::recoverClusterAsync(const RecoverClusterRequest& request, const RecoverClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, recoverCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::RecoverClusterOutcomeCallable EHPCClient::recoverClusterCallable(const RecoverClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->recoverCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::RerunJobsOutcome EHPCClient::rerunJobs(const RerunJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1167,6 +3831,42 @@ EHPCClient::ResetNodesOutcomeCallable EHPCClient::resetNodesCallable(const Reset return task->get_future(); } +EHPCClient::RunCloudMetricProfilingOutcome EHPCClient::runCloudMetricProfiling(const RunCloudMetricProfilingRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RunCloudMetricProfilingOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RunCloudMetricProfilingOutcome(RunCloudMetricProfilingResult(outcome.result())); + else + return RunCloudMetricProfilingOutcome(outcome.error()); +} + +void EHPCClient::runCloudMetricProfilingAsync(const RunCloudMetricProfilingRequest& request, const RunCloudMetricProfilingAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, runCloudMetricProfiling(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::RunCloudMetricProfilingOutcomeCallable EHPCClient::runCloudMetricProfilingCallable(const RunCloudMetricProfilingRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->runCloudMetricProfiling(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::SetAutoScaleConfigOutcome EHPCClient::setAutoScaleConfig(const SetAutoScaleConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,36 +3903,432 @@ EHPCClient::SetAutoScaleConfigOutcomeCallable EHPCClient::setAutoScaleConfigCall return task->get_future(); } -EHPCClient::SetJobUserOutcome EHPCClient::setJobUser(const SetJobUserRequest &request) const +EHPCClient::SetGWSClusterPolicyOutcome EHPCClient::setGWSClusterPolicy(const SetGWSClusterPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SetJobUserOutcome(endpointOutcome.error()); + return SetGWSClusterPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SetJobUserOutcome(SetJobUserResult(outcome.result())); + return SetGWSClusterPolicyOutcome(SetGWSClusterPolicyResult(outcome.result())); else - return SetJobUserOutcome(outcome.error()); + return SetGWSClusterPolicyOutcome(outcome.error()); } -void EHPCClient::setJobUserAsync(const SetJobUserRequest& request, const SetJobUserAsyncHandler& handler, const std::shared_ptr& context) const +void EHPCClient::setGWSClusterPolicyAsync(const SetGWSClusterPolicyRequest& request, const SetGWSClusterPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, setJobUser(request), context); + handler(this, request, setGWSClusterPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -EHPCClient::SetJobUserOutcomeCallable EHPCClient::setJobUserCallable(const SetJobUserRequest &request) const +EHPCClient::SetGWSClusterPolicyOutcomeCallable EHPCClient::setGWSClusterPolicyCallable(const SetGWSClusterPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->setJobUser(request); + return this->setGWSClusterPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SetGWSInstanceNameOutcome EHPCClient::setGWSInstanceName(const SetGWSInstanceNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGWSInstanceNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGWSInstanceNameOutcome(SetGWSInstanceNameResult(outcome.result())); + else + return SetGWSInstanceNameOutcome(outcome.error()); +} + +void EHPCClient::setGWSInstanceNameAsync(const SetGWSInstanceNameRequest& request, const SetGWSInstanceNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGWSInstanceName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SetGWSInstanceNameOutcomeCallable EHPCClient::setGWSInstanceNameCallable(const SetGWSInstanceNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGWSInstanceName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SetGWSInstanceUserOutcome EHPCClient::setGWSInstanceUser(const SetGWSInstanceUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetGWSInstanceUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetGWSInstanceUserOutcome(SetGWSInstanceUserResult(outcome.result())); + else + return SetGWSInstanceUserOutcome(outcome.error()); +} + +void EHPCClient::setGWSInstanceUserAsync(const SetGWSInstanceUserRequest& request, const SetGWSInstanceUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setGWSInstanceUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SetGWSInstanceUserOutcomeCallable EHPCClient::setGWSInstanceUserCallable(const SetGWSInstanceUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setGWSInstanceUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SetPostScriptsOutcome EHPCClient::setPostScripts(const SetPostScriptsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetPostScriptsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetPostScriptsOutcome(SetPostScriptsResult(outcome.result())); + else + return SetPostScriptsOutcome(outcome.error()); +} + +void EHPCClient::setPostScriptsAsync(const SetPostScriptsRequest& request, const SetPostScriptsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setPostScripts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SetPostScriptsOutcomeCallable EHPCClient::setPostScriptsCallable(const SetPostScriptsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setPostScripts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SetQueueOutcome EHPCClient::setQueue(const SetQueueRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetQueueOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetQueueOutcome(SetQueueResult(outcome.result())); + else + return SetQueueOutcome(outcome.error()); +} + +void EHPCClient::setQueueAsync(const SetQueueRequest& request, const SetQueueAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setQueue(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SetQueueOutcomeCallable EHPCClient::setQueueCallable(const SetQueueRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setQueue(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SetSchedulerInfoOutcome EHPCClient::setSchedulerInfo(const SetSchedulerInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetSchedulerInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetSchedulerInfoOutcome(SetSchedulerInfoResult(outcome.result())); + else + return SetSchedulerInfoOutcome(outcome.error()); +} + +void EHPCClient::setSchedulerInfoAsync(const SetSchedulerInfoRequest& request, const SetSchedulerInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setSchedulerInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SetSchedulerInfoOutcomeCallable EHPCClient::setSchedulerInfoCallable(const SetSchedulerInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setSchedulerInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StartClusterOutcome EHPCClient::startCluster(const StartClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartClusterOutcome(StartClusterResult(outcome.result())); + else + return StartClusterOutcome(outcome.error()); +} + +void EHPCClient::startClusterAsync(const StartClusterRequest& request, const StartClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StartClusterOutcomeCallable EHPCClient::startClusterCallable(const StartClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StartGWSInstanceOutcome EHPCClient::startGWSInstance(const StartGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartGWSInstanceOutcome(StartGWSInstanceResult(outcome.result())); + else + return StartGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::startGWSInstanceAsync(const StartGWSInstanceRequest& request, const StartGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StartGWSInstanceOutcomeCallable EHPCClient::startGWSInstanceCallable(const StartGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startGWSInstance(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StartNodesOutcome EHPCClient::startNodes(const StartNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartNodesOutcome(StartNodesResult(outcome.result())); + else + return StartNodesOutcome(outcome.error()); +} + +void EHPCClient::startNodesAsync(const StartNodesRequest& request, const StartNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StartNodesOutcomeCallable EHPCClient::startNodesCallable(const StartNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StartVisualServiceOutcome EHPCClient::startVisualService(const StartVisualServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartVisualServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartVisualServiceOutcome(StartVisualServiceResult(outcome.result())); + else + return StartVisualServiceOutcome(outcome.error()); +} + +void EHPCClient::startVisualServiceAsync(const StartVisualServiceRequest& request, const StartVisualServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startVisualService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StartVisualServiceOutcomeCallable EHPCClient::startVisualServiceCallable(const StartVisualServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startVisualService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StopClusterOutcome EHPCClient::stopCluster(const StopClusterRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopClusterOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopClusterOutcome(StopClusterResult(outcome.result())); + else + return StopClusterOutcome(outcome.error()); +} + +void EHPCClient::stopClusterAsync(const StopClusterRequest& request, const StopClusterAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopCluster(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StopClusterOutcomeCallable EHPCClient::stopClusterCallable(const StopClusterRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopCluster(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StopGWSInstanceOutcome EHPCClient::stopGWSInstance(const StopGWSInstanceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopGWSInstanceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopGWSInstanceOutcome(StopGWSInstanceResult(outcome.result())); + else + return StopGWSInstanceOutcome(outcome.error()); +} + +void EHPCClient::stopGWSInstanceAsync(const StopGWSInstanceRequest& request, const StopGWSInstanceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopGWSInstance(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StopGWSInstanceOutcomeCallable EHPCClient::stopGWSInstanceCallable(const StopGWSInstanceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopGWSInstance(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1275,6 +4371,78 @@ EHPCClient::StopJobsOutcomeCallable EHPCClient::stopJobsCallable(const StopJobsR return task->get_future(); } +EHPCClient::StopNodesOutcome EHPCClient::stopNodes(const StopNodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopNodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopNodesOutcome(StopNodesResult(outcome.result())); + else + return StopNodesOutcome(outcome.error()); +} + +void EHPCClient::stopNodesAsync(const StopNodesRequest& request, const StopNodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopNodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StopNodesOutcomeCallable EHPCClient::stopNodesCallable(const StopNodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopNodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::StopVisualServiceOutcome EHPCClient::stopVisualService(const StopVisualServiceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopVisualServiceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopVisualServiceOutcome(StopVisualServiceResult(outcome.result())); + else + return StopVisualServiceOutcome(outcome.error()); +} + +void EHPCClient::stopVisualServiceAsync(const StopVisualServiceRequest& request, const StopVisualServiceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopVisualService(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::StopVisualServiceOutcomeCallable EHPCClient::stopVisualServiceCallable(const StopVisualServiceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopVisualService(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::SubmitJobOutcome EHPCClient::submitJob(const SubmitJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +4479,294 @@ EHPCClient::SubmitJobOutcomeCallable EHPCClient::submitJobCallable(const SubmitJ return task->get_future(); } +EHPCClient::SummaryImagesOutcome EHPCClient::summaryImages(const SummaryImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SummaryImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SummaryImagesOutcome(SummaryImagesResult(outcome.result())); + else + return SummaryImagesOutcome(outcome.error()); +} + +void EHPCClient::summaryImagesAsync(const SummaryImagesRequest& request, const SummaryImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, summaryImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SummaryImagesOutcomeCallable EHPCClient::summaryImagesCallable(const SummaryImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->summaryImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SummaryImagesInfoOutcome EHPCClient::summaryImagesInfo(const SummaryImagesInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SummaryImagesInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SummaryImagesInfoOutcome(SummaryImagesInfoResult(outcome.result())); + else + return SummaryImagesInfoOutcome(outcome.error()); +} + +void EHPCClient::summaryImagesInfoAsync(const SummaryImagesInfoRequest& request, const SummaryImagesInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, summaryImagesInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SummaryImagesInfoOutcomeCallable EHPCClient::summaryImagesInfoCallable(const SummaryImagesInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->summaryImagesInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::SyncUsersOutcome EHPCClient::syncUsers(const SyncUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SyncUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SyncUsersOutcome(SyncUsersResult(outcome.result())); + else + return SyncUsersOutcome(outcome.error()); +} + +void EHPCClient::syncUsersAsync(const SyncUsersRequest& request, const SyncUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, syncUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::SyncUsersOutcomeCallable EHPCClient::syncUsersCallable(const SyncUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->syncUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::TagResourcesOutcome EHPCClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void EHPCClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::TagResourcesOutcomeCallable EHPCClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::UnTagResourcesOutcome EHPCClient::unTagResources(const UnTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnTagResourcesOutcome(UnTagResourcesResult(outcome.result())); + else + return UnTagResourcesOutcome(outcome.error()); +} + +void EHPCClient::unTagResourcesAsync(const UnTagResourcesRequest& request, const UnTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::UnTagResourcesOutcomeCallable EHPCClient::unTagResourcesCallable(const UnTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::UninstallSoftwareOutcome EHPCClient::uninstallSoftware(const UninstallSoftwareRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UninstallSoftwareOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UninstallSoftwareOutcome(UninstallSoftwareResult(outcome.result())); + else + return UninstallSoftwareOutcome(outcome.error()); +} + +void EHPCClient::uninstallSoftwareAsync(const UninstallSoftwareRequest& request, const UninstallSoftwareAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uninstallSoftware(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::UninstallSoftwareOutcomeCallable EHPCClient::uninstallSoftwareCallable(const UninstallSoftwareRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uninstallSoftware(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::UpdateClusterVolumesOutcome EHPCClient::updateClusterVolumes(const UpdateClusterVolumesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateClusterVolumesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateClusterVolumesOutcome(UpdateClusterVolumesResult(outcome.result())); + else + return UpdateClusterVolumesOutcome(outcome.error()); +} + +void EHPCClient::updateClusterVolumesAsync(const UpdateClusterVolumesRequest& request, const UpdateClusterVolumesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateClusterVolumes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::UpdateClusterVolumesOutcomeCallable EHPCClient::updateClusterVolumesCallable(const UpdateClusterVolumesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateClusterVolumes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +EHPCClient::UpdateQueueConfigOutcome EHPCClient::updateQueueConfig(const UpdateQueueConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateQueueConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateQueueConfigOutcome(UpdateQueueConfigResult(outcome.result())); + else + return UpdateQueueConfigOutcome(outcome.error()); +} + +void EHPCClient::updateQueueConfigAsync(const UpdateQueueConfigRequest& request, const UpdateQueueConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateQueueConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +EHPCClient::UpdateQueueConfigOutcomeCallable EHPCClient::updateQueueConfigCallable(const UpdateQueueConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateQueueConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + EHPCClient::UpgradeClientOutcome EHPCClient::upgradeClient(const UpgradeClientRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/ehpc/src/model/AddContainerAppRequest.cc b/ehpc/src/model/AddContainerAppRequest.cc new file mode 100644 index 000000000..bc8cff412 --- /dev/null +++ b/ehpc/src/model/AddContainerAppRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::AddContainerAppRequest; + +AddContainerAppRequest::AddContainerAppRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "AddContainerApp") { + setMethod(HttpRequest::Method::Get); +} + +AddContainerAppRequest::~AddContainerAppRequest() {} + +std::string AddContainerAppRequest::getDescription() const { + return description_; +} + +void AddContainerAppRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string AddContainerAppRequest::getRepository() const { + return repository_; +} + +void AddContainerAppRequest::setRepository(const std::string &repository) { + repository_ = repository; + setParameter(std::string("Repository"), repository); +} + +std::string AddContainerAppRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddContainerAppRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddContainerAppRequest::getContainerType() const { + return containerType_; +} + +void AddContainerAppRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string AddContainerAppRequest::getName() const { + return name_; +} + +void AddContainerAppRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string AddContainerAppRequest::getImageTag() const { + return imageTag_; +} + +void AddContainerAppRequest::setImageTag(const std::string &imageTag) { + imageTag_ = imageTag; + setParameter(std::string("ImageTag"), imageTag); +} + diff --git a/ehpc/src/model/AddContainerAppResult.cc b/ehpc/src/model/AddContainerAppResult.cc new file mode 100644 index 000000000..ef735363b --- /dev/null +++ b/ehpc/src/model/AddContainerAppResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +AddContainerAppResult::AddContainerAppResult() : + ServiceResult() +{} + +AddContainerAppResult::AddContainerAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddContainerAppResult::~AddContainerAppResult() +{} + +void AddContainerAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allContainerId = value["ContainerId"]["ContainerId"]; + for (const auto &item : allContainerId) + containerId_.push_back(item.asString()); + +} + +std::vector AddContainerAppResult::getContainerId()const +{ + return containerId_; +} + diff --git a/ehpc/src/model/AddExistedNodesRequest.cc b/ehpc/src/model/AddExistedNodesRequest.cc new file mode 100644 index 000000000..83c969074 --- /dev/null +++ b/ehpc/src/model/AddExistedNodesRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::AddExistedNodesRequest; + +AddExistedNodesRequest::AddExistedNodesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "AddExistedNodes") { + setMethod(HttpRequest::Method::Get); +} + +AddExistedNodesRequest::~AddExistedNodesRequest() {} + +std::string AddExistedNodesRequest::getImageId() const { + return imageId_; +} + +void AddExistedNodesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::vector AddExistedNodesRequest::getInstance() const { + return instance_; +} + +void AddExistedNodesRequest::setInstance(const std::vector &instance) { + instance_ = instance; + for(int dep1 = 0; dep1 != instance.size(); dep1++) { + auto instanceObj = instance.at(dep1); + std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1); + setParameter(instanceObjStr + ".Id", instanceObj.id); + } +} + +std::string AddExistedNodesRequest::getClusterId() const { + return clusterId_; +} + +void AddExistedNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string AddExistedNodesRequest::getJobQueue() const { + return jobQueue_; +} + +void AddExistedNodesRequest::setJobQueue(const std::string &jobQueue) { + jobQueue_ = jobQueue; + setParameter(std::string("JobQueue"), jobQueue); +} + +std::string AddExistedNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddExistedNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddExistedNodesRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; +} + +void AddExistedNodesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +} + diff --git a/ehpc/src/model/AddExistedNodesResult.cc b/ehpc/src/model/AddExistedNodesResult.cc new file mode 100644 index 000000000..c35055c48 --- /dev/null +++ b/ehpc/src/model/AddExistedNodesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +AddExistedNodesResult::AddExistedNodesResult() : + ServiceResult() +{} + +AddExistedNodesResult::AddExistedNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddExistedNodesResult::~AddExistedNodesResult() +{} + +void AddExistedNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string AddExistedNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/AddLocalNodesRequest.cc b/ehpc/src/model/AddLocalNodesRequest.cc new file mode 100644 index 000000000..72495de90 --- /dev/null +++ b/ehpc/src/model/AddLocalNodesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::AddLocalNodesRequest; + +AddLocalNodesRequest::AddLocalNodesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "AddLocalNodes") { + setMethod(HttpRequest::Method::Get); +} + +AddLocalNodesRequest::~AddLocalNodesRequest() {} + +std::string AddLocalNodesRequest::getClusterId() const { + return clusterId_; +} + +void AddLocalNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string AddLocalNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddLocalNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddLocalNodesRequest::getNodes() const { + return nodes_; +} + +void AddLocalNodesRequest::setNodes(const std::string &nodes) { + nodes_ = nodes; + setParameter(std::string("Nodes"), nodes); +} + +std::string AddLocalNodesRequest::getQueue() const { + return queue_; +} + +void AddLocalNodesRequest::setQueue(const std::string &queue) { + queue_ = queue; + setParameter(std::string("Queue"), queue); +} + diff --git a/ehpc/src/model/AddLocalNodesResult.cc b/ehpc/src/model/AddLocalNodesResult.cc new file mode 100644 index 000000000..1ef94b757 --- /dev/null +++ b/ehpc/src/model/AddLocalNodesResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +AddLocalNodesResult::AddLocalNodesResult() : + ServiceResult() +{} + +AddLocalNodesResult::AddLocalNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddLocalNodesResult::~AddLocalNodesResult() +{} + +void AddLocalNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + +} + +std::vector AddLocalNodesResult::getInstanceIds()const +{ + return instanceIds_; +} + diff --git a/ehpc/src/model/AddNodesRequest.cc b/ehpc/src/model/AddNodesRequest.cc index ee445cb57..d8f5a3859 100644 --- a/ehpc/src/model/AddNodesRequest.cc +++ b/ehpc/src/model/AddNodesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::AddNodesRequest; AddNodesRequest::AddNodesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "AddNodes") { + : RpcServiceRequest("ehpc", "2018-04-12", "AddNodes") { setMethod(HttpRequest::Method::Get); } @@ -34,6 +34,159 @@ void AddNodesRequest::setImageId(const std::string &imageId) { setParameter(std::string("ImageId"), imageId); } +std::string AddNodesRequest::getSystemDiskLevel() const { + return systemDiskLevel_; +} + +void AddNodesRequest::setSystemDiskLevel(const std::string &systemDiskLevel) { + systemDiskLevel_ = systemDiskLevel; + setParameter(std::string("SystemDiskLevel"), systemDiskLevel); +} + +std::string AddNodesRequest::getClientToken() const { + return clientToken_; +} + +void AddNodesRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +bool AddNodesRequest::getAllocatePublicAddress() const { + return allocatePublicAddress_; +} + +void AddNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress) { + allocatePublicAddress_ = allocatePublicAddress; + setParameter(std::string("AllocatePublicAddress"), allocatePublicAddress ? "true" : "false"); +} + +int AddNodesRequest::getInternetMaxBandWidthOut() const { + return internetMaxBandWidthOut_; +} + +void AddNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut) { + internetMaxBandWidthOut_ = internetMaxBandWidthOut; + setParameter(std::string("InternetMaxBandWidthOut"), std::to_string(internetMaxBandWidthOut)); +} + +std::string AddNodesRequest::getJobQueue() const { + return jobQueue_; +} + +void AddNodesRequest::setJobQueue(const std::string &jobQueue) { + jobQueue_ = jobQueue; + setParameter(std::string("JobQueue"), jobQueue); +} + +std::string AddNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddNodesRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; +} + +void AddNodesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +} + +std::string AddNodesRequest::getSystemDiskType() const { + return systemDiskType_; +} + +void AddNodesRequest::setSystemDiskType(const std::string &systemDiskType) { + systemDiskType_ = systemDiskType; + setParameter(std::string("SystemDiskType"), systemDiskType); +} + +std::vector AddNodesRequest::getDataDisks() const { + return dataDisks_; +} + +void AddNodesRequest::setDataDisks(const std::vector &dataDisks) { + dataDisks_ = dataDisks; + for(int dep1 = 0; dep1 != dataDisks.size(); dep1++) { + auto dataDisksObj = dataDisks.at(dep1); + std::string dataDisksObjStr = std::string("DataDisks") + "." + std::to_string(dep1 + 1); + setParameter(dataDisksObjStr + ".DataDiskDeleteWithInstance", dataDisksObj.dataDiskDeleteWithInstance ? "true" : "false"); + setParameter(dataDisksObjStr + ".DataDiskEncrypted", dataDisksObj.dataDiskEncrypted ? "true" : "false"); + setParameter(dataDisksObjStr + ".DataDiskKMSKeyId", dataDisksObj.dataDiskKMSKeyId); + setParameter(dataDisksObjStr + ".DataDiskSize", std::to_string(dataDisksObj.dataDiskSize)); + setParameter(dataDisksObjStr + ".DataDiskCategory", dataDisksObj.dataDiskCategory); + setParameter(dataDisksObjStr + ".DataDiskPerformanceLevel", dataDisksObj.dataDiskPerformanceLevel); + } +} + +int AddNodesRequest::getMinCount() const { + return minCount_; +} + +void AddNodesRequest::setMinCount(int minCount) { + minCount_ = minCount; + setParameter(std::string("MinCount"), std::to_string(minCount)); +} + +int AddNodesRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void AddNodesRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize)); +} + +std::string AddNodesRequest::getInstanceType() const { + return instanceType_; +} + +void AddNodesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string AddNodesRequest::getHostNamePrefix() const { + return hostNamePrefix_; +} + +void AddNodesRequest::setHostNamePrefix(const std::string &hostNamePrefix) { + hostNamePrefix_ = hostNamePrefix; + setParameter(std::string("HostNamePrefix"), hostNamePrefix); +} + +std::string AddNodesRequest::getComputeSpotPriceLimit() const { + return computeSpotPriceLimit_; +} + +void AddNodesRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) { + computeSpotPriceLimit_ = computeSpotPriceLimit; + setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit); +} + +int AddNodesRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; +} + +void AddNodesRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); +} + +int AddNodesRequest::getPeriod() const { + return period_; +} + +void AddNodesRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + int AddNodesRequest::getCount() const { return count_; } @@ -61,30 +214,102 @@ void AddNodesRequest::setComputeSpotStrategy(const std::string &computeSpotStrat setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); } -std::string AddNodesRequest::getAccessKeyId() const { - return accessKeyId_; +std::string AddNodesRequest::getHostNameSuffix() const { + return hostNameSuffix_; } -void AddNodesRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void AddNodesRequest::setHostNameSuffix(const std::string &hostNameSuffix) { + hostNameSuffix_ = hostNameSuffix; + setParameter(std::string("HostNameSuffix"), hostNameSuffix); } -std::string AddNodesRequest::getImageOwnerAlias() const { - return imageOwnerAlias_; +bool AddNodesRequest::getSync() const { + return sync_; } -void AddNodesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { - imageOwnerAlias_ = imageOwnerAlias; - setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +void AddNodesRequest::setSync(bool sync) { + sync_ = sync; + setParameter(std::string("Sync"), sync ? "true" : "false"); } -std::string AddNodesRequest::getComputeSpotPriceLimit() const { - return computeSpotPriceLimit_; +std::string AddNodesRequest::getVSwitchId() const { + return vSwitchId_; } -void AddNodesRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) { - computeSpotPriceLimit_ = computeSpotPriceLimit; - setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit); +void AddNodesRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string AddNodesRequest::getPeriodUnit() const { + return periodUnit_; +} + +void AddNodesRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); +} + +bool AddNodesRequest::getComputeEnableHt() const { + return computeEnableHt_; +} + +void AddNodesRequest::setComputeEnableHt(bool computeEnableHt) { + computeEnableHt_ = computeEnableHt; + setParameter(std::string("ComputeEnableHt"), computeEnableHt ? "true" : "false"); +} + +std::string AddNodesRequest::getAutoRenew() const { + return autoRenew_; +} + +void AddNodesRequest::setAutoRenew(const std::string &autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew); +} + +std::string AddNodesRequest::getEcsChargeType() const { + return ecsChargeType_; +} + +void AddNodesRequest::setEcsChargeType(const std::string &ecsChargeType) { + ecsChargeType_ = ecsChargeType; + setParameter(std::string("EcsChargeType"), ecsChargeType); +} + +std::string AddNodesRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void AddNodesRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string AddNodesRequest::getCreateMode() const { + return createMode_; +} + +void AddNodesRequest::setCreateMode(const std::string &createMode) { + createMode_ = createMode; + setParameter(std::string("CreateMode"), createMode); +} + +std::string AddNodesRequest::getZoneId() const { + return zoneId_; +} + +void AddNodesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +int AddNodesRequest::getInternetMaxBandWidthIn() const { + return internetMaxBandWidthIn_; +} + +void AddNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn) { + internetMaxBandWidthIn_ = internetMaxBandWidthIn; + setParameter(std::string("InternetMaxBandWidthIn"), std::to_string(internetMaxBandWidthIn)); } diff --git a/ehpc/src/model/AddNodesResult.cc b/ehpc/src/model/AddNodesResult.cc index 4be3bfb04..78fe5a538 100644 --- a/ehpc/src/model/AddNodesResult.cc +++ b/ehpc/src/model/AddNodesResult.cc @@ -42,9 +42,16 @@ void AddNodesResult::parse(const std::string &payload) auto allInstanceIds = value["InstanceIds"]["InstanceId"]; for (const auto &item : allInstanceIds) instanceIds_.push_back(item.asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string AddNodesResult::getTaskId()const +{ + return taskId_; +} + std::vector AddNodesResult::getInstanceIds()const { return instanceIds_; diff --git a/ehpc/src/model/AddQueueRequest.cc b/ehpc/src/model/AddQueueRequest.cc new file mode 100644 index 000000000..ee4e73c8e --- /dev/null +++ b/ehpc/src/model/AddQueueRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::AddQueueRequest; + +AddQueueRequest::AddQueueRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "AddQueue") { + setMethod(HttpRequest::Method::Get); +} + +AddQueueRequest::~AddQueueRequest() {} + +std::string AddQueueRequest::getQueueName() const { + return queueName_; +} + +void AddQueueRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string AddQueueRequest::getClusterId() const { + return clusterId_; +} + +void AddQueueRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string AddQueueRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddQueueRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/SetJobUserResult.cc b/ehpc/src/model/AddQueueResult.cc similarity index 78% rename from ehpc/src/model/SetJobUserResult.cc rename to ehpc/src/model/AddQueueResult.cc index 3ddd594a2..b36822e13 100644 --- a/ehpc/src/model/SetJobUserResult.cc +++ b/ehpc/src/model/AddQueueResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::EHPC; using namespace AlibabaCloud::EHPC::Model; -SetJobUserResult::SetJobUserResult() : +AddQueueResult::AddQueueResult() : ServiceResult() {} -SetJobUserResult::SetJobUserResult(const std::string &payload) : +AddQueueResult::AddQueueResult(const std::string &payload) : ServiceResult() { parse(payload); } -SetJobUserResult::~SetJobUserResult() +AddQueueResult::~AddQueueResult() {} -void SetJobUserResult::parse(const std::string &payload) +void AddQueueResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/ehpc/src/model/AddSecurityGroupRequest.cc b/ehpc/src/model/AddSecurityGroupRequest.cc new file mode 100644 index 000000000..387790fbd --- /dev/null +++ b/ehpc/src/model/AddSecurityGroupRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::AddSecurityGroupRequest; + +AddSecurityGroupRequest::AddSecurityGroupRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "AddSecurityGroup") { + setMethod(HttpRequest::Method::Get); +} + +AddSecurityGroupRequest::~AddSecurityGroupRequest() {} + +std::string AddSecurityGroupRequest::getClientToken() const { + return clientToken_; +} + +void AddSecurityGroupRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string AddSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void AddSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string AddSecurityGroupRequest::getClusterId() const { + return clusterId_; +} + +void AddSecurityGroupRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string AddSecurityGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddSecurityGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/AddSecurityGroupResult.cc b/ehpc/src/model/AddSecurityGroupResult.cc new file mode 100644 index 000000000..5a79ad238 --- /dev/null +++ b/ehpc/src/model/AddSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +AddSecurityGroupResult::AddSecurityGroupResult() : + ServiceResult() +{} + +AddSecurityGroupResult::AddSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSecurityGroupResult::~AddSecurityGroupResult() +{} + +void AddSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/AddUsersRequest.cc b/ehpc/src/model/AddUsersRequest.cc index 962162930..5fc202fcd 100644 --- a/ehpc/src/model/AddUsersRequest.cc +++ b/ehpc/src/model/AddUsersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::AddUsersRequest; AddUsersRequest::AddUsersRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "AddUsers") { + : RpcServiceRequest("ehpc", "2018-04-12", "AddUsers") { setMethod(HttpRequest::Method::Get); } @@ -43,15 +43,6 @@ void AddUsersRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } -bool AddUsersRequest::getReleaseInstance() const { - return releaseInstance_; -} - -void AddUsersRequest::setReleaseInstance(bool releaseInstance) { - releaseInstance_ = releaseInstance; - setParameter(std::string("ReleaseInstance"), releaseInstance ? "true" : "false"); -} - std::vector AddUsersRequest::getUser() const { return user_; } diff --git a/ehpc/src/model/ApplyNodesRequest.cc b/ehpc/src/model/ApplyNodesRequest.cc new file mode 100644 index 000000000..177f0897d --- /dev/null +++ b/ehpc/src/model/ApplyNodesRequest.cc @@ -0,0 +1,295 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::ApplyNodesRequest; + +ApplyNodesRequest::ApplyNodesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ApplyNodes") { + setMethod(HttpRequest::Method::Get); +} + +ApplyNodesRequest::~ApplyNodesRequest() {} + +std::string ApplyNodesRequest::getImageId() const { + return imageId_; +} + +void ApplyNodesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +int ApplyNodesRequest::getMemory() const { + return memory_; +} + +void ApplyNodesRequest::setMemory(int memory) { + memory_ = memory; + setParameter(std::string("Memory"), std::to_string(memory)); +} + +std::string ApplyNodesRequest::getSystemDiskLevel() const { + return systemDiskLevel_; +} + +void ApplyNodesRequest::setSystemDiskLevel(const std::string &systemDiskLevel) { + systemDiskLevel_ = systemDiskLevel; + setParameter(std::string("SystemDiskLevel"), systemDiskLevel); +} + +bool ApplyNodesRequest::getAllocatePublicAddress() const { + return allocatePublicAddress_; +} + +void ApplyNodesRequest::setAllocatePublicAddress(bool allocatePublicAddress) { + allocatePublicAddress_ = allocatePublicAddress; + setParameter(std::string("AllocatePublicAddress"), allocatePublicAddress ? "true" : "false"); +} + +int ApplyNodesRequest::getInternetMaxBandWidthOut() const { + return internetMaxBandWidthOut_; +} + +void ApplyNodesRequest::setInternetMaxBandWidthOut(int internetMaxBandWidthOut) { + internetMaxBandWidthOut_ = internetMaxBandWidthOut; + setParameter(std::string("InternetMaxBandWidthOut"), std::to_string(internetMaxBandWidthOut)); +} + +std::string ApplyNodesRequest::getResourceAmountType() const { + return resourceAmountType_; +} + +void ApplyNodesRequest::setResourceAmountType(const std::string &resourceAmountType) { + resourceAmountType_ = resourceAmountType; + setParameter(std::string("ResourceAmountType"), resourceAmountType); +} + +bool ApplyNodesRequest::getStrictResourceProvision() const { + return strictResourceProvision_; +} + +void ApplyNodesRequest::setStrictResourceProvision(bool strictResourceProvision) { + strictResourceProvision_ = strictResourceProvision; + setParameter(std::string("StrictResourceProvision"), strictResourceProvision ? "true" : "false"); +} + +std::string ApplyNodesRequest::getJobQueue() const { + return jobQueue_; +} + +void ApplyNodesRequest::setJobQueue(const std::string &jobQueue) { + jobQueue_ = jobQueue; + setParameter(std::string("JobQueue"), jobQueue); +} + +std::string ApplyNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ApplyNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ApplyNodesRequest::getSystemDiskType() const { + return systemDiskType_; +} + +void ApplyNodesRequest::setSystemDiskType(const std::string &systemDiskType) { + systemDiskType_ = systemDiskType; + setParameter(std::string("SystemDiskType"), systemDiskType); +} + +int ApplyNodesRequest::getCores() const { + return cores_; +} + +void ApplyNodesRequest::setCores(int cores) { + cores_ = cores; + setParameter(std::string("Cores"), std::to_string(cores)); +} + +int ApplyNodesRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void ApplyNodesRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize)); +} + +std::vector ApplyNodesRequest::getZoneInfos() const { + return zoneInfos_; +} + +void ApplyNodesRequest::setZoneInfos(const std::vector &zoneInfos) { + zoneInfos_ = zoneInfos; + for(int dep1 = 0; dep1 != zoneInfos.size(); dep1++) { + auto zoneInfosObj = zoneInfos.at(dep1); + std::string zoneInfosObjStr = std::string("ZoneInfos") + "." + std::to_string(dep1 + 1); + setParameter(zoneInfosObjStr + ".VSwitchId", zoneInfosObj.vSwitchId); + setParameter(zoneInfosObjStr + ".ZoneId", zoneInfosObj.zoneId); + } +} + +std::string ApplyNodesRequest::getHostNamePrefix() const { + return hostNamePrefix_; +} + +void ApplyNodesRequest::setHostNamePrefix(const std::string &hostNamePrefix) { + hostNamePrefix_ = hostNamePrefix; + setParameter(std::string("HostNamePrefix"), hostNamePrefix); +} + +std::vector ApplyNodesRequest::getTag() const { + return tag_; +} + +void ApplyNodesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +float ApplyNodesRequest::getComputeSpotPriceLimit() const { + return computeSpotPriceLimit_; +} + +void ApplyNodesRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit) { + computeSpotPriceLimit_ = computeSpotPriceLimit; + setParameter(std::string("ComputeSpotPriceLimit"), std::to_string(computeSpotPriceLimit)); +} + +std::string ApplyNodesRequest::getClusterId() const { + return clusterId_; +} + +void ApplyNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ApplyNodesRequest::getComputeSpotStrategy() const { + return computeSpotStrategy_; +} + +void ApplyNodesRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) { + computeSpotStrategy_ = computeSpotStrategy; + setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); +} + +std::string ApplyNodesRequest::getHostNameSuffix() const { + return hostNameSuffix_; +} + +void ApplyNodesRequest::setHostNameSuffix(const std::string &hostNameSuffix) { + hostNameSuffix_ = hostNameSuffix; + setParameter(std::string("HostNameSuffix"), hostNameSuffix); +} + +std::string ApplyNodesRequest::getPriorityStrategy() const { + return priorityStrategy_; +} + +void ApplyNodesRequest::setPriorityStrategy(const std::string &priorityStrategy) { + priorityStrategy_ = priorityStrategy; + setParameter(std::string("PriorityStrategy"), priorityStrategy); +} + +std::string ApplyNodesRequest::getInstanceFamilyLevel() const { + return instanceFamilyLevel_; +} + +void ApplyNodesRequest::setInstanceFamilyLevel(const std::string &instanceFamilyLevel) { + instanceFamilyLevel_ = instanceFamilyLevel; + setParameter(std::string("InstanceFamilyLevel"), instanceFamilyLevel); +} + +int ApplyNodesRequest::getRound() const { + return round_; +} + +void ApplyNodesRequest::setRound(int round) { + round_ = round; + setParameter(std::string("Round"), std::to_string(round)); +} + +std::string ApplyNodesRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void ApplyNodesRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +int ApplyNodesRequest::getInterval() const { + return interval_; +} + +void ApplyNodesRequest::setInterval(int interval) { + interval_ = interval; + setParameter(std::string("Interval"), std::to_string(interval)); +} + +std::vector ApplyNodesRequest::getInstanceTypeModel() const { + return instanceTypeModel_; +} + +void ApplyNodesRequest::setInstanceTypeModel(const std::vector &instanceTypeModel) { + instanceTypeModel_ = instanceTypeModel; + for(int dep1 = 0; dep1 != instanceTypeModel.size(); dep1++) { + auto instanceTypeModelObj = instanceTypeModel.at(dep1); + std::string instanceTypeModelObjStr = std::string("InstanceTypeModel") + "." + std::to_string(dep1 + 1); + setParameter(instanceTypeModelObjStr + ".MaxPrice", std::to_string(instanceTypeModelObj.maxPrice)); + setParameter(instanceTypeModelObjStr + ".TargetImageId", instanceTypeModelObj.targetImageId); + setParameter(instanceTypeModelObjStr + ".InstanceType", instanceTypeModelObj.instanceType); + } +} + +int ApplyNodesRequest::getInternetMaxBandWidthIn() const { + return internetMaxBandWidthIn_; +} + +void ApplyNodesRequest::setInternetMaxBandWidthIn(int internetMaxBandWidthIn) { + internetMaxBandWidthIn_ = internetMaxBandWidthIn; + setParameter(std::string("InternetMaxBandWidthIn"), std::to_string(internetMaxBandWidthIn)); +} + +int ApplyNodesRequest::getTargetCapacity() const { + return targetCapacity_; +} + +void ApplyNodesRequest::setTargetCapacity(int targetCapacity) { + targetCapacity_ = targetCapacity; + setParameter(std::string("TargetCapacity"), std::to_string(targetCapacity)); +} + +bool ApplyNodesRequest::getStrictSatisfiedTargetCapacity() const { + return strictSatisfiedTargetCapacity_; +} + +void ApplyNodesRequest::setStrictSatisfiedTargetCapacity(bool strictSatisfiedTargetCapacity) { + strictSatisfiedTargetCapacity_ = strictSatisfiedTargetCapacity; + setParameter(std::string("StrictSatisfiedTargetCapacity"), strictSatisfiedTargetCapacity ? "true" : "false"); +} + diff --git a/ehpc/src/model/ApplyNodesResult.cc b/ehpc/src/model/ApplyNodesResult.cc new file mode 100644 index 000000000..9c7eee64b --- /dev/null +++ b/ehpc/src/model/ApplyNodesResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ApplyNodesResult::ApplyNodesResult() : + ServiceResult() +{} + +ApplyNodesResult::ApplyNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyNodesResult::~ApplyNodesResult() +{} + +void ApplyNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + if(!value["SatisfiedAmount"].isNull()) + satisfiedAmount_ = std::stoi(value["SatisfiedAmount"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["Detail"].isNull()) + detail_ = value["Detail"].asString(); + +} + +std::string ApplyNodesResult::getTaskId()const +{ + return taskId_; +} + +int ApplyNodesResult::getSatisfiedAmount()const +{ + return satisfiedAmount_; +} + +std::vector ApplyNodesResult::getInstanceIds()const +{ + return instanceIds_; +} + +std::string ApplyNodesResult::getDetail()const +{ + return detail_; +} + diff --git a/ehpc/src/model/CreateClusterRequest.cc b/ehpc/src/model/CreateClusterRequest.cc index d0bb20854..a915232ac 100644 --- a/ehpc/src/model/CreateClusterRequest.cc +++ b/ehpc/src/model/CreateClusterRequest.cc @@ -19,12 +19,308 @@ using AlibabaCloud::EHPC::Model::CreateClusterRequest; CreateClusterRequest::CreateClusterRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "CreateCluster") { + : RpcServiceRequest("ehpc", "2018-04-12", "CreateCluster") { setMethod(HttpRequest::Method::Get); } CreateClusterRequest::~CreateClusterRequest() {} +std::vector CreateClusterRequest::getAdditionalVolumes() const { + return additionalVolumes_; +} + +void CreateClusterRequest::setAdditionalVolumes(const std::vector &additionalVolumes) { + additionalVolumes_ = additionalVolumes; + for(int dep1 = 0; dep1 != additionalVolumes.size(); dep1++) { + auto additionalVolumesObj = additionalVolumes.at(dep1); + std::string additionalVolumesObjStr = std::string("AdditionalVolumes") + "." + std::to_string(dep1 + 1); + setParameter(additionalVolumesObjStr + ".VolumeType", additionalVolumesObj.volumeType); + setParameter(additionalVolumesObjStr + ".VolumeMountOption", additionalVolumesObj.volumeMountOption); + setParameter(additionalVolumesObjStr + ".VolumeProtocol", additionalVolumesObj.volumeProtocol); + setParameter(additionalVolumesObjStr + ".LocalDirectory", additionalVolumesObj.localDirectory); + setParameter(additionalVolumesObjStr + ".RemoteDirectory", additionalVolumesObj.remoteDirectory); + for(int dep2 = 0; dep2 != additionalVolumesObj.roles.size(); dep2++) { + auto rolesObj = additionalVolumesObj.roles.at(dep2); + std::string rolesObjStr = additionalVolumesObjStr + ".Roles" + "." + std::to_string(dep2 + 1); + setParameter(rolesObjStr + ".Name", rolesObj.name); + } + setParameter(additionalVolumesObjStr + ".VolumeId", additionalVolumesObj.volumeId); + setParameter(additionalVolumesObjStr + ".VolumeMountpoint", additionalVolumesObj.volumeMountpoint); + setParameter(additionalVolumesObjStr + ".Location", additionalVolumesObj.location); + setParameter(additionalVolumesObjStr + ".JobQueue", additionalVolumesObj.jobQueue); + } +} + +std::string CreateClusterRequest::getEcsOrderManagerInstanceType() const { + return ecsOrderManagerInstanceType_; +} + +void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType) { + ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType; + setParameter(std::string("EcsOrder.Manager.InstanceType"), ecsOrderManagerInstanceType); +} + +std::string CreateClusterRequest::getKeyPairName() const { + return keyPairName_; +} + +void CreateClusterRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +std::string CreateClusterRequest::getSecurityGroupName() const { + return securityGroupName_; +} + +void CreateClusterRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); +} + +std::string CreateClusterRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; +} + +void CreateClusterRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +} + +std::string CreateClusterRequest::getDeployMode() const { + return deployMode_; +} + +void CreateClusterRequest::setDeployMode(const std::string &deployMode) { + deployMode_ = deployMode; + setParameter(std::string("DeployMode"), deployMode); +} + +int CreateClusterRequest::getEcsOrderManagerCount() const { + return ecsOrderManagerCount_; +} + +void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount) { + ecsOrderManagerCount_ = ecsOrderManagerCount; + setParameter(std::string("EcsOrder.Manager.Count"), std::to_string(ecsOrderManagerCount)); +} + +std::string CreateClusterRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateClusterRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateClusterRequest::getPassword() const { + return password_; +} + +void CreateClusterRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +int CreateClusterRequest::getEcsOrderLoginCount() const { + return ecsOrderLoginCount_; +} + +void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount) { + ecsOrderLoginCount_ = ecsOrderLoginCount; + setParameter(std::string("EcsOrder.Login.Count"), std::to_string(ecsOrderLoginCount)); +} + +bool CreateClusterRequest::getWithoutElasticIp() const { + return withoutElasticIp_; +} + +void CreateClusterRequest::setWithoutElasticIp(bool withoutElasticIp) { + withoutElasticIp_ = withoutElasticIp; + setParameter(std::string("WithoutElasticIp"), withoutElasticIp ? "true" : "false"); +} + +std::string CreateClusterRequest::getRemoteVisEnable() const { + return remoteVisEnable_; +} + +void CreateClusterRequest::setRemoteVisEnable(const std::string &remoteVisEnable) { + remoteVisEnable_ = remoteVisEnable; + setParameter(std::string("RemoteVisEnable"), remoteVisEnable); +} + +int CreateClusterRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void CreateClusterRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize)); +} + +std::vector CreateClusterRequest::getTag() const { + return tag_; +} + +void CreateClusterRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateClusterRequest::getComputeSpotPriceLimit() const { + return computeSpotPriceLimit_; +} + +void CreateClusterRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) { + computeSpotPriceLimit_ = computeSpotPriceLimit; + setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit); +} + +int CreateClusterRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; +} + +void CreateClusterRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); +} + +int CreateClusterRequest::getPeriod() const { + return period_; +} + +void CreateClusterRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +std::string CreateClusterRequest::getRemoteDirectory() const { + return remoteDirectory_; +} + +void CreateClusterRequest::setRemoteDirectory(const std::string &remoteDirectory) { + remoteDirectory_ = remoteDirectory; + setParameter(std::string("RemoteDirectory"), remoteDirectory); +} + +int CreateClusterRequest::getEcsOrderComputeCount() const { + return ecsOrderComputeCount_; +} + +void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount) { + ecsOrderComputeCount_ = ecsOrderComputeCount; + setParameter(std::string("EcsOrder.Compute.Count"), std::to_string(ecsOrderComputeCount)); +} + +std::string CreateClusterRequest::getComputeSpotStrategy() const { + return computeSpotStrategy_; +} + +void CreateClusterRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) { + computeSpotStrategy_ = computeSpotStrategy; + setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); +} + +std::vector CreateClusterRequest::getPostInstallScript() const { + return postInstallScript_; +} + +void CreateClusterRequest::setPostInstallScript(const std::vector &postInstallScript) { + postInstallScript_ = postInstallScript; + for(int dep1 = 0; dep1 != postInstallScript.size(); dep1++) { + auto postInstallScriptObj = postInstallScript.at(dep1); + std::string postInstallScriptObjStr = std::string("PostInstallScript") + "." + std::to_string(dep1 + 1); + setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args); + setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url); + } +} + +std::vector CreateClusterRequest::getRamNodeTypes() const { + return ramNodeTypes_; +} + +void CreateClusterRequest::setRamNodeTypes(const std::vector &ramNodeTypes) { + ramNodeTypes_ = ramNodeTypes; +} + +std::string CreateClusterRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateClusterRequest::getPeriodUnit() const { + return periodUnit_; +} + +void CreateClusterRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); +} + +bool CreateClusterRequest::getComputeEnableHt() const { + return computeEnableHt_; +} + +void CreateClusterRequest::setComputeEnableHt(bool computeEnableHt) { + computeEnableHt_ = computeEnableHt; + setParameter(std::string("ComputeEnableHt"), computeEnableHt ? "true" : "false"); +} + +std::string CreateClusterRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateClusterRequest::setAutoRenew(const std::string &autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew); +} + +std::string CreateClusterRequest::getDomain() const { + return domain_; +} + +void CreateClusterRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + +std::string CreateClusterRequest::getName() const { + return name_; +} + +void CreateClusterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateClusterRequest::getVolumeId() const { + return volumeId_; +} + +void CreateClusterRequest::setVolumeId(const std::string &volumeId) { + volumeId_ = volumeId; + setParameter(std::string("VolumeId"), volumeId); +} + +std::string CreateClusterRequest::getZoneId() const { + return zoneId_; +} + +void CreateClusterRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + std::string CreateClusterRequest::getSccClusterId() const { return sccClusterId_; } @@ -34,6 +330,15 @@ void CreateClusterRequest::setSccClusterId(const std::string &sccClusterId) { setParameter(std::string("SccClusterId"), sccClusterId); } +std::string CreateClusterRequest::getVolumeMountOption() const { + return volumeMountOption_; +} + +void CreateClusterRequest::setVolumeMountOption(const std::string &volumeMountOption) { + volumeMountOption_ = volumeMountOption; + setParameter(std::string("VolumeMountOption"), volumeMountOption); +} + std::string CreateClusterRequest::getImageId() const { return imageId_; } @@ -43,13 +348,22 @@ void CreateClusterRequest::setImageId(const std::string &imageId) { setParameter(std::string("ImageId"), imageId); } -std::string CreateClusterRequest::getEcsOrderManagerInstanceType() const { - return ecsOrderManagerInstanceType_; +std::string CreateClusterRequest::getSystemDiskLevel() const { + return systemDiskLevel_; } -void CreateClusterRequest::setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType) { - ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType; - setParameter(std::string("EcsOrder.Manager.InstanceType"), ecsOrderManagerInstanceType); +void CreateClusterRequest::setSystemDiskLevel(const std::string &systemDiskLevel) { + systemDiskLevel_ = systemDiskLevel; + setParameter(std::string("SystemDiskLevel"), systemDiskLevel); +} + +std::string CreateClusterRequest::getClientToken() const { + return clientToken_; +} + +void CreateClusterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); } std::string CreateClusterRequest::getEhpcVersion() const { @@ -88,24 +402,6 @@ void CreateClusterRequest::setDescription(const std::string &description) { setParameter(std::string("Description"), description); } -std::string CreateClusterRequest::getKeyPairName() const { - return keyPairName_; -} - -void CreateClusterRequest::setKeyPairName(const std::string &keyPairName) { - keyPairName_ = keyPairName; - setParameter(std::string("KeyPairName"), keyPairName); -} - -std::string CreateClusterRequest::getSecurityGroupName() const { - return securityGroupName_; -} - -void CreateClusterRequest::setSecurityGroupName(const std::string &securityGroupName) { - securityGroupName_ = securityGroupName; - setParameter(std::string("SecurityGroupName"), securityGroupName); -} - std::string CreateClusterRequest::getEcsOrderComputeInstanceType() const { return ecsOrderComputeInstanceType_; } @@ -115,6 +411,15 @@ void CreateClusterRequest::setEcsOrderComputeInstanceType(const std::string &ecs setParameter(std::string("EcsOrder.Compute.InstanceType"), ecsOrderComputeInstanceType); } +std::string CreateClusterRequest::getJobQueue() const { + return jobQueue_; +} + +void CreateClusterRequest::setJobQueue(const std::string &jobQueue) { + jobQueue_ = jobQueue; + setParameter(std::string("JobQueue"), jobQueue); +} + std::string CreateClusterRequest::getAccessKeyId() const { return accessKeyId_; } @@ -124,15 +429,6 @@ void CreateClusterRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string CreateClusterRequest::getImageOwnerAlias() const { - return imageOwnerAlias_; -} - -void CreateClusterRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { - imageOwnerAlias_ = imageOwnerAlias; - setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); -} - std::string CreateClusterRequest::getVolumeType() const { return volumeType_; } @@ -142,40 +438,13 @@ void CreateClusterRequest::setVolumeType(const std::string &volumeType) { setParameter(std::string("VolumeType"), volumeType); } -int CreateClusterRequest::getEcsOrderManagerCount() const { - return ecsOrderManagerCount_; +std::string CreateClusterRequest::getSystemDiskType() const { + return systemDiskType_; } -void CreateClusterRequest::setEcsOrderManagerCount(int ecsOrderManagerCount) { - ecsOrderManagerCount_ = ecsOrderManagerCount; - setParameter(std::string("EcsOrder.Manager.Count"), std::to_string(ecsOrderManagerCount)); -} - -std::string CreateClusterRequest::getPassword() const { - return password_; -} - -void CreateClusterRequest::setPassword(const std::string &password) { - password_ = password; - setParameter(std::string("Password"), password); -} - -int CreateClusterRequest::getEcsOrderLoginCount() const { - return ecsOrderLoginCount_; -} - -void CreateClusterRequest::setEcsOrderLoginCount(int ecsOrderLoginCount) { - ecsOrderLoginCount_ = ecsOrderLoginCount; - setParameter(std::string("EcsOrder.Login.Count"), std::to_string(ecsOrderLoginCount)); -} - -std::string CreateClusterRequest::getComputeSpotPriceLimit() const { - return computeSpotPriceLimit_; -} - -void CreateClusterRequest::setComputeSpotPriceLimit(const std::string &computeSpotPriceLimit) { - computeSpotPriceLimit_ = computeSpotPriceLimit; - setParameter(std::string("ComputeSpotPriceLimit"), computeSpotPriceLimit); +void CreateClusterRequest::setSystemDiskType(const std::string &systemDiskType) { + systemDiskType_ = systemDiskType; + setParameter(std::string("SystemDiskType"), systemDiskType); } std::string CreateClusterRequest::getVolumeProtocol() const { @@ -187,6 +456,15 @@ void CreateClusterRequest::setVolumeProtocol(const std::string &volumeProtocol) setParameter(std::string("VolumeProtocol"), volumeProtocol); } +std::string CreateClusterRequest::getClientVersion() const { + return clientVersion_; +} + +void CreateClusterRequest::setClientVersion(const std::string &clientVersion) { + clientVersion_ = clientVersion; + setParameter(std::string("ClientVersion"), clientVersion); +} + std::string CreateClusterRequest::getOsTag() const { return osTag_; } @@ -196,40 +474,40 @@ void CreateClusterRequest::setOsTag(const std::string &osTag) { setParameter(std::string("OsTag"), osTag); } -std::string CreateClusterRequest::getRemoteDirectory() const { - return remoteDirectory_; +std::string CreateClusterRequest::getClusterVersion() const { + return clusterVersion_; } -void CreateClusterRequest::setRemoteDirectory(const std::string &remoteDirectory) { - remoteDirectory_ = remoteDirectory; - setParameter(std::string("RemoteDirectory"), remoteDirectory); +void CreateClusterRequest::setClusterVersion(const std::string &clusterVersion) { + clusterVersion_ = clusterVersion; + setParameter(std::string("ClusterVersion"), clusterVersion); } -int CreateClusterRequest::getEcsOrderComputeCount() const { - return ecsOrderComputeCount_; +bool CreateClusterRequest::getIsComputeEss() const { + return isComputeEss_; } -void CreateClusterRequest::setEcsOrderComputeCount(int ecsOrderComputeCount) { - ecsOrderComputeCount_ = ecsOrderComputeCount; - setParameter(std::string("EcsOrder.Compute.Count"), std::to_string(ecsOrderComputeCount)); +void CreateClusterRequest::setIsComputeEss(bool isComputeEss) { + isComputeEss_ = isComputeEss; + setParameter(std::string("IsComputeEss"), isComputeEss ? "true" : "false"); } -std::string CreateClusterRequest::getComputeSpotStrategy() const { - return computeSpotStrategy_; +std::string CreateClusterRequest::getRamRoleName() const { + return ramRoleName_; } -void CreateClusterRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) { - computeSpotStrategy_ = computeSpotStrategy; - setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); +void CreateClusterRequest::setRamRoleName(const std::string &ramRoleName) { + ramRoleName_ = ramRoleName; + setParameter(std::string("RamRoleName"), ramRoleName); } -std::string CreateClusterRequest::getVSwitchId() const { - return vSwitchId_; +std::string CreateClusterRequest::getPlugin() const { + return plugin_; } -void CreateClusterRequest::setVSwitchId(const std::string &vSwitchId) { - vSwitchId_ = vSwitchId; - setParameter(std::string("VSwitchId"), vSwitchId); +void CreateClusterRequest::setPlugin(const std::string &plugin) { + plugin_ = plugin; + setParameter(std::string("Plugin"), plugin); } std::vector CreateClusterRequest::getApplication() const { @@ -254,6 +532,15 @@ void CreateClusterRequest::setEcsChargeType(const std::string &ecsChargeType) { setParameter(std::string("EcsChargeType"), ecsChargeType); } +std::string CreateClusterRequest::getInputFileUrl() const { + return inputFileUrl_; +} + +void CreateClusterRequest::setInputFileUrl(const std::string &inputFileUrl) { + inputFileUrl_ = inputFileUrl; + setParameter(std::string("InputFileUrl"), inputFileUrl); +} + std::string CreateClusterRequest::getVpcId() const { return vpcId_; } @@ -272,13 +559,13 @@ void CreateClusterRequest::setHaEnable(bool haEnable) { setParameter(std::string("HaEnable"), haEnable ? "true" : "false"); } -std::string CreateClusterRequest::getName() const { - return name_; +bool CreateClusterRequest::getWithoutAgent() const { + return withoutAgent_; } -void CreateClusterRequest::setName(const std::string &name) { - name_ = name; - setParameter(std::string("Name"), name); +void CreateClusterRequest::setWithoutAgent(bool withoutAgent) { + withoutAgent_ = withoutAgent; + setParameter(std::string("WithoutAgent"), withoutAgent ? "true" : "false"); } std::string CreateClusterRequest::getSchedulerType() const { @@ -290,15 +577,6 @@ void CreateClusterRequest::setSchedulerType(const std::string &schedulerType) { setParameter(std::string("SchedulerType"), schedulerType); } -std::string CreateClusterRequest::getVolumeId() const { - return volumeId_; -} - -void CreateClusterRequest::setVolumeId(const std::string &volumeId) { - volumeId_ = volumeId; - setParameter(std::string("VolumeId"), volumeId); -} - std::string CreateClusterRequest::getVolumeMountpoint() const { return volumeMountpoint_; } @@ -317,12 +595,3 @@ void CreateClusterRequest::setEcsOrderLoginInstanceType(const std::string &ecsOr setParameter(std::string("EcsOrder.Login.InstanceType"), ecsOrderLoginInstanceType); } -std::string CreateClusterRequest::getZoneId() const { - return zoneId_; -} - -void CreateClusterRequest::setZoneId(const std::string &zoneId) { - zoneId_ = zoneId; - setParameter(std::string("ZoneId"), zoneId); -} - diff --git a/ehpc/src/model/CreateClusterResult.cc b/ehpc/src/model/CreateClusterResult.cc index 6904c2dde..8ecc4fb08 100644 --- a/ehpc/src/model/CreateClusterResult.cc +++ b/ehpc/src/model/CreateClusterResult.cc @@ -39,11 +39,18 @@ void CreateClusterResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); } +std::string CreateClusterResult::getTaskId()const +{ + return taskId_; +} + std::string CreateClusterResult::getClusterId()const { return clusterId_; diff --git a/ehpc/src/model/CreateGWSClusterRequest.cc b/ehpc/src/model/CreateGWSClusterRequest.cc new file mode 100644 index 000000000..367c7ed47 --- /dev/null +++ b/ehpc/src/model/CreateGWSClusterRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::CreateGWSClusterRequest; + +CreateGWSClusterRequest::CreateGWSClusterRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSCluster") { + setMethod(HttpRequest::Method::Get); +} + +CreateGWSClusterRequest::~CreateGWSClusterRequest() {} + +std::string CreateGWSClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateGWSClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateGWSClusterRequest::getClusterType() const { + return clusterType_; +} + +void CreateGWSClusterRequest::setClusterType(const std::string &clusterType) { + clusterType_ = clusterType; + setParameter(std::string("ClusterType"), clusterType); +} + +std::string CreateGWSClusterRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateGWSClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateGWSClusterRequest::getVpcId() const { + return vpcId_; +} + +void CreateGWSClusterRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateGWSClusterRequest::getName() const { + return name_; +} + +void CreateGWSClusterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ehpc/src/model/CreateGWSClusterResult.cc b/ehpc/src/model/CreateGWSClusterResult.cc new file mode 100644 index 000000000..747502174 --- /dev/null +++ b/ehpc/src/model/CreateGWSClusterResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateGWSClusterResult::CreateGWSClusterResult() : + ServiceResult() +{} + +CreateGWSClusterResult::CreateGWSClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGWSClusterResult::~CreateGWSClusterResult() +{} + +void CreateGWSClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + +} + +std::string CreateGWSClusterResult::getClusterId()const +{ + return clusterId_; +} + diff --git a/ehpc/src/model/CreateGWSImageRequest.cc b/ehpc/src/model/CreateGWSImageRequest.cc new file mode 100644 index 000000000..4b2d43177 --- /dev/null +++ b/ehpc/src/model/CreateGWSImageRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::CreateGWSImageRequest; + +CreateGWSImageRequest::CreateGWSImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSImage") { + setMethod(HttpRequest::Method::Get); +} + +CreateGWSImageRequest::~CreateGWSImageRequest() {} + +std::string CreateGWSImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateGWSImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateGWSImageRequest::getInstanceId() const { + return instanceId_; +} + +void CreateGWSImageRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string CreateGWSImageRequest::getName() const { + return name_; +} + +void CreateGWSImageRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ehpc/src/model/CreateGWSImageResult.cc b/ehpc/src/model/CreateGWSImageResult.cc new file mode 100644 index 000000000..465dfb167 --- /dev/null +++ b/ehpc/src/model/CreateGWSImageResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateGWSImageResult::CreateGWSImageResult() : + ServiceResult() +{} + +CreateGWSImageResult::CreateGWSImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGWSImageResult::~CreateGWSImageResult() +{} + +void CreateGWSImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + +} + +std::string CreateGWSImageResult::getImageId()const +{ + return imageId_; +} + diff --git a/ehpc/src/model/CreateGWSInstanceRequest.cc b/ehpc/src/model/CreateGWSInstanceRequest.cc new file mode 100644 index 000000000..c320567f1 --- /dev/null +++ b/ehpc/src/model/CreateGWSInstanceRequest.cc @@ -0,0 +1,189 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::CreateGWSInstanceRequest; + +CreateGWSInstanceRequest::CreateGWSInstanceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "CreateGWSInstance") { + setMethod(HttpRequest::Method::Get); +} + +CreateGWSInstanceRequest::~CreateGWSInstanceRequest() {} + +std::string CreateGWSInstanceRequest::getImageId() const { + return imageId_; +} + +void CreateGWSInstanceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +bool CreateGWSInstanceRequest::getAllocatePublicAddress() const { + return allocatePublicAddress_; +} + +void CreateGWSInstanceRequest::setAllocatePublicAddress(bool allocatePublicAddress) { + allocatePublicAddress_ = allocatePublicAddress; + setParameter(std::string("AllocatePublicAddress"), allocatePublicAddress ? "true" : "false"); +} + +std::string CreateGWSInstanceRequest::getAppList() const { + return appList_; +} + +void CreateGWSInstanceRequest::setAppList(const std::string &appList) { + appList_ = appList; + setParameter(std::string("AppList"), appList); +} + +int CreateGWSInstanceRequest::getInternetMaxBandwidthOut() const { + return internetMaxBandwidthOut_; +} + +void CreateGWSInstanceRequest::setInternetMaxBandwidthOut(int internetMaxBandwidthOut) { + internetMaxBandwidthOut_ = internetMaxBandwidthOut; + setParameter(std::string("InternetMaxBandwidthOut"), std::to_string(internetMaxBandwidthOut)); +} + +std::string CreateGWSInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateGWSInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateGWSInstanceRequest::getSystemDiskCategory() const { + return systemDiskCategory_; +} + +void CreateGWSInstanceRequest::setSystemDiskCategory(const std::string &systemDiskCategory) { + systemDiskCategory_ = systemDiskCategory; + setParameter(std::string("SystemDiskCategory"), systemDiskCategory); +} + +int CreateGWSInstanceRequest::getSystemDiskSize() const { + return systemDiskSize_; +} + +void CreateGWSInstanceRequest::setSystemDiskSize(int systemDiskSize) { + systemDiskSize_ = systemDiskSize; + setParameter(std::string("SystemDiskSize"), std::to_string(systemDiskSize)); +} + +std::string CreateGWSInstanceRequest::getInstanceType() const { + return instanceType_; +} + +void CreateGWSInstanceRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + +std::string CreateGWSInstanceRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void CreateGWSInstanceRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +std::string CreateGWSInstanceRequest::getPeriod() const { + return period_; +} + +void CreateGWSInstanceRequest::setPeriod(const std::string &period) { + period_ = period; + setParameter(std::string("Period"), period); +} + +std::string CreateGWSInstanceRequest::getClusterId() const { + return clusterId_; +} + +void CreateGWSInstanceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateGWSInstanceRequest::getWorkMode() const { + return workMode_; +} + +void CreateGWSInstanceRequest::setWorkMode(const std::string &workMode) { + workMode_ = workMode; + setParameter(std::string("WorkMode"), workMode); +} + +std::string CreateGWSInstanceRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateGWSInstanceRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateGWSInstanceRequest::getPeriodUnit() const { + return periodUnit_; +} + +void CreateGWSInstanceRequest::setPeriodUnit(const std::string &periodUnit) { + periodUnit_ = periodUnit; + setParameter(std::string("PeriodUnit"), periodUnit); +} + +bool CreateGWSInstanceRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateGWSInstanceRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateGWSInstanceRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateGWSInstanceRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateGWSInstanceRequest::getName() const { + return name_; +} + +void CreateGWSInstanceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int CreateGWSInstanceRequest::getInternetMaxBandwidthIn() const { + return internetMaxBandwidthIn_; +} + +void CreateGWSInstanceRequest::setInternetMaxBandwidthIn(int internetMaxBandwidthIn) { + internetMaxBandwidthIn_ = internetMaxBandwidthIn; + setParameter(std::string("InternetMaxBandwidthIn"), std::to_string(internetMaxBandwidthIn)); +} + diff --git a/ehpc/src/model/CreateGWSInstanceResult.cc b/ehpc/src/model/CreateGWSInstanceResult.cc new file mode 100644 index 000000000..8b03fd4e7 --- /dev/null +++ b/ehpc/src/model/CreateGWSInstanceResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateGWSInstanceResult::CreateGWSInstanceResult() : + ServiceResult() +{} + +CreateGWSInstanceResult::CreateGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGWSInstanceResult::~CreateGWSInstanceResult() +{} + +void CreateGWSInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string CreateGWSInstanceResult::getInstanceId()const +{ + return instanceId_; +} + diff --git a/ehpc/src/model/CreateHybridClusterRequest.cc b/ehpc/src/model/CreateHybridClusterRequest.cc new file mode 100644 index 000000000..eb983a648 --- /dev/null +++ b/ehpc/src/model/CreateHybridClusterRequest.cc @@ -0,0 +1,387 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::CreateHybridClusterRequest; + +CreateHybridClusterRequest::CreateHybridClusterRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "CreateHybridCluster") { + setMethod(HttpRequest::Method::Get); +} + +CreateHybridClusterRequest::~CreateHybridClusterRequest() {} + +std::string CreateHybridClusterRequest::getEcsOrderManagerInstanceType() const { + return ecsOrderManagerInstanceType_; +} + +void CreateHybridClusterRequest::setEcsOrderManagerInstanceType(const std::string &ecsOrderManagerInstanceType) { + ecsOrderManagerInstanceType_ = ecsOrderManagerInstanceType; + setParameter(std::string("EcsOrder.Manager.InstanceType"), ecsOrderManagerInstanceType); +} + +std::string CreateHybridClusterRequest::getKeyPairName() const { + return keyPairName_; +} + +void CreateHybridClusterRequest::setKeyPairName(const std::string &keyPairName) { + keyPairName_ = keyPairName; + setParameter(std::string("KeyPairName"), keyPairName); +} + +bool CreateHybridClusterRequest::getMultiOs() const { + return multiOs_; +} + +void CreateHybridClusterRequest::setMultiOs(bool multiOs) { + multiOs_ = multiOs; + setParameter(std::string("MultiOs"), multiOs ? "true" : "false"); +} + +std::string CreateHybridClusterRequest::getSecurityGroupName() const { + return securityGroupName_; +} + +void CreateHybridClusterRequest::setSecurityGroupName(const std::string &securityGroupName) { + securityGroupName_ = securityGroupName; + setParameter(std::string("SecurityGroupName"), securityGroupName); +} + +std::string CreateHybridClusterRequest::getOnPremiseVolumeRemotePath() const { + return onPremiseVolumeRemotePath_; +} + +void CreateHybridClusterRequest::setOnPremiseVolumeRemotePath(const std::string &onPremiseVolumeRemotePath) { + onPremiseVolumeRemotePath_ = onPremiseVolumeRemotePath; + setParameter(std::string("OnPremiseVolumeRemotePath"), onPremiseVolumeRemotePath); +} + +std::string CreateHybridClusterRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; +} + +void CreateHybridClusterRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +} + +std::string CreateHybridClusterRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateHybridClusterRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateHybridClusterRequest::getPassword() const { + return password_; +} + +void CreateHybridClusterRequest::setPassword(const std::string &password) { + password_ = password; + setParameter(std::string("Password"), password); +} + +float CreateHybridClusterRequest::getComputeSpotPriceLimit() const { + return computeSpotPriceLimit_; +} + +void CreateHybridClusterRequest::setComputeSpotPriceLimit(float computeSpotPriceLimit) { + computeSpotPriceLimit_ = computeSpotPriceLimit; + setParameter(std::string("ComputeSpotPriceLimit"), std::to_string(computeSpotPriceLimit)); +} + +std::string CreateHybridClusterRequest::getOnPremiseVolumeLocalPath() const { + return onPremiseVolumeLocalPath_; +} + +void CreateHybridClusterRequest::setOnPremiseVolumeLocalPath(const std::string &onPremiseVolumeLocalPath) { + onPremiseVolumeLocalPath_ = onPremiseVolumeLocalPath; + setParameter(std::string("OnPremiseVolumeLocalPath"), onPremiseVolumeLocalPath); +} + +std::string CreateHybridClusterRequest::getRemoteDirectory() const { + return remoteDirectory_; +} + +void CreateHybridClusterRequest::setRemoteDirectory(const std::string &remoteDirectory) { + remoteDirectory_ = remoteDirectory; + setParameter(std::string("RemoteDirectory"), remoteDirectory); +} + +std::string CreateHybridClusterRequest::getComputeSpotStrategy() const { + return computeSpotStrategy_; +} + +void CreateHybridClusterRequest::setComputeSpotStrategy(const std::string &computeSpotStrategy) { + computeSpotStrategy_ = computeSpotStrategy; + setParameter(std::string("ComputeSpotStrategy"), computeSpotStrategy); +} + +std::vector CreateHybridClusterRequest::getPostInstallScript() const { + return postInstallScript_; +} + +void CreateHybridClusterRequest::setPostInstallScript(const std::vector &postInstallScript) { + postInstallScript_ = postInstallScript; + for(int dep1 = 0; dep1 != postInstallScript.size(); dep1++) { + auto postInstallScriptObj = postInstallScript.at(dep1); + std::string postInstallScriptObjStr = std::string("PostInstallScript") + "." + std::to_string(dep1 + 1); + setParameter(postInstallScriptObjStr + ".Args", postInstallScriptObj.args); + setParameter(postInstallScriptObjStr + ".Url", postInstallScriptObj.url); + } +} + +std::string CreateHybridClusterRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateHybridClusterRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateHybridClusterRequest::getDomain() const { + return domain_; +} + +void CreateHybridClusterRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + +std::string CreateHybridClusterRequest::getName() const { + return name_; +} + +void CreateHybridClusterRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +std::string CreateHybridClusterRequest::getVolumeId() const { + return volumeId_; +} + +void CreateHybridClusterRequest::setVolumeId(const std::string &volumeId) { + volumeId_ = volumeId; + setParameter(std::string("VolumeId"), volumeId); +} + +std::string CreateHybridClusterRequest::getZoneId() const { + return zoneId_; +} + +void CreateHybridClusterRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +std::string CreateHybridClusterRequest::getImageId() const { + return imageId_; +} + +void CreateHybridClusterRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string CreateHybridClusterRequest::getClientToken() const { + return clientToken_; +} + +void CreateHybridClusterRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateHybridClusterRequest::getEhpcVersion() const { + return ehpcVersion_; +} + +void CreateHybridClusterRequest::setEhpcVersion(const std::string &ehpcVersion) { + ehpcVersion_ = ehpcVersion; + setParameter(std::string("EhpcVersion"), ehpcVersion); +} + +std::string CreateHybridClusterRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void CreateHybridClusterRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string CreateHybridClusterRequest::getDescription() const { + return description_; +} + +void CreateHybridClusterRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string CreateHybridClusterRequest::getEcsOrderComputeInstanceType() const { + return ecsOrderComputeInstanceType_; +} + +void CreateHybridClusterRequest::setEcsOrderComputeInstanceType(const std::string &ecsOrderComputeInstanceType) { + ecsOrderComputeInstanceType_ = ecsOrderComputeInstanceType; + setParameter(std::string("EcsOrder.Compute.InstanceType"), ecsOrderComputeInstanceType); +} + +std::string CreateHybridClusterRequest::getJobQueue() const { + return jobQueue_; +} + +void CreateHybridClusterRequest::setJobQueue(const std::string &jobQueue) { + jobQueue_ = jobQueue; + setParameter(std::string("JobQueue"), jobQueue); +} + +std::string CreateHybridClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateHybridClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateHybridClusterRequest::getVolumeType() const { + return volumeType_; +} + +void CreateHybridClusterRequest::setVolumeType(const std::string &volumeType) { + volumeType_ = volumeType; + setParameter(std::string("VolumeType"), volumeType); +} + +std::string CreateHybridClusterRequest::getOnPremiseVolumeMountPoint() const { + return onPremiseVolumeMountPoint_; +} + +void CreateHybridClusterRequest::setOnPremiseVolumeMountPoint(const std::string &onPremiseVolumeMountPoint) { + onPremiseVolumeMountPoint_ = onPremiseVolumeMountPoint; + setParameter(std::string("OnPremiseVolumeMountPoint"), onPremiseVolumeMountPoint); +} + +std::string CreateHybridClusterRequest::getOnPremiseVolumeProtocol() const { + return onPremiseVolumeProtocol_; +} + +void CreateHybridClusterRequest::setOnPremiseVolumeProtocol(const std::string &onPremiseVolumeProtocol) { + onPremiseVolumeProtocol_ = onPremiseVolumeProtocol; + setParameter(std::string("OnPremiseVolumeProtocol"), onPremiseVolumeProtocol); +} + +std::string CreateHybridClusterRequest::getVolumeProtocol() const { + return volumeProtocol_; +} + +void CreateHybridClusterRequest::setVolumeProtocol(const std::string &volumeProtocol) { + volumeProtocol_ = volumeProtocol; + setParameter(std::string("VolumeProtocol"), volumeProtocol); +} + +std::string CreateHybridClusterRequest::getClientVersion() const { + return clientVersion_; +} + +void CreateHybridClusterRequest::setClientVersion(const std::string &clientVersion) { + clientVersion_ = clientVersion; + setParameter(std::string("ClientVersion"), clientVersion); +} + +std::string CreateHybridClusterRequest::getOsTag() const { + return osTag_; +} + +void CreateHybridClusterRequest::setOsTag(const std::string &osTag) { + osTag_ = osTag; + setParameter(std::string("OsTag"), osTag); +} + +std::vector CreateHybridClusterRequest::getNodes() const { + return nodes_; +} + +void CreateHybridClusterRequest::setNodes(const std::vector &nodes) { + nodes_ = nodes; + for(int dep1 = 0; dep1 != nodes.size(); dep1++) { + auto nodesObj = nodes.at(dep1); + std::string nodesObjStr = std::string("Nodes") + "." + std::to_string(dep1 + 1); + setParameter(nodesObjStr + ".IpAddress", nodesObj.ipAddress); + setParameter(nodesObjStr + ".HostName", nodesObj.hostName); + setParameter(nodesObjStr + ".Role", nodesObj.role); + setParameter(nodesObjStr + ".SchedulerType", nodesObj.schedulerType); + setParameter(nodesObjStr + ".AccountType", nodesObj.accountType); + setParameter(nodesObjStr + ".Dir", nodesObj.dir); + } +} + +std::vector CreateHybridClusterRequest::getApplication() const { + return application_; +} + +void CreateHybridClusterRequest::setApplication(const std::vector &application) { + application_ = application; + for(int dep1 = 0; dep1 != application.size(); dep1++) { + auto applicationObj = application.at(dep1); + std::string applicationObjStr = std::string("Application") + "." + std::to_string(dep1 + 1); + setParameter(applicationObjStr + ".Tag", applicationObj.tag); + } +} + +std::string CreateHybridClusterRequest::getVpcId() const { + return vpcId_; +} + +void CreateHybridClusterRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateHybridClusterRequest::getVolumeMountpoint() const { + return volumeMountpoint_; +} + +void CreateHybridClusterRequest::setVolumeMountpoint(const std::string &volumeMountpoint) { + volumeMountpoint_ = volumeMountpoint; + setParameter(std::string("VolumeMountpoint"), volumeMountpoint); +} + +bool CreateHybridClusterRequest::getSchedulerPreInstall() const { + return schedulerPreInstall_; +} + +void CreateHybridClusterRequest::setSchedulerPreInstall(bool schedulerPreInstall) { + schedulerPreInstall_ = schedulerPreInstall; + setParameter(std::string("SchedulerPreInstall"), schedulerPreInstall ? "true" : "false"); +} + +std::string CreateHybridClusterRequest::getLocation() const { + return location_; +} + +void CreateHybridClusterRequest::setLocation(const std::string &location) { + location_ = location; + setParameter(std::string("Location"), location); +} + diff --git a/ehpc/src/model/CreateHybridClusterResult.cc b/ehpc/src/model/CreateHybridClusterResult.cc new file mode 100644 index 000000000..93a4c2fc4 --- /dev/null +++ b/ehpc/src/model/CreateHybridClusterResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateHybridClusterResult::CreateHybridClusterResult() : + ServiceResult() +{} + +CreateHybridClusterResult::CreateHybridClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateHybridClusterResult::~CreateHybridClusterResult() +{} + +void CreateHybridClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + +} + +std::string CreateHybridClusterResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateHybridClusterResult::getClusterId()const +{ + return clusterId_; +} + diff --git a/ehpc/src/model/CreateJobFileRequest.cc b/ehpc/src/model/CreateJobFileRequest.cc new file mode 100644 index 000000000..fabc8c710 --- /dev/null +++ b/ehpc/src/model/CreateJobFileRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::CreateJobFileRequest; + +CreateJobFileRequest::CreateJobFileRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "CreateJobFile") { + setMethod(HttpRequest::Method::Get); +} + +CreateJobFileRequest::~CreateJobFileRequest() {} + +std::string CreateJobFileRequest::getTargetFile() const { + return targetFile_; +} + +void CreateJobFileRequest::setTargetFile(const std::string &targetFile) { + targetFile_ = targetFile; + setParameter(std::string("TargetFile"), targetFile); +} + +std::string CreateJobFileRequest::getRunasUserPassword() const { + return runasUserPassword_; +} + +void CreateJobFileRequest::setRunasUserPassword(const std::string &runasUserPassword) { + runasUserPassword_ = runasUserPassword; + setParameter(std::string("RunasUserPassword"), runasUserPassword); +} + +std::string CreateJobFileRequest::getRunasUser() const { + return runasUser_; +} + +void CreateJobFileRequest::setRunasUser(const std::string &runasUser) { + runasUser_ = runasUser; + setParameter(std::string("RunasUser"), runasUser); +} + +std::string CreateJobFileRequest::getClusterId() const { + return clusterId_; +} + +void CreateJobFileRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string CreateJobFileRequest::getContent() const { + return content_; +} + +void CreateJobFileRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); +} + +std::string CreateJobFileRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateJobFileRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/CreateJobFileResult.cc b/ehpc/src/model/CreateJobFileResult.cc new file mode 100644 index 000000000..f87395749 --- /dev/null +++ b/ehpc/src/model/CreateJobFileResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +CreateJobFileResult::CreateJobFileResult() : + ServiceResult() +{} + +CreateJobFileResult::CreateJobFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateJobFileResult::~CreateJobFileResult() +{} + +void CreateJobFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/CreateJobTemplateRequest.cc b/ehpc/src/model/CreateJobTemplateRequest.cc index 1c02be733..ef1e802bd 100644 --- a/ehpc/src/model/CreateJobTemplateRequest.cc +++ b/ehpc/src/model/CreateJobTemplateRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::CreateJobTemplateRequest; CreateJobTemplateRequest::CreateJobTemplateRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "CreateJobTemplate") { + : RpcServiceRequest("ehpc", "2018-04-12", "CreateJobTemplate") { setMethod(HttpRequest::Method::Get); } @@ -34,6 +34,15 @@ void CreateJobTemplateRequest::setStderrRedirectPath(const std::string &stderrRe setParameter(std::string("StderrRedirectPath"), stderrRedirectPath); } +std::string CreateJobTemplateRequest::getClockTime() const { + return clockTime_; +} + +void CreateJobTemplateRequest::setClockTime(const std::string &clockTime) { + clockTime_ = clockTime; + setParameter(std::string("ClockTime"), clockTime); +} + std::string CreateJobTemplateRequest::getCommandLine() const { return commandLine_; } @@ -61,6 +70,15 @@ void CreateJobTemplateRequest::setArrayRequest(const std::string &arrayRequest) setParameter(std::string("ArrayRequest"), arrayRequest); } +std::string CreateJobTemplateRequest::getUnzipCmd() const { + return unzipCmd_; +} + +void CreateJobTemplateRequest::setUnzipCmd(const std::string &unzipCmd) { + unzipCmd_ = unzipCmd; + setParameter(std::string("UnzipCmd"), unzipCmd); +} + std::string CreateJobTemplateRequest::getPackagePath() const { return packagePath_; } @@ -70,13 +88,13 @@ void CreateJobTemplateRequest::setPackagePath(const std::string &packagePath) { setParameter(std::string("PackagePath"), packagePath); } -std::string CreateJobTemplateRequest::getRegionId() const { - return regionId_; +std::string CreateJobTemplateRequest::getMem() const { + return mem_; } -void CreateJobTemplateRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); +void CreateJobTemplateRequest::setMem(const std::string &mem) { + mem_ = mem; + setParameter(std::string("Mem"), mem); } std::string CreateJobTemplateRequest::getStdoutRedirectPath() const { @@ -115,6 +133,15 @@ void CreateJobTemplateRequest::setReRunable(bool reRunable) { setParameter(std::string("ReRunable"), reRunable ? "true" : "false"); } +int CreateJobTemplateRequest::getThread() const { + return thread_; +} + +void CreateJobTemplateRequest::setThread(int thread) { + thread_ = thread; + setParameter(std::string("Thread"), std::to_string(thread)); +} + int CreateJobTemplateRequest::getPriority() const { return priority_; } @@ -124,6 +151,51 @@ void CreateJobTemplateRequest::setPriority(int priority) { setParameter(std::string("Priority"), std::to_string(priority)); } +int CreateJobTemplateRequest::getGpu() const { + return gpu_; +} + +void CreateJobTemplateRequest::setGpu(int gpu) { + gpu_ = gpu; + setParameter(std::string("Gpu"), std::to_string(gpu)); +} + +bool CreateJobTemplateRequest::getWithUnzipCmd() const { + return withUnzipCmd_; +} + +void CreateJobTemplateRequest::setWithUnzipCmd(bool withUnzipCmd) { + withUnzipCmd_ = withUnzipCmd; + setParameter(std::string("WithUnzipCmd"), withUnzipCmd ? "true" : "false"); +} + +int CreateJobTemplateRequest::getNode() const { + return node_; +} + +void CreateJobTemplateRequest::setNode(int node) { + node_ = node; + setParameter(std::string("Node"), std::to_string(node)); +} + +int CreateJobTemplateRequest::getTask() const { + return task_; +} + +void CreateJobTemplateRequest::setTask(int task) { + task_ = task; + setParameter(std::string("Task"), std::to_string(task)); +} + +std::string CreateJobTemplateRequest::getInputFileUrl() const { + return inputFileUrl_; +} + +void CreateJobTemplateRequest::setInputFileUrl(const std::string &inputFileUrl) { + inputFileUrl_ = inputFileUrl; + setParameter(std::string("InputFileUrl"), inputFileUrl); +} + std::string CreateJobTemplateRequest::getName() const { return name_; } @@ -133,3 +205,12 @@ void CreateJobTemplateRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::string CreateJobTemplateRequest::getQueue() const { + return queue_; +} + +void CreateJobTemplateRequest::setQueue(const std::string &queue) { + queue_ = queue; + setParameter(std::string("Queue"), queue); +} + diff --git a/ehpc/src/model/DeleteClusterRequest.cc b/ehpc/src/model/DeleteClusterRequest.cc index dfb9c91f8..2bdd17781 100644 --- a/ehpc/src/model/DeleteClusterRequest.cc +++ b/ehpc/src/model/DeleteClusterRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::DeleteClusterRequest; DeleteClusterRequest::DeleteClusterRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "DeleteCluster") { + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteCluster") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/DeleteClusterResult.cc b/ehpc/src/model/DeleteClusterResult.cc index cdc44e26c..070e89012 100644 --- a/ehpc/src/model/DeleteClusterResult.cc +++ b/ehpc/src/model/DeleteClusterResult.cc @@ -39,6 +39,13 @@ void DeleteClusterResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string DeleteClusterResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/DeleteContainerAppsRequest.cc b/ehpc/src/model/DeleteContainerAppsRequest.cc new file mode 100644 index 000000000..31eb712f1 --- /dev/null +++ b/ehpc/src/model/DeleteContainerAppsRequest.cc @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::DeleteContainerAppsRequest; + +DeleteContainerAppsRequest::DeleteContainerAppsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteContainerApps") { + setMethod(HttpRequest::Method::Get); +} + +DeleteContainerAppsRequest::~DeleteContainerAppsRequest() {} + +std::vector DeleteContainerAppsRequest::getContainerApp() const { + return containerApp_; +} + +void DeleteContainerAppsRequest::setContainerApp(const std::vector &containerApp) { + containerApp_ = containerApp; + for(int dep1 = 0; dep1 != containerApp.size(); dep1++) { + auto containerAppObj = containerApp.at(dep1); + std::string containerAppObjStr = std::string("ContainerApp") + "." + std::to_string(dep1 + 1); + setParameter(containerAppObjStr + ".Id", containerAppObj.id); + } +} + +std::string DeleteContainerAppsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteContainerAppsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/DeleteContainerAppsResult.cc b/ehpc/src/model/DeleteContainerAppsResult.cc new file mode 100644 index 000000000..a48ff1680 --- /dev/null +++ b/ehpc/src/model/DeleteContainerAppsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteContainerAppsResult::DeleteContainerAppsResult() : + ServiceResult() +{} + +DeleteContainerAppsResult::DeleteContainerAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteContainerAppsResult::~DeleteContainerAppsResult() +{} + +void DeleteContainerAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteGWSClusterRequest.cc b/ehpc/src/model/DeleteGWSClusterRequest.cc new file mode 100644 index 000000000..47d342f21 --- /dev/null +++ b/ehpc/src/model/DeleteGWSClusterRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteGWSClusterRequest; + +DeleteGWSClusterRequest::DeleteGWSClusterRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSCluster") { + setMethod(HttpRequest::Method::Get); +} + +DeleteGWSClusterRequest::~DeleteGWSClusterRequest() {} + +std::string DeleteGWSClusterRequest::getClusterId() const { + return clusterId_; +} + +void DeleteGWSClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteGWSClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteGWSClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/DeleteGWSClusterResult.cc b/ehpc/src/model/DeleteGWSClusterResult.cc new file mode 100644 index 000000000..62aabd493 --- /dev/null +++ b/ehpc/src/model/DeleteGWSClusterResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteGWSClusterResult::DeleteGWSClusterResult() : + ServiceResult() +{} + +DeleteGWSClusterResult::DeleteGWSClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGWSClusterResult::~DeleteGWSClusterResult() +{} + +void DeleteGWSClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteGWSInstanceRequest.cc b/ehpc/src/model/DeleteGWSInstanceRequest.cc new file mode 100644 index 000000000..3235302fa --- /dev/null +++ b/ehpc/src/model/DeleteGWSInstanceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteGWSInstanceRequest; + +DeleteGWSInstanceRequest::DeleteGWSInstanceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteGWSInstance") { + setMethod(HttpRequest::Method::Get); +} + +DeleteGWSInstanceRequest::~DeleteGWSInstanceRequest() {} + +std::string DeleteGWSInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteGWSInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteGWSInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteGWSInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ehpc/src/model/DeleteGWSInstanceResult.cc b/ehpc/src/model/DeleteGWSInstanceResult.cc new file mode 100644 index 000000000..c0de79499 --- /dev/null +++ b/ehpc/src/model/DeleteGWSInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteGWSInstanceResult::DeleteGWSInstanceResult() : + ServiceResult() +{} + +DeleteGWSInstanceResult::DeleteGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGWSInstanceResult::~DeleteGWSInstanceResult() +{} + +void DeleteGWSInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteImageRequest.cc b/ehpc/src/model/DeleteImageRequest.cc new file mode 100644 index 000000000..d5c481633 --- /dev/null +++ b/ehpc/src/model/DeleteImageRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteImageRequest; + +DeleteImageRequest::DeleteImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteImage") { + setMethod(HttpRequest::Method::Get); +} + +DeleteImageRequest::~DeleteImageRequest() {} + +std::string DeleteImageRequest::getClusterId() const { + return clusterId_; +} + +void DeleteImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteImageRequest::getRepository() const { + return repository_; +} + +void DeleteImageRequest::setRepository(const std::string &repository) { + repository_ = repository; + setParameter(std::string("Repository"), repository); +} + +std::string DeleteImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteImageRequest::getContainerType() const { + return containerType_; +} + +void DeleteImageRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string DeleteImageRequest::getImageTag() const { + return imageTag_; +} + +void DeleteImageRequest::setImageTag(const std::string &imageTag) { + imageTag_ = imageTag; + setParameter(std::string("ImageTag"), imageTag); +} + diff --git a/ehpc/src/model/DeleteImageResult.cc b/ehpc/src/model/DeleteImageResult.cc new file mode 100644 index 000000000..775e9230b --- /dev/null +++ b/ehpc/src/model/DeleteImageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteImageResult::DeleteImageResult() : + ServiceResult() +{} + +DeleteImageResult::DeleteImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteImageResult::~DeleteImageResult() +{} + +void DeleteImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteJobTemplatesRequest.cc b/ehpc/src/model/DeleteJobTemplatesRequest.cc index fab4e9c25..afb2ca190 100644 --- a/ehpc/src/model/DeleteJobTemplatesRequest.cc +++ b/ehpc/src/model/DeleteJobTemplatesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::DeleteJobTemplatesRequest; DeleteJobTemplatesRequest::DeleteJobTemplatesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobTemplates") { + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobTemplates") { setMethod(HttpRequest::Method::Get); } @@ -43,12 +43,3 @@ void DeleteJobTemplatesRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string DeleteJobTemplatesRequest::getRegionId() const { - return regionId_; -} - -void DeleteJobTemplatesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - diff --git a/ehpc/src/model/DeleteJobsRequest.cc b/ehpc/src/model/DeleteJobsRequest.cc index d8d49f35e..949a53aeb 100644 --- a/ehpc/src/model/DeleteJobsRequest.cc +++ b/ehpc/src/model/DeleteJobsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::DeleteJobsRequest; DeleteJobsRequest::DeleteJobsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "DeleteJobs") { + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteJobs") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/DeleteLocalImageRequest.cc b/ehpc/src/model/DeleteLocalImageRequest.cc new file mode 100644 index 000000000..012c48e95 --- /dev/null +++ b/ehpc/src/model/DeleteLocalImageRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteLocalImageRequest; + +DeleteLocalImageRequest::DeleteLocalImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteLocalImage") { + setMethod(HttpRequest::Method::Get); +} + +DeleteLocalImageRequest::~DeleteLocalImageRequest() {} + +std::string DeleteLocalImageRequest::getClusterId() const { + return clusterId_; +} + +void DeleteLocalImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteLocalImageRequest::getContainerType() const { + return containerType_; +} + +void DeleteLocalImageRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string DeleteLocalImageRequest::getImageName() const { + return imageName_; +} + +void DeleteLocalImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + diff --git a/ehpc/src/model/DeleteLocalImageResult.cc b/ehpc/src/model/DeleteLocalImageResult.cc new file mode 100644 index 000000000..b67eca4b4 --- /dev/null +++ b/ehpc/src/model/DeleteLocalImageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteLocalImageResult::DeleteLocalImageResult() : + ServiceResult() +{} + +DeleteLocalImageResult::DeleteLocalImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteLocalImageResult::~DeleteLocalImageResult() +{} + +void DeleteLocalImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteNodesRequest.cc b/ehpc/src/model/DeleteNodesRequest.cc index 7d808379a..5765ee940 100644 --- a/ehpc/src/model/DeleteNodesRequest.cc +++ b/ehpc/src/model/DeleteNodesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::DeleteNodesRequest; DeleteNodesRequest::DeleteNodesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "DeleteNodes") { + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteNodes") { setMethod(HttpRequest::Method::Get); } @@ -47,6 +47,15 @@ void DeleteNodesRequest::setClusterId(const std::string &clusterId) { setParameter(std::string("ClusterId"), clusterId); } +bool DeleteNodesRequest::getSync() const { + return sync_; +} + +void DeleteNodesRequest::setSync(bool sync) { + sync_ = sync; + setParameter(std::string("Sync"), sync ? "true" : "false"); +} + std::string DeleteNodesRequest::getAccessKeyId() const { return accessKeyId_; } diff --git a/ehpc/src/model/DeleteNodesResult.cc b/ehpc/src/model/DeleteNodesResult.cc index 3805c5b9e..c181d33f0 100644 --- a/ehpc/src/model/DeleteNodesResult.cc +++ b/ehpc/src/model/DeleteNodesResult.cc @@ -39,6 +39,13 @@ void DeleteNodesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string DeleteNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/DeleteQueueRequest.cc b/ehpc/src/model/DeleteQueueRequest.cc new file mode 100644 index 000000000..63df35e87 --- /dev/null +++ b/ehpc/src/model/DeleteQueueRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteQueueRequest; + +DeleteQueueRequest::DeleteQueueRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteQueue") { + setMethod(HttpRequest::Method::Get); +} + +DeleteQueueRequest::~DeleteQueueRequest() {} + +std::string DeleteQueueRequest::getQueueName() const { + return queueName_; +} + +void DeleteQueueRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string DeleteQueueRequest::getClusterId() const { + return clusterId_; +} + +void DeleteQueueRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteQueueRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteQueueRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/DeleteQueueResult.cc b/ehpc/src/model/DeleteQueueResult.cc new file mode 100644 index 000000000..594c4f08c --- /dev/null +++ b/ehpc/src/model/DeleteQueueResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteQueueResult::DeleteQueueResult() : + ServiceResult() +{} + +DeleteQueueResult::DeleteQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteQueueResult::~DeleteQueueResult() +{} + +void DeleteQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteSecurityGroupRequest.cc b/ehpc/src/model/DeleteSecurityGroupRequest.cc new file mode 100644 index 000000000..7c9036255 --- /dev/null +++ b/ehpc/src/model/DeleteSecurityGroupRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DeleteSecurityGroupRequest; + +DeleteSecurityGroupRequest::DeleteSecurityGroupRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteSecurityGroup") { + setMethod(HttpRequest::Method::Get); +} + +DeleteSecurityGroupRequest::~DeleteSecurityGroupRequest() {} + +std::string DeleteSecurityGroupRequest::getSecurityGroupId() const { + return securityGroupId_; +} + +void DeleteSecurityGroupRequest::setSecurityGroupId(const std::string &securityGroupId) { + securityGroupId_ = securityGroupId; + setParameter(std::string("SecurityGroupId"), securityGroupId); +} + +std::string DeleteSecurityGroupRequest::getClusterId() const { + return clusterId_; +} + +void DeleteSecurityGroupRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DeleteSecurityGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSecurityGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/DeleteSecurityGroupResult.cc b/ehpc/src/model/DeleteSecurityGroupResult.cc new file mode 100644 index 000000000..5e9267715 --- /dev/null +++ b/ehpc/src/model/DeleteSecurityGroupResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DeleteSecurityGroupResult::DeleteSecurityGroupResult() : + ServiceResult() +{} + +DeleteSecurityGroupResult::DeleteSecurityGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSecurityGroupResult::~DeleteSecurityGroupResult() +{} + +void DeleteSecurityGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/DeleteUsersRequest.cc b/ehpc/src/model/DeleteUsersRequest.cc index cfeb440ce..1c777b75a 100644 --- a/ehpc/src/model/DeleteUsersRequest.cc +++ b/ehpc/src/model/DeleteUsersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::DeleteUsersRequest; DeleteUsersRequest::DeleteUsersRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "DeleteUsers") { + : RpcServiceRequest("ehpc", "2018-04-12", "DeleteUsers") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/DescribeAutoScaleConfigRequest.cc b/ehpc/src/model/DescribeAutoScaleConfigRequest.cc new file mode 100644 index 000000000..905731107 --- /dev/null +++ b/ehpc/src/model/DescribeAutoScaleConfigRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeAutoScaleConfigRequest; + +DescribeAutoScaleConfigRequest::DescribeAutoScaleConfigRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeAutoScaleConfig") { + setMethod(HttpRequest::Method::Get); +} + +DescribeAutoScaleConfigRequest::~DescribeAutoScaleConfigRequest() {} + +std::string DescribeAutoScaleConfigRequest::getClusterId() const { + return clusterId_; +} + +void DescribeAutoScaleConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeAutoScaleConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAutoScaleConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/DescribeAutoScaleConfigResult.cc b/ehpc/src/model/DescribeAutoScaleConfigResult.cc new file mode 100644 index 000000000..7f655f122 --- /dev/null +++ b/ehpc/src/model/DescribeAutoScaleConfigResult.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeAutoScaleConfigResult::DescribeAutoScaleConfigResult() : + ServiceResult() +{} + +DescribeAutoScaleConfigResult::DescribeAutoScaleConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAutoScaleConfigResult::~DescribeAutoScaleConfigResult() +{} + +void DescribeAutoScaleConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["MaxNodesInCluster"].isNull()) + maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString()); + if(!value["GrowTimeoutInMinutes"].isNull()) + growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString()); + if(!value["SpotStrategy"].isNull()) + spotStrategy_ = value["SpotStrategy"].asString(); + if(!value["EnableAutoShrink"].isNull()) + enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true"; + if(!value["ClusterType"].isNull()) + clusterType_ = value["ClusterType"].asString(); + if(!value["EnableAutoGrow"].isNull()) + enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true"; + if(!value["ExcludeNodes"].isNull()) + excludeNodes_ = value["ExcludeNodes"].asString(); + if(!value["GrowIntervalInMinutes"].isNull()) + growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString()); + if(!value["ShrinkIntervalInMinutes"].isNull()) + shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString()); + if(!value["SpotPriceLimit"].isNull()) + spotPriceLimit_ = value["SpotPriceLimit"].asString(); + if(!value["ShrinkIdleTimes"].isNull()) + shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString()); + if(!value["ExtraNodesGrowRatio"].isNull()) + extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString()); + if(!value["GrowRatio"].isNull()) + growRatio_ = std::stoi(value["GrowRatio"].asString()); + if(!value["Uid"].isNull()) + uid_ = value["Uid"].asString(); + if(!value["ClusterId"].isNull()) + clusterId_ = value["ClusterId"].asString(); + +} + +int DescribeAutoScaleConfigResult::getExtraNodesGrowRatio()const +{ + return extraNodesGrowRatio_; +} + +bool DescribeAutoScaleConfigResult::getEnableAutoGrow()const +{ + return enableAutoGrow_; +} + +std::string DescribeAutoScaleConfigResult::getClusterId()const +{ + return clusterId_; +} + +int DescribeAutoScaleConfigResult::getMaxNodesInCluster()const +{ + return maxNodesInCluster_; +} + +int DescribeAutoScaleConfigResult::getShrinkIdleTimes()const +{ + return shrinkIdleTimes_; +} + +bool DescribeAutoScaleConfigResult::getEnableAutoShrink()const +{ + return enableAutoShrink_; +} + +std::string DescribeAutoScaleConfigResult::getClusterType()const +{ + return clusterType_; +} + +int DescribeAutoScaleConfigResult::getGrowRatio()const +{ + return growRatio_; +} + +int DescribeAutoScaleConfigResult::getGrowIntervalInMinutes()const +{ + return growIntervalInMinutes_; +} + +std::string DescribeAutoScaleConfigResult::getUid()const +{ + return uid_; +} + +int DescribeAutoScaleConfigResult::getGrowTimeoutInMinutes()const +{ + return growTimeoutInMinutes_; +} + +int DescribeAutoScaleConfigResult::getShrinkIntervalInMinutes()const +{ + return shrinkIntervalInMinutes_; +} + +std::string DescribeAutoScaleConfigResult::getSpotPriceLimit()const +{ + return spotPriceLimit_; +} + +std::string DescribeAutoScaleConfigResult::getExcludeNodes()const +{ + return excludeNodes_; +} + +std::string DescribeAutoScaleConfigResult::getSpotStrategy()const +{ + return spotStrategy_; +} + diff --git a/ehpc/src/model/DescribeClusterRequest.cc b/ehpc/src/model/DescribeClusterRequest.cc index bfbc81abb..a018fb288 100644 --- a/ehpc/src/model/DescribeClusterRequest.cc +++ b/ehpc/src/model/DescribeClusterRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::DescribeClusterRequest; DescribeClusterRequest::DescribeClusterRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "DescribeCluster") { + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeCluster") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/DescribeClusterResult.cc b/ehpc/src/model/DescribeClusterResult.cc index 1a60de1fe..750853462 100644 --- a/ehpc/src/model/DescribeClusterResult.cc +++ b/ehpc/src/model/DescribeClusterResult.cc @@ -42,46 +42,56 @@ void DescribeClusterResult::parse(const std::string &payload) auto clusterInfoNode = value["ClusterInfo"]; if(!clusterInfoNode["Status"].isNull()) clusterInfo_.status = clusterInfoNode["Status"].asString(); - if(!clusterInfoNode["SchedulerType"].isNull()) - clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].asString(); + if(!clusterInfoNode["VpcId"].isNull()) + clusterInfo_.vpcId = clusterInfoNode["VpcId"].asString(); if(!clusterInfoNode["KeyPairName"].isNull()) clusterInfo_.keyPairName = clusterInfoNode["KeyPairName"].asString(); if(!clusterInfoNode["EcsChargeType"].isNull()) clusterInfo_.ecsChargeType = clusterInfoNode["EcsChargeType"].asString(); - if(!clusterInfoNode["SccClusterId"].isNull()) - clusterInfo_.sccClusterId = clusterInfoNode["SccClusterId"].asString(); if(!clusterInfoNode["SecurityGroupId"].isNull()) clusterInfo_.securityGroupId = clusterInfoNode["SecurityGroupId"].asString(); + if(!clusterInfoNode["SccClusterId"].isNull()) + clusterInfo_.sccClusterId = clusterInfoNode["SccClusterId"].asString(); if(!clusterInfoNode["CreateTime"].isNull()) clusterInfo_.createTime = clusterInfoNode["CreateTime"].asString(); - if(!clusterInfoNode["ImageOwnerAlias"].isNull()) - clusterInfo_.imageOwnerAlias = clusterInfoNode["ImageOwnerAlias"].asString(); - if(!clusterInfoNode["RemoteDirectory"].isNull()) - clusterInfo_.remoteDirectory = clusterInfoNode["RemoteDirectory"].asString(); - if(!clusterInfoNode["VolumeMountpoint"].isNull()) - clusterInfo_.volumeMountpoint = clusterInfoNode["VolumeMountpoint"].asString(); - if(!clusterInfoNode["OsTag"].isNull()) - clusterInfo_.osTag = clusterInfoNode["OsTag"].asString(); if(!clusterInfoNode["AccountType"].isNull()) clusterInfo_.accountType = clusterInfoNode["AccountType"].asString(); if(!clusterInfoNode["VolumeProtocol"].isNull()) clusterInfo_.volumeProtocol = clusterInfoNode["VolumeProtocol"].asString(); - if(!clusterInfoNode["RegionId"].isNull()) - clusterInfo_.regionId = clusterInfoNode["RegionId"].asString(); - if(!clusterInfoNode["VSwitchId"].isNull()) - clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString(); if(!clusterInfoNode["Description"].isNull()) clusterInfo_.description = clusterInfoNode["Description"].asString(); if(!clusterInfoNode["VolumeId"].isNull()) clusterInfo_.volumeId = clusterInfoNode["VolumeId"].asString(); if(!clusterInfoNode["HaEnable"].isNull()) clusterInfo_.haEnable = clusterInfoNode["HaEnable"].asString() == "true"; + if(!clusterInfoNode["BaseOsTag"].isNull()) + clusterInfo_.baseOsTag = clusterInfoNode["BaseOsTag"].asString(); if(!clusterInfoNode["Name"].isNull()) clusterInfo_.name = clusterInfoNode["Name"].asString(); if(!clusterInfoNode["ImageId"].isNull()) clusterInfo_.imageId = clusterInfoNode["ImageId"].asString(); + if(!clusterInfoNode["SchedulerType"].isNull()) + clusterInfo_.schedulerType = clusterInfoNode["SchedulerType"].asString(); + if(!clusterInfoNode["DeployMode"].isNull()) + clusterInfo_.deployMode = clusterInfoNode["DeployMode"].asString(); + if(!clusterInfoNode["ImageOwnerAlias"].isNull()) + clusterInfo_.imageOwnerAlias = clusterInfoNode["ImageOwnerAlias"].asString(); + if(!clusterInfoNode["OsTag"].isNull()) + clusterInfo_.osTag = clusterInfoNode["OsTag"].asString(); + if(!clusterInfoNode["VolumeMountpoint"].isNull()) + clusterInfo_.volumeMountpoint = clusterInfoNode["VolumeMountpoint"].asString(); + if(!clusterInfoNode["RemoteDirectory"].isNull()) + clusterInfo_.remoteDirectory = clusterInfoNode["RemoteDirectory"].asString(); + if(!clusterInfoNode["RegionId"].isNull()) + clusterInfo_.regionId = clusterInfoNode["RegionId"].asString(); + if(!clusterInfoNode["VSwitchId"].isNull()) + clusterInfo_.vSwitchId = clusterInfoNode["VSwitchId"].asString(); + if(!clusterInfoNode["ImageName"].isNull()) + clusterInfo_.imageName = clusterInfoNode["ImageName"].asString(); if(!clusterInfoNode["VolumeType"].isNull()) clusterInfo_.volumeType = clusterInfoNode["VolumeType"].asString(); + if(!clusterInfoNode["Location"].isNull()) + clusterInfo_.location = clusterInfoNode["Location"].asString(); if(!clusterInfoNode["Id"].isNull()) clusterInfo_.id = clusterInfoNode["Id"].asString(); if(!clusterInfoNode["ClientVersion"].isNull()) @@ -98,6 +108,28 @@ void DescribeClusterResult::parse(const std::string &payload) applicationInfoObject.version = clusterInfoNodeApplicationsApplicationInfo["Version"].asString(); clusterInfo_.applications.push_back(applicationInfoObject); } + auto allPostInstallScriptsNode = clusterInfoNode["PostInstallScripts"]["PostInstallScriptInfo"]; + for (auto clusterInfoNodePostInstallScriptsPostInstallScriptInfo : allPostInstallScriptsNode) + { + ClusterInfo::PostInstallScriptInfo postInstallScriptInfoObject; + if(!clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Url"].isNull()) + postInstallScriptInfoObject.url = clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Url"].asString(); + if(!clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Args"].isNull()) + postInstallScriptInfoObject.args = clusterInfoNodePostInstallScriptsPostInstallScriptInfo["Args"].asString(); + clusterInfo_.postInstallScripts.push_back(postInstallScriptInfoObject); + } + auto allOnPremiseInfoNode = clusterInfoNode["OnPremiseInfo"]["OnPremiseInfoItem"]; + for (auto clusterInfoNodeOnPremiseInfoOnPremiseInfoItem : allOnPremiseInfoNode) + { + ClusterInfo::OnPremiseInfoItem onPremiseInfoItemObject; + if(!clusterInfoNodeOnPremiseInfoOnPremiseInfoItem["Type"].isNull()) + onPremiseInfoItemObject.type = clusterInfoNodeOnPremiseInfoOnPremiseInfoItem["Type"].asString(); + if(!clusterInfoNodeOnPremiseInfoOnPremiseInfoItem["HostName"].isNull()) + onPremiseInfoItemObject.hostName = clusterInfoNodeOnPremiseInfoOnPremiseInfoItem["HostName"].asString(); + if(!clusterInfoNodeOnPremiseInfoOnPremiseInfoItem["IP"].isNull()) + onPremiseInfoItemObject.iP = clusterInfoNodeOnPremiseInfoOnPremiseInfoItem["IP"].asString(); + clusterInfo_.onPremiseInfo.push_back(onPremiseInfoItemObject); + } auto ecsInfoNode = clusterInfoNode["EcsInfo"]; auto managerNode = ecsInfoNode["Manager"]; if(!managerNode["InstanceType"].isNull()) @@ -114,6 +146,11 @@ void DescribeClusterResult::parse(const std::string &payload) clusterInfo_.ecsInfo.login.instanceType = loginNode["InstanceType"].asString(); if(!loginNode["Count"].isNull()) clusterInfo_.ecsInfo.login.count = std::stoi(loginNode["Count"].asString()); + auto proxyMgrNode = ecsInfoNode["ProxyMgr"]; + if(!proxyMgrNode["InstanceType"].isNull()) + clusterInfo_.ecsInfo.proxyMgr.instanceType = proxyMgrNode["InstanceType"].asString(); + if(!proxyMgrNode["Count"].isNull()) + clusterInfo_.ecsInfo.proxyMgr.count = std::stoi(proxyMgrNode["Count"].asString()); } diff --git a/ehpc/src/model/DescribeContainerAppRequest.cc b/ehpc/src/model/DescribeContainerAppRequest.cc new file mode 100644 index 000000000..bb1889a9f --- /dev/null +++ b/ehpc/src/model/DescribeContainerAppRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeContainerAppRequest; + +DescribeContainerAppRequest::DescribeContainerAppRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeContainerApp") { + setMethod(HttpRequest::Method::Get); +} + +DescribeContainerAppRequest::~DescribeContainerAppRequest() {} + +std::string DescribeContainerAppRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeContainerAppRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeContainerAppRequest::getContainerId() const { + return containerId_; +} + +void DescribeContainerAppRequest::setContainerId(const std::string &containerId) { + containerId_ = containerId; + setParameter(std::string("ContainerId"), containerId); +} + diff --git a/ehpc/src/model/DescribeContainerAppResult.cc b/ehpc/src/model/DescribeContainerAppResult.cc new file mode 100644 index 000000000..c3ac7d298 --- /dev/null +++ b/ehpc/src/model/DescribeContainerAppResult.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 +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeContainerAppResult::DescribeContainerAppResult() : + ServiceResult() +{} + +DescribeContainerAppResult::DescribeContainerAppResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeContainerAppResult::~DescribeContainerAppResult() +{} + +void DescribeContainerAppResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto containerAppInfoNode = value["ContainerAppInfo"]; + if(!containerAppInfoNode["Type"].isNull()) + containerAppInfo_.type = containerAppInfoNode["Type"].asString(); + if(!containerAppInfoNode["Description"].isNull()) + containerAppInfo_.description = containerAppInfoNode["Description"].asString(); + if(!containerAppInfoNode["CreateTime"].isNull()) + containerAppInfo_.createTime = containerAppInfoNode["CreateTime"].asString(); + if(!containerAppInfoNode["Repository"].isNull()) + containerAppInfo_.repository = containerAppInfoNode["Repository"].asString(); + if(!containerAppInfoNode["ImageTag"].isNull()) + containerAppInfo_.imageTag = containerAppInfoNode["ImageTag"].asString(); + if(!containerAppInfoNode["Name"].isNull()) + containerAppInfo_.name = containerAppInfoNode["Name"].asString(); + if(!containerAppInfoNode["Id"].isNull()) + containerAppInfo_.id = containerAppInfoNode["Id"].asString(); + +} + +DescribeContainerAppResult::ContainerAppInfo DescribeContainerAppResult::getContainerAppInfo()const +{ + return containerAppInfo_; +} + diff --git a/ehpc/src/model/DescribeEstackImageRequest.cc b/ehpc/src/model/DescribeEstackImageRequest.cc new file mode 100644 index 000000000..ce44b1fb7 --- /dev/null +++ b/ehpc/src/model/DescribeEstackImageRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeEstackImageRequest; + +DescribeEstackImageRequest::DescribeEstackImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeEstackImage") { + setMethod(HttpRequest::Method::Get); +} + +DescribeEstackImageRequest::~DescribeEstackImageRequest() {} + +int DescribeEstackImageRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeEstackImageRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeEstackImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeEstackImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeEstackImageRequest::getPageSize() const { + return pageSize_; +} + +void DescribeEstackImageRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/DescribeEstackImageResult.cc b/ehpc/src/model/DescribeEstackImageResult.cc new file mode 100644 index 000000000..aeee22aab --- /dev/null +++ b/ehpc/src/model/DescribeEstackImageResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeEstackImageResult::DescribeEstackImageResult() : + ServiceResult() +{} + +DescribeEstackImageResult::DescribeEstackImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEstackImageResult::~DescribeEstackImageResult() +{} + +void DescribeEstackImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImageListNode = value["ImageList"]["ImageListInfo"]; + for (auto valueImageListImageListInfo : allImageListNode) + { + ImageListInfo imageListObject; + if(!valueImageListImageListInfo["ImageName"].isNull()) + imageListObject.imageName = valueImageListImageListInfo["ImageName"].asString(); + if(!valueImageListImageListInfo["ImageSize"].isNull()) + imageListObject.imageSize = std::stoi(valueImageListImageListInfo["ImageSize"].asString()); + if(!valueImageListImageListInfo["RecentUpdateTime"].isNull()) + imageListObject.recentUpdateTime = valueImageListImageListInfo["RecentUpdateTime"].asString(); + if(!valueImageListImageListInfo["ImageUrl"].isNull()) + imageListObject.imageUrl = valueImageListImageListInfo["ImageUrl"].asString(); + if(!valueImageListImageListInfo["ImageType"].isNull()) + imageListObject.imageType = valueImageListImageListInfo["ImageType"].asString(); + imageList_.push_back(imageListObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeEstackImageResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeEstackImageResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeEstackImageResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeEstackImageResult::getImageList()const +{ + return imageList_; +} + diff --git a/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc b/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc new file mode 100644 index 000000000..b61b0cecf --- /dev/null +++ b/ehpc/src/model/DescribeGWSClusterPolicyRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::DescribeGWSClusterPolicyRequest; + +DescribeGWSClusterPolicyRequest::DescribeGWSClusterPolicyRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSClusterPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DescribeGWSClusterPolicyRequest::~DescribeGWSClusterPolicyRequest() {} + +std::string DescribeGWSClusterPolicyRequest::getClusterId() const { + return clusterId_; +} + +void DescribeGWSClusterPolicyRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeGWSClusterPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeGWSClusterPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool DescribeGWSClusterPolicyRequest::getAsyncMode() const { + return asyncMode_; +} + +void DescribeGWSClusterPolicyRequest::setAsyncMode(bool asyncMode) { + asyncMode_ = asyncMode; + setParameter(std::string("AsyncMode"), asyncMode ? "true" : "false"); +} + +std::string DescribeGWSClusterPolicyRequest::getTaskId() const { + return taskId_; +} + +void DescribeGWSClusterPolicyRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ehpc/src/model/DescribeGWSClusterPolicyResult.cc b/ehpc/src/model/DescribeGWSClusterPolicyResult.cc new file mode 100644 index 000000000..f986376f1 --- /dev/null +++ b/ehpc/src/model/DescribeGWSClusterPolicyResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSClusterPolicyResult::DescribeGWSClusterPolicyResult() : + ServiceResult() +{} + +DescribeGWSClusterPolicyResult::DescribeGWSClusterPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSClusterPolicyResult::~DescribeGWSClusterPolicyResult() +{} + +void DescribeGWSClusterPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Watermark"].isNull()) + watermark_ = value["Watermark"].asString(); + if(!value["Clipboard"].isNull()) + clipboard_ = value["Clipboard"].asString(); + if(!value["UsbRedirect"].isNull()) + usbRedirect_ = value["UsbRedirect"].asString(); + if(!value["LocalDrive"].isNull()) + localDrive_ = value["LocalDrive"].asString(); + +} + +std::string DescribeGWSClusterPolicyResult::getLocalDrive()const +{ + return localDrive_; +} + +std::string DescribeGWSClusterPolicyResult::getUsbRedirect()const +{ + return usbRedirect_; +} + +std::string DescribeGWSClusterPolicyResult::getClipboard()const +{ + return clipboard_; +} + +std::string DescribeGWSClusterPolicyResult::getWatermark()const +{ + return watermark_; +} + diff --git a/ehpc/src/model/DescribeGWSClustersRequest.cc b/ehpc/src/model/DescribeGWSClustersRequest.cc new file mode 100644 index 000000000..7b663e81c --- /dev/null +++ b/ehpc/src/model/DescribeGWSClustersRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::DescribeGWSClustersRequest; + +DescribeGWSClustersRequest::DescribeGWSClustersRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSClusters") { + setMethod(HttpRequest::Method::Get); +} + +DescribeGWSClustersRequest::~DescribeGWSClustersRequest() {} + +std::string DescribeGWSClustersRequest::getClusterId() const { + return clusterId_; +} + +void DescribeGWSClustersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int DescribeGWSClustersRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeGWSClustersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeGWSClustersRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeGWSClustersRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeGWSClustersRequest::getPageSize() const { + return pageSize_; +} + +void DescribeGWSClustersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/DescribeGWSClustersResult.cc b/ehpc/src/model/DescribeGWSClustersResult.cc new file mode 100644 index 000000000..906529856 --- /dev/null +++ b/ehpc/src/model/DescribeGWSClustersResult.cc @@ -0,0 +1,93 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSClustersResult::DescribeGWSClustersResult() : + ServiceResult() +{} + +DescribeGWSClustersResult::DescribeGWSClustersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSClustersResult::~DescribeGWSClustersResult() +{} + +void DescribeGWSClustersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allClustersNode = value["Clusters"]["ClusterInfo"]; + for (auto valueClustersClusterInfo : allClustersNode) + { + ClusterInfo clustersObject; + if(!valueClustersClusterInfo["VpcId"].isNull()) + clustersObject.vpcId = valueClustersClusterInfo["VpcId"].asString(); + if(!valueClustersClusterInfo["Status"].isNull()) + clustersObject.status = valueClustersClusterInfo["Status"].asString(); + if(!valueClustersClusterInfo["InstanceCount"].isNull()) + clustersObject.instanceCount = std::stoi(valueClustersClusterInfo["InstanceCount"].asString()); + if(!valueClustersClusterInfo["CreateTime"].isNull()) + clustersObject.createTime = valueClustersClusterInfo["CreateTime"].asString(); + if(!valueClustersClusterInfo["ClusterId"].isNull()) + clustersObject.clusterId = valueClustersClusterInfo["ClusterId"].asString(); + clusters_.push_back(clustersObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["CallerType"].isNull()) + callerType_ = value["CallerType"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeGWSClustersResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGWSClustersResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGWSClustersResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGWSClustersResult::getClusters()const +{ + return clusters_; +} + +std::string DescribeGWSClustersResult::getCallerType()const +{ + return callerType_; +} + diff --git a/ehpc/src/model/DescribeGWSImagesRequest.cc b/ehpc/src/model/DescribeGWSImagesRequest.cc new file mode 100644 index 000000000..87b32ff62 --- /dev/null +++ b/ehpc/src/model/DescribeGWSImagesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeGWSImagesRequest; + +DescribeGWSImagesRequest::DescribeGWSImagesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSImages") { + setMethod(HttpRequest::Method::Get); +} + +DescribeGWSImagesRequest::~DescribeGWSImagesRequest() {} + +int DescribeGWSImagesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeGWSImagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeGWSImagesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeGWSImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int DescribeGWSImagesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeGWSImagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/DescribeGWSImagesResult.cc b/ehpc/src/model/DescribeGWSImagesResult.cc new file mode 100644 index 000000000..48ef8c528 --- /dev/null +++ b/ehpc/src/model/DescribeGWSImagesResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSImagesResult::DescribeGWSImagesResult() : + ServiceResult() +{} + +DescribeGWSImagesResult::DescribeGWSImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSImagesResult::~DescribeGWSImagesResult() +{} + +void DescribeGWSImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["ImageInfo"]; + for (auto valueImagesImageInfo : allImagesNode) + { + ImageInfo imagesObject; + if(!valueImagesImageInfo["Status"].isNull()) + imagesObject.status = valueImagesImageInfo["Status"].asString(); + if(!valueImagesImageInfo["ImageType"].isNull()) + imagesObject.imageType = valueImagesImageInfo["ImageType"].asString(); + if(!valueImagesImageInfo["Progress"].isNull()) + imagesObject.progress = valueImagesImageInfo["Progress"].asString(); + if(!valueImagesImageInfo["Size"].isNull()) + imagesObject.size = std::stoi(valueImagesImageInfo["Size"].asString()); + if(!valueImagesImageInfo["CreateTime"].isNull()) + imagesObject.createTime = valueImagesImageInfo["CreateTime"].asString(); + if(!valueImagesImageInfo["Name"].isNull()) + imagesObject.name = valueImagesImageInfo["Name"].asString(); + if(!valueImagesImageInfo["ImageId"].isNull()) + imagesObject.imageId = valueImagesImageInfo["ImageId"].asString(); + images_.push_back(imagesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeGWSImagesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGWSImagesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGWSImagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeGWSImagesResult::getImages()const +{ + return images_; +} + diff --git a/ehpc/src/model/DescribeGWSInstancesRequest.cc b/ehpc/src/model/DescribeGWSInstancesRequest.cc new file mode 100644 index 000000000..77677997f --- /dev/null +++ b/ehpc/src/model/DescribeGWSInstancesRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::DescribeGWSInstancesRequest; + +DescribeGWSInstancesRequest::DescribeGWSInstancesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeGWSInstances") { + setMethod(HttpRequest::Method::Get); +} + +DescribeGWSInstancesRequest::~DescribeGWSInstancesRequest() {} + +std::string DescribeGWSInstancesRequest::getClusterId() const { + return clusterId_; +} + +void DescribeGWSInstancesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int DescribeGWSInstancesRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeGWSInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeGWSInstancesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeGWSInstancesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeGWSInstancesRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeGWSInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +int DescribeGWSInstancesRequest::getPageSize() const { + return pageSize_; +} + +void DescribeGWSInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +long DescribeGWSInstancesRequest::getUserUid() const { + return userUid_; +} + +void DescribeGWSInstancesRequest::setUserUid(long userUid) { + userUid_ = userUid; + setParameter(std::string("UserUid"), std::to_string(userUid)); +} + +std::string DescribeGWSInstancesRequest::getUserName() const { + return userName_; +} + +void DescribeGWSInstancesRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/ehpc/src/model/DescribeGWSInstancesResult.cc b/ehpc/src/model/DescribeGWSInstancesResult.cc new file mode 100644 index 000000000..f90b7c91e --- /dev/null +++ b/ehpc/src/model/DescribeGWSInstancesResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeGWSInstancesResult::DescribeGWSInstancesResult() : + ServiceResult() +{} + +DescribeGWSInstancesResult::DescribeGWSInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGWSInstancesResult::~DescribeGWSInstancesResult() +{} + +void DescribeGWSInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstancesNode = value["Instances"]["InstanceInfo"]; + for (auto valueInstancesInstanceInfo : allInstancesNode) + { + InstanceInfo instancesObject; + if(!valueInstancesInstanceInfo["Status"].isNull()) + instancesObject.status = valueInstancesInstanceInfo["Status"].asString(); + if(!valueInstancesInstanceInfo["WorkMode"].isNull()) + instancesObject.workMode = valueInstancesInstanceInfo["WorkMode"].asString(); + if(!valueInstancesInstanceInfo["ExpireTime"].isNull()) + instancesObject.expireTime = valueInstancesInstanceInfo["ExpireTime"].asString(); + if(!valueInstancesInstanceInfo["CreateTime"].isNull()) + instancesObject.createTime = valueInstancesInstanceInfo["CreateTime"].asString(); + if(!valueInstancesInstanceInfo["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstanceInfo["InstanceId"].asString(); + if(!valueInstancesInstanceInfo["Name"].isNull()) + instancesObject.name = valueInstancesInstanceInfo["Name"].asString(); + if(!valueInstancesInstanceInfo["InstanceType"].isNull()) + instancesObject.instanceType = valueInstancesInstanceInfo["InstanceType"].asString(); + if(!valueInstancesInstanceInfo["UserName"].isNull()) + instancesObject.userName = valueInstancesInstanceInfo["UserName"].asString(); + if(!valueInstancesInstanceInfo["ClusterId"].isNull()) + instancesObject.clusterId = valueInstancesInstanceInfo["ClusterId"].asString(); + auto allAppListNode = valueInstancesInstanceInfo["AppList"]["AppInfo"]; + for (auto valueInstancesInstanceInfoAppListAppInfo : allAppListNode) + { + InstanceInfo::AppInfo appListObject; + if(!valueInstancesInstanceInfoAppListAppInfo["AppName"].isNull()) + appListObject.appName = valueInstancesInstanceInfoAppListAppInfo["AppName"].asString(); + if(!valueInstancesInstanceInfoAppListAppInfo["AppArgs"].isNull()) + appListObject.appArgs = valueInstancesInstanceInfoAppListAppInfo["AppArgs"].asString(); + if(!valueInstancesInstanceInfoAppListAppInfo["AppPath"].isNull()) + appListObject.appPath = valueInstancesInstanceInfoAppListAppInfo["AppPath"].asString(); + instancesObject.appList.push_back(appListObject); + } + instances_.push_back(instancesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector DescribeGWSInstancesResult::getInstances()const +{ + return instances_; +} + +int DescribeGWSInstancesResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeGWSInstancesResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeGWSInstancesResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ehpc/src/model/DescribeImageGatewayConfigRequest.cc b/ehpc/src/model/DescribeImageGatewayConfigRequest.cc new file mode 100644 index 000000000..6e7ea715f --- /dev/null +++ b/ehpc/src/model/DescribeImageGatewayConfigRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeImageGatewayConfigRequest; + +DescribeImageGatewayConfigRequest::DescribeImageGatewayConfigRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeImageGatewayConfig") { + setMethod(HttpRequest::Method::Get); +} + +DescribeImageGatewayConfigRequest::~DescribeImageGatewayConfigRequest() {} + +std::string DescribeImageGatewayConfigRequest::getClusterId() const { + return clusterId_; +} + +void DescribeImageGatewayConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeImageGatewayConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeImageGatewayConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/DescribeImageGatewayConfigResult.cc b/ehpc/src/model/DescribeImageGatewayConfigResult.cc new file mode 100644 index 000000000..7831ff93e --- /dev/null +++ b/ehpc/src/model/DescribeImageGatewayConfigResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeImageGatewayConfigResult::DescribeImageGatewayConfigResult() : + ServiceResult() +{} + +DescribeImageGatewayConfigResult::DescribeImageGatewayConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageGatewayConfigResult::~DescribeImageGatewayConfigResult() +{} + +void DescribeImageGatewayConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto imagegwNode = value["Imagegw"]; + if(!imagegwNode["UpdateDateTime"].isNull()) + imagegw_.updateDateTime = imagegwNode["UpdateDateTime"].asString(); + if(!imagegwNode["ImageExpirationTimeout"].isNull()) + imagegw_.imageExpirationTimeout = imagegwNode["ImageExpirationTimeout"].asString(); + if(!imagegwNode["MongoDBURI"].isNull()) + imagegw_.mongoDBURI = imagegwNode["MongoDBURI"].asString(); + if(!imagegwNode["DefaultImageLocation"].isNull()) + imagegw_.defaultImageLocation = imagegwNode["DefaultImageLocation"].asString(); + if(!imagegwNode["PullUpdateTimeout"].isNull()) + imagegw_.pullUpdateTimeout = std::stol(imagegwNode["PullUpdateTimeout"].asString()); + auto allLocationsNode = imagegwNode["Locations"]["LocationInfo"]; + for (auto imagegwNodeLocationsLocationInfo : allLocationsNode) + { + Imagegw::LocationInfo locationInfoObject; + if(!imagegwNodeLocationsLocationInfo["URL"].isNull()) + locationInfoObject.uRL = imagegwNodeLocationsLocationInfo["URL"].asString(); + if(!imagegwNodeLocationsLocationInfo["RemoteType"].isNull()) + locationInfoObject.remoteType = imagegwNodeLocationsLocationInfo["RemoteType"].asString(); + if(!imagegwNodeLocationsLocationInfo["Location"].isNull()) + locationInfoObject.location = imagegwNodeLocationsLocationInfo["Location"].asString(); + if(!imagegwNodeLocationsLocationInfo["Authentication"].isNull()) + locationInfoObject.authentication = imagegwNodeLocationsLocationInfo["Authentication"].asString(); + imagegw_.locations.push_back(locationInfoObject); + } + +} + +DescribeImageGatewayConfigResult::Imagegw DescribeImageGatewayConfigResult::getImagegw()const +{ + return imagegw_; +} + diff --git a/ehpc/src/model/DescribeImagePriceRequest.cc b/ehpc/src/model/DescribeImagePriceRequest.cc new file mode 100644 index 000000000..cce1ddf81 --- /dev/null +++ b/ehpc/src/model/DescribeImagePriceRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::DescribeImagePriceRequest; + +DescribeImagePriceRequest::DescribeImagePriceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeImagePrice") { + setMethod(HttpRequest::Method::Get); +} + +DescribeImagePriceRequest::~DescribeImagePriceRequest() {} + +int DescribeImagePriceRequest::getPeriod() const { + return period_; +} + +void DescribeImagePriceRequest::setPeriod(int period) { + period_ = period; + setParameter(std::string("Period"), std::to_string(period)); +} + +int DescribeImagePriceRequest::getAmount() const { + return amount_; +} + +void DescribeImagePriceRequest::setAmount(int amount) { + amount_ = amount; + setParameter(std::string("Amount"), std::to_string(amount)); +} + +std::string DescribeImagePriceRequest::getImageId() const { + return imageId_; +} + +void DescribeImagePriceRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string DescribeImagePriceRequest::getSkuCode() const { + return skuCode_; +} + +void DescribeImagePriceRequest::setSkuCode(const std::string &skuCode) { + skuCode_ = skuCode; + setParameter(std::string("SkuCode"), skuCode); +} + +std::string DescribeImagePriceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeImagePriceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeImagePriceRequest::getPriceUnit() const { + return priceUnit_; +} + +void DescribeImagePriceRequest::setPriceUnit(const std::string &priceUnit) { + priceUnit_ = priceUnit; + setParameter(std::string("PriceUnit"), priceUnit); +} + +std::string DescribeImagePriceRequest::getOrderType() const { + return orderType_; +} + +void DescribeImagePriceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); +} + diff --git a/ehpc/src/model/DescribeImagePriceResult.cc b/ehpc/src/model/DescribeImagePriceResult.cc new file mode 100644 index 000000000..c1b53f31d --- /dev/null +++ b/ehpc/src/model/DescribeImagePriceResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeImagePriceResult::DescribeImagePriceResult() : + ServiceResult() +{} + +DescribeImagePriceResult::DescribeImagePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImagePriceResult::~DescribeImagePriceResult() +{} + +void DescribeImagePriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Amount"].isNull()) + amount_ = std::stoi(value["Amount"].asString()); + if(!value["DiscountPrice"].isNull()) + discountPrice_ = std::stof(value["DiscountPrice"].asString()); + if(!value["TradePrice"].isNull()) + tradePrice_ = std::stof(value["TradePrice"].asString()); + if(!value["OriginalPrice"].isNull()) + originalPrice_ = std::stof(value["OriginalPrice"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + +} + +float DescribeImagePriceResult::getOriginalPrice()const +{ + return originalPrice_; +} + +int DescribeImagePriceResult::getAmount()const +{ + return amount_; +} + +float DescribeImagePriceResult::getDiscountPrice()const +{ + return discountPrice_; +} + +std::string DescribeImagePriceResult::getImageId()const +{ + return imageId_; +} + +float DescribeImagePriceResult::getTradePrice()const +{ + return tradePrice_; +} + diff --git a/ehpc/src/model/DescribeImageRequest.cc b/ehpc/src/model/DescribeImageRequest.cc new file mode 100644 index 000000000..7bf82fd41 --- /dev/null +++ b/ehpc/src/model/DescribeImageRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeImageRequest; + +DescribeImageRequest::DescribeImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeImage") { + setMethod(HttpRequest::Method::Get); +} + +DescribeImageRequest::~DescribeImageRequest() {} + +std::string DescribeImageRequest::getClusterId() const { + return clusterId_; +} + +void DescribeImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeImageRequest::getRepository() const { + return repository_; +} + +void DescribeImageRequest::setRepository(const std::string &repository) { + repository_ = repository; + setParameter(std::string("Repository"), repository); +} + +std::string DescribeImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeImageRequest::getContainerType() const { + return containerType_; +} + +void DescribeImageRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string DescribeImageRequest::getImageTag() const { + return imageTag_; +} + +void DescribeImageRequest::setImageTag(const std::string &imageTag) { + imageTag_ = imageTag; + setParameter(std::string("ImageTag"), imageTag); +} + diff --git a/ehpc/src/model/DescribeImageResult.cc b/ehpc/src/model/DescribeImageResult.cc new file mode 100644 index 000000000..f320b6013 --- /dev/null +++ b/ehpc/src/model/DescribeImageResult.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 +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeImageResult::DescribeImageResult() : + ServiceResult() +{} + +DescribeImageResult::DescribeImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeImageResult::~DescribeImageResult() +{} + +void DescribeImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto imageInfoNode = value["ImageInfo"]; + if(!imageInfoNode["Type"].isNull()) + imageInfo_.type = imageInfoNode["Type"].asString(); + if(!imageInfoNode["Status"].isNull()) + imageInfo_.status = imageInfoNode["Status"].asString(); + if(!imageInfoNode["UpdateDateTime"].isNull()) + imageInfo_.updateDateTime = imageInfoNode["UpdateDateTime"].asString(); + if(!imageInfoNode["Repository"].isNull()) + imageInfo_.repository = imageInfoNode["Repository"].asString(); + if(!imageInfoNode["Tag"].isNull()) + imageInfo_.tag = imageInfoNode["Tag"].asString(); + if(!imageInfoNode["System"].isNull()) + imageInfo_.system = imageInfoNode["System"].asString(); + if(!imageInfoNode["ImageId"].isNull()) + imageInfo_.imageId = imageInfoNode["ImageId"].asString(); + +} + +DescribeImageResult::ImageInfo DescribeImageResult::getImageInfo()const +{ + return imageInfo_; +} + diff --git a/ehpc/src/model/DescribeJobRequest.cc b/ehpc/src/model/DescribeJobRequest.cc new file mode 100644 index 000000000..3f047548c --- /dev/null +++ b/ehpc/src/model/DescribeJobRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeJobRequest; + +DescribeJobRequest::DescribeJobRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeJob") { + setMethod(HttpRequest::Method::Get); +} + +DescribeJobRequest::~DescribeJobRequest() {} + +std::string DescribeJobRequest::getClusterId() const { + return clusterId_; +} + +void DescribeJobRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string DescribeJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeJobRequest::getJobId() const { + return jobId_; +} + +void DescribeJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/ehpc/src/model/DescribeJobResult.cc b/ehpc/src/model/DescribeJobResult.cc new file mode 100644 index 000000000..1ec34953e --- /dev/null +++ b/ehpc/src/model/DescribeJobResult.cc @@ -0,0 +1,52 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeJobResult::DescribeJobResult() : + ServiceResult() +{} + +DescribeJobResult::DescribeJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeJobResult::~DescribeJobResult() +{} + +void DescribeJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto messageNode = value["Message"]; + if(!messageNode["JobInfo"].isNull()) + message_.jobInfo = messageNode["JobInfo"].asString(); + +} + +DescribeJobResult::Message DescribeJobResult::getMessage()const +{ + return message_; +} + diff --git a/ehpc/src/model/DescribeNFSClientStatusRequest.cc b/ehpc/src/model/DescribeNFSClientStatusRequest.cc new file mode 100644 index 000000000..fb1589085 --- /dev/null +++ b/ehpc/src/model/DescribeNFSClientStatusRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::DescribeNFSClientStatusRequest; + +DescribeNFSClientStatusRequest::DescribeNFSClientStatusRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribeNFSClientStatus") { + setMethod(HttpRequest::Method::Get); +} + +DescribeNFSClientStatusRequest::~DescribeNFSClientStatusRequest() {} + +std::string DescribeNFSClientStatusRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeNFSClientStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeNFSClientStatusRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeNFSClientStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ehpc/src/model/DescribeNFSClientStatusResult.cc b/ehpc/src/model/DescribeNFSClientStatusResult.cc new file mode 100644 index 000000000..9474eace0 --- /dev/null +++ b/ehpc/src/model/DescribeNFSClientStatusResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribeNFSClientStatusResult::DescribeNFSClientStatusResult() : + ServiceResult() +{} + +DescribeNFSClientStatusResult::DescribeNFSClientStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeNFSClientStatusResult::~DescribeNFSClientStatusResult() +{} + +void DescribeNFSClientStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resultNode = value["Result"]; + if(!resultNode["Output"].isNull()) + result_.output = resultNode["Output"].asString(); + if(!resultNode["InvokeRecordStatus"].isNull()) + result_.invokeRecordStatus = resultNode["InvokeRecordStatus"].asString(); + if(!resultNode["ExitCode"].isNull()) + result_.exitCode = std::stoi(resultNode["ExitCode"].asString()); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + +} + +std::string DescribeNFSClientStatusResult::getStatus()const +{ + return status_; +} + +DescribeNFSClientStatusResult::Result DescribeNFSClientStatusResult::getResult()const +{ + return result_; +} + diff --git a/ehpc/src/model/DescribePriceRequest.cc b/ehpc/src/model/DescribePriceRequest.cc new file mode 100644 index 000000000..c2b4bfe59 --- /dev/null +++ b/ehpc/src/model/DescribePriceRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::DescribePriceRequest; + +DescribePriceRequest::DescribePriceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "DescribePrice") { + setMethod(HttpRequest::Method::Get); +} + +DescribePriceRequest::~DescribePriceRequest() {} + +std::vector DescribePriceRequest::getCommodities() const { + return commodities_; +} + +void DescribePriceRequest::setCommodities(const std::vector &commodities) { + commodities_ = commodities; + for(int dep1 = 0; dep1 != commodities.size(); dep1++) { + auto commoditiesObj = commodities.at(dep1); + std::string commoditiesObjStr = std::string("Commodities") + "." + std::to_string(dep1 + 1); + setParameter(commoditiesObjStr + ".Amount", std::to_string(commoditiesObj.amount)); + setParameter(commoditiesObjStr + ".Period", std::to_string(commoditiesObj.period)); + setParameter(commoditiesObjStr + ".NodeType", commoditiesObj.nodeType); + for(int dep2 = 0; dep2 != commoditiesObj.dataDisks.size(); dep2++) { + auto dataDisksObj = commoditiesObj.dataDisks.at(dep2); + std::string dataDisksObjStr = commoditiesObjStr + ".DataDisks" + "." + std::to_string(dep2 + 1); + setParameter(dataDisksObjStr + ".size", std::to_string(dataDisksObj.size)); + setParameter(dataDisksObjStr + ".encrypted", dataDisksObj.encrypted ? "true" : "false"); + setParameter(dataDisksObjStr + ".performanceLevel", dataDisksObj.performanceLevel); + setParameter(dataDisksObjStr + ".category", dataDisksObj.category); + setParameter(dataDisksObjStr + ".deleteWithInstance", dataDisksObj.deleteWithInstance ? "true" : "false"); + } + setParameter(commoditiesObjStr + ".SystemDiskCategory", commoditiesObj.systemDiskCategory); + setParameter(commoditiesObjStr + ".InternetChargeType", commoditiesObj.internetChargeType); + setParameter(commoditiesObjStr + ".SystemDiskPerformanceLevel", commoditiesObj.systemDiskPerformanceLevel); + setParameter(commoditiesObjStr + ".SystemDiskSize", std::to_string(commoditiesObj.systemDiskSize)); + setParameter(commoditiesObjStr + ".InternetMaxBandWidthOut", std::to_string(commoditiesObj.internetMaxBandWidthOut)); + setParameter(commoditiesObjStr + ".InstanceType", commoditiesObj.instanceType); + setParameter(commoditiesObjStr + ".NetworkType", commoditiesObj.networkType); + } +} + +std::string DescribePriceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribePriceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribePriceRequest::getPriceUnit() const { + return priceUnit_; +} + +void DescribePriceRequest::setPriceUnit(const std::string &priceUnit) { + priceUnit_ = priceUnit; + setParameter(std::string("PriceUnit"), priceUnit); +} + +std::string DescribePriceRequest::getChargeType() const { + return chargeType_; +} + +void DescribePriceRequest::setChargeType(const std::string &chargeType) { + chargeType_ = chargeType; + setParameter(std::string("ChargeType"), chargeType); +} + +std::string DescribePriceRequest::getOrderType() const { + return orderType_; +} + +void DescribePriceRequest::setOrderType(const std::string &orderType) { + orderType_ = orderType; + setParameter(std::string("OrderType"), orderType); +} + diff --git a/ehpc/src/model/DescribePriceResult.cc b/ehpc/src/model/DescribePriceResult.cc new file mode 100644 index 000000000..5fc410391 --- /dev/null +++ b/ehpc/src/model/DescribePriceResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +DescribePriceResult::DescribePriceResult() : + ServiceResult() +{} + +DescribePriceResult::DescribePriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribePriceResult::~DescribePriceResult() +{} + +void DescribePriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPricesNode = value["Prices"]["PriceInfo"]; + for (auto valuePricesPriceInfo : allPricesNode) + { + PriceInfo pricesObject; + if(!valuePricesPriceInfo["OriginalPrice"].isNull()) + pricesObject.originalPrice = std::stof(valuePricesPriceInfo["OriginalPrice"].asString()); + if(!valuePricesPriceInfo["NodeType"].isNull()) + pricesObject.nodeType = valuePricesPriceInfo["NodeType"].asString(); + if(!valuePricesPriceInfo["Currency"].isNull()) + pricesObject.currency = valuePricesPriceInfo["Currency"].asString(); + if(!valuePricesPriceInfo["TradePrice"].isNull()) + pricesObject.tradePrice = std::stof(valuePricesPriceInfo["TradePrice"].asString()); + prices_.push_back(pricesObject); + } + if(!value["TotalTradePrice"].isNull()) + totalTradePrice_ = std::stof(value["TotalTradePrice"].asString()); + +} + +std::vector DescribePriceResult::getPrices()const +{ + return prices_; +} + +float DescribePriceResult::getTotalTradePrice()const +{ + return totalTradePrice_; +} + diff --git a/ehpc/src/model/EditJobTemplateRequest.cc b/ehpc/src/model/EditJobTemplateRequest.cc index bc2594b63..5f479933a 100644 --- a/ehpc/src/model/EditJobTemplateRequest.cc +++ b/ehpc/src/model/EditJobTemplateRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::EditJobTemplateRequest; EditJobTemplateRequest::EditJobTemplateRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "EditJobTemplate") { + : RpcServiceRequest("ehpc", "2018-04-12", "EditJobTemplate") { setMethod(HttpRequest::Method::Get); } @@ -34,6 +34,15 @@ void EditJobTemplateRequest::setStderrRedirectPath(const std::string &stderrRedi setParameter(std::string("StderrRedirectPath"), stderrRedirectPath); } +std::string EditJobTemplateRequest::getClockTime() const { + return clockTime_; +} + +void EditJobTemplateRequest::setClockTime(const std::string &clockTime) { + clockTime_ = clockTime; + setParameter(std::string("ClockTime"), clockTime); +} + std::string EditJobTemplateRequest::getCommandLine() const { return commandLine_; } @@ -61,6 +70,15 @@ void EditJobTemplateRequest::setArrayRequest(const std::string &arrayRequest) { setParameter(std::string("ArrayRequest"), arrayRequest); } +std::string EditJobTemplateRequest::getUnzipCmd() const { + return unzipCmd_; +} + +void EditJobTemplateRequest::setUnzipCmd(const std::string &unzipCmd) { + unzipCmd_ = unzipCmd; + setParameter(std::string("UnzipCmd"), unzipCmd); +} + std::string EditJobTemplateRequest::getPackagePath() const { return packagePath_; } @@ -70,13 +88,13 @@ void EditJobTemplateRequest::setPackagePath(const std::string &packagePath) { setParameter(std::string("PackagePath"), packagePath); } -std::string EditJobTemplateRequest::getRegionId() const { - return regionId_; +std::string EditJobTemplateRequest::getMem() const { + return mem_; } -void EditJobTemplateRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); +void EditJobTemplateRequest::setMem(const std::string &mem) { + mem_ = mem; + setParameter(std::string("Mem"), mem); } std::string EditJobTemplateRequest::getStdoutRedirectPath() const { @@ -115,6 +133,15 @@ void EditJobTemplateRequest::setReRunable(bool reRunable) { setParameter(std::string("ReRunable"), reRunable ? "true" : "false"); } +int EditJobTemplateRequest::getThread() const { + return thread_; +} + +void EditJobTemplateRequest::setThread(int thread) { + thread_ = thread; + setParameter(std::string("Thread"), std::to_string(thread)); +} + std::string EditJobTemplateRequest::getTemplateId() const { return templateId_; } @@ -133,6 +160,51 @@ void EditJobTemplateRequest::setPriority(int priority) { setParameter(std::string("Priority"), std::to_string(priority)); } +int EditJobTemplateRequest::getGpu() const { + return gpu_; +} + +void EditJobTemplateRequest::setGpu(int gpu) { + gpu_ = gpu; + setParameter(std::string("Gpu"), std::to_string(gpu)); +} + +bool EditJobTemplateRequest::getWithUnzipCmd() const { + return withUnzipCmd_; +} + +void EditJobTemplateRequest::setWithUnzipCmd(bool withUnzipCmd) { + withUnzipCmd_ = withUnzipCmd; + setParameter(std::string("WithUnzipCmd"), withUnzipCmd ? "true" : "false"); +} + +int EditJobTemplateRequest::getNode() const { + return node_; +} + +void EditJobTemplateRequest::setNode(int node) { + node_ = node; + setParameter(std::string("Node"), std::to_string(node)); +} + +int EditJobTemplateRequest::getTask() const { + return task_; +} + +void EditJobTemplateRequest::setTask(int task) { + task_ = task; + setParameter(std::string("Task"), std::to_string(task)); +} + +std::string EditJobTemplateRequest::getInputFileUrl() const { + return inputFileUrl_; +} + +void EditJobTemplateRequest::setInputFileUrl(const std::string &inputFileUrl) { + inputFileUrl_ = inputFileUrl; + setParameter(std::string("InputFileUrl"), inputFileUrl); +} + std::string EditJobTemplateRequest::getName() const { return name_; } @@ -142,3 +214,12 @@ void EditJobTemplateRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::string EditJobTemplateRequest::getQueue() const { + return queue_; +} + +void EditJobTemplateRequest::setQueue(const std::string &queue) { + queue_ = queue; + setParameter(std::string("Queue"), queue); +} + diff --git a/ehpc/src/model/GetAccountingReportRequest.cc b/ehpc/src/model/GetAccountingReportRequest.cc new file mode 100644 index 000000000..fa25cce57 --- /dev/null +++ b/ehpc/src/model/GetAccountingReportRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::GetAccountingReportRequest; + +GetAccountingReportRequest::GetAccountingReportRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetAccountingReport") { + setMethod(HttpRequest::Method::Get); +} + +GetAccountingReportRequest::~GetAccountingReportRequest() {} + +std::string GetAccountingReportRequest::getReportType() const { + return reportType_; +} + +void GetAccountingReportRequest::setReportType(const std::string &reportType) { + reportType_ = reportType; + setParameter(std::string("ReportType"), reportType); +} + +int GetAccountingReportRequest::getEndTime() const { + return endTime_; +} + +void GetAccountingReportRequest::setEndTime(int endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); +} + +std::string GetAccountingReportRequest::getFilterValue() const { + return filterValue_; +} + +void GetAccountingReportRequest::setFilterValue(const std::string &filterValue) { + filterValue_ = filterValue; + setParameter(std::string("FilterValue"), filterValue); +} + +std::string GetAccountingReportRequest::getDim() const { + return dim_; +} + +void GetAccountingReportRequest::setDim(const std::string &dim) { + dim_ = dim; + setParameter(std::string("Dim"), dim); +} + +std::string GetAccountingReportRequest::getClusterId() const { + return clusterId_; +} + +void GetAccountingReportRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int GetAccountingReportRequest::getStartTime() const { + return startTime_; +} + +void GetAccountingReportRequest::setStartTime(int startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); +} + +int GetAccountingReportRequest::getPageNumber() const { + return pageNumber_; +} + +void GetAccountingReportRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string GetAccountingReportRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetAccountingReportRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetAccountingReportRequest::getJobId() const { + return jobId_; +} + +void GetAccountingReportRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + +int GetAccountingReportRequest::getPageSize() const { + return pageSize_; +} + +void GetAccountingReportRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/GetAccountingReportResult.cc b/ehpc/src/model/GetAccountingReportResult.cc new file mode 100644 index 000000000..331fa7a6c --- /dev/null +++ b/ehpc/src/model/GetAccountingReportResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetAccountingReportResult::GetAccountingReportResult() : + ServiceResult() +{} + +GetAccountingReportResult::GetAccountingReportResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAccountingReportResult::~GetAccountingReportResult() +{} + +void GetAccountingReportResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allData = value["Data"]["Data"]; + for (const auto &item : allData) + data_.push_back(item.asString()); + if(!value["TotalCoreTime"].isNull()) + totalCoreTime_ = std::stoi(value["TotalCoreTime"].asString()); + if(!value["Metrics"].isNull()) + metrics_ = value["Metrics"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::string GetAccountingReportResult::getMetrics()const +{ + return metrics_; +} + +int GetAccountingReportResult::getTotalCount()const +{ + return totalCount_; +} + +int GetAccountingReportResult::getPageSize()const +{ + return pageSize_; +} + +int GetAccountingReportResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector GetAccountingReportResult::getData()const +{ + return data_; +} + +int GetAccountingReportResult::getTotalCoreTime()const +{ + return totalCoreTime_; +} + diff --git a/ehpc/src/model/GetAutoScaleConfigRequest.cc b/ehpc/src/model/GetAutoScaleConfigRequest.cc index b1243b983..9763d7c57 100644 --- a/ehpc/src/model/GetAutoScaleConfigRequest.cc +++ b/ehpc/src/model/GetAutoScaleConfigRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::GetAutoScaleConfigRequest; GetAutoScaleConfigRequest::GetAutoScaleConfigRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "GetAutoScaleConfig") { + : RpcServiceRequest("ehpc", "2018-04-12", "GetAutoScaleConfig") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/GetAutoScaleConfigResult.cc b/ehpc/src/model/GetAutoScaleConfigResult.cc index 547ce6520..0c2ef164a 100644 --- a/ehpc/src/model/GetAutoScaleConfigResult.cc +++ b/ehpc/src/model/GetAutoScaleConfigResult.cc @@ -39,32 +39,114 @@ void GetAutoScaleConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allQueuesNode = value["Queues"]["QueueInfo"]; + for (auto valueQueuesQueueInfo : allQueuesNode) + { + QueueInfo queuesObject; + if(!valueQueuesQueueInfo["QueueImageId"].isNull()) + queuesObject.queueImageId = valueQueuesQueueInfo["QueueImageId"].asString(); + if(!valueQueuesQueueInfo["SystemDiskCategory"].isNull()) + queuesObject.systemDiskCategory = valueQueuesQueueInfo["SystemDiskCategory"].asString(); + if(!valueQueuesQueueInfo["InstanceType"].isNull()) + queuesObject.instanceType = valueQueuesQueueInfo["InstanceType"].asString(); + if(!valueQueuesQueueInfo["HostNameSuffix"].isNull()) + queuesObject.hostNameSuffix = valueQueuesQueueInfo["HostNameSuffix"].asString(); + if(!valueQueuesQueueInfo["SpotStrategy"].isNull()) + queuesObject.spotStrategy = valueQueuesQueueInfo["SpotStrategy"].asString(); + if(!valueQueuesQueueInfo["MinNodesInQueue"].isNull()) + queuesObject.minNodesInQueue = std::stoi(valueQueuesQueueInfo["MinNodesInQueue"].asString()); + if(!valueQueuesQueueInfo["HostNamePrefix"].isNull()) + queuesObject.hostNamePrefix = valueQueuesQueueInfo["HostNamePrefix"].asString(); + if(!valueQueuesQueueInfo["SystemDiskSize"].isNull()) + queuesObject.systemDiskSize = std::stoi(valueQueuesQueueInfo["SystemDiskSize"].asString()); + if(!valueQueuesQueueInfo["MaxNodesInQueue"].isNull()) + queuesObject.maxNodesInQueue = std::stoi(valueQueuesQueueInfo["MaxNodesInQueue"].asString()); + if(!valueQueuesQueueInfo["EnableAutoShrink"].isNull()) + queuesObject.enableAutoShrink = valueQueuesQueueInfo["EnableAutoShrink"].asString() == "true"; + if(!valueQueuesQueueInfo["QueueName"].isNull()) + queuesObject.queueName = valueQueuesQueueInfo["QueueName"].asString(); + if(!valueQueuesQueueInfo["EnableAutoGrow"].isNull()) + queuesObject.enableAutoGrow = valueQueuesQueueInfo["EnableAutoGrow"].asString() == "true"; + if(!valueQueuesQueueInfo["SystemDiskLevel"].isNull()) + queuesObject.systemDiskLevel = valueQueuesQueueInfo["SystemDiskLevel"].asString(); + if(!valueQueuesQueueInfo["ResourceGroupId"].isNull()) + queuesObject.resourceGroupId = valueQueuesQueueInfo["ResourceGroupId"].asString(); + if(!valueQueuesQueueInfo["SpotPriceLimit"].isNull()) + queuesObject.spotPriceLimit = std::stof(valueQueuesQueueInfo["SpotPriceLimit"].asString()); + if(!valueQueuesQueueInfo["MaxNodesPerCycle"].isNull()) + queuesObject.maxNodesPerCycle = std::stol(valueQueuesQueueInfo["MaxNodesPerCycle"].asString()); + if(!valueQueuesQueueInfo["MinNodesPerCycle"].isNull()) + queuesObject.minNodesPerCycle = std::stol(valueQueuesQueueInfo["MinNodesPerCycle"].asString()); + auto allInstanceTypesNode = valueQueuesQueueInfo["InstanceTypes"]["InstanceTypeInfo"]; + for (auto valueQueuesQueueInfoInstanceTypesInstanceTypeInfo : allInstanceTypesNode) + { + QueueInfo::InstanceTypeInfo instanceTypesObject; + if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].isNull()) + instanceTypesObject.hostNamePrefix = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["HostNamePrefix"].asString(); + if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].isNull()) + instanceTypesObject.vSwitchId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["VSwitchId"].asString(); + if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].isNull()) + instanceTypesObject.zoneId = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["ZoneId"].asString(); + if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].isNull()) + instanceTypesObject.spotPriceLimit = std::stof(valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotPriceLimit"].asString()); + if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].isNull()) + instanceTypesObject.instanceType = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["InstanceType"].asString(); + if(!valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].isNull()) + instanceTypesObject.spotStrategy = valueQueuesQueueInfoInstanceTypesInstanceTypeInfo["SpotStrategy"].asString(); + queuesObject.instanceTypes.push_back(instanceTypesObject); + } + auto allDataDisksNode = valueQueuesQueueInfo["DataDisks"]["DataDisksInfo"]; + for (auto valueQueuesQueueInfoDataDisksDataDisksInfo : allDataDisksNode) + { + QueueInfo::DataDisksInfo dataDisksObject; + if(!valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskCategory"].isNull()) + dataDisksObject.dataDiskCategory = valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskCategory"].asString(); + if(!valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskSize"].isNull()) + dataDisksObject.dataDiskSize = std::stoi(valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskSize"].asString()); + if(!valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskDeleteWithInstance"].isNull()) + dataDisksObject.dataDiskDeleteWithInstance = valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskDeleteWithInstance"].asString() == "true"; + if(!valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskPerformanceLevel"].isNull()) + dataDisksObject.dataDiskPerformanceLevel = valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskPerformanceLevel"].asString(); + if(!valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskEncrypted"].isNull()) + dataDisksObject.dataDiskEncrypted = valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskEncrypted"].asString() == "true"; + if(!valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskKMSKeyId"].isNull()) + dataDisksObject.dataDiskKMSKeyId = valueQueuesQueueInfoDataDisksDataDisksInfo["DataDiskKMSKeyId"].asString(); + queuesObject.dataDisks.push_back(dataDisksObject); + } + queues_.push_back(queuesObject); + } if(!value["MaxNodesInCluster"].isNull()) maxNodesInCluster_ = std::stoi(value["MaxNodesInCluster"].asString()); if(!value["GrowTimeoutInMinutes"].isNull()) growTimeoutInMinutes_ = std::stoi(value["GrowTimeoutInMinutes"].asString()); + if(!value["SpotStrategy"].isNull()) + spotStrategy_ = value["SpotStrategy"].asString(); if(!value["EnableAutoShrink"].isNull()) enableAutoShrink_ = value["EnableAutoShrink"].asString() == "true"; - if(!value["ClusterType"].isNull()) - clusterType_ = value["ClusterType"].asString(); if(!value["EnableAutoGrow"].isNull()) enableAutoGrow_ = value["EnableAutoGrow"].asString() == "true"; + if(!value["ClusterType"].isNull()) + clusterType_ = value["ClusterType"].asString(); if(!value["ExcludeNodes"].isNull()) excludeNodes_ = value["ExcludeNodes"].asString(); - if(!value["GrowIntervalInMinutes"].isNull()) - growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString()); if(!value["ShrinkIntervalInMinutes"].isNull()) shrinkIntervalInMinutes_ = std::stoi(value["ShrinkIntervalInMinutes"].asString()); - if(!value["ShrinkIdleTimes"].isNull()) - shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString()); + if(!value["GrowIntervalInMinutes"].isNull()) + growIntervalInMinutes_ = std::stoi(value["GrowIntervalInMinutes"].asString()); + if(!value["SpotPriceLimit"].isNull()) + spotPriceLimit_ = std::stof(value["SpotPriceLimit"].asString()); if(!value["ExtraNodesGrowRatio"].isNull()) extraNodesGrowRatio_ = std::stoi(value["ExtraNodesGrowRatio"].asString()); + if(!value["ShrinkIdleTimes"].isNull()) + shrinkIdleTimes_ = std::stoi(value["ShrinkIdleTimes"].asString()); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); if(!value["GrowRatio"].isNull()) growRatio_ = std::stoi(value["GrowRatio"].asString()); - if(!value["Uid"].isNull()) - uid_ = value["Uid"].asString(); if(!value["ClusterId"].isNull()) clusterId_ = value["ClusterId"].asString(); + if(!value["Uid"].isNull()) + uid_ = value["Uid"].asString(); } @@ -123,13 +205,33 @@ int GetAutoScaleConfigResult::getGrowTimeoutInMinutes()const return growTimeoutInMinutes_; } +std::string GetAutoScaleConfigResult::getImageId()const +{ + return imageId_; +} + int GetAutoScaleConfigResult::getShrinkIntervalInMinutes()const { return shrinkIntervalInMinutes_; } +float GetAutoScaleConfigResult::getSpotPriceLimit()const +{ + return spotPriceLimit_; +} + +std::vector GetAutoScaleConfigResult::getQueues()const +{ + return queues_; +} + std::string GetAutoScaleConfigResult::getExcludeNodes()const { return excludeNodes_; } +std::string GetAutoScaleConfigResult::getSpotStrategy()const +{ + return spotStrategy_; +} + diff --git a/ehpc/src/model/GetCloudMetricLogsRequest.cc b/ehpc/src/model/GetCloudMetricLogsRequest.cc new file mode 100644 index 000000000..5b9d3ba64 --- /dev/null +++ b/ehpc/src/model/GetCloudMetricLogsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::GetCloudMetricLogsRequest; + +GetCloudMetricLogsRequest::GetCloudMetricLogsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricLogs") { + setMethod(HttpRequest::Method::Get); +} + +GetCloudMetricLogsRequest::~GetCloudMetricLogsRequest() {} + +std::string GetCloudMetricLogsRequest::getMetricScope() const { + return metricScope_; +} + +void GetCloudMetricLogsRequest::setMetricScope(const std::string &metricScope) { + metricScope_ = metricScope; + setParameter(std::string("MetricScope"), metricScope); +} + +std::string GetCloudMetricLogsRequest::getClusterId() const { + return clusterId_; +} + +void GetCloudMetricLogsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int GetCloudMetricLogsRequest::getAggregationInterval() const { + return aggregationInterval_; +} + +void GetCloudMetricLogsRequest::setAggregationInterval(int aggregationInterval) { + aggregationInterval_ = aggregationInterval; + setParameter(std::string("AggregationInterval"), std::to_string(aggregationInterval)); +} + +bool GetCloudMetricLogsRequest::getReverse() const { + return reverse_; +} + +void GetCloudMetricLogsRequest::setReverse(bool reverse) { + reverse_ = reverse; + setParameter(std::string("Reverse"), reverse ? "true" : "false"); +} + +std::string GetCloudMetricLogsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetCloudMetricLogsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetCloudMetricLogsRequest::getAggregationType() const { + return aggregationType_; +} + +void GetCloudMetricLogsRequest::setAggregationType(const std::string &aggregationType) { + aggregationType_ = aggregationType; + setParameter(std::string("AggregationType"), aggregationType); +} + +std::string GetCloudMetricLogsRequest::getFilter() const { + return filter_; +} + +void GetCloudMetricLogsRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("Filter"), filter); +} + +std::string GetCloudMetricLogsRequest::getMetricCategories() const { + return metricCategories_; +} + +void GetCloudMetricLogsRequest::setMetricCategories(const std::string &metricCategories) { + metricCategories_ = metricCategories; + setParameter(std::string("MetricCategories"), metricCategories); +} + +int GetCloudMetricLogsRequest::getFrom() const { + return from_; +} + +void GetCloudMetricLogsRequest::setFrom(int from) { + from_ = from; + setParameter(std::string("From"), std::to_string(from)); +} + +int GetCloudMetricLogsRequest::getTo() const { + return to_; +} + +void GetCloudMetricLogsRequest::setTo(int to) { + to_ = to; + setParameter(std::string("To"), std::to_string(to)); +} + diff --git a/ehpc/src/model/GetCloudMetricLogsResult.cc b/ehpc/src/model/GetCloudMetricLogsResult.cc new file mode 100644 index 000000000..2a48abda2 --- /dev/null +++ b/ehpc/src/model/GetCloudMetricLogsResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetCloudMetricLogsResult::GetCloudMetricLogsResult() : + ServiceResult() +{} + +GetCloudMetricLogsResult::GetCloudMetricLogsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCloudMetricLogsResult::~GetCloudMetricLogsResult() +{} + +void GetCloudMetricLogsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMetricLogsNode = value["MetricLogs"]["MetricLog"]; + for (auto valueMetricLogsMetricLog : allMetricLogsNode) + { + MetricLog metricLogsObject; + if(!valueMetricLogsMetricLog["Time"].isNull()) + metricLogsObject.time = std::stoi(valueMetricLogsMetricLog["Time"].asString()); + if(!valueMetricLogsMetricLog["DiskDevice"].isNull()) + metricLogsObject.diskDevice = valueMetricLogsMetricLog["DiskDevice"].asString(); + if(!valueMetricLogsMetricLog["NetworkInterface"].isNull()) + metricLogsObject.networkInterface = valueMetricLogsMetricLog["NetworkInterface"].asString(); + if(!valueMetricLogsMetricLog["MetricData"].isNull()) + metricLogsObject.metricData = valueMetricLogsMetricLog["MetricData"].asString(); + if(!valueMetricLogsMetricLog["Hostname"].isNull()) + metricLogsObject.hostname = valueMetricLogsMetricLog["Hostname"].asString(); + if(!valueMetricLogsMetricLog["InstanceId"].isNull()) + metricLogsObject.instanceId = valueMetricLogsMetricLog["InstanceId"].asString(); + metricLogs_.push_back(metricLogsObject); + } + +} + +std::vector GetCloudMetricLogsResult::getMetricLogs()const +{ + return metricLogs_; +} + diff --git a/ehpc/src/model/GetCloudMetricProfilingRequest.cc b/ehpc/src/model/GetCloudMetricProfilingRequest.cc new file mode 100644 index 000000000..72bdb6cb0 --- /dev/null +++ b/ehpc/src/model/GetCloudMetricProfilingRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::GetCloudMetricProfilingRequest; + +GetCloudMetricProfilingRequest::GetCloudMetricProfilingRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetCloudMetricProfiling") { + setMethod(HttpRequest::Method::Get); +} + +GetCloudMetricProfilingRequest::~GetCloudMetricProfilingRequest() {} + +std::string GetCloudMetricProfilingRequest::getClusterId() const { + return clusterId_; +} + +void GetCloudMetricProfilingRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetCloudMetricProfilingRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetCloudMetricProfilingRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetCloudMetricProfilingRequest::getRegionId() const { + return regionId_; +} + +void GetCloudMetricProfilingRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string GetCloudMetricProfilingRequest::getProfilingId() const { + return profilingId_; +} + +void GetCloudMetricProfilingRequest::setProfilingId(const std::string &profilingId) { + profilingId_ = profilingId; + setParameter(std::string("ProfilingId"), profilingId); +} + diff --git a/ehpc/src/model/GetCloudMetricProfilingResult.cc b/ehpc/src/model/GetCloudMetricProfilingResult.cc new file mode 100644 index 000000000..b4d6b291c --- /dev/null +++ b/ehpc/src/model/GetCloudMetricProfilingResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetCloudMetricProfilingResult::GetCloudMetricProfilingResult() : + ServiceResult() +{} + +GetCloudMetricProfilingResult::GetCloudMetricProfilingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCloudMetricProfilingResult::~GetCloudMetricProfilingResult() +{} + +void GetCloudMetricProfilingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSvgUrlsNode = value["SvgUrls"]["SvgInfo"]; + for (auto valueSvgUrlsSvgInfo : allSvgUrlsNode) + { + SvgInfo svgUrlsObject; + if(!valueSvgUrlsSvgInfo["Type"].isNull()) + svgUrlsObject.type = valueSvgUrlsSvgInfo["Type"].asString(); + if(!valueSvgUrlsSvgInfo["Url"].isNull()) + svgUrlsObject.url = valueSvgUrlsSvgInfo["Url"].asString(); + if(!valueSvgUrlsSvgInfo["Name"].isNull()) + svgUrlsObject.name = valueSvgUrlsSvgInfo["Name"].asString(); + if(!valueSvgUrlsSvgInfo["Size"].isNull()) + svgUrlsObject.size = std::stoi(valueSvgUrlsSvgInfo["Size"].asString()); + svgUrls_.push_back(svgUrlsObject); + } + +} + +std::vector GetCloudMetricProfilingResult::getSvgUrls()const +{ + return svgUrls_; +} + diff --git a/ehpc/src/model/GetClusterVolumesRequest.cc b/ehpc/src/model/GetClusterVolumesRequest.cc new file mode 100644 index 000000000..b9d544135 --- /dev/null +++ b/ehpc/src/model/GetClusterVolumesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetClusterVolumesRequest; + +GetClusterVolumesRequest::GetClusterVolumesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetClusterVolumes") { + setMethod(HttpRequest::Method::Get); +} + +GetClusterVolumesRequest::~GetClusterVolumesRequest() {} + +std::string GetClusterVolumesRequest::getClusterId() const { + return clusterId_; +} + +void GetClusterVolumesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetClusterVolumesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetClusterVolumesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/GetClusterVolumesResult.cc b/ehpc/src/model/GetClusterVolumesResult.cc new file mode 100644 index 000000000..13f3243a6 --- /dev/null +++ b/ehpc/src/model/GetClusterVolumesResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetClusterVolumesResult::GetClusterVolumesResult() : + ServiceResult() +{} + +GetClusterVolumesResult::GetClusterVolumesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetClusterVolumesResult::~GetClusterVolumesResult() +{} + +void GetClusterVolumesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVolumesNode = value["Volumes"]["VolumeInfo"]; + for (auto valueVolumesVolumeInfo : allVolumesNode) + { + VolumeInfo volumesObject; + if(!valueVolumesVolumeInfo["JobQueue"].isNull()) + volumesObject.jobQueue = valueVolumesVolumeInfo["JobQueue"].asString(); + if(!valueVolumesVolumeInfo["VolumeId"].isNull()) + volumesObject.volumeId = valueVolumesVolumeInfo["VolumeId"].asString(); + if(!valueVolumesVolumeInfo["RemoteDirectory"].isNull()) + volumesObject.remoteDirectory = valueVolumesVolumeInfo["RemoteDirectory"].asString(); + if(!valueVolumesVolumeInfo["VolumeMountpoint"].isNull()) + volumesObject.volumeMountpoint = valueVolumesVolumeInfo["VolumeMountpoint"].asString(); + if(!valueVolumesVolumeInfo["LocalDirectory"].isNull()) + volumesObject.localDirectory = valueVolumesVolumeInfo["LocalDirectory"].asString(); + if(!valueVolumesVolumeInfo["VolumeType"].isNull()) + volumesObject.volumeType = valueVolumesVolumeInfo["VolumeType"].asString(); + if(!valueVolumesVolumeInfo["MustKeep"].isNull()) + volumesObject.mustKeep = valueVolumesVolumeInfo["MustKeep"].asString() == "true"; + if(!valueVolumesVolumeInfo["Location"].isNull()) + volumesObject.location = valueVolumesVolumeInfo["Location"].asString(); + if(!valueVolumesVolumeInfo["VolumeProtocol"].isNull()) + volumesObject.volumeProtocol = valueVolumesVolumeInfo["VolumeProtocol"].asString(); + auto allRolesNode = valueVolumesVolumeInfo["Roles"]["RoleInfo"]; + for (auto valueVolumesVolumeInfoRolesRoleInfo : allRolesNode) + { + VolumeInfo::RoleInfo rolesObject; + if(!valueVolumesVolumeInfoRolesRoleInfo["Name"].isNull()) + rolesObject.name = valueVolumesVolumeInfoRolesRoleInfo["Name"].asString(); + volumesObject.roles.push_back(rolesObject); + } + volumes_.push_back(volumesObject); + } + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +std::vector GetClusterVolumesResult::getVolumes()const +{ + return volumes_; +} + +std::string GetClusterVolumesResult::getRegionId()const +{ + return regionId_; +} + diff --git a/ehpc/src/model/GetCommonImageRequest.cc b/ehpc/src/model/GetCommonImageRequest.cc new file mode 100644 index 000000000..912ade498 --- /dev/null +++ b/ehpc/src/model/GetCommonImageRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::GetCommonImageRequest; + +GetCommonImageRequest::GetCommonImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetCommonImage") { + setMethod(HttpRequest::Method::Get); +} + +GetCommonImageRequest::~GetCommonImageRequest() {} + +std::string GetCommonImageRequest::getContainType() const { + return containType_; +} + +void GetCommonImageRequest::setContainType(const std::string &containType) { + containType_ = containType; + setParameter(std::string("ContainType"), containType); +} + +std::string GetCommonImageRequest::getClusterId() const { + return clusterId_; +} + +void GetCommonImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetCommonImageRequest::getImageName() const { + return imageName_; +} + +void GetCommonImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + +std::string GetCommonImageRequest::getRegionId() const { + return regionId_; +} + +void GetCommonImageRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/GetCommonImageResult.cc b/ehpc/src/model/GetCommonImageResult.cc new file mode 100644 index 000000000..9bb0a6f86 --- /dev/null +++ b/ehpc/src/model/GetCommonImageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetCommonImageResult::GetCommonImageResult() : + ServiceResult() +{} + +GetCommonImageResult::GetCommonImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetCommonImageResult::~GetCommonImageResult() +{} + +void GetCommonImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/GetGWSConnectTicketRequest.cc b/ehpc/src/model/GetGWSConnectTicketRequest.cc new file mode 100644 index 000000000..1f34bbc65 --- /dev/null +++ b/ehpc/src/model/GetGWSConnectTicketRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetGWSConnectTicketRequest; + +GetGWSConnectTicketRequest::GetGWSConnectTicketRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetGWSConnectTicket") { + setMethod(HttpRequest::Method::Get); +} + +GetGWSConnectTicketRequest::~GetGWSConnectTicketRequest() {} + +std::string GetGWSConnectTicketRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetGWSConnectTicketRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetGWSConnectTicketRequest::getInstanceId() const { + return instanceId_; +} + +void GetGWSConnectTicketRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string GetGWSConnectTicketRequest::getAppName() const { + return appName_; +} + +void GetGWSConnectTicketRequest::setAppName(const std::string &appName) { + appName_ = appName; + setParameter(std::string("AppName"), appName); +} + diff --git a/ehpc/src/model/GetGWSConnectTicketResult.cc b/ehpc/src/model/GetGWSConnectTicketResult.cc new file mode 100644 index 000000000..3882d4a1c --- /dev/null +++ b/ehpc/src/model/GetGWSConnectTicketResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetGWSConnectTicketResult::GetGWSConnectTicketResult() : + ServiceResult() +{} + +GetGWSConnectTicketResult::GetGWSConnectTicketResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetGWSConnectTicketResult::~GetGWSConnectTicketResult() +{} + +void GetGWSConnectTicketResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Ticket"].isNull()) + ticket_ = value["Ticket"].asString(); + +} + +std::string GetGWSConnectTicketResult::getTicket()const +{ + return ticket_; +} + diff --git a/ehpc/src/model/GetHybridClusterConfigRequest.cc b/ehpc/src/model/GetHybridClusterConfigRequest.cc new file mode 100644 index 000000000..e01a532a3 --- /dev/null +++ b/ehpc/src/model/GetHybridClusterConfigRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetHybridClusterConfigRequest; + +GetHybridClusterConfigRequest::GetHybridClusterConfigRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetHybridClusterConfig") { + setMethod(HttpRequest::Method::Get); +} + +GetHybridClusterConfigRequest::~GetHybridClusterConfigRequest() {} + +std::string GetHybridClusterConfigRequest::getClusterId() const { + return clusterId_; +} + +void GetHybridClusterConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetHybridClusterConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetHybridClusterConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetHybridClusterConfigRequest::getNode() const { + return node_; +} + +void GetHybridClusterConfigRequest::setNode(const std::string &node) { + node_ = node; + setParameter(std::string("Node"), node); +} + diff --git a/ehpc/src/model/GetHybridClusterConfigResult.cc b/ehpc/src/model/GetHybridClusterConfigResult.cc new file mode 100644 index 000000000..aa6a9888c --- /dev/null +++ b/ehpc/src/model/GetHybridClusterConfigResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetHybridClusterConfigResult::GetHybridClusterConfigResult() : + ServiceResult() +{} + +GetHybridClusterConfigResult::GetHybridClusterConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetHybridClusterConfigResult::~GetHybridClusterConfigResult() +{} + +void GetHybridClusterConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ClusterConfig"].isNull()) + clusterConfig_ = value["ClusterConfig"].asString(); + +} + +std::string GetHybridClusterConfigResult::getClusterConfig()const +{ + return clusterConfig_; +} + diff --git a/ehpc/src/model/GetIfEcsTypeSupportHtConfigRequest.cc b/ehpc/src/model/GetIfEcsTypeSupportHtConfigRequest.cc new file mode 100644 index 000000000..9ba443839 --- /dev/null +++ b/ehpc/src/model/GetIfEcsTypeSupportHtConfigRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetIfEcsTypeSupportHtConfigRequest; + +GetIfEcsTypeSupportHtConfigRequest::GetIfEcsTypeSupportHtConfigRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetIfEcsTypeSupportHtConfig") { + setMethod(HttpRequest::Method::Get); +} + +GetIfEcsTypeSupportHtConfigRequest::~GetIfEcsTypeSupportHtConfigRequest() {} + +std::string GetIfEcsTypeSupportHtConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetIfEcsTypeSupportHtConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetIfEcsTypeSupportHtConfigRequest::getInstanceType() const { + return instanceType_; +} + +void GetIfEcsTypeSupportHtConfigRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + diff --git a/ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc b/ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc new file mode 100644 index 000000000..b89f04a7c --- /dev/null +++ b/ehpc/src/model/GetIfEcsTypeSupportHtConfigResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetIfEcsTypeSupportHtConfigResult::GetIfEcsTypeSupportHtConfigResult() : + ServiceResult() +{} + +GetIfEcsTypeSupportHtConfigResult::GetIfEcsTypeSupportHtConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetIfEcsTypeSupportHtConfigResult::~GetIfEcsTypeSupportHtConfigResult() +{} + +void GetIfEcsTypeSupportHtConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["DefaultHtEnabled"].isNull()) + defaultHtEnabled_ = value["DefaultHtEnabled"].asString() == "true"; + if(!value["InstanceType"].isNull()) + instanceType_ = value["InstanceType"].asString(); + if(!value["SupportHtConfig"].isNull()) + supportHtConfig_ = value["SupportHtConfig"].asString() == "true"; + +} + +bool GetIfEcsTypeSupportHtConfigResult::getDefaultHtEnabled()const +{ + return defaultHtEnabled_; +} + +bool GetIfEcsTypeSupportHtConfigResult::getSupportHtConfig()const +{ + return supportHtConfig_; +} + +std::string GetIfEcsTypeSupportHtConfigResult::getInstanceType()const +{ + return instanceType_; +} + diff --git a/ehpc/src/model/GetPostScriptsRequest.cc b/ehpc/src/model/GetPostScriptsRequest.cc new file mode 100644 index 000000000..02bab5a3d --- /dev/null +++ b/ehpc/src/model/GetPostScriptsRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetPostScriptsRequest; + +GetPostScriptsRequest::GetPostScriptsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetPostScripts") { + setMethod(HttpRequest::Method::Get); +} + +GetPostScriptsRequest::~GetPostScriptsRequest() {} + +std::string GetPostScriptsRequest::getClusterId() const { + return clusterId_; +} + +void GetPostScriptsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetPostScriptsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetPostScriptsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GetPostScriptsRequest::getRegionId() const { + return regionId_; +} + +void GetPostScriptsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/GetPostScriptsResult.cc b/ehpc/src/model/GetPostScriptsResult.cc new file mode 100644 index 000000000..bdda2a67b --- /dev/null +++ b/ehpc/src/model/GetPostScriptsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetPostScriptsResult::GetPostScriptsResult() : + ServiceResult() +{} + +GetPostScriptsResult::GetPostScriptsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPostScriptsResult::~GetPostScriptsResult() +{} + +void GetPostScriptsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPostInstallScriptsNode = value["PostInstallScripts"]["PostInstallScriptsItem"]; + for (auto valuePostInstallScriptsPostInstallScriptsItem : allPostInstallScriptsNode) + { + PostInstallScriptsItem postInstallScriptsObject; + if(!valuePostInstallScriptsPostInstallScriptsItem["Args"].isNull()) + postInstallScriptsObject.args = valuePostInstallScriptsPostInstallScriptsItem["Args"].asString(); + if(!valuePostInstallScriptsPostInstallScriptsItem["Url"].isNull()) + postInstallScriptsObject.url = valuePostInstallScriptsPostInstallScriptsItem["Url"].asString(); + postInstallScripts_.push_back(postInstallScriptsObject); + } + +} + +std::vector GetPostScriptsResult::getPostInstallScripts()const +{ + return postInstallScripts_; +} + diff --git a/ehpc/src/model/GetSchedulerInfoRequest.cc b/ehpc/src/model/GetSchedulerInfoRequest.cc new file mode 100644 index 000000000..3b8aab2f6 --- /dev/null +++ b/ehpc/src/model/GetSchedulerInfoRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetSchedulerInfoRequest; + +GetSchedulerInfoRequest::GetSchedulerInfoRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetSchedulerInfo") { + setMethod(HttpRequest::Method::Get); +} + +GetSchedulerInfoRequest::~GetSchedulerInfoRequest() {} + +std::string GetSchedulerInfoRequest::getClusterId() const { + return clusterId_; +} + +void GetSchedulerInfoRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetSchedulerInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetSchedulerInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::vector GetSchedulerInfoRequest::getScheduler() const { + return scheduler_; +} + +void GetSchedulerInfoRequest::setScheduler(const std::vector &scheduler) { + scheduler_ = scheduler; + for(int dep1 = 0; dep1 != scheduler.size(); dep1++) { + auto schedulerObj = scheduler.at(dep1); + std::string schedulerObjStr = std::string("Scheduler") + "." + std::to_string(dep1 + 1); + setParameter(schedulerObjStr + ".SchedName", schedulerObj.schedName); + } +} + +std::string GetSchedulerInfoRequest::getRegionId() const { + return regionId_; +} + +void GetSchedulerInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/GetSchedulerInfoResult.cc b/ehpc/src/model/GetSchedulerInfoResult.cc new file mode 100644 index 000000000..8485f1029 --- /dev/null +++ b/ehpc/src/model/GetSchedulerInfoResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetSchedulerInfoResult::GetSchedulerInfoResult() : + ServiceResult() +{} + +GetSchedulerInfoResult::GetSchedulerInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSchedulerInfoResult::~GetSchedulerInfoResult() +{} + +void GetSchedulerInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSchedInfoNode = value["SchedInfo"]["SchedInfoItem"]; + for (auto valueSchedInfoSchedInfoItem : allSchedInfoNode) + { + SchedInfoItem schedInfoObject; + if(!valueSchedInfoSchedInfoItem["Configuration"].isNull()) + schedInfoObject.configuration = valueSchedInfoSchedInfoItem["Configuration"].asString(); + if(!valueSchedInfoSchedInfoItem["SchedName"].isNull()) + schedInfoObject.schedName = valueSchedInfoSchedInfoItem["SchedName"].asString(); + schedInfo_.push_back(schedInfoObject); + } + +} + +std::vector GetSchedulerInfoResult::getSchedInfo()const +{ + return schedInfo_; +} + diff --git a/ehpc/src/model/GetUserImageRequest.cc b/ehpc/src/model/GetUserImageRequest.cc new file mode 100644 index 000000000..bb114c370 --- /dev/null +++ b/ehpc/src/model/GetUserImageRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetUserImageRequest; + +GetUserImageRequest::GetUserImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetUserImage") { + setMethod(HttpRequest::Method::Get); +} + +GetUserImageRequest::~GetUserImageRequest() {} + +std::string GetUserImageRequest::getOSSBucket() const { + return oSSBucket_; +} + +void GetUserImageRequest::setOSSBucket(const std::string &oSSBucket) { + oSSBucket_ = oSSBucket; + setParameter(std::string("OSSBucket"), oSSBucket); +} + +std::string GetUserImageRequest::getOSSEndPoint() const { + return oSSEndPoint_; +} + +void GetUserImageRequest::setOSSEndPoint(const std::string &oSSEndPoint) { + oSSEndPoint_ = oSSEndPoint; + setParameter(std::string("OSSEndPoint"), oSSEndPoint); +} + +std::string GetUserImageRequest::getClusterId() const { + return clusterId_; +} + +void GetUserImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetUserImageRequest::getContainerType() const { + return containerType_; +} + +void GetUserImageRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string GetUserImageRequest::getImagePath() const { + return imagePath_; +} + +void GetUserImageRequest::setImagePath(const std::string &imagePath) { + imagePath_ = imagePath; + setParameter(std::string("ImagePath"), imagePath); +} + +std::string GetUserImageRequest::getImageName() const { + return imageName_; +} + +void GetUserImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + diff --git a/ehpc/src/model/GetUserImageResult.cc b/ehpc/src/model/GetUserImageResult.cc new file mode 100644 index 000000000..434e879fb --- /dev/null +++ b/ehpc/src/model/GetUserImageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetUserImageResult::GetUserImageResult() : + ServiceResult() +{} + +GetUserImageResult::GetUserImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetUserImageResult::~GetUserImageResult() +{} + +void GetUserImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/GetVisualServiceStatusRequest.cc b/ehpc/src/model/GetVisualServiceStatusRequest.cc new file mode 100644 index 000000000..3da5ec10a --- /dev/null +++ b/ehpc/src/model/GetVisualServiceStatusRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::GetVisualServiceStatusRequest; + +GetVisualServiceStatusRequest::GetVisualServiceStatusRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "GetVisualServiceStatus") { + setMethod(HttpRequest::Method::Get); +} + +GetVisualServiceStatusRequest::~GetVisualServiceStatusRequest() {} + +std::string GetVisualServiceStatusRequest::getClusterId() const { + return clusterId_; +} + +void GetVisualServiceStatusRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string GetVisualServiceStatusRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetVisualServiceStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/GetVisualServiceStatusResult.cc b/ehpc/src/model/GetVisualServiceStatusResult.cc new file mode 100644 index 000000000..cb891316b --- /dev/null +++ b/ehpc/src/model/GetVisualServiceStatusResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +GetVisualServiceStatusResult::GetVisualServiceStatusResult() : + ServiceResult() +{} + +GetVisualServiceStatusResult::GetVisualServiceStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVisualServiceStatusResult::~GetVisualServiceStatusResult() +{} + +void GetVisualServiceStatusResult::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 GetVisualServiceStatusResult::getMessage()const +{ + return message_; +} + diff --git a/ehpc/src/model/InitializeEHPCRequest.cc b/ehpc/src/model/InitializeEHPCRequest.cc new file mode 100644 index 000000000..eb5a8fd92 --- /dev/null +++ b/ehpc/src/model/InitializeEHPCRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::InitializeEHPCRequest; + +InitializeEHPCRequest::InitializeEHPCRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "InitializeEHPC") { + setMethod(HttpRequest::Method::Get); +} + +InitializeEHPCRequest::~InitializeEHPCRequest() {} + +std::string InitializeEHPCRequest::getRegionId() const { + return regionId_; +} + +void InitializeEHPCRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/InitializeEHPCResult.cc b/ehpc/src/model/InitializeEHPCResult.cc new file mode 100644 index 000000000..9ff5a4048 --- /dev/null +++ b/ehpc/src/model/InitializeEHPCResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +InitializeEHPCResult::InitializeEHPCResult() : + ServiceResult() +{} + +InitializeEHPCResult::InitializeEHPCResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InitializeEHPCResult::~InitializeEHPCResult() +{} + +void InitializeEHPCResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/InspectImageRequest.cc b/ehpc/src/model/InspectImageRequest.cc new file mode 100644 index 000000000..738c7cad6 --- /dev/null +++ b/ehpc/src/model/InspectImageRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::InspectImageRequest; + +InspectImageRequest::InspectImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "InspectImage") { + setMethod(HttpRequest::Method::Get); +} + +InspectImageRequest::~InspectImageRequest() {} + +std::string InspectImageRequest::getClusterId() const { + return clusterId_; +} + +void InspectImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string InspectImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InspectImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string InspectImageRequest::getContainerType() const { + return containerType_; +} + +void InspectImageRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string InspectImageRequest::getImageName() const { + return imageName_; +} + +void InspectImageRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + diff --git a/ehpc/src/model/InspectImageResult.cc b/ehpc/src/model/InspectImageResult.cc new file mode 100644 index 000000000..c36a918ca --- /dev/null +++ b/ehpc/src/model/InspectImageResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +InspectImageResult::InspectImageResult() : + ServiceResult() +{} + +InspectImageResult::InspectImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InspectImageResult::~InspectImageResult() +{} + +void InspectImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto imageStatusNode = value["ImageStatus"]; + auto imageInspectInfoNode = imageStatusNode["ImageInspectInfo"]; + if(!imageInspectInfoNode["BuildArch"].isNull()) + imageStatus_.imageInspectInfo.buildArch = imageInspectInfoNode["BuildArch"].asString(); + if(!imageInspectInfoNode["BuildDate"].isNull()) + imageStatus_.imageInspectInfo.buildDate = imageInspectInfoNode["BuildDate"].asString(); + if(!imageInspectInfoNode["BootStrap"].isNull()) + imageStatus_.imageInspectInfo.bootStrap = imageInspectInfoNode["BootStrap"].asString(); + if(!imageInspectInfoNode["DefFrom"].isNull()) + imageStatus_.imageInspectInfo.defFrom = imageInspectInfoNode["DefFrom"].asString(); + if(!imageInspectInfoNode["ContainerVersion"].isNull()) + imageStatus_.imageInspectInfo.containerVersion = imageInspectInfoNode["ContainerVersion"].asString(); + if(!imageInspectInfoNode["SchemaVersion"].isNull()) + imageStatus_.imageInspectInfo.schemaVersion = imageInspectInfoNode["SchemaVersion"].asString(); + +} + +InspectImageResult::ImageStatus InspectImageResult::getImageStatus()const +{ + return imageStatus_; +} + diff --git a/ehpc/src/model/InstallSoftwareRequest.cc b/ehpc/src/model/InstallSoftwareRequest.cc new file mode 100644 index 000000000..845774ef1 --- /dev/null +++ b/ehpc/src/model/InstallSoftwareRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::InstallSoftwareRequest; + +InstallSoftwareRequest::InstallSoftwareRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "InstallSoftware") { + setMethod(HttpRequest::Method::Get); +} + +InstallSoftwareRequest::~InstallSoftwareRequest() {} + +std::string InstallSoftwareRequest::getClusterId() const { + return clusterId_; +} + +void InstallSoftwareRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string InstallSoftwareRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InstallSoftwareRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string InstallSoftwareRequest::getApplication() const { + return application_; +} + +void InstallSoftwareRequest::setApplication(const std::string &application) { + application_ = application; + setParameter(std::string("Application"), application); +} + diff --git a/ehpc/src/model/InstallSoftwareResult.cc b/ehpc/src/model/InstallSoftwareResult.cc new file mode 100644 index 000000000..b8f9baa16 --- /dev/null +++ b/ehpc/src/model/InstallSoftwareResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +InstallSoftwareResult::InstallSoftwareResult() : + ServiceResult() +{} + +InstallSoftwareResult::InstallSoftwareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallSoftwareResult::~InstallSoftwareResult() +{} + +void InstallSoftwareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/InvokeShellCommandRequest.cc b/ehpc/src/model/InvokeShellCommandRequest.cc new file mode 100644 index 000000000..483957382 --- /dev/null +++ b/ehpc/src/model/InvokeShellCommandRequest.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::InvokeShellCommandRequest; + +InvokeShellCommandRequest::InvokeShellCommandRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "InvokeShellCommand") { + setMethod(HttpRequest::Method::Get); +} + +InvokeShellCommandRequest::~InvokeShellCommandRequest() {} + +std::vector InvokeShellCommandRequest::getInstance() const { + return instance_; +} + +void InvokeShellCommandRequest::setInstance(const std::vector &instance) { + instance_ = instance; + for(int dep1 = 0; dep1 != instance.size(); dep1++) { + auto instanceObj = instance.at(dep1); + std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1); + setParameter(instanceObjStr + ".Id", instanceObj.id); + } +} + +std::string InvokeShellCommandRequest::getWorkingDir() const { + return workingDir_; +} + +void InvokeShellCommandRequest::setWorkingDir(const std::string &workingDir) { + workingDir_ = workingDir; + setParameter(std::string("WorkingDir"), workingDir); +} + +std::string InvokeShellCommandRequest::getClusterId() const { + return clusterId_; +} + +void InvokeShellCommandRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string InvokeShellCommandRequest::getCommand() const { + return command_; +} + +void InvokeShellCommandRequest::setCommand(const std::string &command) { + command_ = command; + setParameter(std::string("Command"), command); +} + +int InvokeShellCommandRequest::getTimeout() const { + return timeout_; +} + +void InvokeShellCommandRequest::setTimeout(int timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); +} + +std::string InvokeShellCommandRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void InvokeShellCommandRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/InvokeShellCommandResult.cc b/ehpc/src/model/InvokeShellCommandResult.cc new file mode 100644 index 000000000..296c8b6b0 --- /dev/null +++ b/ehpc/src/model/InvokeShellCommandResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +InvokeShellCommandResult::InvokeShellCommandResult() : + ServiceResult() +{} + +InvokeShellCommandResult::InvokeShellCommandResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InvokeShellCommandResult::~InvokeShellCommandResult() +{} + +void InvokeShellCommandResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceIds = value["InstanceIds"]["InstanceId"]; + for (const auto &item : allInstanceIds) + instanceIds_.push_back(item.asString()); + if(!value["CommandId"].isNull()) + commandId_ = value["CommandId"].asString(); + +} + +std::string InvokeShellCommandResult::getCommandId()const +{ + return commandId_; +} + +std::vector InvokeShellCommandResult::getInstanceIds()const +{ + return instanceIds_; +} + diff --git a/ehpc/src/model/ListAvailableEcsTypesRequest.cc b/ehpc/src/model/ListAvailableEcsTypesRequest.cc new file mode 100644 index 000000000..579e80e1a --- /dev/null +++ b/ehpc/src/model/ListAvailableEcsTypesRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListAvailableEcsTypesRequest; + +ListAvailableEcsTypesRequest::ListAvailableEcsTypesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListAvailableEcsTypes") { + setMethod(HttpRequest::Method::Get); +} + +ListAvailableEcsTypesRequest::~ListAvailableEcsTypesRequest() {} + +std::string ListAvailableEcsTypesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListAvailableEcsTypesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListAvailableEcsTypesRequest::getSpotStrategy() const { + return spotStrategy_; +} + +void ListAvailableEcsTypesRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); +} + +std::string ListAvailableEcsTypesRequest::getZoneId() const { + return zoneId_; +} + +void ListAvailableEcsTypesRequest::setZoneId(const std::string &zoneId) { + zoneId_ = zoneId; + setParameter(std::string("ZoneId"), zoneId); +} + +bool ListAvailableEcsTypesRequest::getShowSoldOut() const { + return showSoldOut_; +} + +void ListAvailableEcsTypesRequest::setShowSoldOut(bool showSoldOut) { + showSoldOut_ = showSoldOut; + setParameter(std::string("ShowSoldOut"), showSoldOut ? "true" : "false"); +} + +std::string ListAvailableEcsTypesRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void ListAvailableEcsTypesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + diff --git a/ehpc/src/model/ListAvailableEcsTypesResult.cc b/ehpc/src/model/ListAvailableEcsTypesResult.cc new file mode 100644 index 000000000..b8eb3ab16 --- /dev/null +++ b/ehpc/src/model/ListAvailableEcsTypesResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListAvailableEcsTypesResult::ListAvailableEcsTypesResult() : + ServiceResult() +{} + +ListAvailableEcsTypesResult::ListAvailableEcsTypesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListAvailableEcsTypesResult::~ListAvailableEcsTypesResult() +{} + +void ListAvailableEcsTypesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInstanceTypeFamiliesNode = value["InstanceTypeFamilies"]["InstanceTypeFamilyInfo"]; + for (auto valueInstanceTypeFamiliesInstanceTypeFamilyInfo : allInstanceTypeFamiliesNode) + { + InstanceTypeFamilyInfo instanceTypeFamiliesObject; + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Generation"].isNull()) + instanceTypeFamiliesObject.generation = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Generation"].asString(); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfo["InstanceTypeFamilyId"].isNull()) + instanceTypeFamiliesObject.instanceTypeFamilyId = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["InstanceTypeFamilyId"].asString(); + auto allTypesNode = valueInstanceTypeFamiliesInstanceTypeFamilyInfo["Types"]["TypesInfo"]; + for (auto valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo : allTypesNode) + { + InstanceTypeFamilyInfo::TypesInfo typesObject; + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["Status"].isNull()) + typesObject.status = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["Status"].asString(); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceTypeId"].isNull()) + typesObject.instanceTypeId = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceTypeId"].asString(); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthRx"].isNull()) + typesObject.instanceBandwidthRx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthRx"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUSpec"].isNull()) + typesObject.gPUSpec = valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUSpec"].asString(); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthTx"].isNull()) + typesObject.instanceBandwidthTx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstanceBandwidthTx"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsRx"].isNull()) + typesObject.instancePpsRx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsRx"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsTx"].isNull()) + typesObject.instancePpsTx = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["InstancePpsTx"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUAmount"].isNull()) + typesObject.gPUAmount = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["GPUAmount"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["CpuCoreCount"].isNull()) + typesObject.cpuCoreCount = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["CpuCoreCount"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["MemorySize"].isNull()) + typesObject.memorySize = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["MemorySize"].asString()); + if(!valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["EniQuantity"].isNull()) + typesObject.eniQuantity = std::stoi(valueInstanceTypeFamiliesInstanceTypeFamilyInfoTypesTypesInfo["EniQuantity"].asString()); + auto allZoneIds = value["ZoneIds"]["ZoneId"]; + for (auto value : allZoneIds) + typesObject.zoneIds.push_back(value.asString()); + instanceTypeFamiliesObject.types.push_back(typesObject); + } + instanceTypeFamilies_.push_back(instanceTypeFamiliesObject); + } + if(!value["SupportSpotInstance"].isNull()) + supportSpotInstance_ = value["SupportSpotInstance"].asString() == "true"; + +} + +bool ListAvailableEcsTypesResult::getSupportSpotInstance()const +{ + return supportSpotInstance_; +} + +std::vector ListAvailableEcsTypesResult::getInstanceTypeFamilies()const +{ + return instanceTypeFamilies_; +} + diff --git a/ehpc/src/model/ListCloudMetricProfilingsRequest.cc b/ehpc/src/model/ListCloudMetricProfilingsRequest.cc new file mode 100644 index 000000000..2e4c97d00 --- /dev/null +++ b/ehpc/src/model/ListCloudMetricProfilingsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListCloudMetricProfilingsRequest; + +ListCloudMetricProfilingsRequest::ListCloudMetricProfilingsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListCloudMetricProfilings") { + setMethod(HttpRequest::Method::Get); +} + +ListCloudMetricProfilingsRequest::~ListCloudMetricProfilingsRequest() {} + +std::string ListCloudMetricProfilingsRequest::getClusterId() const { + return clusterId_; +} + +void ListCloudMetricProfilingsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListCloudMetricProfilingsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCloudMetricProfilingsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListCloudMetricProfilingsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCloudMetricProfilingsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListCloudMetricProfilingsRequest::getRegionId() const { + return regionId_; +} + +void ListCloudMetricProfilingsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int ListCloudMetricProfilingsRequest::getPageSize() const { + return pageSize_; +} + +void ListCloudMetricProfilingsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListCloudMetricProfilingsResult.cc b/ehpc/src/model/ListCloudMetricProfilingsResult.cc new file mode 100644 index 000000000..2b9b24152 --- /dev/null +++ b/ehpc/src/model/ListCloudMetricProfilingsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListCloudMetricProfilingsResult::ListCloudMetricProfilingsResult() : + ServiceResult() +{} + +ListCloudMetricProfilingsResult::ListCloudMetricProfilingsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCloudMetricProfilingsResult::~ListCloudMetricProfilingsResult() +{} + +void ListCloudMetricProfilingsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProfilingsNode = value["Profilings"]["ProfilingInfo"]; + for (auto valueProfilingsProfilingInfo : allProfilingsNode) + { + ProfilingInfo profilingsObject; + if(!valueProfilingsProfilingInfo["ProfilingId"].isNull()) + profilingsObject.profilingId = valueProfilingsProfilingInfo["ProfilingId"].asString(); + if(!valueProfilingsProfilingInfo["TriggerTime"].isNull()) + profilingsObject.triggerTime = valueProfilingsProfilingInfo["TriggerTime"].asString(); + if(!valueProfilingsProfilingInfo["Pid"].isNull()) + profilingsObject.pid = std::stoi(valueProfilingsProfilingInfo["Pid"].asString()); + if(!valueProfilingsProfilingInfo["HostName"].isNull()) + profilingsObject.hostName = valueProfilingsProfilingInfo["HostName"].asString(); + if(!valueProfilingsProfilingInfo["Duration"].isNull()) + profilingsObject.duration = std::stoi(valueProfilingsProfilingInfo["Duration"].asString()); + if(!valueProfilingsProfilingInfo["InstanceId"].isNull()) + profilingsObject.instanceId = valueProfilingsProfilingInfo["InstanceId"].asString(); + if(!valueProfilingsProfilingInfo["Freq"].isNull()) + profilingsObject.freq = std::stoi(valueProfilingsProfilingInfo["Freq"].asString()); + profilings_.push_back(profilingsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListCloudMetricProfilingsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListCloudMetricProfilingsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCloudMetricProfilingsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListCloudMetricProfilingsResult::getProfilings()const +{ + return profilings_; +} + diff --git a/ehpc/src/model/ListClusterLogsRequest.cc b/ehpc/src/model/ListClusterLogsRequest.cc index a5a52057d..3426eefea 100644 --- a/ehpc/src/model/ListClusterLogsRequest.cc +++ b/ehpc/src/model/ListClusterLogsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListClusterLogsRequest; ListClusterLogsRequest::ListClusterLogsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListClusterLogs") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListClusterLogs") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListClustersMetaRequest.cc b/ehpc/src/model/ListClustersMetaRequest.cc new file mode 100644 index 000000000..0ea686af9 --- /dev/null +++ b/ehpc/src/model/ListClustersMetaRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListClustersMetaRequest; + +ListClustersMetaRequest::ListClustersMetaRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListClustersMeta") { + setMethod(HttpRequest::Method::Get); +} + +ListClustersMetaRequest::~ListClustersMetaRequest() {} + +int ListClustersMetaRequest::getPageNumber() const { + return pageNumber_; +} + +void ListClustersMetaRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListClustersMetaRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListClustersMetaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListClustersMetaRequest::getPageSize() const { + return pageSize_; +} + +void ListClustersMetaRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListClustersMetaResult.cc b/ehpc/src/model/ListClustersMetaResult.cc new file mode 100644 index 000000000..fa126565b --- /dev/null +++ b/ehpc/src/model/ListClustersMetaResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListClustersMetaResult::ListClustersMetaResult() : + ServiceResult() +{} + +ListClustersMetaResult::ListClustersMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListClustersMetaResult::~ListClustersMetaResult() +{} + +void ListClustersMetaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allClustersNode = value["Clusters"]["ClusterInfoSimple"]; + for (auto valueClustersClusterInfoSimple : allClustersNode) + { + ClusterInfoSimple clustersObject; + if(!valueClustersClusterInfoSimple["Status"].isNull()) + clustersObject.status = valueClustersClusterInfoSimple["Status"].asString(); + if(!valueClustersClusterInfoSimple["VpcId"].isNull()) + clustersObject.vpcId = valueClustersClusterInfoSimple["VpcId"].asString(); + if(!valueClustersClusterInfoSimple["SchedulerType"].isNull()) + clustersObject.schedulerType = valueClustersClusterInfoSimple["SchedulerType"].asString(); + if(!valueClustersClusterInfoSimple["DeployMode"].isNull()) + clustersObject.deployMode = valueClustersClusterInfoSimple["DeployMode"].asString(); + if(!valueClustersClusterInfoSimple["IsComputeEss"].isNull()) + clustersObject.isComputeEss = valueClustersClusterInfoSimple["IsComputeEss"].asString() == "true"; + if(!valueClustersClusterInfoSimple["OsTag"].isNull()) + clustersObject.osTag = valueClustersClusterInfoSimple["OsTag"].asString(); + if(!valueClustersClusterInfoSimple["AccountType"].isNull()) + clustersObject.accountType = valueClustersClusterInfoSimple["AccountType"].asString(); + if(!valueClustersClusterInfoSimple["Description"].isNull()) + clustersObject.description = valueClustersClusterInfoSimple["Description"].asString(); + if(!valueClustersClusterInfoSimple["Name"].isNull()) + clustersObject.name = valueClustersClusterInfoSimple["Name"].asString(); + if(!valueClustersClusterInfoSimple["Id"].isNull()) + clustersObject.id = valueClustersClusterInfoSimple["Id"].asString(); + if(!valueClustersClusterInfoSimple["Location"].isNull()) + clustersObject.location = valueClustersClusterInfoSimple["Location"].asString(); + if(!valueClustersClusterInfoSimple["ClientVersion"].isNull()) + clustersObject.clientVersion = valueClustersClusterInfoSimple["ClientVersion"].asString(); + if(!valueClustersClusterInfoSimple["HasPlugin"].isNull()) + clustersObject.hasPlugin = valueClustersClusterInfoSimple["HasPlugin"].asString() == "true"; + clusters_.push_back(clustersObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListClustersMetaResult::getTotalCount()const +{ + return totalCount_; +} + +int ListClustersMetaResult::getPageSize()const +{ + return pageSize_; +} + +int ListClustersMetaResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListClustersMetaResult::getClusters()const +{ + return clusters_; +} + diff --git a/ehpc/src/model/ListClustersRequest.cc b/ehpc/src/model/ListClustersRequest.cc index 78c60b95e..34df3528b 100644 --- a/ehpc/src/model/ListClustersRequest.cc +++ b/ehpc/src/model/ListClustersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListClustersRequest; ListClustersRequest::ListClustersRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListClusters") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListClusters") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListClustersResult.cc b/ehpc/src/model/ListClustersResult.cc index 4a2078fd3..160f64c3d 100644 --- a/ehpc/src/model/ListClustersResult.cc +++ b/ehpc/src/model/ListClustersResult.cc @@ -43,46 +43,82 @@ void ListClustersResult::parse(const std::string &payload) for (auto valueClustersClusterInfoSimple : allClustersNode) { ClusterInfoSimple clustersObject; + if(!valueClustersClusterInfoSimple["VpcId"].isNull()) + clustersObject.vpcId = valueClustersClusterInfoSimple["VpcId"].asString(); if(!valueClustersClusterInfoSimple["Status"].isNull()) clustersObject.status = valueClustersClusterInfoSimple["Status"].asString(); - if(!valueClustersClusterInfoSimple["SchedulerType"].isNull()) - clustersObject.schedulerType = valueClustersClusterInfoSimple["SchedulerType"].asString(); if(!valueClustersClusterInfoSimple["CreateTime"].isNull()) clustersObject.createTime = valueClustersClusterInfoSimple["CreateTime"].asString(); - if(!valueClustersClusterInfoSimple["ImageOwnerAlias"].isNull()) - clustersObject.imageOwnerAlias = valueClustersClusterInfoSimple["ImageOwnerAlias"].asString(); - if(!valueClustersClusterInfoSimple["OsTag"].isNull()) - clustersObject.osTag = valueClustersClusterInfoSimple["OsTag"].asString(); - if(!valueClustersClusterInfoSimple["InstanceType"].isNull()) - clustersObject.instanceType = valueClustersClusterInfoSimple["InstanceType"].asString(); + if(!valueClustersClusterInfoSimple["IsComputeEss"].isNull()) + clustersObject.isComputeEss = valueClustersClusterInfoSimple["IsComputeEss"].asString() == "true"; + if(!valueClustersClusterInfoSimple["ComputeSpotStrategy"].isNull()) + clustersObject.computeSpotStrategy = valueClustersClusterInfoSimple["ComputeSpotStrategy"].asString(); if(!valueClustersClusterInfoSimple["AccountType"].isNull()) clustersObject.accountType = valueClustersClusterInfoSimple["AccountType"].asString(); if(!valueClustersClusterInfoSimple["Count"].isNull()) clustersObject.count = std::stoi(valueClustersClusterInfoSimple["Count"].asString()); - if(!valueClustersClusterInfoSimple["RegionId"].isNull()) - clustersObject.regionId = valueClustersClusterInfoSimple["RegionId"].asString(); + if(!valueClustersClusterInfoSimple["EhpcVersion"].isNull()) + clustersObject.ehpcVersion = valueClustersClusterInfoSimple["EhpcVersion"].asString(); if(!valueClustersClusterInfoSimple["Description"].isNull()) clustersObject.description = valueClustersClusterInfoSimple["Description"].asString(); - if(!valueClustersClusterInfoSimple["ZoneId"].isNull()) - clustersObject.zoneId = valueClustersClusterInfoSimple["ZoneId"].asString(); - if(!valueClustersClusterInfoSimple["LoginNodes"].isNull()) - clustersObject.loginNodes = valueClustersClusterInfoSimple["LoginNodes"].asString(); + if(!valueClustersClusterInfoSimple["BaseOsTag"].isNull()) + clustersObject.baseOsTag = valueClustersClusterInfoSimple["BaseOsTag"].asString(); if(!valueClustersClusterInfoSimple["Name"].isNull()) clustersObject.name = valueClustersClusterInfoSimple["Name"].asString(); if(!valueClustersClusterInfoSimple["ImageId"].isNull()) clustersObject.imageId = valueClustersClusterInfoSimple["ImageId"].asString(); + if(!valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].isNull()) + clustersObject.computeSpotPriceLimit = std::stof(valueClustersClusterInfoSimple["ComputeSpotPriceLimit"].asString()); + if(!valueClustersClusterInfoSimple["SchedulerType"].isNull()) + clustersObject.schedulerType = valueClustersClusterInfoSimple["SchedulerType"].asString(); + if(!valueClustersClusterInfoSimple["DeployMode"].isNull()) + clustersObject.deployMode = valueClustersClusterInfoSimple["DeployMode"].asString(); + if(!valueClustersClusterInfoSimple["NodeSuffix"].isNull()) + clustersObject.nodeSuffix = valueClustersClusterInfoSimple["NodeSuffix"].asString(); + if(!valueClustersClusterInfoSimple["ImageOwnerAlias"].isNull()) + clustersObject.imageOwnerAlias = valueClustersClusterInfoSimple["ImageOwnerAlias"].asString(); + if(!valueClustersClusterInfoSimple["OsTag"].isNull()) + clustersObject.osTag = valueClustersClusterInfoSimple["OsTag"].asString(); + if(!valueClustersClusterInfoSimple["NodePrefix"].isNull()) + clustersObject.nodePrefix = valueClustersClusterInfoSimple["NodePrefix"].asString(); + if(!valueClustersClusterInfoSimple["InstanceType"].isNull()) + clustersObject.instanceType = valueClustersClusterInfoSimple["InstanceType"].asString(); + if(!valueClustersClusterInfoSimple["RegionId"].isNull()) + clustersObject.regionId = valueClustersClusterInfoSimple["RegionId"].asString(); + if(!valueClustersClusterInfoSimple["InstanceChargeType"].isNull()) + clustersObject.instanceChargeType = valueClustersClusterInfoSimple["InstanceChargeType"].asString(); + if(!valueClustersClusterInfoSimple["VSwitchId"].isNull()) + clustersObject.vSwitchId = valueClustersClusterInfoSimple["VSwitchId"].asString(); + if(!valueClustersClusterInfoSimple["ZoneId"].isNull()) + clustersObject.zoneId = valueClustersClusterInfoSimple["ZoneId"].asString(); + if(!valueClustersClusterInfoSimple["LoginNodes"].isNull()) + clustersObject.loginNodes = valueClustersClusterInfoSimple["LoginNodes"].asString(); if(!valueClustersClusterInfoSimple["Id"].isNull()) clustersObject.id = valueClustersClusterInfoSimple["Id"].asString(); + if(!valueClustersClusterInfoSimple["Location"].isNull()) + clustersObject.location = valueClustersClusterInfoSimple["Location"].asString(); + if(!valueClustersClusterInfoSimple["ClientVersion"].isNull()) + clustersObject.clientVersion = valueClustersClusterInfoSimple["ClientVersion"].asString(); + if(!valueClustersClusterInfoSimple["HasPlugin"].isNull()) + clustersObject.hasPlugin = valueClustersClusterInfoSimple["HasPlugin"].asString() == "true"; auto managersNode = value["Managers"]; + if(!managersNode["OperatingCount"].isNull()) + clustersObject.managers.operatingCount = std::stoi(managersNode["OperatingCount"].asString()); if(!managersNode["ExceptionCount"].isNull()) clustersObject.managers.exceptionCount = std::stoi(managersNode["ExceptionCount"].asString()); + if(!managersNode["StoppedCount"].isNull()) + clustersObject.managers.stoppedCount = std::stoi(managersNode["StoppedCount"].asString()); if(!managersNode["Total"].isNull()) clustersObject.managers.total = std::stoi(managersNode["Total"].asString()); if(!managersNode["NormalCount"].isNull()) clustersObject.managers.normalCount = std::stoi(managersNode["NormalCount"].asString()); auto computesNode = value["Computes"]; + if(!computesNode["OperatingCount"].isNull()) + clustersObject.computes.operatingCount = std::stoi(computesNode["OperatingCount"].asString()); if(!computesNode["ExceptionCount"].isNull()) clustersObject.computes.exceptionCount = std::stoi(computesNode["ExceptionCount"].asString()); + if(!computesNode["StoppedCount"].isNull()) + clustersObject.computes.stoppedCount = std::stoi(computesNode["StoppedCount"].asString()); if(!computesNode["Total"].isNull()) clustersObject.computes.total = std::stoi(computesNode["Total"].asString()); if(!computesNode["NormalCount"].isNull()) diff --git a/ehpc/src/model/ListCommandsRequest.cc b/ehpc/src/model/ListCommandsRequest.cc new file mode 100644 index 000000000..7b463fab6 --- /dev/null +++ b/ehpc/src/model/ListCommandsRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListCommandsRequest; + +ListCommandsRequest::ListCommandsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListCommands") { + setMethod(HttpRequest::Method::Get); +} + +ListCommandsRequest::~ListCommandsRequest() {} + +std::string ListCommandsRequest::getClusterId() const { + return clusterId_; +} + +void ListCommandsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListCommandsRequest::getCommandId() const { + return commandId_; +} + +void ListCommandsRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); +} + +int ListCommandsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCommandsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListCommandsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCommandsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListCommandsRequest::getPageSize() const { + return pageSize_; +} + +void ListCommandsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListCommandsResult.cc b/ehpc/src/model/ListCommandsResult.cc new file mode 100644 index 000000000..37192bc03 --- /dev/null +++ b/ehpc/src/model/ListCommandsResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListCommandsResult::ListCommandsResult() : + ServiceResult() +{} + +ListCommandsResult::ListCommandsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCommandsResult::~ListCommandsResult() +{} + +void ListCommandsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCommandsNode = value["Commands"]["Command"]; + for (auto valueCommandsCommand : allCommandsNode) + { + Command commandsObject; + if(!valueCommandsCommand["Timeout"].isNull()) + commandsObject.timeout = valueCommandsCommand["Timeout"].asString(); + if(!valueCommandsCommand["CommandId"].isNull()) + commandsObject.commandId = valueCommandsCommand["CommandId"].asString(); + if(!valueCommandsCommand["WorkingDir"].isNull()) + commandsObject.workingDir = valueCommandsCommand["WorkingDir"].asString(); + if(!valueCommandsCommand["CommandContent"].isNull()) + commandsObject.commandContent = valueCommandsCommand["CommandContent"].asString(); + commands_.push_back(commandsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListCommandsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListCommandsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCommandsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListCommandsResult::getCommands()const +{ + return commands_; +} + diff --git a/ehpc/src/model/ListCommunityImagesRequest.cc b/ehpc/src/model/ListCommunityImagesRequest.cc new file mode 100644 index 000000000..2983e7e9d --- /dev/null +++ b/ehpc/src/model/ListCommunityImagesRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::ListCommunityImagesRequest; + +ListCommunityImagesRequest::ListCommunityImagesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListCommunityImages") { + setMethod(HttpRequest::Method::Get); +} + +ListCommunityImagesRequest::~ListCommunityImagesRequest() {} + +std::string ListCommunityImagesRequest::getClusterId() const { + return clusterId_; +} + +void ListCommunityImagesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListCommunityImagesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCommunityImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListCommunityImagesRequest::getBaseOsTag() const { + return baseOsTag_; +} + +void ListCommunityImagesRequest::setBaseOsTag(const std::string &baseOsTag) { + baseOsTag_ = baseOsTag; + setParameter(std::string("BaseOsTag"), baseOsTag); +} + +std::string ListCommunityImagesRequest::getInstanceType() const { + return instanceType_; +} + +void ListCommunityImagesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + diff --git a/ehpc/src/model/ListCommunityImagesResult.cc b/ehpc/src/model/ListCommunityImagesResult.cc new file mode 100644 index 000000000..448908f5d --- /dev/null +++ b/ehpc/src/model/ListCommunityImagesResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListCommunityImagesResult::ListCommunityImagesResult() : + ServiceResult() +{} + +ListCommunityImagesResult::ListCommunityImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCommunityImagesResult::~ListCommunityImagesResult() +{} + +void ListCommunityImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["ImageInfo"]; + for (auto valueImagesImageInfo : allImagesNode) + { + ImageInfo imagesObject; + if(!valueImagesImageInfo["Status"].isNull()) + imagesObject.status = valueImagesImageInfo["Status"].asString(); + if(!valueImagesImageInfo["PostInstallScript"].isNull()) + imagesObject.postInstallScript = valueImagesImageInfo["PostInstallScript"].asString(); + if(!valueImagesImageInfo["Description"].isNull()) + imagesObject.description = valueImagesImageInfo["Description"].asString(); + if(!valueImagesImageInfo["Size"].isNull()) + imagesObject.size = std::stoi(valueImagesImageInfo["Size"].asString()); + if(!valueImagesImageInfo["ImageOwnerAlias"].isNull()) + imagesObject.imageOwnerAlias = valueImagesImageInfo["ImageOwnerAlias"].asString(); + if(!valueImagesImageInfo["ImageName"].isNull()) + imagesObject.imageName = valueImagesImageInfo["ImageName"].asString(); + if(!valueImagesImageInfo["SkuCode"].isNull()) + imagesObject.skuCode = valueImagesImageInfo["SkuCode"].asString(); + if(!valueImagesImageInfo["PricingCycle"].isNull()) + imagesObject.pricingCycle = valueImagesImageInfo["PricingCycle"].asString(); + if(!valueImagesImageInfo["ImageId"].isNull()) + imagesObject.imageId = valueImagesImageInfo["ImageId"].asString(); + if(!valueImagesImageInfo["ProductCode"].isNull()) + imagesObject.productCode = valueImagesImageInfo["ProductCode"].asString(); + if(!valueImagesImageInfo["Uid"].isNull()) + imagesObject.uid = valueImagesImageInfo["Uid"].asString(); + auto baseOsTagNode = value["BaseOsTag"]; + if(!baseOsTagNode["Platform"].isNull()) + imagesObject.baseOsTag.platform = baseOsTagNode["Platform"].asString(); + if(!baseOsTagNode["OsTag"].isNull()) + imagesObject.baseOsTag.osTag = baseOsTagNode["OsTag"].asString(); + if(!baseOsTagNode["Version"].isNull()) + imagesObject.baseOsTag.version = baseOsTagNode["Version"].asString(); + if(!baseOsTagNode["Architecture"].isNull()) + imagesObject.baseOsTag.architecture = baseOsTagNode["Architecture"].asString(); + auto osTagNode = value["OsTag"]; + if(!osTagNode["Platform"].isNull()) + imagesObject.osTag.platform = osTagNode["Platform"].asString(); + if(!osTagNode["OsTag"].isNull()) + imagesObject.osTag.osTag = osTagNode["OsTag"].asString(); + if(!osTagNode["Version"].isNull()) + imagesObject.osTag.version = osTagNode["Version"].asString(); + if(!osTagNode["Architecture"].isNull()) + imagesObject.osTag.architecture = osTagNode["Architecture"].asString(); + if(!osTagNode["BaseOsTag"].isNull()) + imagesObject.osTag.baseOsTag = osTagNode["BaseOsTag"].asString(); + images_.push_back(imagesObject); + } + +} + +std::vector ListCommunityImagesResult::getImages()const +{ + return images_; +} + diff --git a/ehpc/src/model/ListContainerAppsRequest.cc b/ehpc/src/model/ListContainerAppsRequest.cc new file mode 100644 index 000000000..284d58f5e --- /dev/null +++ b/ehpc/src/model/ListContainerAppsRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListContainerAppsRequest; + +ListContainerAppsRequest::ListContainerAppsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListContainerApps") { + setMethod(HttpRequest::Method::Get); +} + +ListContainerAppsRequest::~ListContainerAppsRequest() {} + +int ListContainerAppsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListContainerAppsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListContainerAppsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListContainerAppsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListContainerAppsRequest::getPageSize() const { + return pageSize_; +} + +void ListContainerAppsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListContainerAppsResult.cc b/ehpc/src/model/ListContainerAppsResult.cc new file mode 100644 index 000000000..e95bafee1 --- /dev/null +++ b/ehpc/src/model/ListContainerAppsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListContainerAppsResult::ListContainerAppsResult() : + ServiceResult() +{} + +ListContainerAppsResult::ListContainerAppsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListContainerAppsResult::~ListContainerAppsResult() +{} + +void ListContainerAppsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allContainerAppsNode = value["ContainerApps"]["ContainerAppsItem"]; + for (auto valueContainerAppsContainerAppsItem : allContainerAppsNode) + { + ContainerAppsItem containerAppsObject; + if(!valueContainerAppsContainerAppsItem["Type"].isNull()) + containerAppsObject.type = valueContainerAppsContainerAppsItem["Type"].asString(); + if(!valueContainerAppsContainerAppsItem["Description"].isNull()) + containerAppsObject.description = valueContainerAppsContainerAppsItem["Description"].asString(); + if(!valueContainerAppsContainerAppsItem["CreateTime"].isNull()) + containerAppsObject.createTime = valueContainerAppsContainerAppsItem["CreateTime"].asString(); + if(!valueContainerAppsContainerAppsItem["Repository"].isNull()) + containerAppsObject.repository = valueContainerAppsContainerAppsItem["Repository"].asString(); + if(!valueContainerAppsContainerAppsItem["ImageTag"].isNull()) + containerAppsObject.imageTag = valueContainerAppsContainerAppsItem["ImageTag"].asString(); + if(!valueContainerAppsContainerAppsItem["Name"].isNull()) + containerAppsObject.name = valueContainerAppsContainerAppsItem["Name"].asString(); + if(!valueContainerAppsContainerAppsItem["Id"].isNull()) + containerAppsObject.id = valueContainerAppsContainerAppsItem["Id"].asString(); + containerApps_.push_back(containerAppsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListContainerAppsResult::getContainerApps()const +{ + return containerApps_; +} + +int ListContainerAppsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListContainerAppsResult::getPageSize()const +{ + return pageSize_; +} + +int ListContainerAppsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ehpc/src/model/ListContainerImagesRequest.cc b/ehpc/src/model/ListContainerImagesRequest.cc new file mode 100644 index 000000000..0206d53b3 --- /dev/null +++ b/ehpc/src/model/ListContainerImagesRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListContainerImagesRequest; + +ListContainerImagesRequest::ListContainerImagesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListContainerImages") { + setMethod(HttpRequest::Method::Get); +} + +ListContainerImagesRequest::~ListContainerImagesRequest() {} + +std::string ListContainerImagesRequest::getClusterId() const { + return clusterId_; +} + +void ListContainerImagesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListContainerImagesRequest::getPageNumber() const { + return pageNumber_; +} + +void ListContainerImagesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListContainerImagesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListContainerImagesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListContainerImagesRequest::getContainerType() const { + return containerType_; +} + +void ListContainerImagesRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +int ListContainerImagesRequest::getPageSize() const { + return pageSize_; +} + +void ListContainerImagesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListContainerImagesResult.cc b/ehpc/src/model/ListContainerImagesResult.cc new file mode 100644 index 000000000..678c5a42c --- /dev/null +++ b/ehpc/src/model/ListContainerImagesResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListContainerImagesResult::ListContainerImagesResult() : + ServiceResult() +{} + +ListContainerImagesResult::ListContainerImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListContainerImagesResult::~ListContainerImagesResult() +{} + +void ListContainerImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImagesNode = value["Images"]["ImagesItem"]; + for (auto valueImagesImagesItem : allImagesNode) + { + ImagesItem imagesObject; + if(!valueImagesImagesItem["Type"].isNull()) + imagesObject.type = valueImagesImagesItem["Type"].asString(); + if(!valueImagesImagesItem["Status"].isNull()) + imagesObject.status = valueImagesImagesItem["Status"].asString(); + if(!valueImagesImagesItem["UpdateDateTime"].isNull()) + imagesObject.updateDateTime = valueImagesImagesItem["UpdateDateTime"].asString(); + if(!valueImagesImagesItem["Repository"].isNull()) + imagesObject.repository = valueImagesImagesItem["Repository"].asString(); + if(!valueImagesImagesItem["Tag"].isNull()) + imagesObject.tag = valueImagesImagesItem["Tag"].asString(); + if(!valueImagesImagesItem["System"].isNull()) + imagesObject.system = valueImagesImagesItem["System"].asString(); + if(!valueImagesImagesItem["ImageId"].isNull()) + imagesObject.imageId = valueImagesImagesItem["ImageId"].asString(); + images_.push_back(imagesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["DBInfo"].isNull()) + dBInfo_ = value["DBInfo"].asString(); + +} + +int ListContainerImagesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListContainerImagesResult::getDBInfo()const +{ + return dBInfo_; +} + +int ListContainerImagesResult::getPageSize()const +{ + return pageSize_; +} + +int ListContainerImagesResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListContainerImagesResult::getImages()const +{ + return images_; +} + diff --git a/ehpc/src/model/ListCpfsFileSystemsRequest.cc b/ehpc/src/model/ListCpfsFileSystemsRequest.cc new file mode 100644 index 000000000..490a47aac --- /dev/null +++ b/ehpc/src/model/ListCpfsFileSystemsRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::ListCpfsFileSystemsRequest; + +ListCpfsFileSystemsRequest::ListCpfsFileSystemsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListCpfsFileSystems") { + setMethod(HttpRequest::Method::Get); +} + +ListCpfsFileSystemsRequest::~ListCpfsFileSystemsRequest() {} + +int ListCpfsFileSystemsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListCpfsFileSystemsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListCpfsFileSystemsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCpfsFileSystemsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListCpfsFileSystemsRequest::getPageSize() const { + return pageSize_; +} + +void ListCpfsFileSystemsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListCpfsFileSystemsRequest::getFileSystemId() const { + return fileSystemId_; +} + +void ListCpfsFileSystemsRequest::setFileSystemId(const std::string &fileSystemId) { + fileSystemId_ = fileSystemId; + setParameter(std::string("FileSystemId"), fileSystemId); +} + diff --git a/ehpc/src/model/ListCpfsFileSystemsResult.cc b/ehpc/src/model/ListCpfsFileSystemsResult.cc new file mode 100644 index 000000000..d475311ae --- /dev/null +++ b/ehpc/src/model/ListCpfsFileSystemsResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListCpfsFileSystemsResult::ListCpfsFileSystemsResult() : + ServiceResult() +{} + +ListCpfsFileSystemsResult::ListCpfsFileSystemsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCpfsFileSystemsResult::~ListCpfsFileSystemsResult() +{} + +void ListCpfsFileSystemsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFileSystemListNode = value["FileSystemList"]["FileSystems"]; + for (auto valueFileSystemListFileSystems : allFileSystemListNode) + { + FileSystems fileSystemListObject; + if(!valueFileSystemListFileSystems["FileSystemId"].isNull()) + fileSystemListObject.fileSystemId = valueFileSystemListFileSystems["FileSystemId"].asString(); + if(!valueFileSystemListFileSystems["Capacity"].isNull()) + fileSystemListObject.capacity = valueFileSystemListFileSystems["Capacity"].asString(); + if(!valueFileSystemListFileSystems["CreateTime"].isNull()) + fileSystemListObject.createTime = valueFileSystemListFileSystems["CreateTime"].asString(); + if(!valueFileSystemListFileSystems["ZoneId"].isNull()) + fileSystemListObject.zoneId = valueFileSystemListFileSystems["ZoneId"].asString(); + if(!valueFileSystemListFileSystems["ProtocolType"].isNull()) + fileSystemListObject.protocolType = valueFileSystemListFileSystems["ProtocolType"].asString(); + if(!valueFileSystemListFileSystems["Destription"].isNull()) + fileSystemListObject.destription = valueFileSystemListFileSystems["Destription"].asString(); + if(!valueFileSystemListFileSystems["RegionId"].isNull()) + fileSystemListObject.regionId = valueFileSystemListFileSystems["RegionId"].asString(); + auto allMountTargetListNode = valueFileSystemListFileSystems["MountTargetList"]["MountTargets"]; + for (auto valueFileSystemListFileSystemsMountTargetListMountTargets : allMountTargetListNode) + { + FileSystems::MountTargets mountTargetListObject; + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].isNull()) + mountTargetListObject.vpcId = valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].isNull()) + mountTargetListObject.status = valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].isNull()) + mountTargetListObject.vswId = valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].isNull()) + mountTargetListObject.networkType = valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].isNull()) + mountTargetListObject.mountTargetDomain = valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].asString(); + fileSystemListObject.mountTargetList.push_back(mountTargetListObject); + } + fileSystemList_.push_back(fileSystemListObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListCpfsFileSystemsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListCpfsFileSystemsResult::getPageSize()const +{ + return pageSize_; +} + +int ListCpfsFileSystemsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListCpfsFileSystemsResult::getFileSystemList()const +{ + return fileSystemList_; +} + diff --git a/ehpc/src/model/ListCurrentClientVersionRequest.cc b/ehpc/src/model/ListCurrentClientVersionRequest.cc index e2704cfe8..d4ee9af1e 100644 --- a/ehpc/src/model/ListCurrentClientVersionRequest.cc +++ b/ehpc/src/model/ListCurrentClientVersionRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListCurrentClientVersionRequest; ListCurrentClientVersionRequest::ListCurrentClientVersionRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListCurrentClientVersion") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListCurrentClientVersion") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListCustomImagesRequest.cc b/ehpc/src/model/ListCustomImagesRequest.cc index 912fa108b..39364844b 100644 --- a/ehpc/src/model/ListCustomImagesRequest.cc +++ b/ehpc/src/model/ListCustomImagesRequest.cc @@ -19,12 +19,21 @@ using AlibabaCloud::EHPC::Model::ListCustomImagesRequest; ListCustomImagesRequest::ListCustomImagesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListCustomImages") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListCustomImages") { setMethod(HttpRequest::Method::Get); } ListCustomImagesRequest::~ListCustomImagesRequest() {} +std::string ListCustomImagesRequest::getClusterId() const { + return clusterId_; +} + +void ListCustomImagesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + std::string ListCustomImagesRequest::getAccessKeyId() const { return accessKeyId_; } @@ -43,15 +52,6 @@ void ListCustomImagesRequest::setImageOwnerAlias(const std::string &imageOwnerAl setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); } -std::string ListCustomImagesRequest::getRegionId() const { - return regionId_; -} - -void ListCustomImagesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string ListCustomImagesRequest::getBaseOsTag() const { return baseOsTag_; } @@ -61,3 +61,12 @@ void ListCustomImagesRequest::setBaseOsTag(const std::string &baseOsTag) { setParameter(std::string("BaseOsTag"), baseOsTag); } +std::string ListCustomImagesRequest::getInstanceType() const { + return instanceType_; +} + +void ListCustomImagesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + diff --git a/ehpc/src/model/ListCustomImagesResult.cc b/ehpc/src/model/ListCustomImagesResult.cc index 5e77f02c4..8b0d01817 100644 --- a/ehpc/src/model/ListCustomImagesResult.cc +++ b/ehpc/src/model/ListCustomImagesResult.cc @@ -43,14 +43,28 @@ void ListCustomImagesResult::parse(const std::string &payload) for (auto valueImagesImageInfo : allImagesNode) { ImageInfo imagesObject; - if(!valueImagesImageInfo["ImageName"].isNull()) - imagesObject.imageName = valueImagesImageInfo["ImageName"].asString(); - if(!valueImagesImageInfo["ImageOwnerAlias"].isNull()) - imagesObject.imageOwnerAlias = valueImagesImageInfo["ImageOwnerAlias"].asString(); + if(!valueImagesImageInfo["Status"].isNull()) + imagesObject.status = valueImagesImageInfo["Status"].asString(); + if(!valueImagesImageInfo["PostInstallScript"].isNull()) + imagesObject.postInstallScript = valueImagesImageInfo["PostInstallScript"].asString(); if(!valueImagesImageInfo["Description"].isNull()) imagesObject.description = valueImagesImageInfo["Description"].asString(); + if(!valueImagesImageInfo["Size"].isNull()) + imagesObject.size = std::stoi(valueImagesImageInfo["Size"].asString()); + if(!valueImagesImageInfo["ImageOwnerAlias"].isNull()) + imagesObject.imageOwnerAlias = valueImagesImageInfo["ImageOwnerAlias"].asString(); + if(!valueImagesImageInfo["ImageName"].isNull()) + imagesObject.imageName = valueImagesImageInfo["ImageName"].asString(); + if(!valueImagesImageInfo["SkuCode"].isNull()) + imagesObject.skuCode = valueImagesImageInfo["SkuCode"].asString(); + if(!valueImagesImageInfo["PricingCycle"].isNull()) + imagesObject.pricingCycle = valueImagesImageInfo["PricingCycle"].asString(); if(!valueImagesImageInfo["ImageId"].isNull()) imagesObject.imageId = valueImagesImageInfo["ImageId"].asString(); + if(!valueImagesImageInfo["ProductCode"].isNull()) + imagesObject.productCode = valueImagesImageInfo["ProductCode"].asString(); + if(!valueImagesImageInfo["Uid"].isNull()) + imagesObject.uid = valueImagesImageInfo["Uid"].asString(); auto baseOsTagNode = value["BaseOsTag"]; if(!baseOsTagNode["Platform"].isNull()) imagesObject.baseOsTag.platform = baseOsTagNode["Platform"].asString(); @@ -60,6 +74,17 @@ void ListCustomImagesResult::parse(const std::string &payload) imagesObject.baseOsTag.version = baseOsTagNode["Version"].asString(); if(!baseOsTagNode["Architecture"].isNull()) imagesObject.baseOsTag.architecture = baseOsTagNode["Architecture"].asString(); + auto osTagNode = value["OsTag"]; + if(!osTagNode["Platform"].isNull()) + imagesObject.osTag.platform = osTagNode["Platform"].asString(); + if(!osTagNode["OsTag"].isNull()) + imagesObject.osTag.osTag = osTagNode["OsTag"].asString(); + if(!osTagNode["Version"].isNull()) + imagesObject.osTag.version = osTagNode["Version"].asString(); + if(!osTagNode["Architecture"].isNull()) + imagesObject.osTag.architecture = osTagNode["Architecture"].asString(); + if(!osTagNode["BaseOsTag"].isNull()) + imagesObject.osTag.baseOsTag = osTagNode["BaseOsTag"].asString(); images_.push_back(imagesObject); } diff --git a/ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc b/ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc new file mode 100644 index 000000000..cd86d8d55 --- /dev/null +++ b/ehpc/src/model/ListFileSystemWithMountTargetsRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListFileSystemWithMountTargetsRequest; + +ListFileSystemWithMountTargetsRequest::ListFileSystemWithMountTargetsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListFileSystemWithMountTargets") { + setMethod(HttpRequest::Method::Get); +} + +ListFileSystemWithMountTargetsRequest::~ListFileSystemWithMountTargetsRequest() {} + +int ListFileSystemWithMountTargetsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListFileSystemWithMountTargetsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListFileSystemWithMountTargetsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListFileSystemWithMountTargetsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListFileSystemWithMountTargetsRequest::getPageSize() const { + return pageSize_; +} + +void ListFileSystemWithMountTargetsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc b/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc new file mode 100644 index 000000000..692bff1a2 --- /dev/null +++ b/ehpc/src/model/ListFileSystemWithMountTargetsResult.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListFileSystemWithMountTargetsResult::ListFileSystemWithMountTargetsResult() : + ServiceResult() +{} + +ListFileSystemWithMountTargetsResult::ListFileSystemWithMountTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFileSystemWithMountTargetsResult::~ListFileSystemWithMountTargetsResult() +{} + +void ListFileSystemWithMountTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFileSystemListNode = value["FileSystemList"]["FileSystems"]; + for (auto valueFileSystemListFileSystems : allFileSystemListNode) + { + FileSystems fileSystemListObject; + if(!valueFileSystemListFileSystems["Status"].isNull()) + fileSystemListObject.status = valueFileSystemListFileSystems["Status"].asString(); + if(!valueFileSystemListFileSystems["Capacity"].isNull()) + fileSystemListObject.capacity = std::stoi(valueFileSystemListFileSystems["Capacity"].asString()); + if(!valueFileSystemListFileSystems["CreateTime"].isNull()) + fileSystemListObject.createTime = valueFileSystemListFileSystems["CreateTime"].asString(); + if(!valueFileSystemListFileSystems["StorageType"].isNull()) + fileSystemListObject.storageType = valueFileSystemListFileSystems["StorageType"].asString(); + if(!valueFileSystemListFileSystems["BandWidth"].isNull()) + fileSystemListObject.bandWidth = std::stoi(valueFileSystemListFileSystems["BandWidth"].asString()); + if(!valueFileSystemListFileSystems["RegionId"].isNull()) + fileSystemListObject.regionId = valueFileSystemListFileSystems["RegionId"].asString(); + if(!valueFileSystemListFileSystems["FileSystemId"].isNull()) + fileSystemListObject.fileSystemId = valueFileSystemListFileSystems["FileSystemId"].asString(); + if(!valueFileSystemListFileSystems["FileSystemType"].isNull()) + fileSystemListObject.fileSystemType = valueFileSystemListFileSystems["FileSystemType"].asString(); + if(!valueFileSystemListFileSystems["MeteredSize"].isNull()) + fileSystemListObject.meteredSize = std::stoi(valueFileSystemListFileSystems["MeteredSize"].asString()); + if(!valueFileSystemListFileSystems["EncryptType"].isNull()) + fileSystemListObject.encryptType = std::stoi(valueFileSystemListFileSystems["EncryptType"].asString()); + if(!valueFileSystemListFileSystems["ProtocolType"].isNull()) + fileSystemListObject.protocolType = valueFileSystemListFileSystems["ProtocolType"].asString(); + if(!valueFileSystemListFileSystems["Destription"].isNull()) + fileSystemListObject.destription = valueFileSystemListFileSystems["Destription"].asString(); + if(!valueFileSystemListFileSystems["VpcId"].isNull()) + fileSystemListObject.vpcId = valueFileSystemListFileSystems["VpcId"].asString(); + auto allPackageListNode = valueFileSystemListFileSystems["PackageList"]["Packages"]; + for (auto valueFileSystemListFileSystemsPackageListPackages : allPackageListNode) + { + FileSystems::Packages packageListObject; + if(!valueFileSystemListFileSystemsPackageListPackages["PackageId"].isNull()) + packageListObject.packageId = valueFileSystemListFileSystemsPackageListPackages["PackageId"].asString(); + fileSystemListObject.packageList.push_back(packageListObject); + } + auto allMountTargetListNode = valueFileSystemListFileSystems["MountTargetList"]["MountTargets"]; + for (auto valueFileSystemListFileSystemsMountTargetListMountTargets : allMountTargetListNode) + { + FileSystems::MountTargets mountTargetListObject; + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].isNull()) + mountTargetListObject.status = valueFileSystemListFileSystemsMountTargetListMountTargets["Status"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].isNull()) + mountTargetListObject.vpcId = valueFileSystemListFileSystemsMountTargetListMountTargets["VpcId"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].isNull()) + mountTargetListObject.mountTargetDomain = valueFileSystemListFileSystemsMountTargetListMountTargets["MountTargetDomain"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["AccessGroup"].isNull()) + mountTargetListObject.accessGroup = valueFileSystemListFileSystemsMountTargetListMountTargets["AccessGroup"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].isNull()) + mountTargetListObject.vswId = valueFileSystemListFileSystemsMountTargetListMountTargets["VswId"].asString(); + if(!valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].isNull()) + mountTargetListObject.networkType = valueFileSystemListFileSystemsMountTargetListMountTargets["NetworkType"].asString(); + fileSystemListObject.mountTargetList.push_back(mountTargetListObject); + } + fileSystemList_.push_back(fileSystemListObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListFileSystemWithMountTargetsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListFileSystemWithMountTargetsResult::getPageSize()const +{ + return pageSize_; +} + +int ListFileSystemWithMountTargetsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListFileSystemWithMountTargetsResult::getFileSystemList()const +{ + return fileSystemList_; +} + diff --git a/ehpc/src/model/ListImagesRequest.cc b/ehpc/src/model/ListImagesRequest.cc index afe19d9ab..aeb5c81b0 100644 --- a/ehpc/src/model/ListImagesRequest.cc +++ b/ehpc/src/model/ListImagesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListImagesRequest; ListImagesRequest::ListImagesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListImages") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListImages") { setMethod(HttpRequest::Method::Get); } @@ -34,3 +34,21 @@ void ListImagesRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ListImagesRequest::getBaseOsTag() const { + return baseOsTag_; +} + +void ListImagesRequest::setBaseOsTag(const std::string &baseOsTag) { + baseOsTag_ = baseOsTag; + setParameter(std::string("BaseOsTag"), baseOsTag); +} + +std::string ListImagesRequest::getInstanceType() const { + return instanceType_; +} + +void ListImagesRequest::setInstanceType(const std::string &instanceType) { + instanceType_ = instanceType; + setParameter(std::string("InstanceType"), instanceType); +} + diff --git a/ehpc/src/model/ListImagesResult.cc b/ehpc/src/model/ListImagesResult.cc index 282fe7a86..5a90f9731 100644 --- a/ehpc/src/model/ListImagesResult.cc +++ b/ehpc/src/model/ListImagesResult.cc @@ -43,12 +43,16 @@ void ListImagesResult::parse(const std::string &payload) for (auto valueOsTagsOsInfo : allOsTagsNode) { OsInfo osTagsObject; + if(!valueOsTagsOsInfo["Version"].isNull()) + osTagsObject.version = valueOsTagsOsInfo["Version"].asString(); + if(!valueOsTagsOsInfo["BaseOsTag"].isNull()) + osTagsObject.baseOsTag = valueOsTagsOsInfo["BaseOsTag"].asString(); if(!valueOsTagsOsInfo["Platform"].isNull()) osTagsObject.platform = valueOsTagsOsInfo["Platform"].asString(); if(!valueOsTagsOsInfo["OsTag"].isNull()) osTagsObject.osTag = valueOsTagsOsInfo["OsTag"].asString(); - if(!valueOsTagsOsInfo["Version"].isNull()) - osTagsObject.version = valueOsTagsOsInfo["Version"].asString(); + if(!valueOsTagsOsInfo["ImageId"].isNull()) + osTagsObject.imageId = valueOsTagsOsInfo["ImageId"].asString(); if(!valueOsTagsOsInfo["Architecture"].isNull()) osTagsObject.architecture = valueOsTagsOsInfo["Architecture"].asString(); osTags_.push_back(osTagsObject); diff --git a/ehpc/src/model/ListInstalledSoftwareRequest.cc b/ehpc/src/model/ListInstalledSoftwareRequest.cc new file mode 100644 index 000000000..c2f9ae03d --- /dev/null +++ b/ehpc/src/model/ListInstalledSoftwareRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListInstalledSoftwareRequest; + +ListInstalledSoftwareRequest::ListInstalledSoftwareRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListInstalledSoftware") { + setMethod(HttpRequest::Method::Get); +} + +ListInstalledSoftwareRequest::~ListInstalledSoftwareRequest() {} + +std::string ListInstalledSoftwareRequest::getClusterId() const { + return clusterId_; +} + +void ListInstalledSoftwareRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListInstalledSoftwareRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListInstalledSoftwareRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/ListInstalledSoftwareResult.cc b/ehpc/src/model/ListInstalledSoftwareResult.cc new file mode 100644 index 000000000..4eef6e6e4 --- /dev/null +++ b/ehpc/src/model/ListInstalledSoftwareResult.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListInstalledSoftwareResult::ListInstalledSoftwareResult() : + ServiceResult() +{} + +ListInstalledSoftwareResult::ListInstalledSoftwareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInstalledSoftwareResult::~ListInstalledSoftwareResult() +{} + +void ListInstalledSoftwareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSoftwareListNode = value["SoftwareList"]["SoftwareListItem"]; + for (auto valueSoftwareListSoftwareListItem : allSoftwareListNode) + { + SoftwareListItem softwareListObject; + if(!valueSoftwareListSoftwareListItem["SoftwareId"].isNull()) + softwareListObject.softwareId = valueSoftwareListSoftwareListItem["SoftwareId"].asString(); + if(!valueSoftwareListSoftwareListItem["SoftwareStatus"].isNull()) + softwareListObject.softwareStatus = valueSoftwareListSoftwareListItem["SoftwareStatus"].asString(); + if(!valueSoftwareListSoftwareListItem["SoftwareVersion"].isNull()) + softwareListObject.softwareVersion = valueSoftwareListSoftwareListItem["SoftwareVersion"].asString(); + if(!valueSoftwareListSoftwareListItem["SoftwareName"].isNull()) + softwareListObject.softwareName = valueSoftwareListSoftwareListItem["SoftwareName"].asString(); + softwareList_.push_back(softwareListObject); + } + +} + +std::vector ListInstalledSoftwareResult::getSoftwareList()const +{ + return softwareList_; +} + diff --git a/ehpc/src/model/ListInvocationResultsRequest.cc b/ehpc/src/model/ListInvocationResultsRequest.cc new file mode 100644 index 000000000..5764ef9b9 --- /dev/null +++ b/ehpc/src/model/ListInvocationResultsRequest.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::ListInvocationResultsRequest; + +ListInvocationResultsRequest::ListInvocationResultsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListInvocationResults") { + setMethod(HttpRequest::Method::Get); +} + +ListInvocationResultsRequest::~ListInvocationResultsRequest() {} + +std::vector ListInvocationResultsRequest::getInstance() const { + return instance_; +} + +void ListInvocationResultsRequest::setInstance(const std::vector &instance) { + instance_ = instance; + for(int dep1 = 0; dep1 != instance.size(); dep1++) { + auto instanceObj = instance.at(dep1); + std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1); + setParameter(instanceObjStr + ".Id", instanceObj.id); + } +} + +std::string ListInvocationResultsRequest::getClusterId() const { + return clusterId_; +} + +void ListInvocationResultsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListInvocationResultsRequest::getCommandId() const { + return commandId_; +} + +void ListInvocationResultsRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); +} + +int ListInvocationResultsRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInvocationResultsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListInvocationResultsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListInvocationResultsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListInvocationResultsRequest::getInvokeRecordStatus() const { + return invokeRecordStatus_; +} + +void ListInvocationResultsRequest::setInvokeRecordStatus(const std::string &invokeRecordStatus) { + invokeRecordStatus_ = invokeRecordStatus; + setParameter(std::string("InvokeRecordStatus"), invokeRecordStatus); +} + +int ListInvocationResultsRequest::getPageSize() const { + return pageSize_; +} + +void ListInvocationResultsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListInvocationResultsResult.cc b/ehpc/src/model/ListInvocationResultsResult.cc new file mode 100644 index 000000000..1725450e3 --- /dev/null +++ b/ehpc/src/model/ListInvocationResultsResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListInvocationResultsResult::ListInvocationResultsResult() : + ServiceResult() +{} + +ListInvocationResultsResult::ListInvocationResultsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInvocationResultsResult::~ListInvocationResultsResult() +{} + +void ListInvocationResultsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInvocationResultsNode = value["InvocationResults"]["InvocationResult"]; + for (auto valueInvocationResultsInvocationResult : allInvocationResultsNode) + { + InvocationResult invocationResultsObject; + if(!valueInvocationResultsInvocationResult["Success"].isNull()) + invocationResultsObject.success = valueInvocationResultsInvocationResult["Success"].asString() == "true"; + if(!valueInvocationResultsInvocationResult["Message"].isNull()) + invocationResultsObject.message = valueInvocationResultsInvocationResult["Message"].asString(); + if(!valueInvocationResultsInvocationResult["FinishedTime"].isNull()) + invocationResultsObject.finishedTime = valueInvocationResultsInvocationResult["FinishedTime"].asString(); + if(!valueInvocationResultsInvocationResult["CommandId"].isNull()) + invocationResultsObject.commandId = valueInvocationResultsInvocationResult["CommandId"].asString(); + if(!valueInvocationResultsInvocationResult["InstanceId"].isNull()) + invocationResultsObject.instanceId = valueInvocationResultsInvocationResult["InstanceId"].asString(); + if(!valueInvocationResultsInvocationResult["InvokeRecordStatus"].isNull()) + invocationResultsObject.invokeRecordStatus = valueInvocationResultsInvocationResult["InvokeRecordStatus"].asString(); + if(!valueInvocationResultsInvocationResult["ExitCode"].isNull()) + invocationResultsObject.exitCode = std::stoi(valueInvocationResultsInvocationResult["ExitCode"].asString()); + invocationResults_.push_back(invocationResultsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListInvocationResultsResult::getInvocationResults()const +{ + return invocationResults_; +} + +int ListInvocationResultsResult::getTotalCount()const +{ + return totalCount_; +} + +int ListInvocationResultsResult::getPageSize()const +{ + return pageSize_; +} + +int ListInvocationResultsResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ehpc/src/model/ListInvocationStatusRequest.cc b/ehpc/src/model/ListInvocationStatusRequest.cc new file mode 100644 index 000000000..ec661e09a --- /dev/null +++ b/ehpc/src/model/ListInvocationStatusRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListInvocationStatusRequest; + +ListInvocationStatusRequest::ListInvocationStatusRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListInvocationStatus") { + setMethod(HttpRequest::Method::Get); +} + +ListInvocationStatusRequest::~ListInvocationStatusRequest() {} + +std::string ListInvocationStatusRequest::getClusterId() const { + return clusterId_; +} + +void ListInvocationStatusRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListInvocationStatusRequest::getCommandId() const { + return commandId_; +} + +void ListInvocationStatusRequest::setCommandId(const std::string &commandId) { + commandId_ = commandId; + setParameter(std::string("CommandId"), commandId); +} + +std::string ListInvocationStatusRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListInvocationStatusRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/ListInvocationStatusResult.cc b/ehpc/src/model/ListInvocationStatusResult.cc new file mode 100644 index 000000000..50dc673b0 --- /dev/null +++ b/ehpc/src/model/ListInvocationStatusResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListInvocationStatusResult::ListInvocationStatusResult() : + ServiceResult() +{} + +ListInvocationStatusResult::ListInvocationStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInvocationStatusResult::~ListInvocationStatusResult() +{} + +void ListInvocationStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allInvokeInstancesNode = value["InvokeInstances"]["InvokeInstance"]; + for (auto valueInvokeInstancesInvokeInstance : allInvokeInstancesNode) + { + InvokeInstance invokeInstancesObject; + if(!valueInvokeInstancesInvokeInstance["InstanceInvokeStatus"].isNull()) + invokeInstancesObject.instanceInvokeStatus = valueInvokeInstancesInvokeInstance["InstanceInvokeStatus"].asString(); + if(!valueInvokeInstancesInvokeInstance["InstanceId"].isNull()) + invokeInstancesObject.instanceId = valueInvokeInstancesInvokeInstance["InstanceId"].asString(); + invokeInstances_.push_back(invokeInstancesObject); + } + if(!value["CommandId"].isNull()) + commandId_ = value["CommandId"].asString(); + if(!value["InvokeStatus"].isNull()) + invokeStatus_ = value["InvokeStatus"].asString(); + +} + +std::string ListInvocationStatusResult::getInvokeStatus()const +{ + return invokeStatus_; +} + +std::string ListInvocationStatusResult::getCommandId()const +{ + return commandId_; +} + +std::vector ListInvocationStatusResult::getInvokeInstances()const +{ + return invokeInstances_; +} + diff --git a/ehpc/src/model/ListJobTemplatesRequest.cc b/ehpc/src/model/ListJobTemplatesRequest.cc index 4849b9370..bc072ad8f 100644 --- a/ehpc/src/model/ListJobTemplatesRequest.cc +++ b/ehpc/src/model/ListJobTemplatesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListJobTemplatesRequest; ListJobTemplatesRequest::ListJobTemplatesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListJobTemplates") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListJobTemplates") { setMethod(HttpRequest::Method::Get); } @@ -43,15 +43,6 @@ void ListJobTemplatesRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } -std::string ListJobTemplatesRequest::getRegionId() const { - return regionId_; -} - -void ListJobTemplatesRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - std::string ListJobTemplatesRequest::getName() const { return name_; } diff --git a/ehpc/src/model/ListJobTemplatesResult.cc b/ehpc/src/model/ListJobTemplatesResult.cc index a96d62c9b..d731adbab 100644 --- a/ehpc/src/model/ListJobTemplatesResult.cc +++ b/ehpc/src/model/ListJobTemplatesResult.cc @@ -43,28 +43,48 @@ void ListJobTemplatesResult::parse(const std::string &payload) for (auto valueTemplatesJobTemplates : allTemplatesNode) { JobTemplates templatesObject; - if(!valueTemplatesJobTemplates["StdoutRedirectPath"].isNull()) - templatesObject.stdoutRedirectPath = valueTemplatesJobTemplates["StdoutRedirectPath"].asString(); + if(!valueTemplatesJobTemplates["Task"].isNull()) + templatesObject.task = std::stoi(valueTemplatesJobTemplates["Task"].asString()); if(!valueTemplatesJobTemplates["Variables"].isNull()) templatesObject.variables = valueTemplatesJobTemplates["Variables"].asString(); if(!valueTemplatesJobTemplates["CommandLine"].isNull()) templatesObject.commandLine = valueTemplatesJobTemplates["CommandLine"].asString(); - if(!valueTemplatesJobTemplates["PackagePath"].isNull()) - templatesObject.packagePath = valueTemplatesJobTemplates["PackagePath"].asString(); + if(!valueTemplatesJobTemplates["Queue"].isNull()) + templatesObject.queue = valueTemplatesJobTemplates["Queue"].asString(); if(!valueTemplatesJobTemplates["Priority"].isNull()) templatesObject.priority = std::stoi(valueTemplatesJobTemplates["Priority"].asString()); + if(!valueTemplatesJobTemplates["Mem"].isNull()) + templatesObject.mem = valueTemplatesJobTemplates["Mem"].asString(); + if(!valueTemplatesJobTemplates["Thread"].isNull()) + templatesObject.thread = std::stoi(valueTemplatesJobTemplates["Thread"].asString()); + if(!valueTemplatesJobTemplates["ArrayRequest"].isNull()) + templatesObject.arrayRequest = valueTemplatesJobTemplates["ArrayRequest"].asString(); + if(!valueTemplatesJobTemplates["StderrRedirectPath"].isNull()) + templatesObject.stderrRedirectPath = valueTemplatesJobTemplates["StderrRedirectPath"].asString(); + if(!valueTemplatesJobTemplates["Node"].isNull()) + templatesObject.node = std::stoi(valueTemplatesJobTemplates["Node"].asString()); + if(!valueTemplatesJobTemplates["StdoutRedirectPath"].isNull()) + templatesObject.stdoutRedirectPath = valueTemplatesJobTemplates["StdoutRedirectPath"].asString(); + if(!valueTemplatesJobTemplates["Gpu"].isNull()) + templatesObject.gpu = std::stoi(valueTemplatesJobTemplates["Gpu"].asString()); + if(!valueTemplatesJobTemplates["PackagePath"].isNull()) + templatesObject.packagePath = valueTemplatesJobTemplates["PackagePath"].asString(); + if(!valueTemplatesJobTemplates["ClockTime"].isNull()) + templatesObject.clockTime = valueTemplatesJobTemplates["ClockTime"].asString(); if(!valueTemplatesJobTemplates["ReRunable"].isNull()) templatesObject.reRunable = valueTemplatesJobTemplates["ReRunable"].asString() == "true"; if(!valueTemplatesJobTemplates["Name"].isNull()) templatesObject.name = valueTemplatesJobTemplates["Name"].asString(); - if(!valueTemplatesJobTemplates["ArrayRequest"].isNull()) - templatesObject.arrayRequest = valueTemplatesJobTemplates["ArrayRequest"].asString(); if(!valueTemplatesJobTemplates["Id"].isNull()) templatesObject.id = valueTemplatesJobTemplates["Id"].asString(); - if(!valueTemplatesJobTemplates["StderrRedirectPath"].isNull()) - templatesObject.stderrRedirectPath = valueTemplatesJobTemplates["StderrRedirectPath"].asString(); if(!valueTemplatesJobTemplates["RunasUser"].isNull()) templatesObject.runasUser = valueTemplatesJobTemplates["RunasUser"].asString(); + if(!valueTemplatesJobTemplates["InputFileUrl"].isNull()) + templatesObject.inputFileUrl = valueTemplatesJobTemplates["InputFileUrl"].asString(); + if(!valueTemplatesJobTemplates["WithUnzipCmd"].isNull()) + templatesObject.withUnzipCmd = valueTemplatesJobTemplates["WithUnzipCmd"].asString() == "true"; + if(!valueTemplatesJobTemplates["UnzipCmd"].isNull()) + templatesObject.unzipCmd = valueTemplatesJobTemplates["UnzipCmd"].asString(); templates_.push_back(templatesObject); } if(!value["PageSize"].isNull()) diff --git a/ehpc/src/model/ListJobsRequest.cc b/ehpc/src/model/ListJobsRequest.cc index 5b6675659..dcabafa64 100644 --- a/ehpc/src/model/ListJobsRequest.cc +++ b/ehpc/src/model/ListJobsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListJobsRequest; ListJobsRequest::ListJobsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListJobs") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListJobs") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListJobsResult.cc b/ehpc/src/model/ListJobsResult.cc index 4e5591a28..bc3820314 100644 --- a/ehpc/src/model/ListJobsResult.cc +++ b/ehpc/src/model/ListJobsResult.cc @@ -52,7 +52,7 @@ void ListJobsResult::parse(const std::string &payload) if(!valueJobsJobInfo["Stderr"].isNull()) jobsObject._stderr = valueJobsJobInfo["Stderr"].asString(); if(!valueJobsJobInfo["Priority"].isNull()) - jobsObject.priority = std::stoi(valueJobsJobInfo["Priority"].asString()); + jobsObject.priority = valueJobsJobInfo["Priority"].asString(); if(!valueJobsJobInfo["ShellPath"].isNull()) jobsObject.shellPath = valueJobsJobInfo["ShellPath"].asString(); if(!valueJobsJobInfo["Stdout"].isNull()) @@ -63,6 +63,8 @@ void ListJobsResult::parse(const std::string &payload) jobsObject.startTime = valueJobsJobInfo["StartTime"].asString(); if(!valueJobsJobInfo["LastModifyTime"].isNull()) jobsObject.lastModifyTime = valueJobsJobInfo["LastModifyTime"].asString(); + if(!valueJobsJobInfo["NodeList"].isNull()) + jobsObject.nodeList = valueJobsJobInfo["NodeList"].asString(); if(!valueJobsJobInfo["Name"].isNull()) jobsObject.name = valueJobsJobInfo["Name"].asString(); if(!valueJobsJobInfo["Id"].isNull()) diff --git a/ehpc/src/model/ListJobsWithFiltersRequest.cc b/ehpc/src/model/ListJobsWithFiltersRequest.cc new file mode 100644 index 000000000..e123aed2f --- /dev/null +++ b/ehpc/src/model/ListJobsWithFiltersRequest.cc @@ -0,0 +1,168 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::ListJobsWithFiltersRequest; + +ListJobsWithFiltersRequest::ListJobsWithFiltersRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListJobsWithFilters") { + setMethod(HttpRequest::Method::Get); +} + +ListJobsWithFiltersRequest::~ListJobsWithFiltersRequest() {} + +std::string ListJobsWithFiltersRequest::getJobStatus() const { + return jobStatus_; +} + +void ListJobsWithFiltersRequest::setJobStatus(const std::string &jobStatus) { + jobStatus_ = jobStatus; + setParameter(std::string("JobStatus"), jobStatus); +} + +long ListJobsWithFiltersRequest::getPageNumber() const { + return pageNumber_; +} + +void ListJobsWithFiltersRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListJobsWithFiltersRequest::getRegionId() const { + return regionId_; +} + +void ListJobsWithFiltersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +long ListJobsWithFiltersRequest::getPageSize() const { + return pageSize_; +} + +void ListJobsWithFiltersRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListJobsWithFiltersRequest::getExecuteOrder() const { + return executeOrder_; +} + +void ListJobsWithFiltersRequest::setExecuteOrder(const std::string &executeOrder) { + executeOrder_ = executeOrder; + setParameter(std::string("ExecuteOrder"), executeOrder); +} + +std::string ListJobsWithFiltersRequest::getJobName() const { + return jobName_; +} + +void ListJobsWithFiltersRequest::setJobName(const std::string &jobName) { + jobName_ = jobName; + setParameter(std::string("JobName"), jobName); +} + +std::string ListJobsWithFiltersRequest::getSubmitOrder() const { + return submitOrder_; +} + +void ListJobsWithFiltersRequest::setSubmitOrder(const std::string &submitOrder) { + submitOrder_ = submitOrder; + setParameter(std::string("SubmitOrder"), submitOrder); +} + +std::string ListJobsWithFiltersRequest::getPendOrder() const { + return pendOrder_; +} + +void ListJobsWithFiltersRequest::setPendOrder(const std::string &pendOrder) { + pendOrder_ = pendOrder; + setParameter(std::string("PendOrder"), pendOrder); +} + +std::string ListJobsWithFiltersRequest::getClusterId() const { + return clusterId_; +} + +void ListJobsWithFiltersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::vector ListJobsWithFiltersRequest::getUsers() const { + return users_; +} + +void ListJobsWithFiltersRequest::setUsers(const std::vector &users) { + users_ = users; + for(int dep1 = 0; dep1 != users.size(); dep1++) { + setParameter(std::string("Users") + "." + std::to_string(dep1 + 1), users[dep1]); + } +} + +std::string ListJobsWithFiltersRequest::getCreateTimeEnd() const { + return createTimeEnd_; +} + +void ListJobsWithFiltersRequest::setCreateTimeEnd(const std::string &createTimeEnd) { + createTimeEnd_ = createTimeEnd; + setParameter(std::string("CreateTimeEnd"), createTimeEnd); +} + +bool ListJobsWithFiltersRequest::getAsync() const { + return async_; +} + +void ListJobsWithFiltersRequest::setAsync(bool async) { + async_ = async; + setParameter(std::string("Async"), async ? "true" : "false"); +} + +std::vector ListJobsWithFiltersRequest::getNodes() const { + return nodes_; +} + +void ListJobsWithFiltersRequest::setNodes(const std::vector &nodes) { + nodes_ = nodes; + for(int dep1 = 0; dep1 != nodes.size(); dep1++) { + setParameter(std::string("Nodes") + "." + std::to_string(dep1 + 1), nodes[dep1]); + } +} + +std::vector ListJobsWithFiltersRequest::getQueues() const { + return queues_; +} + +void ListJobsWithFiltersRequest::setQueues(const std::vector &queues) { + queues_ = queues; + for(int dep1 = 0; dep1 != queues.size(); dep1++) { + setParameter(std::string("Queues") + "." + std::to_string(dep1 + 1), queues[dep1]); + } +} + +std::string ListJobsWithFiltersRequest::getCreateTimeStart() const { + return createTimeStart_; +} + +void ListJobsWithFiltersRequest::setCreateTimeStart(const std::string &createTimeStart) { + createTimeStart_ = createTimeStart; + setParameter(std::string("CreateTimeStart"), createTimeStart); +} + diff --git a/ehpc/src/model/ListJobsWithFiltersResult.cc b/ehpc/src/model/ListJobsWithFiltersResult.cc new file mode 100644 index 000000000..f135aeccb --- /dev/null +++ b/ehpc/src/model/ListJobsWithFiltersResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListJobsWithFiltersResult::ListJobsWithFiltersResult() : + ServiceResult() +{} + +ListJobsWithFiltersResult::ListJobsWithFiltersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobsWithFiltersResult::~ListJobsWithFiltersResult() +{} + +void ListJobsWithFiltersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allJobsNode = value["Jobs"]["JobInfo"]; + for (auto valueJobsJobInfo : allJobsNode) + { + JobInfo jobsObject; + if(!valueJobsJobInfo["Owner"].isNull()) + jobsObject.owner = valueJobsJobInfo["Owner"].asString(); + if(!valueJobsJobInfo["Comment"].isNull()) + jobsObject.comment = valueJobsJobInfo["Comment"].asString(); + if(!valueJobsJobInfo["State"].isNull()) + jobsObject.state = valueJobsJobInfo["State"].asString(); + if(!valueJobsJobInfo["Stderr"].isNull()) + jobsObject._stderr = valueJobsJobInfo["Stderr"].asString(); + if(!valueJobsJobInfo["Priority"].isNull()) + jobsObject.priority = valueJobsJobInfo["Priority"].asString(); + if(!valueJobsJobInfo["ShellPath"].isNull()) + jobsObject.shellPath = valueJobsJobInfo["ShellPath"].asString(); + if(!valueJobsJobInfo["Stdout"].isNull()) + jobsObject._stdout = valueJobsJobInfo["Stdout"].asString(); + if(!valueJobsJobInfo["ArrayRequest"].isNull()) + jobsObject.arrayRequest = valueJobsJobInfo["ArrayRequest"].asString(); + if(!valueJobsJobInfo["StartTime"].isNull()) + jobsObject.startTime = valueJobsJobInfo["StartTime"].asString(); + if(!valueJobsJobInfo["LastModifyTime"].isNull()) + jobsObject.lastModifyTime = valueJobsJobInfo["LastModifyTime"].asString(); + if(!valueJobsJobInfo["NodeList"].isNull()) + jobsObject.nodeList = valueJobsJobInfo["NodeList"].asString(); + if(!valueJobsJobInfo["Name"].isNull()) + jobsObject.name = valueJobsJobInfo["Name"].asString(); + if(!valueJobsJobInfo["Id"].isNull()) + jobsObject.id = valueJobsJobInfo["Id"].asString(); + if(!valueJobsJobInfo["SubmitTime"].isNull()) + jobsObject.submitTime = valueJobsJobInfo["SubmitTime"].asString(); + if(!valueJobsJobInfo["Queue"].isNull()) + jobsObject.queue = valueJobsJobInfo["Queue"].asString(); + if(!valueJobsJobInfo["Rerunable"].isNull()) + jobsObject.rerunable = valueJobsJobInfo["Rerunable"].asString() == "true"; + if(!valueJobsJobInfo["VariableList"].isNull()) + jobsObject.variableList = valueJobsJobInfo["VariableList"].asString(); + auto resourcesNode = value["Resources"]; + if(!resourcesNode["Nodes"].isNull()) + jobsObject.resources.nodes = std::stol(resourcesNode["Nodes"].asString()); + if(!resourcesNode["Cores"].isNull()) + jobsObject.resources.cores = std::stol(resourcesNode["Cores"].asString()); + jobs_.push_back(jobsObject); + } + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +int ListJobsWithFiltersResult::getTotalCount()const +{ + return totalCount_; +} + +long ListJobsWithFiltersResult::getPageSize()const +{ + return pageSize_; +} + +std::vector ListJobsWithFiltersResult::getJobs()const +{ + return jobs_; +} + +long ListJobsWithFiltersResult::getPageNumber()const +{ + return pageNumber_; +} + +bool ListJobsWithFiltersResult::getSuccess()const +{ + return success_; +} + diff --git a/ehpc/src/model/ListNodesByQueueRequest.cc b/ehpc/src/model/ListNodesByQueueRequest.cc new file mode 100644 index 000000000..f20181725 --- /dev/null +++ b/ehpc/src/model/ListNodesByQueueRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListNodesByQueueRequest; + +ListNodesByQueueRequest::ListNodesByQueueRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListNodesByQueue") { + setMethod(HttpRequest::Method::Get); +} + +ListNodesByQueueRequest::~ListNodesByQueueRequest() {} + +std::string ListNodesByQueueRequest::getQueueName() const { + return queueName_; +} + +void ListNodesByQueueRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string ListNodesByQueueRequest::getClusterId() const { + return clusterId_; +} + +void ListNodesByQueueRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListNodesByQueueRequest::getPageNumber() const { + return pageNumber_; +} + +void ListNodesByQueueRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListNodesByQueueRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListNodesByQueueRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool ListNodesByQueueRequest::getAsync() const { + return async_; +} + +void ListNodesByQueueRequest::setAsync(bool async) { + async_ = async; + setParameter(std::string("Async"), async ? "true" : "false"); +} + +int ListNodesByQueueRequest::getPageSize() const { + return pageSize_; +} + +void ListNodesByQueueRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListNodesByQueueResult.cc b/ehpc/src/model/ListNodesByQueueResult.cc new file mode 100644 index 000000000..b5a9c6947 --- /dev/null +++ b/ehpc/src/model/ListNodesByQueueResult.cc @@ -0,0 +1,134 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListNodesByQueueResult::ListNodesByQueueResult() : + ServiceResult() +{} + +ListNodesByQueueResult::ListNodesByQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListNodesByQueueResult::~ListNodesByQueueResult() +{} + +void ListNodesByQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNodesNode = value["Nodes"]["NodeInfo"]; + for (auto valueNodesNodeInfo : allNodesNode) + { + NodeInfo nodesObject; + if(!valueNodesNodeInfo["VpcId"].isNull()) + nodesObject.vpcId = valueNodesNodeInfo["VpcId"].asString(); + if(!valueNodesNodeInfo["Status"].isNull()) + nodesObject.status = valueNodesNodeInfo["Status"].asString(); + if(!valueNodesNodeInfo["HtEnabled"].isNull()) + nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true"; + if(!valueNodesNodeInfo["Expired"].isNull()) + nodesObject.expired = valueNodesNodeInfo["Expired"].asString() == "true"; + if(!valueNodesNodeInfo["ImageOwnerAlias"].isNull()) + nodesObject.imageOwnerAlias = valueNodesNodeInfo["ImageOwnerAlias"].asString(); + if(!valueNodesNodeInfo["LockReason"].isNull()) + nodesObject.lockReason = valueNodesNodeInfo["LockReason"].asString(); + if(!valueNodesNodeInfo["HostName"].isNull()) + nodesObject.hostName = valueNodesNodeInfo["HostName"].asString(); + if(!valueNodesNodeInfo["PublicIpAddress"].isNull()) + nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString(); + if(!valueNodesNodeInfo["SpotStrategy"].isNull()) + nodesObject.spotStrategy = valueNodesNodeInfo["SpotStrategy"].asString(); + if(!valueNodesNodeInfo["CreatedByEhpc"].isNull()) + nodesObject.createdByEhpc = valueNodesNodeInfo["CreatedByEhpc"].asString() == "true"; + if(!valueNodesNodeInfo["RegionId"].isNull()) + nodesObject.regionId = valueNodesNodeInfo["RegionId"].asString(); + if(!valueNodesNodeInfo["VSwitchId"].isNull()) + nodesObject.vSwitchId = valueNodesNodeInfo["VSwitchId"].asString(); + if(!valueNodesNodeInfo["IpAddress"].isNull()) + nodesObject.ipAddress = valueNodesNodeInfo["IpAddress"].asString(); + if(!valueNodesNodeInfo["ExpiredTime"].isNull()) + nodesObject.expiredTime = valueNodesNodeInfo["ExpiredTime"].asString(); + if(!valueNodesNodeInfo["Version"].isNull()) + nodesObject.version = valueNodesNodeInfo["Version"].asString(); + if(!valueNodesNodeInfo["ZoneId"].isNull()) + nodesObject.zoneId = valueNodesNodeInfo["ZoneId"].asString(); + if(!valueNodesNodeInfo["AddTime"].isNull()) + nodesObject.addTime = valueNodesNodeInfo["AddTime"].asString(); + if(!valueNodesNodeInfo["ImageId"].isNull()) + nodesObject.imageId = valueNodesNodeInfo["ImageId"].asString(); + if(!valueNodesNodeInfo["Location"].isNull()) + nodesObject.location = valueNodesNodeInfo["Location"].asString(); + if(!valueNodesNodeInfo["Id"].isNull()) + nodesObject.id = valueNodesNodeInfo["Id"].asString(); + if(!valueNodesNodeInfo["CreateMode"].isNull()) + nodesObject.createMode = valueNodesNodeInfo["CreateMode"].asString(); + if(!valueNodesNodeInfo["StateInSched"].isNull()) + nodesObject.stateInSched = valueNodesNodeInfo["StateInSched"].asString(); + auto totalResourcesNode = value["TotalResources"]; + if(!totalResourcesNode["Gpu"].isNull()) + nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString()); + if(!totalResourcesNode["Cpu"].isNull()) + nodesObject.totalResources.cpu = std::stoi(totalResourcesNode["Cpu"].asString()); + if(!totalResourcesNode["Memory"].isNull()) + nodesObject.totalResources.memory = std::stoi(totalResourcesNode["Memory"].asString()); + auto usedResourcesNode = value["UsedResources"]; + if(!usedResourcesNode["Gpu"].isNull()) + nodesObject.usedResources.gpu = std::stoi(usedResourcesNode["Gpu"].asString()); + if(!usedResourcesNode["Cpu"].isNull()) + nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString()); + if(!usedResourcesNode["Memory"].isNull()) + nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString()); + nodes_.push_back(nodesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListNodesByQueueResult::getTotalCount()const +{ + return totalCount_; +} + +int ListNodesByQueueResult::getPageSize()const +{ + return pageSize_; +} + +int ListNodesByQueueResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector ListNodesByQueueResult::getNodes()const +{ + return nodes_; +} + diff --git a/ehpc/src/model/ListNodesNoPagingRequest.cc b/ehpc/src/model/ListNodesNoPagingRequest.cc index c95481def..2d062ae11 100644 --- a/ehpc/src/model/ListNodesNoPagingRequest.cc +++ b/ehpc/src/model/ListNodesNoPagingRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListNodesNoPagingRequest; ListNodesNoPagingRequest::ListNodesNoPagingRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListNodesNoPaging") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListNodesNoPaging") { setMethod(HttpRequest::Method::Get); } @@ -52,6 +52,15 @@ void ListNodesNoPagingRequest::setAccessKeyId(const std::string &accessKeyId) { setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ListNodesNoPagingRequest::getSequence() const { + return sequence_; +} + +void ListNodesNoPagingRequest::setSequence(const std::string &sequence) { + sequence_ = sequence; + setParameter(std::string("Sequence"), sequence); +} + std::string ListNodesNoPagingRequest::getHostName() const { return hostName_; } diff --git a/ehpc/src/model/ListNodesNoPagingResult.cc b/ehpc/src/model/ListNodesNoPagingResult.cc index 7aa64fd05..53a213d25 100644 --- a/ehpc/src/model/ListNodesNoPagingResult.cc +++ b/ehpc/src/model/ListNodesNoPagingResult.cc @@ -45,22 +45,26 @@ void ListNodesNoPagingResult::parse(const std::string &payload) NodeInfo nodesObject; if(!valueNodesNodeInfo["Status"].isNull()) nodesObject.status = valueNodesNodeInfo["Status"].asString(); + if(!valueNodesNodeInfo["HtEnabled"].isNull()) + nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true"; if(!valueNodesNodeInfo["Expired"].isNull()) nodesObject.expired = valueNodesNodeInfo["Expired"].asString() == "true"; if(!valueNodesNodeInfo["ImageOwnerAlias"].isNull()) nodesObject.imageOwnerAlias = valueNodesNodeInfo["ImageOwnerAlias"].asString(); + if(!valueNodesNodeInfo["HostName"].isNull()) + nodesObject.hostName = valueNodesNodeInfo["HostName"].asString(); if(!valueNodesNodeInfo["LockReason"].isNull()) nodesObject.lockReason = valueNodesNodeInfo["LockReason"].asString(); + if(!valueNodesNodeInfo["InstanceType"].isNull()) + nodesObject.instanceType = valueNodesNodeInfo["InstanceType"].asString(); if(!valueNodesNodeInfo["SpotStrategy"].isNull()) nodesObject.spotStrategy = valueNodesNodeInfo["SpotStrategy"].asString(); - if(!valueNodesNodeInfo["RegionId"].isNull()) - nodesObject.regionId = valueNodesNodeInfo["RegionId"].asString(); if(!valueNodesNodeInfo["CreatedByEhpc"].isNull()) nodesObject.createdByEhpc = valueNodesNodeInfo["CreatedByEhpc"].asString() == "true"; + if(!valueNodesNodeInfo["Version"].isNull()) + nodesObject.version = valueNodesNodeInfo["Version"].asString(); if(!valueNodesNodeInfo["ExpiredTime"].isNull()) nodesObject.expiredTime = valueNodesNodeInfo["ExpiredTime"].asString(); - if(!valueNodesNodeInfo["Role"].isNull()) - nodesObject.role = valueNodesNodeInfo["Role"].asString(); if(!valueNodesNodeInfo["AddTime"].isNull()) nodesObject.addTime = valueNodesNodeInfo["AddTime"].asString(); if(!valueNodesNodeInfo["ImageId"].isNull()) @@ -81,32 +85,14 @@ void ListNodesNoPagingResult::parse(const std::string &payload) nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString()); if(!usedResourcesNode["Memory"].isNull()) nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString()); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + nodesObject.roles.push_back(value.asString()); nodes_.push_back(nodesObject); } - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); } -int ListNodesNoPagingResult::getTotalCount()const -{ - return totalCount_; -} - -int ListNodesNoPagingResult::getPageSize()const -{ - return pageSize_; -} - -int ListNodesNoPagingResult::getPageNumber()const -{ - return pageNumber_; -} - std::vector ListNodesNoPagingResult::getNodes()const { return nodes_; diff --git a/ehpc/src/model/ListNodesRequest.cc b/ehpc/src/model/ListNodesRequest.cc index 3ed735f04..e05f628be 100644 --- a/ehpc/src/model/ListNodesRequest.cc +++ b/ehpc/src/model/ListNodesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListNodesRequest; ListNodesRequest::ListNodesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListNodes") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListNodes") { setMethod(HttpRequest::Method::Get); } @@ -34,15 +34,6 @@ void ListNodesRequest::setRole(const std::string &role) { setParameter(std::string("Role"), role); } -std::string ListNodesRequest::getClusterId() const { - return clusterId_; -} - -void ListNodesRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - int ListNodesRequest::getPageNumber() const { return pageNumber_; } @@ -79,3 +70,66 @@ void ListNodesRequest::setPageSize(int pageSize) { setParameter(std::string("PageSize"), std::to_string(pageSize)); } +std::string ListNodesRequest::getHostNamePrefix() const { + return hostNamePrefix_; +} + +void ListNodesRequest::setHostNamePrefix(const std::string &hostNamePrefix) { + hostNamePrefix_ = hostNamePrefix; + setParameter(std::string("HostNamePrefix"), hostNamePrefix); +} + +std::string ListNodesRequest::getClusterId() const { + return clusterId_; +} + +void ListNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListNodesRequest::getHostNameSuffix() const { + return hostNameSuffix_; +} + +void ListNodesRequest::setHostNameSuffix(const std::string &hostNameSuffix) { + hostNameSuffix_ = hostNameSuffix; + setParameter(std::string("HostNameSuffix"), hostNameSuffix); +} + +std::string ListNodesRequest::getFilter() const { + return filter_; +} + +void ListNodesRequest::setFilter(const std::string &filter) { + filter_ = filter; + setParameter(std::string("Filter"), filter); +} + +std::string ListNodesRequest::getPrivateIpAddress() const { + return privateIpAddress_; +} + +void ListNodesRequest::setPrivateIpAddress(const std::string &privateIpAddress) { + privateIpAddress_ = privateIpAddress; + setParameter(std::string("PrivateIpAddress"), privateIpAddress); +} + +std::string ListNodesRequest::getSequence() const { + return sequence_; +} + +void ListNodesRequest::setSequence(const std::string &sequence) { + sequence_ = sequence; + setParameter(std::string("Sequence"), sequence); +} + +std::string ListNodesRequest::getSortBy() const { + return sortBy_; +} + +void ListNodesRequest::setSortBy(const std::string &sortBy) { + sortBy_ = sortBy; + setParameter(std::string("SortBy"), sortBy); +} + diff --git a/ehpc/src/model/ListNodesResult.cc b/ehpc/src/model/ListNodesResult.cc index df8519215..5ac655304 100644 --- a/ehpc/src/model/ListNodesResult.cc +++ b/ehpc/src/model/ListNodesResult.cc @@ -43,30 +43,52 @@ void ListNodesResult::parse(const std::string &payload) for (auto valueNodesNodeInfo : allNodesNode) { NodeInfo nodesObject; + if(!valueNodesNodeInfo["VpcId"].isNull()) + nodesObject.vpcId = valueNodesNodeInfo["VpcId"].asString(); if(!valueNodesNodeInfo["Status"].isNull()) nodesObject.status = valueNodesNodeInfo["Status"].asString(); + if(!valueNodesNodeInfo["HtEnabled"].isNull()) + nodesObject.htEnabled = valueNodesNodeInfo["HtEnabled"].asString() == "true"; if(!valueNodesNodeInfo["Expired"].isNull()) nodesObject.expired = valueNodesNodeInfo["Expired"].asString() == "true"; if(!valueNodesNodeInfo["ImageOwnerAlias"].isNull()) nodesObject.imageOwnerAlias = valueNodesNodeInfo["ImageOwnerAlias"].asString(); if(!valueNodesNodeInfo["LockReason"].isNull()) nodesObject.lockReason = valueNodesNodeInfo["LockReason"].asString(); + if(!valueNodesNodeInfo["HostName"].isNull()) + nodesObject.hostName = valueNodesNodeInfo["HostName"].asString(); + if(!valueNodesNodeInfo["InstanceType"].isNull()) + nodesObject.instanceType = valueNodesNodeInfo["InstanceType"].asString(); + if(!valueNodesNodeInfo["PublicIpAddress"].isNull()) + nodesObject.publicIpAddress = valueNodesNodeInfo["PublicIpAddress"].asString(); if(!valueNodesNodeInfo["SpotStrategy"].isNull()) nodesObject.spotStrategy = valueNodesNodeInfo["SpotStrategy"].asString(); - if(!valueNodesNodeInfo["RegionId"].isNull()) - nodesObject.regionId = valueNodesNodeInfo["RegionId"].asString(); if(!valueNodesNodeInfo["CreatedByEhpc"].isNull()) nodesObject.createdByEhpc = valueNodesNodeInfo["CreatedByEhpc"].asString() == "true"; + if(!valueNodesNodeInfo["RegionId"].isNull()) + nodesObject.regionId = valueNodesNodeInfo["RegionId"].asString(); + if(!valueNodesNodeInfo["VSwitchId"].isNull()) + nodesObject.vSwitchId = valueNodesNodeInfo["VSwitchId"].asString(); + if(!valueNodesNodeInfo["IpAddress"].isNull()) + nodesObject.ipAddress = valueNodesNodeInfo["IpAddress"].asString(); if(!valueNodesNodeInfo["ExpiredTime"].isNull()) nodesObject.expiredTime = valueNodesNodeInfo["ExpiredTime"].asString(); - if(!valueNodesNodeInfo["Role"].isNull()) - nodesObject.role = valueNodesNodeInfo["Role"].asString(); + if(!valueNodesNodeInfo["Version"].isNull()) + nodesObject.version = valueNodesNodeInfo["Version"].asString(); + if(!valueNodesNodeInfo["ZoneId"].isNull()) + nodesObject.zoneId = valueNodesNodeInfo["ZoneId"].asString(); if(!valueNodesNodeInfo["AddTime"].isNull()) nodesObject.addTime = valueNodesNodeInfo["AddTime"].asString(); if(!valueNodesNodeInfo["ImageId"].isNull()) nodesObject.imageId = valueNodesNodeInfo["ImageId"].asString(); + if(!valueNodesNodeInfo["Location"].isNull()) + nodesObject.location = valueNodesNodeInfo["Location"].asString(); if(!valueNodesNodeInfo["Id"].isNull()) nodesObject.id = valueNodesNodeInfo["Id"].asString(); + if(!valueNodesNodeInfo["CreateMode"].isNull()) + nodesObject.createMode = valueNodesNodeInfo["CreateMode"].asString(); + if(!valueNodesNodeInfo["StateInSched"].isNull()) + nodesObject.stateInSched = valueNodesNodeInfo["StateInSched"].asString(); auto totalResourcesNode = value["TotalResources"]; if(!totalResourcesNode["Gpu"].isNull()) nodesObject.totalResources.gpu = std::stoi(totalResourcesNode["Gpu"].asString()); @@ -81,6 +103,9 @@ void ListNodesResult::parse(const std::string &payload) nodesObject.usedResources.cpu = std::stoi(usedResourcesNode["Cpu"].asString()); if(!usedResourcesNode["Memory"].isNull()) nodesObject.usedResources.memory = std::stoi(usedResourcesNode["Memory"].asString()); + auto allRoles = value["Roles"]["Role"]; + for (auto value : allRoles) + nodesObject.roles.push_back(value.asString()); nodes_.push_back(nodesObject); } if(!value["PageSize"].isNull()) diff --git a/ehpc/src/model/ListPreferredEcsTypesRequest.cc b/ehpc/src/model/ListPreferredEcsTypesRequest.cc index e3fd7ad47..bb9ce38fc 100644 --- a/ehpc/src/model/ListPreferredEcsTypesRequest.cc +++ b/ehpc/src/model/ListPreferredEcsTypesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListPreferredEcsTypesRequest; ListPreferredEcsTypesRequest::ListPreferredEcsTypesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListPreferredEcsTypes") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListPreferredEcsTypes") { setMethod(HttpRequest::Method::Get); } @@ -52,3 +52,12 @@ void ListPreferredEcsTypesRequest::setZoneId(const std::string &zoneId) { setParameter(std::string("ZoneId"), zoneId); } +std::string ListPreferredEcsTypesRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void ListPreferredEcsTypesRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + diff --git a/ehpc/src/model/ListQueuesRequest.cc b/ehpc/src/model/ListQueuesRequest.cc new file mode 100644 index 000000000..9948bf39d --- /dev/null +++ b/ehpc/src/model/ListQueuesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListQueuesRequest; + +ListQueuesRequest::ListQueuesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListQueues") { + setMethod(HttpRequest::Method::Get); +} + +ListQueuesRequest::~ListQueuesRequest() {} + +std::string ListQueuesRequest::getClusterId() const { + return clusterId_; +} + +void ListQueuesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListQueuesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListQueuesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool ListQueuesRequest::getAsync() const { + return async_; +} + +void ListQueuesRequest::setAsync(bool async) { + async_ = async; + setParameter(std::string("Async"), async ? "true" : "false"); +} + diff --git a/ehpc/src/model/ListQueuesResult.cc b/ehpc/src/model/ListQueuesResult.cc new file mode 100644 index 000000000..792c7f5af --- /dev/null +++ b/ehpc/src/model/ListQueuesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListQueuesResult::ListQueuesResult() : + ServiceResult() +{} + +ListQueuesResult::ListQueuesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListQueuesResult::~ListQueuesResult() +{} + +void ListQueuesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allQueuesNode = value["Queues"]["QueueInfo"]; + for (auto valueQueuesQueueInfo : allQueuesNode) + { + QueueInfo queuesObject; + if(!valueQueuesQueueInfo["Type"].isNull()) + queuesObject.type = valueQueuesQueueInfo["Type"].asString(); + if(!valueQueuesQueueInfo["HostNamePrefix"].isNull()) + queuesObject.hostNamePrefix = valueQueuesQueueInfo["HostNamePrefix"].asString(); + if(!valueQueuesQueueInfo["QueueName"].isNull()) + queuesObject.queueName = valueQueuesQueueInfo["QueueName"].asString(); + if(!valueQueuesQueueInfo["EnableAutoGrow"].isNull()) + queuesObject.enableAutoGrow = valueQueuesQueueInfo["EnableAutoGrow"].asString() == "true"; + if(!valueQueuesQueueInfo["ResourceGroupId"].isNull()) + queuesObject.resourceGroupId = valueQueuesQueueInfo["ResourceGroupId"].asString(); + if(!valueQueuesQueueInfo["ImageId"].isNull()) + queuesObject.imageId = valueQueuesQueueInfo["ImageId"].asString(); + if(!valueQueuesQueueInfo["HostNameSuffix"].isNull()) + queuesObject.hostNameSuffix = valueQueuesQueueInfo["HostNameSuffix"].asString(); + if(!valueQueuesQueueInfo["SpotStrategy"].isNull()) + queuesObject.spotStrategy = valueQueuesQueueInfo["SpotStrategy"].asString(); + auto allSpotInstanceTypesNode = valueQueuesQueueInfo["SpotInstanceTypes"]["Instance"]; + for (auto valueQueuesQueueInfoSpotInstanceTypesInstance : allSpotInstanceTypesNode) + { + QueueInfo::Instance spotInstanceTypesObject; + if(!valueQueuesQueueInfoSpotInstanceTypesInstance["InstanceType"].isNull()) + spotInstanceTypesObject.instanceType = valueQueuesQueueInfoSpotInstanceTypesInstance["InstanceType"].asString(); + if(!valueQueuesQueueInfoSpotInstanceTypesInstance["SpotPriceLimit"].isNull()) + spotInstanceTypesObject.spotPriceLimit = std::stof(valueQueuesQueueInfoSpotInstanceTypesInstance["SpotPriceLimit"].asString()); + queuesObject.spotInstanceTypes.push_back(spotInstanceTypesObject); + } + auto allComputeInstanceType = value["ComputeInstanceType"]["InstanceType"]; + for (auto value : allComputeInstanceType) + queuesObject.computeInstanceType.push_back(value.asString()); + queues_.push_back(queuesObject); + } + +} + +std::vector ListQueuesResult::getQueues()const +{ + return queues_; +} + diff --git a/ehpc/src/model/ListRegionsRequest.cc b/ehpc/src/model/ListRegionsRequest.cc index c1dd4f4b1..cec88babe 100644 --- a/ehpc/src/model/ListRegionsRequest.cc +++ b/ehpc/src/model/ListRegionsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListRegionsRequest; ListRegionsRequest::ListRegionsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListRegions") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListRegions") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListSecurityGroupsRequest.cc b/ehpc/src/model/ListSecurityGroupsRequest.cc new file mode 100644 index 000000000..e82eb132b --- /dev/null +++ b/ehpc/src/model/ListSecurityGroupsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListSecurityGroupsRequest; + +ListSecurityGroupsRequest::ListSecurityGroupsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListSecurityGroups") { + setMethod(HttpRequest::Method::Get); +} + +ListSecurityGroupsRequest::~ListSecurityGroupsRequest() {} + +std::string ListSecurityGroupsRequest::getClusterId() const { + return clusterId_; +} + +void ListSecurityGroupsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListSecurityGroupsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListSecurityGroupsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/ListSecurityGroupsResult.cc b/ehpc/src/model/ListSecurityGroupsResult.cc new file mode 100644 index 000000000..4f873f281 --- /dev/null +++ b/ehpc/src/model/ListSecurityGroupsResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListSecurityGroupsResult::ListSecurityGroupsResult() : + ServiceResult() +{} + +ListSecurityGroupsResult::ListSecurityGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSecurityGroupsResult::~ListSecurityGroupsResult() +{} + +void ListSecurityGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSecurityGroups = value["SecurityGroups"]["SecurityGroup"]; + for (const auto &item : allSecurityGroups) + securityGroups_.push_back(item.asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +std::vector ListSecurityGroupsResult::getSecurityGroups()const +{ + return securityGroups_; +} + +int ListSecurityGroupsResult::getTotalCount()const +{ + return totalCount_; +} + diff --git a/ehpc/src/model/ListSoftwaresRequest.cc b/ehpc/src/model/ListSoftwaresRequest.cc index 066fe18a1..3dd809a67 100644 --- a/ehpc/src/model/ListSoftwaresRequest.cc +++ b/ehpc/src/model/ListSoftwaresRequest.cc @@ -19,12 +19,21 @@ using AlibabaCloud::EHPC::Model::ListSoftwaresRequest; ListSoftwaresRequest::ListSoftwaresRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListSoftwares") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListSoftwares") { setMethod(HttpRequest::Method::Get); } ListSoftwaresRequest::~ListSoftwaresRequest() {} +std::string ListSoftwaresRequest::getOsTag() const { + return osTag_; +} + +void ListSoftwaresRequest::setOsTag(const std::string &osTag) { + osTag_ = osTag; + setParameter(std::string("OsTag"), osTag); +} + std::string ListSoftwaresRequest::getEhpcVersion() const { return ehpcVersion_; } diff --git a/ehpc/src/model/ListTagResourcesRequest.cc b/ehpc/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..709005766 --- /dev/null +++ b/ehpc/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/ehpc/src/model/ListTagResourcesResult.cc b/ehpc/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..abd1cfd50 --- /dev/null +++ b/ehpc/src/model/ListTagResourcesResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/ehpc/src/model/ListTasksRequest.cc b/ehpc/src/model/ListTasksRequest.cc new file mode 100644 index 000000000..cd04137d6 --- /dev/null +++ b/ehpc/src/model/ListTasksRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListTasksRequest; + +ListTasksRequest::ListTasksRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListTasks") { + setMethod(HttpRequest::Method::Get); +} + +ListTasksRequest::~ListTasksRequest() {} + +std::string ListTasksRequest::getClusterId() const { + return clusterId_; +} + +void ListTasksRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListTasksRequest::getPageNumber() const { + return pageNumber_; +} + +void ListTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListTasksRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListTasksRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +bool ListTasksRequest::getArchived() const { + return archived_; +} + +void ListTasksRequest::setArchived(bool archived) { + archived_ = archived; + setParameter(std::string("Archived"), archived ? "true" : "false"); +} + +int ListTasksRequest::getPageSize() const { + return pageSize_; +} + +void ListTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListTasksRequest::getTaskId() const { + return taskId_; +} + +void ListTasksRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); +} + diff --git a/ehpc/src/model/ListTasksResult.cc b/ehpc/src/model/ListTasksResult.cc new file mode 100644 index 000000000..a11c58b23 --- /dev/null +++ b/ehpc/src/model/ListTasksResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListTasksResult::ListTasksResult() : + ServiceResult() +{} + +ListTasksResult::ListTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTasksResult::~ListTasksResult() +{} + +void ListTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTasksNode = value["Tasks"]["TaskInfo"]; + for (auto valueTasksTaskInfo : allTasksNode) + { + TaskInfo tasksObject; + if(!valueTasksTaskInfo["Status"].isNull()) + tasksObject.status = valueTasksTaskInfo["Status"].asString(); + if(!valueTasksTaskInfo["TaskType"].isNull()) + tasksObject.taskType = valueTasksTaskInfo["TaskType"].asString(); + if(!valueTasksTaskInfo["TotalSteps"].isNull()) + tasksObject.totalSteps = std::stoi(valueTasksTaskInfo["TotalSteps"].asString()); + if(!valueTasksTaskInfo["CurrentStep"].isNull()) + tasksObject.currentStep = std::stoi(valueTasksTaskInfo["CurrentStep"].asString()); + if(!valueTasksTaskInfo["Result"].isNull()) + tasksObject.result = valueTasksTaskInfo["Result"].asString(); + if(!valueTasksTaskInfo["Errors"].isNull()) + tasksObject.errors = valueTasksTaskInfo["Errors"].asString(); + if(!valueTasksTaskInfo["TaskId"].isNull()) + tasksObject.taskId = valueTasksTaskInfo["TaskId"].asString(); + if(!valueTasksTaskInfo["Request"].isNull()) + tasksObject.request = valueTasksTaskInfo["Request"].asString(); + if(!valueTasksTaskInfo["ClusterId"].isNull()) + tasksObject.clusterId = valueTasksTaskInfo["ClusterId"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int ListTasksResult::getTotalCount()const +{ + return totalCount_; +} + +std::vector ListTasksResult::getTasks()const +{ + return tasks_; +} + +int ListTasksResult::getPageSize()const +{ + return pageSize_; +} + +int ListTasksResult::getPageNumber()const +{ + return pageNumber_; +} + diff --git a/ehpc/src/model/ListUpgradeClientsRequest.cc b/ehpc/src/model/ListUpgradeClientsRequest.cc new file mode 100644 index 000000000..85643c64d --- /dev/null +++ b/ehpc/src/model/ListUpgradeClientsRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListUpgradeClientsRequest; + +ListUpgradeClientsRequest::ListUpgradeClientsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListUpgradeClients") { + setMethod(HttpRequest::Method::Get); +} + +ListUpgradeClientsRequest::~ListUpgradeClientsRequest() {} + +std::string ListUpgradeClientsRequest::getClusterId() const { + return clusterId_; +} + +void ListUpgradeClientsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ListUpgradeClientsRequest::getRegionId() const { + return regionId_; +} + +void ListUpgradeClientsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/ListUpgradeClientsResult.cc b/ehpc/src/model/ListUpgradeClientsResult.cc new file mode 100644 index 000000000..fdf28171d --- /dev/null +++ b/ehpc/src/model/ListUpgradeClientsResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListUpgradeClientsResult::ListUpgradeClientsResult() : + ServiceResult() +{} + +ListUpgradeClientsResult::ListUpgradeClientsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUpgradeClientsResult::~ListUpgradeClientsResult() +{} + +void ListUpgradeClientsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allClientRecordsNode = value["ClientRecords"]["ClientRecordsItem"]; + for (auto valueClientRecordsClientRecordsItem : allClientRecordsNode) + { + ClientRecordsItem clientRecordsObject; + if(!valueClientRecordsClientRecordsItem["SubUid"].isNull()) + clientRecordsObject.subUid = valueClientRecordsClientRecordsItem["SubUid"].asString(); + if(!valueClientRecordsClientRecordsItem["OldVersion"].isNull()) + clientRecordsObject.oldVersion = valueClientRecordsClientRecordsItem["OldVersion"].asString(); + if(!valueClientRecordsClientRecordsItem["NewVersion"].isNull()) + clientRecordsObject.newVersion = valueClientRecordsClientRecordsItem["NewVersion"].asString(); + if(!valueClientRecordsClientRecordsItem["UpdateTime"].isNull()) + clientRecordsObject.updateTime = valueClientRecordsClientRecordsItem["UpdateTime"].asString(); + clientRecords_.push_back(clientRecordsObject); + } + if(!value["LatestVersion"].isNull()) + latestVersion_ = value["LatestVersion"].asString(); + if(!value["CurrentVersion"].isNull()) + currentVersion_ = value["CurrentVersion"].asString(); + +} + +std::vector ListUpgradeClientsResult::getClientRecords()const +{ + return clientRecords_; +} + +std::string ListUpgradeClientsResult::getLatestVersion()const +{ + return latestVersion_; +} + +std::string ListUpgradeClientsResult::getCurrentVersion()const +{ + return currentVersion_; +} + diff --git a/ehpc/src/model/ListUsersAsyncRequest.cc b/ehpc/src/model/ListUsersAsyncRequest.cc new file mode 100644 index 000000000..74f1d80b1 --- /dev/null +++ b/ehpc/src/model/ListUsersAsyncRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ListUsersAsyncRequest; + +ListUsersAsyncRequest::ListUsersAsyncRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ListUsersAsync") { + setMethod(HttpRequest::Method::Get); +} + +ListUsersAsyncRequest::~ListUsersAsyncRequest() {} + +std::string ListUsersAsyncRequest::getAsyncId() const { + return asyncId_; +} + +void ListUsersAsyncRequest::setAsyncId(const std::string &asyncId) { + asyncId_ = asyncId; + setParameter(std::string("AsyncId"), asyncId); +} + +std::string ListUsersAsyncRequest::getClusterId() const { + return clusterId_; +} + +void ListUsersAsyncRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +int ListUsersAsyncRequest::getPageNumber() const { + return pageNumber_; +} + +void ListUsersAsyncRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListUsersAsyncRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListUsersAsyncRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListUsersAsyncRequest::getPageSize() const { + return pageSize_; +} + +void ListUsersAsyncRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + diff --git a/ehpc/src/model/ListUsersAsyncResult.cc b/ehpc/src/model/ListUsersAsyncResult.cc new file mode 100644 index 000000000..ec9dd074c --- /dev/null +++ b/ehpc/src/model/ListUsersAsyncResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ListUsersAsyncResult::ListUsersAsyncResult() : + ServiceResult() +{} + +ListUsersAsyncResult::ListUsersAsyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListUsersAsyncResult::~ListUsersAsyncResult() +{} + +void ListUsersAsyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allUsersNode = value["Users"]["UserInfo"]; + for (auto valueUsersUserInfo : allUsersNode) + { + UserInfo usersObject; + if(!valueUsersUserInfo["Name"].isNull()) + usersObject.name = valueUsersUserInfo["Name"].asString(); + if(!valueUsersUserInfo["AddTime"].isNull()) + usersObject.addTime = valueUsersUserInfo["AddTime"].asString(); + if(!valueUsersUserInfo["Group"].isNull()) + usersObject.group = valueUsersUserInfo["Group"].asString(); + if(!valueUsersUserInfo["UserId"].isNull()) + usersObject.userId = valueUsersUserInfo["UserId"].asString(); + if(!valueUsersUserInfo["GroupId"].isNull()) + usersObject.groupId = valueUsersUserInfo["GroupId"].asString(); + users_.push_back(usersObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["AsyncId"].isNull()) + asyncId_ = value["AsyncId"].asString(); + if(!value["AsyncStatus"].isNull()) + asyncStatus_ = value["AsyncStatus"].asString(); + +} + +int ListUsersAsyncResult::getTotalCount()const +{ + return totalCount_; +} + +int ListUsersAsyncResult::getPageSize()const +{ + return pageSize_; +} + +int ListUsersAsyncResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string ListUsersAsyncResult::getAsyncId()const +{ + return asyncId_; +} + +std::string ListUsersAsyncResult::getAsyncStatus()const +{ + return asyncStatus_; +} + +std::vector ListUsersAsyncResult::getUsers()const +{ + return users_; +} + diff --git a/ehpc/src/model/ListUsersRequest.cc b/ehpc/src/model/ListUsersRequest.cc index 790a4a32e..36bef159d 100644 --- a/ehpc/src/model/ListUsersRequest.cc +++ b/ehpc/src/model/ListUsersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListUsersRequest; ListUsersRequest::ListUsersRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListUsers") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListUsers") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListVolumesRequest.cc b/ehpc/src/model/ListVolumesRequest.cc index 6a161b24b..d3d2d2b7e 100644 --- a/ehpc/src/model/ListVolumesRequest.cc +++ b/ehpc/src/model/ListVolumesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ListVolumesRequest; ListVolumesRequest::ListVolumesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ListVolumes") { + : RpcServiceRequest("ehpc", "2018-04-12", "ListVolumes") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ListVolumesResult.cc b/ehpc/src/model/ListVolumesResult.cc index 0fb66fe84..383bac29d 100644 --- a/ehpc/src/model/ListVolumesResult.cc +++ b/ehpc/src/model/ListVolumesResult.cc @@ -59,6 +59,30 @@ void ListVolumesResult::parse(const std::string &payload) volumesObject.regionId = valueVolumesVolumeInfo["RegionId"].asString(); if(!valueVolumesVolumeInfo["ClusterId"].isNull()) volumesObject.clusterId = valueVolumesVolumeInfo["ClusterId"].asString(); + auto allAdditionalVolumesNode = valueVolumesVolumeInfo["AdditionalVolumes"]["VolumeInfo"]; + for (auto valueVolumesVolumeInfoAdditionalVolumesVolumeInfo : allAdditionalVolumesNode) + { + VolumeInfo::VolumeInfo1 additionalVolumesObject; + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["JobQueue"].isNull()) + additionalVolumesObject.jobQueue = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["JobQueue"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeId"].isNull()) + additionalVolumesObject.volumeId = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeId"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["RemoteDirectory"].isNull()) + additionalVolumesObject.remoteDirectory = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["RemoteDirectory"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeMountpoint"].isNull()) + additionalVolumesObject.volumeMountpoint = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeMountpoint"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Role"].isNull()) + additionalVolumesObject.role = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Role"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["LocalDirectory"].isNull()) + additionalVolumesObject.localDirectory = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["LocalDirectory"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeType"].isNull()) + additionalVolumesObject.volumeType = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeType"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Location"].isNull()) + additionalVolumesObject.location = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["Location"].asString(); + if(!valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeProtocol"].isNull()) + additionalVolumesObject.volumeProtocol = valueVolumesVolumeInfoAdditionalVolumesVolumeInfo["VolumeProtocol"].asString(); + volumesObject.additionalVolumes.push_back(additionalVolumesObject); + } volumes_.push_back(volumesObject); } if(!value["PageSize"].isNull()) diff --git a/ehpc/src/model/ModifyClusterAttributesRequest.cc b/ehpc/src/model/ModifyClusterAttributesRequest.cc index 32e5844d9..e64c15830 100644 --- a/ehpc/src/model/ModifyClusterAttributesRequest.cc +++ b/ehpc/src/model/ModifyClusterAttributesRequest.cc @@ -19,12 +19,21 @@ using AlibabaCloud::EHPC::Model::ModifyClusterAttributesRequest; ModifyClusterAttributesRequest::ModifyClusterAttributesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ModifyClusterAttributes") { + : RpcServiceRequest("ehpc", "2018-04-12", "ModifyClusterAttributes") { setMethod(HttpRequest::Method::Get); } ModifyClusterAttributesRequest::~ModifyClusterAttributesRequest() {} +std::string ModifyClusterAttributesRequest::getImageId() const { + return imageId_; +} + +void ModifyClusterAttributesRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + std::string ModifyClusterAttributesRequest::getDescription() const { return description_; } @@ -52,6 +61,15 @@ void ModifyClusterAttributesRequest::setAccessKeyId(const std::string &accessKey setParameter(std::string("AccessKeyId"), accessKeyId); } +std::string ModifyClusterAttributesRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; +} + +void ModifyClusterAttributesRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +} + std::string ModifyClusterAttributesRequest::getName() const { return name_; } diff --git a/ehpc/src/model/ModifyContainerAppAttributesRequest.cc b/ehpc/src/model/ModifyContainerAppAttributesRequest.cc new file mode 100644 index 000000000..c54c8c239 --- /dev/null +++ b/ehpc/src/model/ModifyContainerAppAttributesRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ModifyContainerAppAttributesRequest; + +ModifyContainerAppAttributesRequest::ModifyContainerAppAttributesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ModifyContainerAppAttributes") { + setMethod(HttpRequest::Method::Get); +} + +ModifyContainerAppAttributesRequest::~ModifyContainerAppAttributesRequest() {} + +std::string ModifyContainerAppAttributesRequest::getDescription() const { + return description_; +} + +void ModifyContainerAppAttributesRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string ModifyContainerAppAttributesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyContainerAppAttributesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyContainerAppAttributesRequest::getContainerId() const { + return containerId_; +} + +void ModifyContainerAppAttributesRequest::setContainerId(const std::string &containerId) { + containerId_ = containerId; + setParameter(std::string("ContainerId"), containerId); +} + diff --git a/ehpc/src/model/ModifyContainerAppAttributesResult.cc b/ehpc/src/model/ModifyContainerAppAttributesResult.cc new file mode 100644 index 000000000..98f601cdb --- /dev/null +++ b/ehpc/src/model/ModifyContainerAppAttributesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ModifyContainerAppAttributesResult::ModifyContainerAppAttributesResult() : + ServiceResult() +{} + +ModifyContainerAppAttributesResult::ModifyContainerAppAttributesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyContainerAppAttributesResult::~ModifyContainerAppAttributesResult() +{} + +void ModifyContainerAppAttributesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/ModifyImageGatewayConfigRequest.cc b/ehpc/src/model/ModifyImageGatewayConfigRequest.cc new file mode 100644 index 000000000..f8cca6bf6 --- /dev/null +++ b/ehpc/src/model/ModifyImageGatewayConfigRequest.cc @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ModifyImageGatewayConfigRequest; + +ModifyImageGatewayConfigRequest::ModifyImageGatewayConfigRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ModifyImageGatewayConfig") { + setMethod(HttpRequest::Method::Get); +} + +ModifyImageGatewayConfigRequest::~ModifyImageGatewayConfigRequest() {} + +std::vector ModifyImageGatewayConfigRequest::getRepo() const { + return repo_; +} + +void ModifyImageGatewayConfigRequest::setRepo(const std::vector &repo) { + repo_ = repo; + for(int dep1 = 0; dep1 != repo.size(); dep1++) { + auto repoObj = repo.at(dep1); + std::string repoObjStr = std::string("Repo") + "." + std::to_string(dep1 + 1); + setParameter(repoObjStr + ".Auth", repoObj.auth); + setParameter(repoObjStr + ".Location", repoObj.location); + setParameter(repoObjStr + ".URL", repoObj.uRL); + } +} + +std::string ModifyImageGatewayConfigRequest::getDBServerInfo() const { + return dBServerInfo_; +} + +void ModifyImageGatewayConfigRequest::setDBServerInfo(const std::string &dBServerInfo) { + dBServerInfo_ = dBServerInfo; + setParameter(std::string("DBServerInfo"), dBServerInfo); +} + +std::string ModifyImageGatewayConfigRequest::getClusterId() const { + return clusterId_; +} + +void ModifyImageGatewayConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ModifyImageGatewayConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyImageGatewayConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyImageGatewayConfigRequest::getDefaultRepoLocation() const { + return defaultRepoLocation_; +} + +void ModifyImageGatewayConfigRequest::setDefaultRepoLocation(const std::string &defaultRepoLocation) { + defaultRepoLocation_ = defaultRepoLocation; + setParameter(std::string("DefaultRepoLocation"), defaultRepoLocation); +} + +std::string ModifyImageGatewayConfigRequest::getDBPassword() const { + return dBPassword_; +} + +void ModifyImageGatewayConfigRequest::setDBPassword(const std::string &dBPassword) { + dBPassword_ = dBPassword; + setParameter(std::string("DBPassword"), dBPassword); +} + +std::string ModifyImageGatewayConfigRequest::getDBType() const { + return dBType_; +} + +void ModifyImageGatewayConfigRequest::setDBType(const std::string &dBType) { + dBType_ = dBType; + setParameter(std::string("DBType"), dBType); +} + +std::string ModifyImageGatewayConfigRequest::getDBUsername() const { + return dBUsername_; +} + +void ModifyImageGatewayConfigRequest::setDBUsername(const std::string &dBUsername) { + dBUsername_ = dBUsername; + setParameter(std::string("DBUsername"), dBUsername); +} + +int ModifyImageGatewayConfigRequest::getPullUpdateTimeout() const { + return pullUpdateTimeout_; +} + +void ModifyImageGatewayConfigRequest::setPullUpdateTimeout(int pullUpdateTimeout) { + pullUpdateTimeout_ = pullUpdateTimeout; + setParameter(std::string("PullUpdateTimeout"), std::to_string(pullUpdateTimeout)); +} + +std::string ModifyImageGatewayConfigRequest::getImageExpirationTimeout() const { + return imageExpirationTimeout_; +} + +void ModifyImageGatewayConfigRequest::setImageExpirationTimeout(const std::string &imageExpirationTimeout) { + imageExpirationTimeout_ = imageExpirationTimeout; + setParameter(std::string("ImageExpirationTimeout"), imageExpirationTimeout); +} + diff --git a/ehpc/src/model/ModifyImageGatewayConfigResult.cc b/ehpc/src/model/ModifyImageGatewayConfigResult.cc new file mode 100644 index 000000000..f124b3d50 --- /dev/null +++ b/ehpc/src/model/ModifyImageGatewayConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ModifyImageGatewayConfigResult::ModifyImageGatewayConfigResult() : + ServiceResult() +{} + +ModifyImageGatewayConfigResult::ModifyImageGatewayConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyImageGatewayConfigResult::~ModifyImageGatewayConfigResult() +{} + +void ModifyImageGatewayConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/ModifyUserGroupsRequest.cc b/ehpc/src/model/ModifyUserGroupsRequest.cc index fca2ea43d..50a0eb701 100644 --- a/ehpc/src/model/ModifyUserGroupsRequest.cc +++ b/ehpc/src/model/ModifyUserGroupsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ModifyUserGroupsRequest; ModifyUserGroupsRequest::ModifyUserGroupsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ModifyUserGroups") { + : RpcServiceRequest("ehpc", "2018-04-12", "ModifyUserGroups") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ModifyUserPasswordsRequest.cc b/ehpc/src/model/ModifyUserPasswordsRequest.cc index 6d0881b4c..e6f188110 100644 --- a/ehpc/src/model/ModifyUserPasswordsRequest.cc +++ b/ehpc/src/model/ModifyUserPasswordsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ModifyUserPasswordsRequest; ModifyUserPasswordsRequest::ModifyUserPasswordsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ModifyUserPasswords") { + : RpcServiceRequest("ehpc", "2018-04-12", "ModifyUserPasswords") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ModifyVisualServicePasswdRequest.cc b/ehpc/src/model/ModifyVisualServicePasswdRequest.cc new file mode 100644 index 000000000..e2a694d60 --- /dev/null +++ b/ehpc/src/model/ModifyVisualServicePasswdRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::ModifyVisualServicePasswdRequest; + +ModifyVisualServicePasswdRequest::ModifyVisualServicePasswdRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "ModifyVisualServicePasswd") { + setMethod(HttpRequest::Method::Get); +} + +ModifyVisualServicePasswdRequest::~ModifyVisualServicePasswdRequest() {} + +std::string ModifyVisualServicePasswdRequest::getRunasUserPassword() const { + return runasUserPassword_; +} + +void ModifyVisualServicePasswdRequest::setRunasUserPassword(const std::string &runasUserPassword) { + runasUserPassword_ = runasUserPassword; + setParameter(std::string("RunasUserPassword"), runasUserPassword); +} + +std::string ModifyVisualServicePasswdRequest::getRunasUser() const { + return runasUser_; +} + +void ModifyVisualServicePasswdRequest::setRunasUser(const std::string &runasUser) { + runasUser_ = runasUser; + setParameter(std::string("RunasUser"), runasUser); +} + +std::string ModifyVisualServicePasswdRequest::getClusterId() const { + return clusterId_; +} + +void ModifyVisualServicePasswdRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string ModifyVisualServicePasswdRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ModifyVisualServicePasswdRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ModifyVisualServicePasswdRequest::getPasswd() const { + return passwd_; +} + +void ModifyVisualServicePasswdRequest::setPasswd(const std::string &passwd) { + passwd_ = passwd; + setParameter(std::string("Passwd"), passwd); +} + diff --git a/ehpc/src/model/ModifyVisualServicePasswdResult.cc b/ehpc/src/model/ModifyVisualServicePasswdResult.cc new file mode 100644 index 000000000..1cdbc25d0 --- /dev/null +++ b/ehpc/src/model/ModifyVisualServicePasswdResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +ModifyVisualServicePasswdResult::ModifyVisualServicePasswdResult() : + ServiceResult() +{} + +ModifyVisualServicePasswdResult::ModifyVisualServicePasswdResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVisualServicePasswdResult::~ModifyVisualServicePasswdResult() +{} + +void ModifyVisualServicePasswdResult::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 ModifyVisualServicePasswdResult::getMessage()const +{ + return message_; +} + diff --git a/ehpc/src/model/MountNFSRequest.cc b/ehpc/src/model/MountNFSRequest.cc new file mode 100644 index 000000000..93312b462 --- /dev/null +++ b/ehpc/src/model/MountNFSRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::MountNFSRequest; + +MountNFSRequest::MountNFSRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "MountNFS") { + setMethod(HttpRequest::Method::Get); +} + +MountNFSRequest::~MountNFSRequest() {} + +std::string MountNFSRequest::getMountDir() const { + return mountDir_; +} + +void MountNFSRequest::setMountDir(const std::string &mountDir) { + mountDir_ = mountDir; + setParameter(std::string("MountDir"), mountDir); +} + +std::string MountNFSRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void MountNFSRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string MountNFSRequest::getInstanceId() const { + return instanceId_; +} + +void MountNFSRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string MountNFSRequest::getRemoteDir() const { + return remoteDir_; +} + +void MountNFSRequest::setRemoteDir(const std::string &remoteDir) { + remoteDir_ = remoteDir; + setParameter(std::string("RemoteDir"), remoteDir); +} + +std::string MountNFSRequest::getNfsDir() const { + return nfsDir_; +} + +void MountNFSRequest::setNfsDir(const std::string &nfsDir) { + nfsDir_ = nfsDir; + setParameter(std::string("NfsDir"), nfsDir); +} + +std::string MountNFSRequest::getProtocolType() const { + return protocolType_; +} + +void MountNFSRequest::setProtocolType(const std::string &protocolType) { + protocolType_ = protocolType; + setParameter(std::string("ProtocolType"), protocolType); +} + diff --git a/ehpc/src/model/MountNFSResult.cc b/ehpc/src/model/MountNFSResult.cc new file mode 100644 index 000000000..8f5a610db --- /dev/null +++ b/ehpc/src/model/MountNFSResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +MountNFSResult::MountNFSResult() : + ServiceResult() +{} + +MountNFSResult::MountNFSResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +MountNFSResult::~MountNFSResult() +{} + +void MountNFSResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["InvokeId"].isNull()) + invokeId_ = value["InvokeId"].asString(); + +} + +std::string MountNFSResult::getInvokeId()const +{ + return invokeId_; +} + diff --git a/ehpc/src/model/PullImageRequest.cc b/ehpc/src/model/PullImageRequest.cc new file mode 100644 index 000000000..ae59692c0 --- /dev/null +++ b/ehpc/src/model/PullImageRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::PullImageRequest; + +PullImageRequest::PullImageRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "PullImage") { + setMethod(HttpRequest::Method::Get); +} + +PullImageRequest::~PullImageRequest() {} + +std::string PullImageRequest::getClusterId() const { + return clusterId_; +} + +void PullImageRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string PullImageRequest::getRepository() const { + return repository_; +} + +void PullImageRequest::setRepository(const std::string &repository) { + repository_ = repository; + setParameter(std::string("Repository"), repository); +} + +std::string PullImageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PullImageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string PullImageRequest::getContainerType() const { + return containerType_; +} + +void PullImageRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string PullImageRequest::getImageTag() const { + return imageTag_; +} + +void PullImageRequest::setImageTag(const std::string &imageTag) { + imageTag_ = imageTag; + setParameter(std::string("ImageTag"), imageTag); +} + diff --git a/ehpc/src/model/PullImageResult.cc b/ehpc/src/model/PullImageResult.cc new file mode 100644 index 000000000..931a9cc74 --- /dev/null +++ b/ehpc/src/model/PullImageResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +PullImageResult::PullImageResult() : + ServiceResult() +{} + +PullImageResult::PullImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PullImageResult::~PullImageResult() +{} + +void PullImageResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/QueryServicePackAndPriceRequest.cc b/ehpc/src/model/QueryServicePackAndPriceRequest.cc new file mode 100644 index 000000000..544e06418 --- /dev/null +++ b/ehpc/src/model/QueryServicePackAndPriceRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::QueryServicePackAndPriceRequest; + +QueryServicePackAndPriceRequest::QueryServicePackAndPriceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "QueryServicePackAndPrice") { + setMethod(HttpRequest::Method::Get); +} + +QueryServicePackAndPriceRequest::~QueryServicePackAndPriceRequest() {} + +std::string QueryServicePackAndPriceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryServicePackAndPriceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/QueryServicePackAndPriceResult.cc b/ehpc/src/model/QueryServicePackAndPriceResult.cc new file mode 100644 index 000000000..598eb06df --- /dev/null +++ b/ehpc/src/model/QueryServicePackAndPriceResult.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +QueryServicePackAndPriceResult::QueryServicePackAndPriceResult() : + ServiceResult() +{} + +QueryServicePackAndPriceResult::QueryServicePackAndPriceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryServicePackAndPriceResult::~QueryServicePackAndPriceResult() +{} + +void QueryServicePackAndPriceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServicePackNode = value["ServicePack"]["ServicePackInfo"]; + for (auto valueServicePackServicePackInfo : allServicePackNode) + { + ServicePackInfo servicePackObject; + if(!valueServicePackServicePackInfo["EndTime"].isNull()) + servicePackObject.endTime = std::stoi(valueServicePackServicePackInfo["EndTime"].asString()); + if(!valueServicePackServicePackInfo["Capacity"].isNull()) + servicePackObject.capacity = std::stoi(valueServicePackServicePackInfo["Capacity"].asString()); + if(!valueServicePackServicePackInfo["StartTime"].isNull()) + servicePackObject.startTime = std::stoi(valueServicePackServicePackInfo["StartTime"].asString()); + if(!valueServicePackServicePackInfo["InstanceName"].isNull()) + servicePackObject.instanceName = valueServicePackServicePackInfo["InstanceName"].asString(); + servicePack_.push_back(servicePackObject); + } + if(!value["OriginalAmount"].isNull()) + originalAmount_ = std::stoi(value["OriginalAmount"].asString()); + if(!value["DiscountPrice"].isNull()) + discountPrice_ = std::stof(value["DiscountPrice"].asString()); + if(!value["TradePrice"].isNull()) + tradePrice_ = std::stof(value["TradePrice"].asString()); + if(!value["OriginalPrice"].isNull()) + originalPrice_ = std::stof(value["OriginalPrice"].asString()); + if(!value["ChargeAmount"].isNull()) + chargeAmount_ = std::stoi(value["ChargeAmount"].asString()); + if(!value["Currency"].isNull()) + currency_ = value["Currency"].asString(); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + +} + +float QueryServicePackAndPriceResult::getOriginalPrice()const +{ + return originalPrice_; +} + +float QueryServicePackAndPriceResult::getDiscountPrice()const +{ + return discountPrice_; +} + +std::string QueryServicePackAndPriceResult::getCurrency()const +{ + return currency_; +} + +std::vector QueryServicePackAndPriceResult::getServicePack()const +{ + return servicePack_; +} + +std::string QueryServicePackAndPriceResult::getRegionId()const +{ + return regionId_; +} + +float QueryServicePackAndPriceResult::getTradePrice()const +{ + return tradePrice_; +} + +int QueryServicePackAndPriceResult::getOriginalAmount()const +{ + return originalAmount_; +} + +int QueryServicePackAndPriceResult::getChargeAmount()const +{ + return chargeAmount_; +} + diff --git a/ehpc/src/model/RecoverClusterRequest.cc b/ehpc/src/model/RecoverClusterRequest.cc new file mode 100644 index 000000000..33c6f6ed7 --- /dev/null +++ b/ehpc/src/model/RecoverClusterRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::RecoverClusterRequest; + +RecoverClusterRequest::RecoverClusterRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "RecoverCluster") { + setMethod(HttpRequest::Method::Get); +} + +RecoverClusterRequest::~RecoverClusterRequest() {} + +std::string RecoverClusterRequest::getImageId() const { + return imageId_; +} + +void RecoverClusterRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +std::string RecoverClusterRequest::getOsTag() const { + return osTag_; +} + +void RecoverClusterRequest::setOsTag(const std::string &osTag) { + osTag_ = osTag; + setParameter(std::string("OsTag"), osTag); +} + +std::string RecoverClusterRequest::getClientVersion() const { + return clientVersion_; +} + +void RecoverClusterRequest::setClientVersion(const std::string &clientVersion) { + clientVersion_ = clientVersion; + setParameter(std::string("ClientVersion"), clientVersion); +} + +std::string RecoverClusterRequest::getAccountType() const { + return accountType_; +} + +void RecoverClusterRequest::setAccountType(const std::string &accountType) { + accountType_ = accountType; + setParameter(std::string("AccountType"), accountType); +} + +std::string RecoverClusterRequest::getClusterId() const { + return clusterId_; +} + +void RecoverClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string RecoverClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RecoverClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RecoverClusterRequest::getImageOwnerAlias() const { + return imageOwnerAlias_; +} + +void RecoverClusterRequest::setImageOwnerAlias(const std::string &imageOwnerAlias) { + imageOwnerAlias_ = imageOwnerAlias; + setParameter(std::string("ImageOwnerAlias"), imageOwnerAlias); +} + +std::string RecoverClusterRequest::getSchedulerType() const { + return schedulerType_; +} + +void RecoverClusterRequest::setSchedulerType(const std::string &schedulerType) { + schedulerType_ = schedulerType; + setParameter(std::string("SchedulerType"), schedulerType); +} + diff --git a/ehpc/src/model/RecoverClusterResult.cc b/ehpc/src/model/RecoverClusterResult.cc new file mode 100644 index 000000000..faed06ba9 --- /dev/null +++ b/ehpc/src/model/RecoverClusterResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +RecoverClusterResult::RecoverClusterResult() : + ServiceResult() +{} + +RecoverClusterResult::RecoverClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RecoverClusterResult::~RecoverClusterResult() +{} + +void RecoverClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string RecoverClusterResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/RerunJobsRequest.cc b/ehpc/src/model/RerunJobsRequest.cc index dc9b815ca..319d4f6bd 100644 --- a/ehpc/src/model/RerunJobsRequest.cc +++ b/ehpc/src/model/RerunJobsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::RerunJobsRequest; RerunJobsRequest::RerunJobsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "RerunJobs") { + : RpcServiceRequest("ehpc", "2018-04-12", "RerunJobs") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ResetNodesRequest.cc b/ehpc/src/model/ResetNodesRequest.cc index b452f2c56..d87fad4f5 100644 --- a/ehpc/src/model/ResetNodesRequest.cc +++ b/ehpc/src/model/ResetNodesRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::ResetNodesRequest; ResetNodesRequest::ResetNodesRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "ResetNodes") { + : RpcServiceRequest("ehpc", "2018-04-12", "ResetNodes") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/ResetNodesResult.cc b/ehpc/src/model/ResetNodesResult.cc index b5bb99ee9..727999a11 100644 --- a/ehpc/src/model/ResetNodesResult.cc +++ b/ehpc/src/model/ResetNodesResult.cc @@ -39,6 +39,13 @@ void ResetNodesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); } +std::string ResetNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/RunCloudMetricProfilingRequest.cc b/ehpc/src/model/RunCloudMetricProfilingRequest.cc new file mode 100644 index 000000000..68ee81468 --- /dev/null +++ b/ehpc/src/model/RunCloudMetricProfilingRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::RunCloudMetricProfilingRequest; + +RunCloudMetricProfilingRequest::RunCloudMetricProfilingRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "RunCloudMetricProfiling") { + setMethod(HttpRequest::Method::Get); +} + +RunCloudMetricProfilingRequest::~RunCloudMetricProfilingRequest() {} + +int RunCloudMetricProfilingRequest::getFreq() const { + return freq_; +} + +void RunCloudMetricProfilingRequest::setFreq(int freq) { + freq_ = freq; + setParameter(std::string("Freq"), std::to_string(freq)); +} + +std::string RunCloudMetricProfilingRequest::getClusterId() const { + return clusterId_; +} + +void RunCloudMetricProfilingRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string RunCloudMetricProfilingRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RunCloudMetricProfilingRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int RunCloudMetricProfilingRequest::getDuration() const { + return duration_; +} + +void RunCloudMetricProfilingRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); +} + +std::string RunCloudMetricProfilingRequest::getHostName() const { + return hostName_; +} + +void RunCloudMetricProfilingRequest::setHostName(const std::string &hostName) { + hostName_ = hostName; + setParameter(std::string("HostName"), hostName); +} + +std::string RunCloudMetricProfilingRequest::getRegionId() const { + return regionId_; +} + +void RunCloudMetricProfilingRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int RunCloudMetricProfilingRequest::getProcessId() const { + return processId_; +} + +void RunCloudMetricProfilingRequest::setProcessId(int processId) { + processId_ = processId; + setParameter(std::string("ProcessId"), std::to_string(processId)); +} + diff --git a/ehpc/src/model/RunCloudMetricProfilingResult.cc b/ehpc/src/model/RunCloudMetricProfilingResult.cc new file mode 100644 index 000000000..69f529694 --- /dev/null +++ b/ehpc/src/model/RunCloudMetricProfilingResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +RunCloudMetricProfilingResult::RunCloudMetricProfilingResult() : + ServiceResult() +{} + +RunCloudMetricProfilingResult::RunCloudMetricProfilingResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RunCloudMetricProfilingResult::~RunCloudMetricProfilingResult() +{} + +void RunCloudMetricProfilingResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetAutoScaleConfigRequest.cc b/ehpc/src/model/SetAutoScaleConfigRequest.cc index 7c7993c3d..24be5221a 100644 --- a/ehpc/src/model/SetAutoScaleConfigRequest.cc +++ b/ehpc/src/model/SetAutoScaleConfigRequest.cc @@ -19,12 +19,30 @@ using AlibabaCloud::EHPC::Model::SetAutoScaleConfigRequest; SetAutoScaleConfigRequest::SetAutoScaleConfigRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "SetAutoScaleConfig") { + : RpcServiceRequest("ehpc", "2018-04-12", "SetAutoScaleConfig") { setMethod(HttpRequest::Method::Get); } SetAutoScaleConfigRequest::~SetAutoScaleConfigRequest() {} +std::string SetAutoScaleConfigRequest::getImageId() const { + return imageId_; +} + +void SetAutoScaleConfigRequest::setImageId(const std::string &imageId) { + imageId_ = imageId; + setParameter(std::string("ImageId"), imageId); +} + +float SetAutoScaleConfigRequest::getSpotPriceLimit() const { + return spotPriceLimit_; +} + +void SetAutoScaleConfigRequest::setSpotPriceLimit(float spotPriceLimit) { + spotPriceLimit_ = spotPriceLimit; + setParameter(std::string("SpotPriceLimit"), std::to_string(spotPriceLimit)); +} + std::string SetAutoScaleConfigRequest::getAccessKeyId() const { return accessKeyId_; } @@ -97,6 +115,15 @@ void SetAutoScaleConfigRequest::setEnableAutoShrink(bool enableAutoShrink) { setParameter(std::string("EnableAutoShrink"), enableAutoShrink ? "true" : "false"); } +std::string SetAutoScaleConfigRequest::getSpotStrategy() const { + return spotStrategy_; +} + +void SetAutoScaleConfigRequest::setSpotStrategy(const std::string &spotStrategy) { + spotStrategy_ = spotStrategy; + setParameter(std::string("SpotStrategy"), spotStrategy); +} + int SetAutoScaleConfigRequest::getMaxNodesInCluster() const { return maxNodesInCluster_; } @@ -115,6 +142,53 @@ void SetAutoScaleConfigRequest::setShrinkIntervalInMinutes(int shrinkIntervalInM setParameter(std::string("ShrinkIntervalInMinutes"), std::to_string(shrinkIntervalInMinutes)); } +std::vector SetAutoScaleConfigRequest::getQueues() const { + return queues_; +} + +void SetAutoScaleConfigRequest::setQueues(const std::vector &queues) { + queues_ = queues; + for(int dep1 = 0; dep1 != queues.size(); dep1++) { + auto queuesObj = queues.at(dep1); + std::string queuesObjStr = std::string("Queues") + "." + std::to_string(dep1 + 1); + setParameter(queuesObjStr + ".QueueName", queuesObj.queueName); + setParameter(queuesObjStr + ".SystemDiskLevel", queuesObj.systemDiskLevel); + for(int dep2 = 0; dep2 != queuesObj.instanceTypes.size(); dep2++) { + auto instanceTypesObj = queuesObj.instanceTypes.at(dep2); + std::string instanceTypesObjStr = queuesObjStr + ".InstanceTypes" + "." + std::to_string(dep2 + 1); + setParameter(instanceTypesObjStr + ".VSwitchId", instanceTypesObj.vSwitchId); + setParameter(instanceTypesObjStr + ".SpotStrategy", instanceTypesObj.spotStrategy); + setParameter(instanceTypesObjStr + ".ZoneId", instanceTypesObj.zoneId); + setParameter(instanceTypesObjStr + ".InstanceType", instanceTypesObj.instanceType); + setParameter(instanceTypesObjStr + ".SpotPriceLimit", std::to_string(instanceTypesObj.spotPriceLimit)); + } + setParameter(queuesObjStr + ".EnableAutoGrow", queuesObj.enableAutoGrow ? "true" : "false"); + setParameter(queuesObjStr + ".HostNameSuffix", queuesObj.hostNameSuffix); + setParameter(queuesObjStr + ".SpotPriceLimit", std::to_string(queuesObj.spotPriceLimit)); + setParameter(queuesObjStr + ".EnableAutoShrink", queuesObj.enableAutoShrink ? "true" : "false"); + setParameter(queuesObjStr + ".SpotStrategy", queuesObj.spotStrategy); + for(int dep2 = 0; dep2 != queuesObj.dataDisks.size(); dep2++) { + auto dataDisksObj = queuesObj.dataDisks.at(dep2); + std::string dataDisksObjStr = queuesObjStr + ".DataDisks" + "." + std::to_string(dep2 + 1); + setParameter(dataDisksObjStr + ".DataDiskDeleteWithInstance", dataDisksObj.dataDiskDeleteWithInstance ? "true" : "false"); + setParameter(dataDisksObjStr + ".DataDiskEncrypted", dataDisksObj.dataDiskEncrypted ? "true" : "false"); + setParameter(dataDisksObjStr + ".DataDiskKMSKeyId", dataDisksObj.dataDiskKMSKeyId); + setParameter(dataDisksObjStr + ".DataDiskSize", std::to_string(dataDisksObj.dataDiskSize)); + setParameter(dataDisksObjStr + ".DataDiskCategory", dataDisksObj.dataDiskCategory); + setParameter(dataDisksObjStr + ".DataDiskPerformanceLevel", dataDisksObj.dataDiskPerformanceLevel); + } + setParameter(queuesObjStr + ".MinNodesInQueue", std::to_string(queuesObj.minNodesInQueue)); + setParameter(queuesObjStr + ".MaxNodesPerCycle", std::to_string(queuesObj.maxNodesPerCycle)); + setParameter(queuesObjStr + ".SystemDiskCategory", queuesObj.systemDiskCategory); + setParameter(queuesObjStr + ".MaxNodesInQueue", std::to_string(queuesObj.maxNodesInQueue)); + setParameter(queuesObjStr + ".SystemDiskSize", std::to_string(queuesObj.systemDiskSize)); + setParameter(queuesObjStr + ".QueueImageId", queuesObj.queueImageId); + setParameter(queuesObjStr + ".InstanceType", queuesObj.instanceType); + setParameter(queuesObjStr + ".HostNamePrefix", queuesObj.hostNamePrefix); + setParameter(queuesObjStr + ".MinNodesPerCycle", std::to_string(queuesObj.minNodesPerCycle)); + } +} + int SetAutoScaleConfigRequest::getGrowIntervalInMinutes() const { return growIntervalInMinutes_; } diff --git a/ehpc/src/model/SetGWSClusterPolicyRequest.cc b/ehpc/src/model/SetGWSClusterPolicyRequest.cc new file mode 100644 index 000000000..9722f8a8d --- /dev/null +++ b/ehpc/src/model/SetGWSClusterPolicyRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::SetGWSClusterPolicyRequest; + +SetGWSClusterPolicyRequest::SetGWSClusterPolicyRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SetGWSClusterPolicy") { + setMethod(HttpRequest::Method::Post); +} + +SetGWSClusterPolicyRequest::~SetGWSClusterPolicyRequest() {} + +std::string SetGWSClusterPolicyRequest::getWatermark() const { + return watermark_; +} + +void SetGWSClusterPolicyRequest::setWatermark(const std::string &watermark) { + watermark_ = watermark; + setParameter(std::string("Watermark"), watermark); +} + +std::string SetGWSClusterPolicyRequest::getLocalDrive() const { + return localDrive_; +} + +void SetGWSClusterPolicyRequest::setLocalDrive(const std::string &localDrive) { + localDrive_ = localDrive; + setParameter(std::string("LocalDrive"), localDrive); +} + +std::string SetGWSClusterPolicyRequest::getClusterId() const { + return clusterId_; +} + +void SetGWSClusterPolicyRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SetGWSClusterPolicyRequest::getClipboard() const { + return clipboard_; +} + +void SetGWSClusterPolicyRequest::setClipboard(const std::string &clipboard) { + clipboard_ = clipboard; + setParameter(std::string("Clipboard"), clipboard); +} + +std::string SetGWSClusterPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetGWSClusterPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetGWSClusterPolicyRequest::getUsbRedirect() const { + return usbRedirect_; +} + +void SetGWSClusterPolicyRequest::setUsbRedirect(const std::string &usbRedirect) { + usbRedirect_ = usbRedirect; + setParameter(std::string("UsbRedirect"), usbRedirect); +} + +bool SetGWSClusterPolicyRequest::getAsyncMode() const { + return asyncMode_; +} + +void SetGWSClusterPolicyRequest::setAsyncMode(bool asyncMode) { + asyncMode_ = asyncMode; + setParameter(std::string("AsyncMode"), asyncMode ? "true" : "false"); +} + +std::string SetGWSClusterPolicyRequest::getUdpPort() const { + return udpPort_; +} + +void SetGWSClusterPolicyRequest::setUdpPort(const std::string &udpPort) { + udpPort_ = udpPort; + setParameter(std::string("UdpPort"), udpPort); +} + diff --git a/ehpc/src/model/SetGWSClusterPolicyResult.cc b/ehpc/src/model/SetGWSClusterPolicyResult.cc new file mode 100644 index 000000000..f9c1e1980 --- /dev/null +++ b/ehpc/src/model/SetGWSClusterPolicyResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetGWSClusterPolicyResult::SetGWSClusterPolicyResult() : + ServiceResult() +{} + +SetGWSClusterPolicyResult::SetGWSClusterPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGWSClusterPolicyResult::~SetGWSClusterPolicyResult() +{} + +void SetGWSClusterPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetGWSInstanceNameRequest.cc b/ehpc/src/model/SetGWSInstanceNameRequest.cc new file mode 100644 index 000000000..9aca7c1a4 --- /dev/null +++ b/ehpc/src/model/SetGWSInstanceNameRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::SetGWSInstanceNameRequest; + +SetGWSInstanceNameRequest::SetGWSInstanceNameRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SetGWSInstanceName") { + setMethod(HttpRequest::Method::Get); +} + +SetGWSInstanceNameRequest::~SetGWSInstanceNameRequest() {} + +std::string SetGWSInstanceNameRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetGWSInstanceNameRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetGWSInstanceNameRequest::getInstanceId() const { + return instanceId_; +} + +void SetGWSInstanceNameRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string SetGWSInstanceNameRequest::getName() const { + return name_; +} + +void SetGWSInstanceNameRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/ehpc/src/model/SetGWSInstanceNameResult.cc b/ehpc/src/model/SetGWSInstanceNameResult.cc new file mode 100644 index 000000000..3d95e0b89 --- /dev/null +++ b/ehpc/src/model/SetGWSInstanceNameResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetGWSInstanceNameResult::SetGWSInstanceNameResult() : + ServiceResult() +{} + +SetGWSInstanceNameResult::SetGWSInstanceNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGWSInstanceNameResult::~SetGWSInstanceNameResult() +{} + +void SetGWSInstanceNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetGWSInstanceUserRequest.cc b/ehpc/src/model/SetGWSInstanceUserRequest.cc new file mode 100644 index 000000000..3682d176f --- /dev/null +++ b/ehpc/src/model/SetGWSInstanceUserRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::SetGWSInstanceUserRequest; + +SetGWSInstanceUserRequest::SetGWSInstanceUserRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SetGWSInstanceUser") { + setMethod(HttpRequest::Method::Get); +} + +SetGWSInstanceUserRequest::~SetGWSInstanceUserRequest() {} + +std::string SetGWSInstanceUserRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetGWSInstanceUserRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetGWSInstanceUserRequest::getInstanceId() const { + return instanceId_; +} + +void SetGWSInstanceUserRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +std::string SetGWSInstanceUserRequest::getUserUid() const { + return userUid_; +} + +void SetGWSInstanceUserRequest::setUserUid(const std::string &userUid) { + userUid_ = userUid; + setParameter(std::string("UserUid"), userUid); +} + +std::string SetGWSInstanceUserRequest::getUserName() const { + return userName_; +} + +void SetGWSInstanceUserRequest::setUserName(const std::string &userName) { + userName_ = userName; + setParameter(std::string("UserName"), userName); +} + diff --git a/ehpc/src/model/SetGWSInstanceUserResult.cc b/ehpc/src/model/SetGWSInstanceUserResult.cc new file mode 100644 index 000000000..a296122c5 --- /dev/null +++ b/ehpc/src/model/SetGWSInstanceUserResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetGWSInstanceUserResult::SetGWSInstanceUserResult() : + ServiceResult() +{} + +SetGWSInstanceUserResult::SetGWSInstanceUserResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetGWSInstanceUserResult::~SetGWSInstanceUserResult() +{} + +void SetGWSInstanceUserResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetJobUserRequest.cc b/ehpc/src/model/SetJobUserRequest.cc deleted file mode 100644 index 28a8ba533..000000000 --- a/ehpc/src/model/SetJobUserRequest.cc +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::EHPC::Model::SetJobUserRequest; - -SetJobUserRequest::SetJobUserRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "SetJobUser") { - setMethod(HttpRequest::Method::Get); -} - -SetJobUserRequest::~SetJobUserRequest() {} - -std::string SetJobUserRequest::getRunasUserPassword() const { - return runasUserPassword_; -} - -void SetJobUserRequest::setRunasUserPassword(const std::string &runasUserPassword) { - runasUserPassword_ = runasUserPassword; - setParameter(std::string("RunasUserPassword"), runasUserPassword); -} - -std::string SetJobUserRequest::getRunasUser() const { - return runasUser_; -} - -void SetJobUserRequest::setRunasUser(const std::string &runasUser) { - runasUser_ = runasUser; - setParameter(std::string("RunasUser"), runasUser); -} - -std::string SetJobUserRequest::getClusterId() const { - return clusterId_; -} - -void SetJobUserRequest::setClusterId(const std::string &clusterId) { - clusterId_ = clusterId; - setParameter(std::string("ClusterId"), clusterId); -} - -std::string SetJobUserRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SetJobUserRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - diff --git a/ehpc/src/model/SetPostScriptsRequest.cc b/ehpc/src/model/SetPostScriptsRequest.cc new file mode 100644 index 000000000..bf474b3d3 --- /dev/null +++ b/ehpc/src/model/SetPostScriptsRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::EHPC::Model::SetPostScriptsRequest; + +SetPostScriptsRequest::SetPostScriptsRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SetPostScripts") { + setMethod(HttpRequest::Method::Get); +} + +SetPostScriptsRequest::~SetPostScriptsRequest() {} + +std::vector SetPostScriptsRequest::getPostInstallScripts() const { + return postInstallScripts_; +} + +void SetPostScriptsRequest::setPostInstallScripts(const std::vector &postInstallScripts) { + postInstallScripts_ = postInstallScripts; + for(int dep1 = 0; dep1 != postInstallScripts.size(); dep1++) { + auto postInstallScriptsObj = postInstallScripts.at(dep1); + std::string postInstallScriptsObjStr = std::string("PostInstallScripts") + "." + std::to_string(dep1 + 1); + setParameter(postInstallScriptsObjStr + ".Args", postInstallScriptsObj.args); + setParameter(postInstallScriptsObjStr + ".Url", postInstallScriptsObj.url); + } +} + +std::string SetPostScriptsRequest::getClusterId() const { + return clusterId_; +} + +void SetPostScriptsRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SetPostScriptsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetPostScriptsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetPostScriptsRequest::getRegionId() const { + return regionId_; +} + +void SetPostScriptsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/SetPostScriptsResult.cc b/ehpc/src/model/SetPostScriptsResult.cc new file mode 100644 index 000000000..bf1906b4c --- /dev/null +++ b/ehpc/src/model/SetPostScriptsResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetPostScriptsResult::SetPostScriptsResult() : + ServiceResult() +{} + +SetPostScriptsResult::SetPostScriptsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetPostScriptsResult::~SetPostScriptsResult() +{} + +void SetPostScriptsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetQueueRequest.cc b/ehpc/src/model/SetQueueRequest.cc new file mode 100644 index 000000000..2863766ef --- /dev/null +++ b/ehpc/src/model/SetQueueRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::SetQueueRequest; + +SetQueueRequest::SetQueueRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SetQueue") { + setMethod(HttpRequest::Method::Get); +} + +SetQueueRequest::~SetQueueRequest() {} + +std::string SetQueueRequest::getQueueName() const { + return queueName_; +} + +void SetQueueRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string SetQueueRequest::getClusterId() const { + return clusterId_; +} + +void SetQueueRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SetQueueRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetQueueRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::vector SetQueueRequest::getNode() const { + return node_; +} + +void SetQueueRequest::setNode(const std::vector &node) { + node_ = node; + for(int dep1 = 0; dep1 != node.size(); dep1++) { + auto nodeObj = node.at(dep1); + std::string nodeObjStr = std::string("Node") + "." + std::to_string(dep1 + 1); + setParameter(nodeObjStr + ".Name", nodeObj.name); + } +} + diff --git a/ehpc/src/model/SetQueueResult.cc b/ehpc/src/model/SetQueueResult.cc new file mode 100644 index 000000000..cfed45962 --- /dev/null +++ b/ehpc/src/model/SetQueueResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetQueueResult::SetQueueResult() : + ServiceResult() +{} + +SetQueueResult::SetQueueResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetQueueResult::~SetQueueResult() +{} + +void SetQueueResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/SetSchedulerInfoRequest.cc b/ehpc/src/model/SetSchedulerInfoRequest.cc new file mode 100644 index 000000000..1d84b035a --- /dev/null +++ b/ehpc/src/model/SetSchedulerInfoRequest.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::SetSchedulerInfoRequest; + +SetSchedulerInfoRequest::SetSchedulerInfoRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SetSchedulerInfo") { + setMethod(HttpRequest::Method::Get); +} + +SetSchedulerInfoRequest::~SetSchedulerInfoRequest() {} + +std::vector SetSchedulerInfoRequest::getSlurmInfo() const { + return slurmInfo_; +} + +void SetSchedulerInfoRequest::setSlurmInfo(const std::vector &slurmInfo) { + slurmInfo_ = slurmInfo; + for(int dep1 = 0; dep1 != slurmInfo.size(); dep1++) { + auto slurmInfoObj = slurmInfo.at(dep1); + std::string slurmInfoObjStr = std::string("SlurmInfo") + "." + std::to_string(dep1 + 1); + setParameter(slurmInfoObjStr + ".SchedInterval", std::to_string(slurmInfoObj.schedInterval)); + setParameter(slurmInfoObjStr + ".BackfillInterval", std::to_string(slurmInfoObj.backfillInterval)); + } +} + +std::string SetSchedulerInfoRequest::getClusterId() const { + return clusterId_; +} + +void SetSchedulerInfoRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SetSchedulerInfoRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetSchedulerInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::vector SetSchedulerInfoRequest::getScheduler() const { + return scheduler_; +} + +void SetSchedulerInfoRequest::setScheduler(const std::vector &scheduler) { + scheduler_ = scheduler; + for(int dep1 = 0; dep1 != scheduler.size(); dep1++) { + auto schedulerObj = scheduler.at(dep1); + std::string schedulerObjStr = std::string("Scheduler") + "." + std::to_string(dep1 + 1); + setParameter(schedulerObjStr + ".SchedName", schedulerObj.schedName); + } +} + +std::string SetSchedulerInfoRequest::getRegionId() const { + return regionId_; +} + +void SetSchedulerInfoRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector SetSchedulerInfoRequest::getPbsInfo() const { + return pbsInfo_; +} + +void SetSchedulerInfoRequest::setPbsInfo(const std::vector &pbsInfo) { + pbsInfo_ = pbsInfo; + for(int dep1 = 0; dep1 != pbsInfo.size(); dep1++) { + auto pbsInfoObj = pbsInfo.at(dep1); + std::string pbsInfoObjStr = std::string("PbsInfo") + "." + std::to_string(dep1 + 1); + setParameter(pbsInfoObjStr + ".SchedInterval", std::to_string(pbsInfoObj.schedInterval)); + setParameter(pbsInfoObjStr + ".SchedMaxJobs", std::to_string(pbsInfoObj.schedMaxJobs)); + for(int dep2 = 0; dep2 != pbsInfoObj.aclLimit.size(); dep2++) { + auto aclLimitObj = pbsInfoObj.aclLimit.at(dep2); + std::string aclLimitObjStr = pbsInfoObjStr + ".AclLimit" + "." + std::to_string(dep2 + 1); + setParameter(aclLimitObjStr + ".AclUsers", aclLimitObj.aclUsers); + setParameter(aclLimitObjStr + ".Queue", aclLimitObj.queue); + } + for(int dep2 = 0; dep2 != pbsInfoObj.resourceLimit.size(); dep2++) { + auto resourceLimitObj = pbsInfoObj.resourceLimit.at(dep2); + std::string resourceLimitObjStr = pbsInfoObjStr + ".ResourceLimit" + "." + std::to_string(dep2 + 1); + setParameter(resourceLimitObjStr + ".MaxJobs", std::to_string(resourceLimitObj.maxJobs)); + setParameter(resourceLimitObjStr + ".Nodes", std::to_string(resourceLimitObj.nodes)); + setParameter(resourceLimitObjStr + ".Mem", resourceLimitObj.mem); + setParameter(resourceLimitObjStr + ".Cpus", std::to_string(resourceLimitObj.cpus)); + setParameter(resourceLimitObjStr + ".User", resourceLimitObj.user); + setParameter(resourceLimitObjStr + ".Queue", resourceLimitObj.queue); + } + setParameter(pbsInfoObjStr + ".SchedMaxQueuedJobs", std::to_string(pbsInfoObj.schedMaxQueuedJobs)); + setParameter(pbsInfoObjStr + ".JobHistoryDuration", std::to_string(pbsInfoObj.jobHistoryDuration)); + } +} + diff --git a/ehpc/src/model/SetSchedulerInfoResult.cc b/ehpc/src/model/SetSchedulerInfoResult.cc new file mode 100644 index 000000000..d79add01b --- /dev/null +++ b/ehpc/src/model/SetSchedulerInfoResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SetSchedulerInfoResult::SetSchedulerInfoResult() : + ServiceResult() +{} + +SetSchedulerInfoResult::SetSchedulerInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetSchedulerInfoResult::~SetSchedulerInfoResult() +{} + +void SetSchedulerInfoResult::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 SetSchedulerInfoResult::getMessage()const +{ + return message_; +} + diff --git a/ehpc/src/model/StartClusterRequest.cc b/ehpc/src/model/StartClusterRequest.cc new file mode 100644 index 000000000..b6908c994 --- /dev/null +++ b/ehpc/src/model/StartClusterRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::StartClusterRequest; + +StartClusterRequest::StartClusterRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StartCluster") { + setMethod(HttpRequest::Method::Get); +} + +StartClusterRequest::~StartClusterRequest() {} + +std::string StartClusterRequest::getClusterId() const { + return clusterId_; +} + +void StartClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string StartClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StartClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/StartClusterResult.cc b/ehpc/src/model/StartClusterResult.cc new file mode 100644 index 000000000..2bbcbf0ce --- /dev/null +++ b/ehpc/src/model/StartClusterResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StartClusterResult::StartClusterResult() : + ServiceResult() +{} + +StartClusterResult::StartClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartClusterResult::~StartClusterResult() +{} + +void StartClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string StartClusterResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/StartGWSInstanceRequest.cc b/ehpc/src/model/StartGWSInstanceRequest.cc new file mode 100644 index 000000000..91190ef3f --- /dev/null +++ b/ehpc/src/model/StartGWSInstanceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::StartGWSInstanceRequest; + +StartGWSInstanceRequest::StartGWSInstanceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StartGWSInstance") { + setMethod(HttpRequest::Method::Get); +} + +StartGWSInstanceRequest::~StartGWSInstanceRequest() {} + +std::string StartGWSInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StartGWSInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string StartGWSInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StartGWSInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ehpc/src/model/StartGWSInstanceResult.cc b/ehpc/src/model/StartGWSInstanceResult.cc new file mode 100644 index 000000000..8714a6df0 --- /dev/null +++ b/ehpc/src/model/StartGWSInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StartGWSInstanceResult::StartGWSInstanceResult() : + ServiceResult() +{} + +StartGWSInstanceResult::StartGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartGWSInstanceResult::~StartGWSInstanceResult() +{} + +void StartGWSInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/StartNodesRequest.cc b/ehpc/src/model/StartNodesRequest.cc new file mode 100644 index 000000000..3a58d470a --- /dev/null +++ b/ehpc/src/model/StartNodesRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::StartNodesRequest; + +StartNodesRequest::StartNodesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StartNodes") { + setMethod(HttpRequest::Method::Get); +} + +StartNodesRequest::~StartNodesRequest() {} + +std::string StartNodesRequest::getRole() const { + return role_; +} + +void StartNodesRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); +} + +std::vector StartNodesRequest::getInstance() const { + return instance_; +} + +void StartNodesRequest::setInstance(const std::vector &instance) { + instance_ = instance; + for(int dep1 = 0; dep1 != instance.size(); dep1++) { + auto instanceObj = instance.at(dep1); + std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1); + setParameter(instanceObjStr + ".Id", instanceObj.id); + } +} + +std::string StartNodesRequest::getClusterId() const { + return clusterId_; +} + +void StartNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string StartNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StartNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/StartNodesResult.cc b/ehpc/src/model/StartNodesResult.cc new file mode 100644 index 000000000..03da441d1 --- /dev/null +++ b/ehpc/src/model/StartNodesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StartNodesResult::StartNodesResult() : + ServiceResult() +{} + +StartNodesResult::StartNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartNodesResult::~StartNodesResult() +{} + +void StartNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string StartNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/StartVisualServiceRequest.cc b/ehpc/src/model/StartVisualServiceRequest.cc new file mode 100644 index 000000000..ba78e71ad --- /dev/null +++ b/ehpc/src/model/StartVisualServiceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::StartVisualServiceRequest; + +StartVisualServiceRequest::StartVisualServiceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StartVisualService") { + setMethod(HttpRequest::Method::Get); +} + +StartVisualServiceRequest::~StartVisualServiceRequest() {} + +std::string StartVisualServiceRequest::getClusterId() const { + return clusterId_; +} + +void StartVisualServiceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string StartVisualServiceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StartVisualServiceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int StartVisualServiceRequest::getPort() const { + return port_; +} + +void StartVisualServiceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); +} + +std::string StartVisualServiceRequest::getCidrIp() const { + return cidrIp_; +} + +void StartVisualServiceRequest::setCidrIp(const std::string &cidrIp) { + cidrIp_ = cidrIp; + setParameter(std::string("CidrIp"), cidrIp); +} + diff --git a/ehpc/src/model/StartVisualServiceResult.cc b/ehpc/src/model/StartVisualServiceResult.cc new file mode 100644 index 000000000..a980eccd0 --- /dev/null +++ b/ehpc/src/model/StartVisualServiceResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StartVisualServiceResult::StartVisualServiceResult() : + ServiceResult() +{} + +StartVisualServiceResult::StartVisualServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartVisualServiceResult::~StartVisualServiceResult() +{} + +void StartVisualServiceResult::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 StartVisualServiceResult::getMessage()const +{ + return message_; +} + diff --git a/ehpc/src/model/StopClusterRequest.cc b/ehpc/src/model/StopClusterRequest.cc new file mode 100644 index 000000000..a26b4a781 --- /dev/null +++ b/ehpc/src/model/StopClusterRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::StopClusterRequest; + +StopClusterRequest::StopClusterRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StopCluster") { + setMethod(HttpRequest::Method::Get); +} + +StopClusterRequest::~StopClusterRequest() {} + +std::string StopClusterRequest::getClusterId() const { + return clusterId_; +} + +void StopClusterRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string StopClusterRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StopClusterRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/StopClusterResult.cc b/ehpc/src/model/StopClusterResult.cc new file mode 100644 index 000000000..6122b1a6e --- /dev/null +++ b/ehpc/src/model/StopClusterResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StopClusterResult::StopClusterResult() : + ServiceResult() +{} + +StopClusterResult::StopClusterResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopClusterResult::~StopClusterResult() +{} + +void StopClusterResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string StopClusterResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/StopGWSInstanceRequest.cc b/ehpc/src/model/StopGWSInstanceRequest.cc new file mode 100644 index 000000000..58a73c388 --- /dev/null +++ b/ehpc/src/model/StopGWSInstanceRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::StopGWSInstanceRequest; + +StopGWSInstanceRequest::StopGWSInstanceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StopGWSInstance") { + setMethod(HttpRequest::Method::Get); +} + +StopGWSInstanceRequest::~StopGWSInstanceRequest() {} + +std::string StopGWSInstanceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StopGWSInstanceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string StopGWSInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void StopGWSInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + diff --git a/ehpc/src/model/StopGWSInstanceResult.cc b/ehpc/src/model/StopGWSInstanceResult.cc new file mode 100644 index 000000000..6ebcc8ed0 --- /dev/null +++ b/ehpc/src/model/StopGWSInstanceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StopGWSInstanceResult::StopGWSInstanceResult() : + ServiceResult() +{} + +StopGWSInstanceResult::StopGWSInstanceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopGWSInstanceResult::~StopGWSInstanceResult() +{} + +void StopGWSInstanceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/StopJobsRequest.cc b/ehpc/src/model/StopJobsRequest.cc index 7b77f84ca..ae9726ec7 100644 --- a/ehpc/src/model/StopJobsRequest.cc +++ b/ehpc/src/model/StopJobsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::StopJobsRequest; StopJobsRequest::StopJobsRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "StopJobs") { + : RpcServiceRequest("ehpc", "2018-04-12", "StopJobs") { setMethod(HttpRequest::Method::Get); } diff --git a/ehpc/src/model/StopNodesRequest.cc b/ehpc/src/model/StopNodesRequest.cc new file mode 100644 index 000000000..f012be9d0 --- /dev/null +++ b/ehpc/src/model/StopNodesRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::StopNodesRequest; + +StopNodesRequest::StopNodesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StopNodes") { + setMethod(HttpRequest::Method::Get); +} + +StopNodesRequest::~StopNodesRequest() {} + +std::string StopNodesRequest::getRole() const { + return role_; +} + +void StopNodesRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); +} + +std::vector StopNodesRequest::getInstance() const { + return instance_; +} + +void StopNodesRequest::setInstance(const std::vector &instance) { + instance_ = instance; + for(int dep1 = 0; dep1 != instance.size(); dep1++) { + auto instanceObj = instance.at(dep1); + std::string instanceObjStr = std::string("Instance") + "." + std::to_string(dep1 + 1); + setParameter(instanceObjStr + ".Id", instanceObj.id); + } +} + +std::string StopNodesRequest::getClusterId() const { + return clusterId_; +} + +void StopNodesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string StopNodesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StopNodesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/StopNodesResult.cc b/ehpc/src/model/StopNodesResult.cc new file mode 100644 index 000000000..30cee0bec --- /dev/null +++ b/ehpc/src/model/StopNodesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StopNodesResult::StopNodesResult() : + ServiceResult() +{} + +StopNodesResult::StopNodesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopNodesResult::~StopNodesResult() +{} + +void StopNodesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string StopNodesResult::getTaskId()const +{ + return taskId_; +} + diff --git a/ehpc/src/model/StopVisualServiceRequest.cc b/ehpc/src/model/StopVisualServiceRequest.cc new file mode 100644 index 000000000..e7c64ce86 --- /dev/null +++ b/ehpc/src/model/StopVisualServiceRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC::Model::StopVisualServiceRequest; + +StopVisualServiceRequest::StopVisualServiceRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "StopVisualService") { + setMethod(HttpRequest::Method::Get); +} + +StopVisualServiceRequest::~StopVisualServiceRequest() {} + +std::string StopVisualServiceRequest::getClusterId() const { + return clusterId_; +} + +void StopVisualServiceRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string StopVisualServiceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StopVisualServiceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int StopVisualServiceRequest::getPort() const { + return port_; +} + +void StopVisualServiceRequest::setPort(int port) { + port_ = port; + setParameter(std::string("Port"), std::to_string(port)); +} + +std::string StopVisualServiceRequest::getCidrIp() const { + return cidrIp_; +} + +void StopVisualServiceRequest::setCidrIp(const std::string &cidrIp) { + cidrIp_ = cidrIp; + setParameter(std::string("CidrIp"), cidrIp); +} + diff --git a/ehpc/src/model/StopVisualServiceResult.cc b/ehpc/src/model/StopVisualServiceResult.cc new file mode 100644 index 000000000..6d4166143 --- /dev/null +++ b/ehpc/src/model/StopVisualServiceResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +StopVisualServiceResult::StopVisualServiceResult() : + ServiceResult() +{} + +StopVisualServiceResult::StopVisualServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopVisualServiceResult::~StopVisualServiceResult() +{} + +void StopVisualServiceResult::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 StopVisualServiceResult::getMessage()const +{ + return message_; +} + diff --git a/ehpc/src/model/SubmitJobRequest.cc b/ehpc/src/model/SubmitJobRequest.cc index c6744a406..7b85efcbd 100644 --- a/ehpc/src/model/SubmitJobRequest.cc +++ b/ehpc/src/model/SubmitJobRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::SubmitJobRequest; SubmitJobRequest::SubmitJobRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "SubmitJob") { + : RpcServiceRequest("ehpc", "2018-04-12", "SubmitJob") { setMethod(HttpRequest::Method::Get); } @@ -43,6 +43,15 @@ void SubmitJobRequest::setRunasUserPassword(const std::string &runasUserPassword setParameter(std::string("RunasUserPassword"), runasUserPassword); } +std::string SubmitJobRequest::getClockTime() const { + return clockTime_; +} + +void SubmitJobRequest::setClockTime(const std::string &clockTime) { + clockTime_ = clockTime; + setParameter(std::string("ClockTime"), clockTime); +} + std::string SubmitJobRequest::getCommandLine() const { return commandLine_; } @@ -52,6 +61,15 @@ void SubmitJobRequest::setCommandLine(const std::string &commandLine) { setParameter(std::string("CommandLine"), commandLine); } +std::string SubmitJobRequest::getJobQueue() const { + return jobQueue_; +} + +void SubmitJobRequest::setJobQueue(const std::string &jobQueue) { + jobQueue_ = jobQueue; + setParameter(std::string("JobQueue"), jobQueue); +} + std::string SubmitJobRequest::getAccessKeyId() const { return accessKeyId_; } @@ -70,6 +88,15 @@ void SubmitJobRequest::setArrayRequest(const std::string &arrayRequest) { setParameter(std::string("ArrayRequest"), arrayRequest); } +std::string SubmitJobRequest::getUnzipCmd() const { + return unzipCmd_; +} + +void SubmitJobRequest::setUnzipCmd(const std::string &unzipCmd) { + unzipCmd_ = unzipCmd; + setParameter(std::string("UnzipCmd"), unzipCmd); +} + std::string SubmitJobRequest::getPackagePath() const { return packagePath_; } @@ -79,6 +106,15 @@ void SubmitJobRequest::setPackagePath(const std::string &packagePath) { setParameter(std::string("PackagePath"), packagePath); } +std::string SubmitJobRequest::getMem() const { + return mem_; +} + +void SubmitJobRequest::setMem(const std::string &mem) { + mem_ = mem; + setParameter(std::string("Mem"), mem); +} + std::string SubmitJobRequest::getStdoutRedirectPath() const { return stdoutRedirectPath_; } @@ -97,6 +133,15 @@ void SubmitJobRequest::setVariables(const std::string &variables) { setParameter(std::string("Variables"), variables); } +std::string SubmitJobRequest::getPostCmdLine() const { + return postCmdLine_; +} + +void SubmitJobRequest::setPostCmdLine(const std::string &postCmdLine) { + postCmdLine_ = postCmdLine; + setParameter(std::string("PostCmdLine"), postCmdLine); +} + std::string SubmitJobRequest::getRunasUser() const { return runasUser_; } @@ -124,6 +169,15 @@ void SubmitJobRequest::setReRunable(bool reRunable) { setParameter(std::string("ReRunable"), reRunable ? "true" : "false"); } +int SubmitJobRequest::getThread() const { + return thread_; +} + +void SubmitJobRequest::setThread(int thread) { + thread_ = thread; + setParameter(std::string("Thread"), std::to_string(thread)); +} + int SubmitJobRequest::getPriority() const { return priority_; } @@ -133,6 +187,42 @@ void SubmitJobRequest::setPriority(int priority) { setParameter(std::string("Priority"), std::to_string(priority)); } +int SubmitJobRequest::getGpu() const { + return gpu_; +} + +void SubmitJobRequest::setGpu(int gpu) { + gpu_ = gpu; + setParameter(std::string("Gpu"), std::to_string(gpu)); +} + +int SubmitJobRequest::getNode() const { + return node_; +} + +void SubmitJobRequest::setNode(int node) { + node_ = node; + setParameter(std::string("Node"), std::to_string(node)); +} + +int SubmitJobRequest::getTask() const { + return task_; +} + +void SubmitJobRequest::setTask(int task) { + task_ = task; + setParameter(std::string("Task"), std::to_string(task)); +} + +std::string SubmitJobRequest::getInputFileUrl() const { + return inputFileUrl_; +} + +void SubmitJobRequest::setInputFileUrl(const std::string &inputFileUrl) { + inputFileUrl_ = inputFileUrl; + setParameter(std::string("InputFileUrl"), inputFileUrl); +} + std::string SubmitJobRequest::getName() const { return name_; } @@ -142,3 +232,12 @@ void SubmitJobRequest::setName(const std::string &name) { setParameter(std::string("Name"), name); } +std::string SubmitJobRequest::getContainerId() const { + return containerId_; +} + +void SubmitJobRequest::setContainerId(const std::string &containerId) { + containerId_ = containerId; + setParameter(std::string("ContainerId"), containerId); +} + diff --git a/ehpc/src/model/SummaryImagesInfoRequest.cc b/ehpc/src/model/SummaryImagesInfoRequest.cc new file mode 100644 index 000000000..77ca9e8db --- /dev/null +++ b/ehpc/src/model/SummaryImagesInfoRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::SummaryImagesInfoRequest; + +SummaryImagesInfoRequest::SummaryImagesInfoRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SummaryImagesInfo") { + setMethod(HttpRequest::Method::Get); +} + +SummaryImagesInfoRequest::~SummaryImagesInfoRequest() {} + +std::string SummaryImagesInfoRequest::getClusterId() const { + return clusterId_; +} + +void SummaryImagesInfoRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SummaryImagesInfoRequest::getContainerType() const { + return containerType_; +} + +void SummaryImagesInfoRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + +std::string SummaryImagesInfoRequest::getImageName() const { + return imageName_; +} + +void SummaryImagesInfoRequest::setImageName(const std::string &imageName) { + imageName_ = imageName; + setParameter(std::string("ImageName"), imageName); +} + diff --git a/ehpc/src/model/SummaryImagesInfoResult.cc b/ehpc/src/model/SummaryImagesInfoResult.cc new file mode 100644 index 000000000..22fadda84 --- /dev/null +++ b/ehpc/src/model/SummaryImagesInfoResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SummaryImagesInfoResult::SummaryImagesInfoResult() : + ServiceResult() +{} + +SummaryImagesInfoResult::SummaryImagesInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SummaryImagesInfoResult::~SummaryImagesInfoResult() +{} + +void SummaryImagesInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImagesInfo"].isNull()) + imagesInfo_ = value["ImagesInfo"].asString(); + +} + +std::string SummaryImagesInfoResult::getImagesInfo()const +{ + return imagesInfo_; +} + diff --git a/ehpc/src/model/SummaryImagesRequest.cc b/ehpc/src/model/SummaryImagesRequest.cc new file mode 100644 index 000000000..6e651e4a6 --- /dev/null +++ b/ehpc/src/model/SummaryImagesRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::SummaryImagesRequest; + +SummaryImagesRequest::SummaryImagesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SummaryImages") { + setMethod(HttpRequest::Method::Get); +} + +SummaryImagesRequest::~SummaryImagesRequest() {} + +std::string SummaryImagesRequest::getClusterId() const { + return clusterId_; +} + +void SummaryImagesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SummaryImagesRequest::getContainerType() const { + return containerType_; +} + +void SummaryImagesRequest::setContainerType(const std::string &containerType) { + containerType_ = containerType; + setParameter(std::string("ContainerType"), containerType); +} + diff --git a/ehpc/src/model/SummaryImagesResult.cc b/ehpc/src/model/SummaryImagesResult.cc new file mode 100644 index 000000000..7945c66fe --- /dev/null +++ b/ehpc/src/model/SummaryImagesResult.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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SummaryImagesResult::SummaryImagesResult() : + ServiceResult() +{} + +SummaryImagesResult::SummaryImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SummaryImagesResult::~SummaryImagesResult() +{} + +void SummaryImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ImagesName"].isNull()) + imagesName_ = value["ImagesName"].asString(); + +} + +std::string SummaryImagesResult::getImagesName()const +{ + return imagesName_; +} + diff --git a/ehpc/src/model/SyncUsersRequest.cc b/ehpc/src/model/SyncUsersRequest.cc new file mode 100644 index 000000000..d6113938b --- /dev/null +++ b/ehpc/src/model/SyncUsersRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::SyncUsersRequest; + +SyncUsersRequest::SyncUsersRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "SyncUsers") { + setMethod(HttpRequest::Method::Get); +} + +SyncUsersRequest::~SyncUsersRequest() {} + +std::string SyncUsersRequest::getClusterId() const { + return clusterId_; +} + +void SyncUsersRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string SyncUsersRequest::getRegionId() const { + return regionId_; +} + +void SyncUsersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + diff --git a/ehpc/src/model/SyncUsersResult.cc b/ehpc/src/model/SyncUsersResult.cc new file mode 100644 index 000000000..30932b16c --- /dev/null +++ b/ehpc/src/model/SyncUsersResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +SyncUsersResult::SyncUsersResult() : + ServiceResult() +{} + +SyncUsersResult::SyncUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SyncUsersResult::~SyncUsersResult() +{} + +void SyncUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/TagResourcesRequest.cc b/ehpc/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..43e6d5b5e --- /dev/null +++ b/ehpc/src/model/TagResourcesRequest.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector TagResourcesRequest::getTag() const { + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/ehpc/src/model/TagResourcesResult.cc b/ehpc/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..728987311 --- /dev/null +++ b/ehpc/src/model/TagResourcesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/UnTagResourcesRequest.cc b/ehpc/src/model/UnTagResourcesRequest.cc new file mode 100644 index 000000000..fd01da544 --- /dev/null +++ b/ehpc/src/model/UnTagResourcesRequest.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::UnTagResourcesRequest; + +UnTagResourcesRequest::UnTagResourcesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "UnTagResources") { + setMethod(HttpRequest::Method::Post); +} + +UnTagResourcesRequest::~UnTagResourcesRequest() {} + +bool UnTagResourcesRequest::getAll() const { + return all_; +} + +void UnTagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UnTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UnTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UnTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UnTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string UnTagResourcesRequest::getRegionId() const { + return regionId_; +} + +void UnTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector UnTagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UnTagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/ehpc/src/model/UnTagResourcesResult.cc b/ehpc/src/model/UnTagResourcesResult.cc new file mode 100644 index 000000000..e7a4a71fd --- /dev/null +++ b/ehpc/src/model/UnTagResourcesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +UnTagResourcesResult::UnTagResourcesResult() : + ServiceResult() +{} + +UnTagResourcesResult::UnTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnTagResourcesResult::~UnTagResourcesResult() +{} + +void UnTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/UninstallSoftwareRequest.cc b/ehpc/src/model/UninstallSoftwareRequest.cc new file mode 100644 index 000000000..f2931a6a5 --- /dev/null +++ b/ehpc/src/model/UninstallSoftwareRequest.cc @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::UninstallSoftwareRequest; + +UninstallSoftwareRequest::UninstallSoftwareRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "UninstallSoftware") { + setMethod(HttpRequest::Method::Get); +} + +UninstallSoftwareRequest::~UninstallSoftwareRequest() {} + +std::string UninstallSoftwareRequest::getClusterId() const { + return clusterId_; +} + +void UninstallSoftwareRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UninstallSoftwareRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UninstallSoftwareRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UninstallSoftwareRequest::getApplication() const { + return application_; +} + +void UninstallSoftwareRequest::setApplication(const std::string &application) { + application_ = application; + setParameter(std::string("Application"), application); +} + diff --git a/ehpc/src/model/UninstallSoftwareResult.cc b/ehpc/src/model/UninstallSoftwareResult.cc new file mode 100644 index 000000000..fbd7f2aa7 --- /dev/null +++ b/ehpc/src/model/UninstallSoftwareResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +UninstallSoftwareResult::UninstallSoftwareResult() : + ServiceResult() +{} + +UninstallSoftwareResult::UninstallSoftwareResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UninstallSoftwareResult::~UninstallSoftwareResult() +{} + +void UninstallSoftwareResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/UpdateClusterVolumesRequest.cc b/ehpc/src/model/UpdateClusterVolumesRequest.cc new file mode 100644 index 000000000..5b62ab58b --- /dev/null +++ b/ehpc/src/model/UpdateClusterVolumesRequest.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::UpdateClusterVolumesRequest; + +UpdateClusterVolumesRequest::UpdateClusterVolumesRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "UpdateClusterVolumes") { + setMethod(HttpRequest::Method::Get); +} + +UpdateClusterVolumesRequest::~UpdateClusterVolumesRequest() {} + +std::vector UpdateClusterVolumesRequest::getAdditionalVolumes() const { + return additionalVolumes_; +} + +void UpdateClusterVolumesRequest::setAdditionalVolumes(const std::vector &additionalVolumes) { + additionalVolumes_ = additionalVolumes; + for(int dep1 = 0; dep1 != additionalVolumes.size(); dep1++) { + auto additionalVolumesObj = additionalVolumes.at(dep1); + std::string additionalVolumesObjStr = std::string("AdditionalVolumes") + "." + std::to_string(dep1 + 1); + setParameter(additionalVolumesObjStr + ".VolumeType", additionalVolumesObj.volumeType); + setParameter(additionalVolumesObjStr + ".VolumeProtocol", additionalVolumesObj.volumeProtocol); + setParameter(additionalVolumesObjStr + ".LocalDirectory", additionalVolumesObj.localDirectory); + setParameter(additionalVolumesObjStr + ".RemoteDirectory", additionalVolumesObj.remoteDirectory); + for(int dep2 = 0; dep2 != additionalVolumesObj.roles.size(); dep2++) { + auto rolesObj = additionalVolumesObj.roles.at(dep2); + std::string rolesObjStr = additionalVolumesObjStr + ".Roles" + "." + std::to_string(dep2 + 1); + setParameter(rolesObjStr + ".Name", rolesObj.name); + } + setParameter(additionalVolumesObjStr + ".VolumeId", additionalVolumesObj.volumeId); + setParameter(additionalVolumesObjStr + ".VolumeMountpoint", additionalVolumesObj.volumeMountpoint); + setParameter(additionalVolumesObjStr + ".Location", additionalVolumesObj.location); + setParameter(additionalVolumesObjStr + ".JobQueue", additionalVolumesObj.jobQueue); + } +} + +std::string UpdateClusterVolumesRequest::getClusterId() const { + return clusterId_; +} + +void UpdateClusterVolumesRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateClusterVolumesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateClusterVolumesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/ehpc/src/model/UpdateClusterVolumesResult.cc b/ehpc/src/model/UpdateClusterVolumesResult.cc new file mode 100644 index 000000000..132214d1f --- /dev/null +++ b/ehpc/src/model/UpdateClusterVolumesResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +UpdateClusterVolumesResult::UpdateClusterVolumesResult() : + ServiceResult() +{} + +UpdateClusterVolumesResult::UpdateClusterVolumesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateClusterVolumesResult::~UpdateClusterVolumesResult() +{} + +void UpdateClusterVolumesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/UpdateQueueConfigRequest.cc b/ehpc/src/model/UpdateQueueConfigRequest.cc new file mode 100644 index 000000000..82b159b71 --- /dev/null +++ b/ehpc/src/model/UpdateQueueConfigRequest.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::EHPC::Model::UpdateQueueConfigRequest; + +UpdateQueueConfigRequest::UpdateQueueConfigRequest() + : RpcServiceRequest("ehpc", "2018-04-12", "UpdateQueueConfig") { + setMethod(HttpRequest::Method::Get); +} + +UpdateQueueConfigRequest::~UpdateQueueConfigRequest() {} + +std::string UpdateQueueConfigRequest::getQueueName() const { + return queueName_; +} + +void UpdateQueueConfigRequest::setQueueName(const std::string &queueName) { + queueName_ = queueName; + setParameter(std::string("QueueName"), queueName); +} + +std::string UpdateQueueConfigRequest::getClusterId() const { + return clusterId_; +} + +void UpdateQueueConfigRequest::setClusterId(const std::string &clusterId) { + clusterId_ = clusterId; + setParameter(std::string("ClusterId"), clusterId); +} + +std::string UpdateQueueConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateQueueConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateQueueConfigRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void UpdateQueueConfigRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string UpdateQueueConfigRequest::getComputeInstanceType() const { + return computeInstanceType_; +} + +void UpdateQueueConfigRequest::setComputeInstanceType(const std::string &computeInstanceType) { + computeInstanceType_ = computeInstanceType; + setParameter(std::string("ComputeInstanceType"), computeInstanceType); +} + diff --git a/ehpc/src/model/UpdateQueueConfigResult.cc b/ehpc/src/model/UpdateQueueConfigResult.cc new file mode 100644 index 000000000..242b3810a --- /dev/null +++ b/ehpc/src/model/UpdateQueueConfigResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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::EHPC; +using namespace AlibabaCloud::EHPC::Model; + +UpdateQueueConfigResult::UpdateQueueConfigResult() : + ServiceResult() +{} + +UpdateQueueConfigResult::UpdateQueueConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateQueueConfigResult::~UpdateQueueConfigResult() +{} + +void UpdateQueueConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/ehpc/src/model/UpgradeClientRequest.cc b/ehpc/src/model/UpgradeClientRequest.cc index 44db7c40f..e0165b061 100644 --- a/ehpc/src/model/UpgradeClientRequest.cc +++ b/ehpc/src/model/UpgradeClientRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::EHPC::Model::UpgradeClientRequest; UpgradeClientRequest::UpgradeClientRequest() - : RpcServiceRequest("ehpc", "2017-07-14", "UpgradeClient") { + : RpcServiceRequest("ehpc", "2018-04-12", "UpgradeClient") { setMethod(HttpRequest::Method::Get); }